Last change
on this file since 360b495 was 360b495, checked in by Andrew Bradford <andrew@…>, 7 years ago |
Makefile: Add 'install-netplug' target
Actually install the netplug start/stop script.
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | ETCDIR := /etc
|
---|
2 | EXTDIR := ${DESTDIR}${ETCDIR}
|
---|
3 | MODE := 754
|
---|
4 | DIRMODE := 755
|
---|
5 | CONFMODE := 644
|
---|
6 |
|
---|
7 | all: install-bootscripts install-dropbear install-netplug
|
---|
8 |
|
---|
9 | create-dirs:
|
---|
10 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
|
---|
11 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
|
---|
12 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
|
---|
13 |
|
---|
14 | install-bootscripts: create-dirs
|
---|
15 | install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
|
---|
16 | install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
|
---|
17 | install -m ${MODE} clfs/rc.d/shutdown ${EXTDIR}/rc.d/
|
---|
18 | install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
|
---|
19 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
|
---|
20 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
|
---|
21 |
|
---|
22 | install-dropbear: create-dirs
|
---|
23 | install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
|
---|
24 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
|
---|
25 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
|
---|
26 |
|
---|
27 | install-netplug: create-dirs
|
---|
28 | install -m ${MODE} clfs/rc.d/init.d/netplugd ${EXTDIR}/rc.d/init.d/
|
---|
29 | ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/start/S10netplugd
|
---|
30 | ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/stop/K90netplugd
|
---|
31 |
|
---|
32 | .PHONY: all create-dirs install-bootscripts install-dropbear install-netplug
|
---|
Note:
See
TracBrowser
for help on using the repository browser.