On Thu, Mar 28, 2013 at 05:05:03PM +0000, Stuart Henderson wrote:
> ok with me, but we should pick up the minor security update to 4.2.5-P1
> as well. trivial diff but I'm not running it here so haven't tested.

Why not call the rc script edhcpd like we do with nginx in ports?


> 
> 
> On 2013/03/28 17:58, Marc Peters wrote:
> > Hi Ports,
> > 
> > the maintainer didn't react for some time now, so to the whole list.
> > 
> > Here is a diff for a rc script for isc-dhcpd.
> > 
> > It's based on the base script and isc_named from sthen@.
> > 
> > Cheers,
> > Marc
> > 
> > 
> > Index: pkg/PLIST-main
> > ===================================================================
> > RCS file: /cvs/ports/net/isc-dhcp/pkg/PLIST-main,v
> > retrieving revision 1.4
> > diff -u -p -r1.4 PLIST-main
> > --- pkg/PLIST-main      14 Jan 2012 12:43:25 -0000      1.4
> > +++ pkg/PLIST-main      8 Mar 2013 11:59:40 -0000
> > @@ -12,3 +12,4 @@
> >  share/examples/isc-dhcp/
> >  share/examples/isc-dhcp/dhcpd.conf
> >  @extra /var/db/dhcpd.leases
> > +@rcscript ${RCDIR}/isc_dhcpd
> > Index: pkg/isc_dhcpd.rc
> > ===================================================================
> > RCS file: pkg/isc_dhcpd.rc
> > diff -N pkg/isc_dhcpd.rc
> > --- /dev/null   1 Jan 1970 00:00:00 -0000
> > +++ pkg/isc_dhcpd.rc    8 Mar 2013 11:59:40 -0000
> > @@ -0,0 +1,13 @@
> > +#!/bin/sh
> > +
> > +daemon="${TRUEPREFIX}/sbin/dhcpd"
> > +
> > +. /etc/rc.d/rc.subr
> > +
> > +rc_reload=NO
> > +
> > +rc_pre() {
> > +       touch /var/db/dhcpd.leases
> > +}
> > +
> > +rc_cmd $1
> > 
> 

-- 
Antoine

Reply via email to