Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2011 19:58:57 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        ports@freebsd.org, Wesley Shields <wxs@freebsd.org>, Douglas Thrift <douglas@douglasthrift.net>, mandree@FreeBSD.org
Subject:   Re: FreeBSD Port: isc-dhcp41-server-4.1.2,1;	Concurrent IPv4 DHCP and DHCPv6
Message-ID:  <4D27E101.2090001@FreeBSD.org>
In-Reply-To: <4D27785F.3040605@FreeBSD.org>
References:  <4D243672.4040803@douglasthrift.net> <4D266320.2020803@FreeBSD.org>	<20110107030123.GB21582@atarininja.org>	<20110107030327.GC21582@atarininja.org> <AANLkTimjayOAsWKx%2BhtWdf_9L8Jvr%2BFc8nKyXakr-T9u@mail.gmail.com> <4D27785F.3040605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




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