Macports handling of configuration files under etc

Joshua Root jmr at macports.org
Tue Apr 3 16:11:11 UTC 2018


On 2018-4-4 02:04 , Artur Szostak wrote:
> Hi,
> 
> Does MacPorts support handling of configuration files installed by a port under /opt/local/etc in a similar manner to RPM's "%config(noreplace)" mechanism? i.e. can a configuration file be marked, and have MacPorts not clobber it if the user changed it.

Currently there is no special handling of this by MacPorts base. Ports
are expected to create config files at activation time if they don't
already exist, so the files will not be registered to the port and thus
won't be deleted when the port is deactivated or uninstalled.

See <https://trac.macports.org/wiki/PortfileRecipes#configfiles>,
<https://trac.macports.org/ticket/2365>.

- Josh


More information about the macports-dev mailing list