How to handle config files

Doug Barton dougb at
Mon Jan 9 09:35:36 UTC 2012

On 01/08/2012 04:59, Martin Kropfinger 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?

I added a reference to pkg_create in that section, and tried to improve
the wording a bit to make it more clear what the right course of action
is. It should be on line in a few hours (assuming I didn't break the doc
build again) .... please let me know if it helps you understand things



	You can observe a lot just by watching.	-- Yogi Berra

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)

More information about the freebsd-ports mailing list