git-daemon-sysvinit: mark /etc/init.d/git-daemon as dpkg conffile
commit83fcb31383015c8ec91bb5b6f9e5efed4b533271
authorDaniel Baumann <daniel.baumann@progress-linux.org>
Thu, 16 Jun 2011 17:18:17 +0000 (16 19:18 +0200)
committerJonathan Nieder <jrnieder@gmail.com>
Fri, 17 Jun 2011 02:47:52 +0000 (16 21:47 -0500)
treed015cbc62a9d27e0163991924264a5a3cce0884e
parent74d7dd5f74dc78717733574435e098c897232ba4
git-daemon-sysvinit: mark /etc/init.d/git-daemon as dpkg conffile

Debian policy ยง9.3.2 sayeth:

The /etc/init.d scripts must be treated as configuration
files, either (if they are present in the package, that is, in
the .deb file) by marking them as conffiles, or, (if they do
not exist in the .deb) by managing them correctly in the
maintainer scripts (see Configuration files, Section 10.7).
This is important since we want to give the local system
administrator the chance to adapt the scripts to the local
system [...].

Make it so.  The downside is that the init script is not removed on
package removal so the following sequence of events:

install git-daemon-sysvinit
enable git-daemon-sysvinit in /etc/default
remove git-daemon-sysvinit (but do not purge it)
reboot

leaves git-daemon running.  That can be fixed later.

[jn: with new change description]

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
debian/changelog
debian/git-daemon-sysvinit.conffiles