Module Name:    src
Committed By:   roy
Date:           Thu Apr  2 14:05:28 UTC 2020

Modified Files:
        src/external/bsd/dhcpcd/libexec/dhcpcd-hooks: Makefile

Log Message:
Fix the build by building 30-hostname


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile
diff -u src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile:1.3 src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile:1.4
--- src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile:1.3	Sun Apr  2 20:18:38 2017
+++ src/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile	Thu Apr  2 14:05:28 2020
@@ -1,15 +1,24 @@
-# $NetBSD: Makefile,v 1.3 2017/04/02 20:18:38 roy Exp $
+# $NetBSD: Makefile,v 1.4 2020/04/02 14:05:28 roy Exp $
 #
 
 .include <bsd.own.mk>
 
 .include "../../Makefile.inc"
+HOOKSRC=	${DIST}/hooks
+.PATH:		${HOOKSRC}
 
-.PATH:			${DIST}/hooks
+FILES=		01-test 02-dump 20-resolv.conf 30-hostname
+FILES+=		50-ntp.conf
 
-FILES=			01-test 02-dump 20-resolv.conf 30-hostname
-FILES+=			50-ntp.conf
+FILESBUILD_30-hostname=   YES
 
-FILESDIR=		/libexec/dhcpcd-hooks
+FILESDIR=	/libexec/dhcpcd-hooks
+
+CLEANFILES=	30-hostname
+
+.for f in ${FILES}
+${f}:	../../Makefile.inc ${f}.in
+	${TOOL_SED} ${SED_SYS} ${HOOKSRC}/${f}.in > $@
+.endfor
 
 .include <bsd.prog.mk>

Reply via email to