blob: 7a0c3b1d330a871b57ab1c21920e2d0e74f281de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
TOP= ../
include ${TOP}/iconfig.mk
PROG= dhcpcd-run-hooks
BINDIR= ${LIBEXECDIR}
CLEANFILES= dhcpcd-run-hooks
MAN8= dhcpcd-run-hooks.8
CLEANFILES+= dhcpcd-run-hooks.8
SCRIPTSDIR= ${HOOKDIR}
SCRIPTS= 01-test
SCRIPTS+= 20-resolv.conf
SCRIPTS+= 30-hostname
SCRIPTS+= ${HOOKSCRIPTS}
CLEANFILES+= 30-hostname
# Some hooks should not be installed by default
FILESDIR= ${DATADIR}/dhcpcd/hooks
FILES= 10-wpa_supplicant
FILES+= 15-timezone
FILES+= 29-lookup-hostname
FILES+= ${EGHOOKSCRIPTS}
.SUFFIXES: .in
.in: Makefile ${TOP}/config.mk
${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \
${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \
${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \
${SED_STATUSARG} \
${SED_DEFAULT_HOSTNAME} \
-e 's:@YPDOMAIN_DIR@:${YPDOMAIN_DIR}:g' \
-e 's:@YPDOMAIN_SUFFIX@:${YPDOMAIN_SUFFIX}:g' \
$< > $@
all: ${PROG} ${MAN8} ${SCRIPTS} ${EGHOOKSCRIPTS}
clean:
rm -f ${CLEANFILES} 50-ypbind
distclean: clean
rm -f *.diff *.patch *.orig *.rej
depend:
proginstall: ${PROG} ${SCRIPTS}
${INSTALL} -d ${DESTDIR}${BINDIR}
${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}
# We need to remove the old MTU change script if we at all can.
rm -f ${DESTDIR}${SCRIPTSDIR}/10-mtu
eginstall: ${FILES}
${INSTALL} -d ${DESTDIR}${FILESDIR}
${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}${FILESDIR}
maninstall: ${MAN8}
${INSTALL} -d ${DESTDIR}${MANDIR}/man8
${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8
install: proginstall eginstall maninstall
import: ${SCRIPTS} ${FILES}
${INSTALL} -d /tmp/${DISTPREFIX}/dhcpcd-hooks
${INSTALL} -m ${NONBINMODE} ${SCRIPTS} /tmp/${DISTPREFIX}/dhcpcd-hooks
${INSTALL} -m ${NONBINMODE} ${FILES} /tmp/${DISTPREFIX}/dhcpcd-hooks
_import-src: all
${INSTALL} -d ${DESTDIR}/hooks
${INSTALL} -m ${NONBINMODE} ${PROG} ${MAN8} ${DESTDIR}/hooks
${INSTALL} -m ${NONBINMODE} ${SCRIPTS} ${DESTDIR}/hooks
${INSTALL} -m ${NONBINMODE} ${FILES} ${DESTDIR}/hooks
include ${TOP}/Makefile.inc
|