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

debconf managed configuration files




debconf-devel(7)[1] gives a brief example of managing a key=value
configuration file with debconf

"There are a lot of ways to do this, and most of them are wrong, and
will often earn you annoyed bug reports. Here is one right way to do it.
It assumes that your config file is really just a series of shell
variables being set"

I've also come across notes on other pages suggesting additional tricks,
for example:
- check if the conf file is a symlink, if so, don't touch it
- checking for the presence/absence of some magic comment like
##DEBCONF-MANAGED## in the file

Has anybody written any further documentation about debconf with
configuration files, for example, for those that don't meet the
assumptions for the example in the debconf-devel manpage?

Are there any particular packages that are regarded as examples of best
practice?

I've also found some references to the UCF package but it is not
referenced in the debconf-devel manpage itself, is UCF the way to go or
is this a red herring?



1. http://manpages.debian.net/cgi-bin/man.cgi?query=debconf-devel&sektion=7



Reply to: