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>
11 files changed