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

Re: Ideas to improve dpkg/ucf with hooks [was: Putting default config files in /usr]



On Wed, 11 Nov 2015 15:36:09 +0100, Vincent Danjean
<vdanjean.ml@free.fr> wrote:
>  What I would really prefer is a work on a way to add hooks in
>dpkg/ucf so that:
>- original provided configuration files can be recorded (before
>  admin modification/merge)
>- other merge strategies (dpkg only provides use old or new, ucf
>  can be used to also propose try 3-merges) should be available/
>  can be written (for example with a special external tool handling
>  an upgrade of one specific conffile) without including them into
>  the package. The local admin would be able for example to deploy
>  such strategies on a park after having written what is required
>  for his installations, so that distribution upgrade run without
>  interaction but with correct upgrade of its configuration files

Hooks do have the danger that package maintainers will use them,
altering the behavior of standard tools, which will send local admins
working on autopilot, hung over or tired down the wrong alley.

Actually, I don't quite see why ucf would need hooks since it is
called from the maintainer scripts, giving the local admin full power
of creativity anyway. Chances are that ucf is already the right tool
to maintain systemd and friends the Debian way if the Debian packaging
team would be willing to.

Regarding dpkg, its conffile handling is IMO beyond repair, it should
be deprecated and later removed.

Greetings
Marc
-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834


Reply to: