debian: change projectroot to /var/lib/git
commit0b94ee805bf046e15c591c64637d44c2e2af842f
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 20 May 2013 07:44:30 +0000 (20 00:44 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Sat, 6 Jul 2013 23:19:38 +0000 (6 16:19 -0700)
tree2c048746de85be1ef45d761c79b3119db9c0c5de
parente7af0182b60bb5479a8e29ebc86ad5bb06f33ce2
debian: change projectroot to /var/lib/git

Julian Gilbey wrote:
> On Sun, May 19, 2013 at 12:49:08PM -0700, Jonathan Nieder wrote:

>> Maybe that suggests a way to make a smooth transition:
>>
>>  1. preinst installs symlinks /var/lib/git/* -> /var/cache/git/*
>>  2. updated conffiles refer to /var/lib/git
>>  3. NEWS.Debian helps admins move the data to /var/lib/git
>
> That could work, indeed.

Ok, let's do that.  A more complete automatic migration can always be
built on top of this later if someone writes the scripts for it.

> Though I would recommend /srv/git instead of /var/lib/git, as that is
> the directory recommended by the git documentation.

The FHS says

The methodology used to name subdirectories of /srv is
unspecified as there is currently no consensus on how this
should be done. One method for structuring data under /srv is
by protocol, eg.  ftp, rsync, www, and cvs. On large systems
it can be useful to structure /srv by administrative context,
such as /srv/physics/www, /srv/compsci/cvs, etc. This setup
will differ from host to host.  Therefore, no program should
rely on a specific subdirectory structure of /srv existing or
data necessarily being stored in /srv.

which makes /srv/git a reasonable example for the documentation but
not something I can set up in the packaging.  Users can always switch
to that on their on systems, though.

Here's a rough patch for step 1.  Step 2 would be to make preinst
automatically create the appropriate symlinks to save most sysadmins
from the trouble of having to do anything to keep their system
working.

Fixes: http://bugs.debian.org/483788
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
debian/changelog
debian/git-daemon-run.README.Debian
debian/git-daemon-sysvinit.README.Debian
debian/git-daemon.default
debian/git-daemon.init
debian/git-daemon/run
debian/git.NEWS.Debian
debian/git.README.Debian
debian/gitweb.README.Debian
debian/gitweb.conf
debian/rules