Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README	(revision 17)
@@ -0,0 +1,6 @@
+The Debian Package sipb-xen-dev
+----------------------------
+
+Comments regarding the Package
+
+ -- unknown <hartmans@debian.org>  Fri,  6 Jul 2007 00:52:28 -0400
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README.Debian
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README.Debian	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/README.Debian	(revision 17)
@@ -0,0 +1,6 @@
+sipb-xen-dev for Debian
+-----------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- unknown <hartmans@debian.org>  Fri,  6 Jul 2007 00:52:28 -0400
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/changelog
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/changelog	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/changelog	(revision 17)
@@ -0,0 +1,25 @@
+sipb-xen-dev (3) unstable; urgency=low
+
+  * Working sx-build-release
+  
+
+ -- Sam Hartman <hartmans@debian.org>  Sun, 15 Jul 2007 16:58:46 -0400
+
+sipb-xen-dev (2) unstable; urgency=low
+
+  * Add sipb-xen-repository apache config
+
+ -- Sam Hartman <hartmans@debian.org>  Sun, 15 Jul 2007 14:04:03 -0400
+
+sipb-xen-dev (1) unstable; urgency=low
+
+  * Add repository config
+  * update dependencies
+
+ --  Sam Hartman <hartmans@debian.org>  Sun, 15 Jul 2007 13:43:08 -0400
+
+sipb-xen-dev (0) unstable; urgency=low
+
+  * Initial Release.
+
+ -- unknown <hartmans@debian.org>  Fri,  6 Jul 2007 00:52:28 -0400
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/compat
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/compat	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/compat	(revision 17)
@@ -0,0 +1,1 @@
+5
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/control
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/control	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/control	(revision 17)
@@ -0,0 +1,13 @@
+Source: sipb-xen-dev
+Section: servers
+Priority: important
+Maintainer: sipb-xen@mit.edu
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: sipb-xen-dev
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg-dev-el, emacs21, reprepro, apache2, postfix, screen, dh-make, screen, , fakeroot, pbuilder
+Description: SIPB Xen development server 
+ This package  should be installed on sipb-xen-dev
+ It makes sure that necessary tools are avaibale.
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/copyright
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/copyright	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/copyright	(revision 17)
@@ -0,0 +1,25 @@
+This is sipb-xen-dev, written and maintained by sipb-xen@mit.edu
+on Fri,  6 Jul 2007 00:52:28 -0400.
+
+The original source can always be found at:
+
+Copyright Holder:  unknown
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this package; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/dirs
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/dirs	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/dirs	(revision 17)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/rules
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/rules	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/rules	(revision 17)
@@ -0,0 +1,97 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/sipb-xen-dev.
+
+
+
+# Build architecture-independent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.dirs
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.dirs	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.dirs	(revision 17)
@@ -0,0 +1,1 @@
+srv/repository/conf
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.install
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.install	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/debian/sipb-xen-dev.install	(revision 17)
@@ -0,0 +1,4 @@
+reprepro-env /usr/bin
+repository-config/* srv/repository/conf
+sipb-xen-repository etc/apache2/conf.d
+sx-build-release /usr/bin
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/distributions
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/distributions	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/distributions	(revision 17)
@@ -0,0 +1,15 @@
+CodeName: unstable
+Components: main
+Uploaders: unsigned
+Architectures: amd64 source
+Origin: sipb
+Notautomatic: yes
+Description: Unreleased sipb-xen software
+
+
+Codename: stable
+Components: main
+Architectures: amd64 source 
+Origin: sipb
+Description: Released sipb-xen  code
+Contents: 1
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/unsigned
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/unsigned	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/repository-config/unsigned	(revision 17)
@@ -0,0 +1,2 @@
+allow  * by unsigned
+
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/reprepro-env
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/reprepro-env	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/reprepro-env	(revision 17)
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+export HOME=/home/repository
+exec sudo -u repository  /usr/bin/reprepro -b /srv/repository "$@"
+
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/sipb-xen-repository
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/sipb-xen-repository	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/sipb-xen-repository	(revision 17)
@@ -0,0 +1,1 @@
+Alias /sipb-xen /srv/repository
Index: /package_tags/sipb-xen-dev/3/sipb-xen-dev/sx-build-release
===================================================================
--- /package_tags/sipb-xen-dev/3/sipb-xen-dev/sx-build-release	(revision 17)
+++ /package_tags/sipb-xen-dev/3/sipb-xen-dev/sx-build-release	(revision 17)
@@ -0,0 +1,29 @@
+#!/bin/bash
+svnuri=file:///afs/sipb.mit.edu/project/xen/svn
+
+set -e
+if  [ $# -ne 1 ] ; then
+	echo " usage: sx-build-release trunk/packages/package_name"
+	exit 1
+fi
+
+if [ -d build-release ] ; then
+    echo "a previous build release directory exists; please clean up"
+    exit 1
+    fi
+
+package=$1
+svn co $svnuri/$package build-release
+olddir=`pwd`
+cd build-release/`basename $package`
+eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
+    <(dpkg-parsechangelog)`
+
+
+dpkg-buildpackage -us -uc -rfakeroot
+svn mkdir $svnuri/package_tags/$Source -m "Create package tags directory" ||true
+svn cp  $svnuri/$package $svnuri/package_tags/$Source/$Version -m "Tag $Version of $Source"
+echo reprepro-env include $Distribution  ../$Source*$Version.changes
+
+cd $olddir
+rm -rf build-release
