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/

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to