Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/libexec/dhcpcd-hooks Fix the build by bu...



details:   https://anonhg.NetBSD.org/src/rev/d6416acbddde
branches:  trunk
changeset: 1008765:d6416acbddde
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Apr 02 14:05:28 2020 +0000

description:
Fix the build by building 30-hostname

diffstat:

 external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 157853362258 -r d6416acbddde external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile
--- a/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Thu Apr 02 13:44:46 2020 +0000
+++ b/external/bsd/dhcpcd/libexec/dhcpcd-hooks/Makefile Thu Apr 02 14:05:28 2020 +0000
@@ -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
+
+FILESBUILD_30-hostname=   YES
 
-FILES=                 01-test 02-dump 20-resolv.conf 30-hostname
-FILES+=                        50-ntp.conf
+FILESDIR=      /libexec/dhcpcd-hooks
+
+CLEANFILES=    30-hostname
 
-FILESDIR=              /libexec/dhcpcd-hooks
+.for f in ${FILES}
+${f}:  ../../Makefile.inc ${f}.in
+       ${TOOL_SED} ${SED_SYS} ${HOOKSRC}/${f}.in > $@
+.endfor
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index