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

Re: Tools for parsing apache conf files (Was: dpkg-reconfigure hacking in postinst)



On Sat, Nov 02, 2002 at 10:21:43PM -0800, Brian Nelson wrote:

> > I have fewer qualms about a package that only wipes out a config file
> > when explicitly reconfigured; most of my ire is reserved for packages,
> > like apt-listchanges, that drop local modifications to such files on
> > upgrade. Especially when the files are (as in the case of
> > listchanges.conf) trivial to parse and modify without loss.

> > If your files is really really hard to parse & modify losslessly then
> > letting the user blow it away by reconfiguring is ok.

> Alright.  So then the next question is:

> Are there any tools for parsing Apache configuration files that would
> work adequately for handling modifications?  My suspicion is that it's
> too hard and not worth the effort.

If using perl, Apache::Admin::Config (not packaged) seems quite
effective at parsing Apache config files.

I have serious doubts that using debconf is the right answer at all if
you aren't in a position to parse the config losslessly.  What changes
will you be making to these config files that couldn't just as well be
left to the admin to handle?

Steve Langasek
postmodern programmer

Attachment: pgp0zY7pnRzT1.pgp
Description: PGP signature


Reply to: