1 | ETCDIR=/etc
|
---|
2 | EXTDIR=${DESTDIR}${ETCDIR}
|
---|
3 | MODE=754
|
---|
4 | DIRMODE=755
|
---|
5 | CONFMODE=644
|
---|
6 |
|
---|
7 | all: install
|
---|
8 |
|
---|
9 | create-dirs:
|
---|
10 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
|
---|
11 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
|
---|
12 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
|
---|
13 |
|
---|
14 | install: 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/network ${EXTDIR}/rc.d/init.d/
|
---|
19 | install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
|
---|
20 | install -m ${MODE} clfs/rc.d/init.d/bridge ${EXTDIR}/rc.d/init.d/
|
---|
21 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
|
---|
22 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
|
---|
23 | ln -sf ../init.d/network ${EXTDIR}/rc.d/start/S10network
|
---|
24 | ln -sf ../init.d/network ${EXTDIR}/rc.d/stop/K80network
|
---|
25 | ln -sf ../init.d/bridge ${EXTDIR}/rc.d/start/S09bridge
|
---|
26 | ln -sf ../init.d/bridge ${EXTDIR}/rc.d/stop/K81bridge
|
---|
27 |
|
---|
28 | install-dropbear: create-dirs
|
---|
29 | install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
|
---|
30 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
|
---|
31 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
|
---|
32 |
|
---|
33 | install-bcm47xx: create-dirs
|
---|
34 | install -m ${MODE} clfs/rc.d/init.d/bcm47xx-switch ${EXTDIR}/rc.d/init.d/
|
---|
35 | ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/start/S08bcm47xx-switch
|
---|
36 | ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/stop/K82bcm47xx-switch
|
---|
37 |
|
---|
38 | .PHONY: all create-dirs install install-dropbear install-bridge
|
---|