How to handle config files
crees at freebsd.org
Sun Jan 8 14:47:43 UTC 2012
On 8 January 2012 12:59, Martin Kropfinger <freebsd at rakor-net.de> wrote:
> Hi there!
> The porters handbook describes a way to handle config files:
> It is recommended to do it this way for keeping changed files after
> deinstallation on the system. But the example is not really clear to me.
> What does this line do:
> @exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi
> Nothing is said about those variables... %D (which seems to be
> %%PREFIX%%) and %F or %B.
> Can anyone give me some help?
man pkg_create will tell you all about these variables :)
More information about the freebsd-ports