Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2004 13:39:34 -0400
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Mike Makonnen <mtm@identd.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: HEADS UP: change in ports rc.d script behaviour
Message-ID:  <20040725173934.GA1213@crodrigues.org>
In-Reply-To: <20040725141208.GA28326@rogue.acs-et.com>
References:  <20040725141208.GA28326@rogue.acs-et.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 25, 2004 at 05:12:08PM +0300, Mike Makonnen wrote:
> 4. If you must include a default value for an rc.conf(5) knob,
>    make sure that you put it in an if [ -z "$foo_knob"] clause.

As a simple alternative to an if clause, I've done this for the 
isc-dhcp3-server port:

[ -z "$dhcpd_enable" ] && dhcpd_enable="NO"


I submitted this PR with the full patch:
http://www.freebsd.org/cgi/query-pr.cgi?pr=69590


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040725173934.GA1213>