example config files: destroot or activate?

Jeremy Lavergne jeremy at lavergne.gotdns.org
Tue Mar 6 09:56:34 PST 2012


We have several ports that are expected to "work out of the box" when installed. These packages require configuration files to be installed, so we first check that the user doesn't have one then install it.

But what happens if the user modifies that file?

Was this file recorded in the registry as part of the package if we did our conditional install in the destroot phase, wiping out their changes on deactivate or uninstall? If we're doing archives, will we need to worry then as well? Should destroot keep config files suffixed with ".example" or "-dist" and only in post-activate install a copy to make a ready-to-run port?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120306/bd3e6fbf/attachment.bin>


More information about the macports-dev mailing list