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

Re: debhelper v2

>>>>> "Joey" == Joey Hess <joey@kitenet.net> writes:

    Joey> Edward Betts wrote:
    >> Do it automatically, if it has not already been done manually
    >> and have an option to turn it off.
    >> All files in /etc/init.d must be conf files. So they can not be
    >> changed by a postinst script. If you have settings that are set
    >> in a script, they go in a seperate conf file that is sourced by
    >> the init.d script.

    Joey> Ok, init.d script were a bad idea (I think that policy is
    Joey> flawed, btw.  Policy allows in general for files in /etc to
    Joey> not be registed as conffiles if you offer an interface to
    Joey> allow modifications to them).

    Joey> A better example is using dh_installmodules to stick a
    Joey> module fragment in /etc/modutils/, or using dh_installmenu
    Joey> to stick a menu-method file in /etc/menu-methods/. In either
    Joey> of these cases, policy allows the file to not be a conffile,
    Joey> if you have an interface to let it be modified.

 So if you use that interface to make changes to that
 /etc/modutils/blah file, an upgrade could blow them away?  It still
 would need to be a conffile in that case.

Reply to: