Re: diversion/conffile
>>"martin" == martin f krafft <madduck@madduck.net> writes:
martin> also sprach Adam Heath <doogie@debian.org> [2002.02.18.2052 +0100]:
>> Manoj recently uploaded a program that does this for you.
martin> i am probably going the easy way of placing a bug note into
martin> the file warning about an overwrite on upgrade. there's
martin> nothing to be changed in that file anyway.
Still a policy violation, and reason for a serious bug, I am
afraid.
ucf is pretty easy to use, too. In the postinst, just say
ucf /usr/share/package/file /etc/init.d/file
and you are done.
manoj
======================================================================
SYNOPSIS
ucf [options] <New file> <Destination>
DESCRIPTION
This script attempts to provide conffile like handling for
files installed under /etc not shipped in a Debian pack-
age, but handled by the postinst instead. Debian policy
states that files under /etc which are configuration files
must preserve user changes, and this applies to files han-
dled by maintainer scripts as well. Using ucf, one may
ship a bunch of default configuration files somewhere in
/usr ( /usr/share/<pkg> is a good location), and maintain
files in /etc, preserving user changes and in general
offering the same facilities while upgrading that dpkg
normally provides for "conffiles"
Additionally, this script provides facilities for transi-
tioning a file that had not been provided conffile like
protection to come under this schema, and attempts to min-
imize questions asked at install time. Indeed, the transi-
tioning facility is better than the one offered by dpkg
while transitioning a file from a non-conffile to conffile
status.
--
Be cautious in your daily affairs.
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: