diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-30 13:29:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-30 16:23:03 +0100 |
commit | f2ed769880271654297a4be420f26ab94d39666b (patch) | |
tree | 4cbfc23184993e8ef11bb1d60b307cbb3644a259 /dhcpcd/dhcpcd-hooks/Makefile | |
parent | arphole: New test (diff) | |
download | rtems-libbsd-f2ed769880271654297a4be420f26ab94d39666b.tar.bz2 |
DHCPCD(8): Import
Import DHCPCD(8) from:
http://roy.marples.name/projects/dhcpcd/
The upstream sources can be obtained via:
fossil clone http://roy.marples.name/projects/dhcpcd
The imported version is 2014-01-29 19:46:44 [6b209507bb].
Diffstat (limited to '')
-rw-r--r-- | dhcpcd/dhcpcd-hooks/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dhcpcd/dhcpcd-hooks/Makefile b/dhcpcd/dhcpcd-hooks/Makefile new file mode 100644 index 00000000..5982f1b7 --- /dev/null +++ b/dhcpcd/dhcpcd-hooks/Makefile @@ -0,0 +1,35 @@ +TOP?= ../ +include ${TOP}/Makefile.inc +include ${TOP}/config.mk + +SCRIPTSDIR= ${LIBEXECDIR}/dhcpcd-hooks +SCRIPTS= 01-test 02-dump +SCRIPTS+= 10-mtu 10-wpa_supplicant 15-timezone 20-resolv.conf +SCRIPTS+= 29-lookup-hostname 30-hostname +SCRIPTS+= ${HOOKSCRIPTS} + +all: + +clean: + +proginstall: + ${INSTALL} -d ${DESTDIR}${SCRIPTSDIR} + ${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR} + +install: proginstall + +import: + ${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks + for x in ${SCRIPTS}; do \ + t="/tmp/${DISTPREFIX}/dhcpcd-hooks/$$x"; \ + if test "$$(sed -ne 1p $$x)" = "#!/bin/sh"; then \ + echo "#!/bin/sh" >"$$t"; \ + printf "${IMPORT_SHID}\n" >>"$$t"; \ + echo "" >>"$$t"; \ + sed 1d "$$x" >>"$$t"; \ + else \ + printf "${IMPORT_SHID}\n" >"$$t"; \ + echo "" >>"$$t"; \ + cat "$$x" >>"$$t"; \ + fi; \ + done; |