tech-pkg archive

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

Re: a gentle way to enforce the installation of configuration files into ${PREFIX}/share/examples



On Sat, Jan 31, 2009 at 10:37:05PM +0100, Petar Bogdanovic wrote:
> The FreeBSD people seem to take a different approach in order to solve
> that problem---they simply break out of $PREFIX with a PLIST entry like
> the following one:
> 
>       @cwd /etc
> 
> 
> Would that be possible in pkgsrc too? If yes, is it desirable to use
> something like that?

No. @cwd is only supported *once* as it is a completely bogus feature
and breaking more things than it is solving.

The intention behind the config framework is that files a user has to
modify should NEVER appear in the PLIST. The PLIST should contain a
template (e.g. the default configuration). The deinstall script will
compare the template and the version e.g. in etc/, removing the latter
if it has not changed.

Joerg


Home | Main Index | Thread Index | Old Index