Package: git-daemon-run
Version: 1:1.6.5-1
Severity: wishlist
Tags: patch

Hello,

Sometimes people that want to set up a Git service install this package,
thinking it is the only way to get a git-daemon running. In addition,
git-core's README.Debian clearly states that to run a git-daemon, one has to
install git-daemon-run. Yet there exist several other ways, like writing a SysV
init script or launching it by inetd.

Moreover, with its name, git-deamon-run can suggest it is the package that
provides git-daemon. With its dependency to an exotic daemon manager, this can
puzzle them.

May I suggest a modification to the package description, to state that
git-daemon is provided by the package git-core, and to git-core's
README.Debian, explaining the inetd solution? Here is a patch against the
debian/ directory to do that.

Regards,

-- 
Tanguy Ortolo

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ru debian.old/control debian/control
--- debian.old/control	2009-11-03 20:14:01.000000000 +0100
+++ debian/control	2009-11-03 20:08:48.000000000 +0100
@@ -132,9 +132,10 @@
  revision tracking capabilities, not dependent on network access or a
  central server.
  .
- This package provides a git-daemon service.  git-daemon is a simple server
- for git repositories, ideally suited for read-only updates, i.e., pulling
- from git repositories through the network.
+ git-daemon, as provided by the git-core package, is a simple server for git
+ repositories, ideally suited for read-only updates, i.e. pulling from git
+ repositories through the network. This package provides a runit service for
+ running git-daemon permanently.
 
 Package: git-gui
 Architecture: all
diff -ru debian.old/git-core.README.Debian debian/git-core.README.Debian
--- debian.old/git-core.README.Debian	2009-11-03 20:14:01.000000000 +0100
+++ debian/git-core.README.Debian	2009-11-03 20:13:51.000000000 +0100
@@ -6,8 +6,14 @@
 
 1. Run a git-daemon.  This allows people to use a git:// URL to access your
 repositories.  This package provides the git-daemon program, to enable a
-git-daemon service, additionally install the git-daemon-run package:
+git-daemon service, configure inetd(8) to launch it on demand, or install the
+git-daemon-run package to run it permanently:
+ cat >> /etc/inetd.conf <<EOF
+git stream tcp4 nowait nobody /usr/bin/git git daemon --inetd --base-path=/srv/git
+git stream tcp6 nowait nobody /usr/bin/git git daemon --inetd --base-path=/srv/git
+EOF
 
+Or:
  apt-get install git-daemon-run
 
 Wait five seconds for the service to be picked up, and check its status and

Reply via email to