example config files: destroot or activate?
Joshua Root
jmr at macports.org
Tue Mar 6 11:33:49 PST 2012
On 2012-3-7 04:56 , Jeremy Lavergne wrote:
> 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?
See <https://trac.macports.org/wiki/PortfileRecipes#configfiles>.
- Josh
More information about the macports-dev
mailing list