From owner-freebsd-ports@FreeBSD.ORG Thu Jan 3 22:24:32 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 50E7EAD3 for ; Thu, 3 Jan 2013 22:24:32 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mx1.freebsd.org (Postfix) with ESMTP id CCDFAA45 for ; Thu, 3 Jan 2013 22:24:31 +0000 (UTC) Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MgaAT-1TcOl71v1z-00O06S for ; Thu, 03 Jan 2013 23:24:30 +0100 Received: (qmail invoked by alias); 03 Jan 2013 22:24:30 -0000 Received: from p578be941.dip0.t-ipconnect.de (EHLO [192.168.0.100]) [87.139.233.65] by mail.gmx.net (mp029) with SMTP; 03 Jan 2013 23:24:30 +0100 X-Authenticated: #1956535 X-Provags-ID: V01U2FsdGVkX18NETkrFc4NRQCo1HYiMX1Cgb4eIyRAQp5dM0yRoM aFiFwYXSgpiWfo Message-ID: <50E6055C.9050005@gmx.de> Date: Thu, 03 Jan 2013 23:25:32 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "freebsd-ports@freebsd.org" Subject: Re: What is policy about auto-editing config files on port install / deinstall? References: <50E49A73.2070008@quip.cz> <50E5FCDA.80906@quip.cz> <031222CBCF33214AB2EB4ABA279428A3012CA8FA98EF@SJCPMAILBOX01.citrite.net> In-Reply-To: <031222CBCF33214AB2EB4ABA279428A3012CA8FA98EF@SJCPMAILBOX01.citrite.net> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: Oleg Moskalenko X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 22:24:32 -0000 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. -- Regards, olli