Serve the repositories in /srv/git over a git-daemon
authorEvan Broder <broder@mit.edu>
Thu, 17 Dec 2009 22:10:06 +0000 (17:10 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 17 Dec 2009 22:10:06 +0000 (17:10 -0500)
svn path=/trunk/packages/invirt-dev/; revision=2625

debian/changelog
debian/invirt-dev.dirs
debian/invirt-dev.upstart [new file with mode: 0644]
debian/rules

index d38a625..3ef804a 100644 (file)
@@ -1,13 +1,14 @@
 invirt-dev (0.1.0) unstable; urgency=low
 
   * Switch to using git instead of svn.
+  * Start a git-daemon to serve the git repositories.
   * Generate the apt repository configuration using gen-files instead of
     rolling our own.
   * Since the prerm code to remove the repo group from sudoers runs on
     upgrades, make sure the postinst code to add it back runs on all
     upgrades, too.
 
- -- Evan Broder <broder@mit.edu>  Sun, 22 Nov 2009 17:57:21 -0500
+ -- Evan Broder <broder@mit.edu>  Thu, 17 Dec 2009 16:06:31 -0600
 
 invirt-dev (0.0.14) unstable; urgency=low
 
index a17355d..6e9b8ce 100644 (file)
@@ -1,3 +1,4 @@
+etc/event.d
 var/lib/invirt-dev/queue
 var/log/invirt/builds
 usr/share/invirt-dev/build.d
diff --git a/debian/invirt-dev.upstart b/debian/invirt-dev.upstart
new file mode 100644 (file)
index 0000000..96eddb3
--- /dev/null
@@ -0,0 +1,12 @@
+start on startup
+stop on shutdown
+
+exec /usr/bin/git \
+     daemon \
+     --user=git --group=nogroup \
+     --verbose \
+     --reuseaddr \
+     --export-all
+     --base-path=/srv/git \
+     /srv/git
+respawn
index ef4b266..331ee90 100755 (executable)
@@ -5,5 +5,8 @@ DEB_PYTHON_SYSTEM=pysupport
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
+install/invirt-dev::
+       cp debian/invirt-dev.upstart debian/invirt-dev/etc/event.d
+
 clean::
        rm -rf python/invirt.builder.egg-info