From 743d41d9bdd4c87d5a24fd13ace415b9a33a271f Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 17 Dec 2009 17:10:06 -0500 Subject: [PATCH] Serve the repositories in /srv/git over a git-daemon svn path=/trunk/packages/invirt-dev/; revision=2625 --- debian/changelog | 3 ++- debian/invirt-dev.dirs | 1 + debian/invirt-dev.upstart | 12 ++++++++++++ debian/rules | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 debian/invirt-dev.upstart diff --git a/debian/changelog b/debian/changelog index d38a625..3ef804a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 22 Nov 2009 17:57:21 -0500 + -- Evan Broder Thu, 17 Dec 2009 16:06:31 -0600 invirt-dev (0.0.14) unstable; urgency=low diff --git a/debian/invirt-dev.dirs b/debian/invirt-dev.dirs index a17355d..6e9b8ce 100644 --- a/debian/invirt-dev.dirs +++ b/debian/invirt-dev.dirs @@ -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 index 0000000..96eddb3 --- /dev/null +++ b/debian/invirt-dev.upstart @@ -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 diff --git a/debian/rules b/debian/rules index ef4b266..331ee90 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 1.7.9.5