[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2051: etc/ntp.conf is an auto-handled conffile

> Package: xntp
> Version: 3.4x-2
> The ntp.conf file is modified (correctly) by the postinst after
> installation.  This causes a conffiles conflict when the package is
> upgraded.
> I suggest that the package not use dpkg to install the file, but
> instead create it itself if it doesn't exist; any changes which need
> to be made during upgrades would have to be done manually.
> Ian.
> -chiark:~/download> really dpkg -i xntp-3.4x-2.deb
> (Reading database ... 17436 files and directories currently installed.)
> Preparing to replace xntp (using xntp-3.4x-2.deb) ...
> Unpacking replacement xntp ...
> Setting up xntp ...
> Configuration file `/etc/ntp.conf'
>  ==> File on system created by you or by a script.
>  ==> File also in package provided by package maintainer.
>    What would you like to do about it ?  Your options are:
>     Y or I  : install the package maintainer's version
>     N or O  : keep your currently-installed version
>       Z     : background this process to examine the situation
>  The default action is to keep your current version.
> *** ntp.conf (Y/I/N/O/Z) [default=N] ? y
> Installing new version of config file /etc/ntp.conf ...
> Please enter the address of your NTP server.
> Just hit enter if you don't know it now, and you can edit
> the server line in /etc/ntp.conf later.
> > ntp0.csx.cam.ac.uk
> starting /usr/sbin/xntpd ...

I don't believe this is true. My understand of conffiles is that
you are only prompted if the conffile that was distributed with the
previous package has a different md5sum to the conffile distributed
with the current version of the package.

This is what I've seen as well, as when I made my new version of the
package I had edited ntp.conf and it didn't prompt me for ntp.conf
when I installed my new package.

What I believe you saw was when you upgrade from 3.4x-1 to 3.4x-2
I had changed the ntp.conf file myself and that's why it prompted you.
If you look at the Changelog file you'll notice I moved the driftfile
from /etc/ntp.drift to /var/lib/ntp in that revision.

If you have no further objections I'll close this bug report.


Dehydration - 34%, Recollection of previous evening - 2%, embarrassment
factor - 91%.  Advise repair schedule:- off line for 36 hours, re-boot
startup disk, and replace head - wow, what a night!
                -- Kryten in Red Dwarf `The Last Day'

Andrew Howell				               andrew@it.com.au
Perth, Western Australia		      howellaa@cs.curtin.edu.au

Reply to: