Put correct init.d hooks into dhcpcd-run-hooks.

This commit is contained in:
roy 2010-11-10 14:12:28 +00:00
parent dbfa9a01cc
commit c1259c9577
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2010/02/27 15:55:09 roy Exp $
# $NetBSD: Makefile,v 1.8 2010/11/10 14:12:28 roy Exp $
#
PROG= dhcpcd
@ -34,11 +34,18 @@ MAN= dhcpcd.conf.5 dhcpcd.8 dhcpcd-run-hooks.8
CLEANFILES= dhcpcd.conf.5 dhcpcd.8 \
dhcpcd-run-hooks dhcpcd-run-hooks.8
SERVICEEXISTS= [ -x /etc/rc.d/$$1 ]
SERVICECMD= /etc/rc.d/$$1 $$2
SERVICESTATUS= service_command $$1 status >/dev/null 2>\&1
.for f in dhcpcd-run-hooks dhcpcd.conf.5 dhcpcd.8 dhcpcd-run-hooks.8
${f}: ${f}.in
${TOOL_SED} -e 's:@SYSCONFDIR@:/etc:g' -e 's:@DBDIR@:/var/db:g' \
-e 's:@HOOKDIR@:/libexec/dhcpcd-hooks:g' \
-e 's:@SCRIPT@:/libexec/dhcpcd-run-hooks:g' ${DIST}/${f}.in > $@
-e 's:@SCRIPT@:/libexec/dhcpcd-run-hooks:g' \
-e 's:@SERVICEEXISTS@:[ -x /etc/rc.d/$$1 ]:g' \
-e 's:@SERVICECMD@:/etc/rc.d/$$1 $$2:g' \
-e 's:@SERVICESTATUS@:service_command $$1 status >/dev/null 2>\&1:g' \
${DIST}/${f}.in > $@
.endfor
.include <bsd.prog.mk>