What is policy about auto-editing config files on port install / deinstall?

olli hauer ohauer at gmx.de
Thu Jan 3 22:24:32 UTC 2013

On 2013-01-03 23:14, Oleg Moskalenko wrote:
> So, what is the general recommended policy on the network services ports in regard to /etc/rc.conf file ? If I install a port that creates a service "foodbank", then which choice is better:
> 1) "Automatically" edit /etc/rc.conf in the port installation script to include the line:
> 	foodbank_enable="YES", 
> or:
> 2) Display a message to the user like "you must edit /etc/rc.conf to add line foodbank=YES file" ?
> The same question applies to the port de-installation.
> Thanks !
> Oleg

Hi Oleg,

the file /etc/rc.conf(.local) should be never touched by an install script.
In case you will enable the network service you have to do this explicit by yourself.

For the rc system it doesn't matter later if the line is present but the port no longer installed.


More information about the freebsd-ports mailing list