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

Re: bind9 is comming

[Jonas Smedegaard]
> It is a violation of Debian Policy to tamper with conffiles of other
> packages!

Is it?  Please elaborate.  The only think I could find was these

> 10.7.3 Behavior
> Configuration file handling must conform to the following behavior:
> - local changes must be preserved during a package upgrade, and
> - configuration files must be preserved when the package is removed,
>   and only deleted when the package is purged.
> The easy way to achieve this behavior is to make the configuration
> file a conffile. This is appropriate only if it is possible to
> distribute a default version that will work for most installations,
> although some system administrators may choose to modify it. This
> implies that the default version will be part of the package
> distribution, and must not be modified by the maintainer scripts
> during installation (or at any other time).
> The maintainer scripts must not alter a conffile of any package,
> including the one the scripts belong to.

OK, so it is not wise to modify conffiles from maintainer scripts.
Maintainer scripts are described here:

> 6.1 Introduction to package maintainer scripts
> It is possible to supply scripts as part of a package which the
> package management system will run for you when your package is
> installed, upgraded or removed.
> These scripts are the files preinst, postinst, prerm and postrm in
> the control area of the package.

I'm not sure how this is relevant to the question at hand.  Do you
know more?

Reply to: