FreeBSD Port: isc-dhcp41-server-4.1.2,1; Concurrent IPv4 DHCP and DHCPv6

Doug Barton dougb at FreeBSD.org
Sat Jan 8 03:59:00 UTC 2011


On 01/07/2011 12:32, Doug Barton wrote:
> On 01/06/2011 21:16, Freddie Cash wrote:
>> The OpenVPN port does a pretty good job of this. Default rc.d script
>> is just openvpn. But you can create manual symlinks to it using
>> openvpn_somename, and it checks rc.conf for openvpn_somename_enable.
>>
>> Having to manually create the symlink is kind of needed in the openvpn
>> setup and can lead to left-over files on port removal, but wouldn't be
>> needed for dhcpd.
>>
>> Might want to look through the openvpn rc script for ideas.
>
> Yeah, I'm actually kind of embarrassed that I didn't mention that
> explicitly, since I was working with openvpn the other day. :) The
> script can be simplified with the attached patch. The eval's are a
> necessary evil without some other mechanism for setting the defaults.
>
> The patch also removes the default empty variable assignments which are
> never necessary or desirable.

Blah, name=${0%%*/} should be ${0##*/} in the patch, I was moving too 
quickly, sorry.


Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/



More information about the freebsd-ports mailing list