Last change
on this file since a56c046 was 003388c, checked in by Jim Gifford <clfs@…>, 18 years ago |
Added Makefile for bootscripts
|
-
Property mode
set to
100644
|
File size:
851 bytes
|
Line | |
---|
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 |
|
---|
21 | install-dropbear: create-dirs
|
---|
22 | install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
|
---|
23 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S10sshd
|
---|
24 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K10sshd
|
---|
25 |
|
---|
26 | .PHONY: all create-dirs install install-dropbear
|
---|
Note:
See
TracBrowser
for help on using the repository browser.