Re: Macports handling of configuration files under etc

2018-04-03 Thread Joshua Root
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 ,
.

- Josh


Macports handling of configuration files under etc

2018-04-03 Thread Artur Szostak
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.

Kind regards.

Artur