source: bootscripts/Makefile@ d608267

11.2 11.2-rc1 multilib s6-init trunk xry111/arm64 xry111/clfs-ng xry111/pip3 xry111/queue-11.3 xry111/rust-wip-20221008
Last change on this file since d608267 was d608267, checked in by Pierre Labastie <pierre.labastie@…>, 9 months ago

Fix a stupid typo in bootscripts/Makefile

copy/paste error rc0.d -> rc6.d. Brown paperbag commit...

  • Property mode set to 100644
File size: 5.7 KB
Line 
1ETCDIR=${DESTDIR}/etc
2LIBDIR=${DESTDIR}/lib
3SERVICEDIR=${LIBDIR}/services
4MAN8=${DESTDIR}/usr/share/man/man8
5SBIN=${DESTDIR}/sbin
6MODE=754
7DIRMODE=755
8CONFMODE=644
9
10all: links
11
12install: all
13
14create-dirs:
15 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc0.d
16 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc1.d
17 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc2.d
18 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc3.d
19 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc4.d
20 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc5.d
21 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rc6.d
22 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/rcS.d
23 install -d -m ${DIRMODE} ${ETCDIR}/rc.d/init.d
24 install -d -m ${DIRMODE} ${ETCDIR}/sysconfig
25 install -d -m ${DIRMODE} ${LIBDIR}
26 install -d -m ${DIRMODE} ${SERVICEDIR}
27 install -d -m ${DIRMODE} ${MAN8}
28 install -d -m ${DIRMODE} ${SBIN}
29 ln -sfn services ${LIBDIR}/lsb
30 ln -sfn rc.d/init.d ${ETCDIR}/init.d
31
32files: create-dirs
33 install -m ${MODE} lfs/init.d/checkfs ${ETCDIR}/rc.d/init.d/
34 install -m ${MODE} lfs/init.d/cleanfs ${ETCDIR}/rc.d/init.d/
35 install -m ${MODE} lfs/init.d/halt ${ETCDIR}/rc.d/init.d/
36 install -m ${MODE} lfs/init.d/console ${ETCDIR}/rc.d/init.d/
37 install -m ${MODE} lfs/init.d/localnet ${ETCDIR}/rc.d/init.d/
38 install -m ${MODE} lfs/init.d/modules ${ETCDIR}/rc.d/init.d/
39 install -m ${MODE} lfs/init.d/mountfs ${ETCDIR}/rc.d/init.d/
40 install -m ${MODE} lfs/init.d/mountvirtfs ${ETCDIR}/rc.d/init.d/
41 install -m ${MODE} lfs/init.d/network ${ETCDIR}/rc.d/init.d/
42 install -m ${MODE} lfs/init.d/rc ${ETCDIR}/rc.d/init.d/
43 install -m ${MODE} lfs/init.d/reboot ${ETCDIR}/rc.d/init.d/
44 install -m ${MODE} lfs/init.d/sendsignals ${ETCDIR}/rc.d/init.d/
45 install -m ${MODE} lfs/init.d/setclock ${ETCDIR}/rc.d/init.d/
46 install -m ${MODE} lfs/init.d/swap ${ETCDIR}/rc.d/init.d/
47 install -m ${MODE} lfs/init.d/sysctl ${ETCDIR}/rc.d/init.d/
48 install -m ${MODE} lfs/init.d/sysklogd ${ETCDIR}/rc.d/init.d/
49 install -m ${MODE} lfs/init.d/template ${ETCDIR}/rc.d/init.d/
50 install -m ${MODE} lfs/init.d/udev ${ETCDIR}/rc.d/init.d/
51 install -m ${MODE} lfs/init.d/udev_retry ${ETCDIR}/rc.d/init.d/
52 install -m ${MODE} lfs/sbin/ifup ${SBIN}
53 install -m ${MODE} lfs/sbin/ifdown ${SBIN}
54 install -m ${CONFMODE} lfs/sbin/ifup.8 ${MAN8}
55 ln -sf ifup.8 ${MAN8}/ifdown.8
56 install -m ${MODE} lfs/lib/services/ipv4-static-route ${SERVICEDIR}
57 install -m ${MODE} lfs/lib/services/ipv4-static ${SERVICEDIR}
58 install -m ${CONFMODE} lfs/lib/services/init-functions ${SERVICEDIR}
59
60 if [ ! -f ${ETCDIR}/sysconfig/createfiles ]; then \
61 install -m ${CONFMODE} lfs/sysconfig/createfiles ${ETCDIR}/sysconfig/ ;\
62 fi
63 if [ ! -f ${ETCDIR}/sysconfig/modules ]; then \
64 install -m ${CONFMODE} lfs/sysconfig/modules ${ETCDIR}/sysconfig/ ;\
65 fi
66 if [ ! -f ${ETCDIR}/sysconfig/udev_retry ]; then \
67 install -m ${CONFMODE} lfs/sysconfig/udev_retry ${ETCDIR}/sysconfig/ ;\
68 fi
69 if [ ! -f ${ETCDIR}/sysconfig/rc.site ]; then \
70 install -m ${CONFMODE} lfs/sysconfig/rc.site ${ETCDIR}/sysconfig/ ;\
71 fi
72
73links: rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6
74
75rcS: files
76 ln -sf ../init.d/mountvirtfs ${ETCDIR}/rc.d/rcS.d/S00mountvirtfs
77 ln -sf ../init.d/modules ${ETCDIR}/rc.d/rcS.d/S05modules
78 ln -sf ../init.d/localnet ${ETCDIR}/rc.d/rcS.d/S08localnet
79 ln -sf ../init.d/udev ${ETCDIR}/rc.d/rcS.d/S10udev
80 ln -sf ../init.d/swap ${ETCDIR}/rc.d/rcS.d/S20swap
81 ln -sf ../init.d/checkfs ${ETCDIR}/rc.d/rcS.d/S30checkfs
82 ln -sf ../init.d/mountfs ${ETCDIR}/rc.d/rcS.d/S40mountfs
83 ln -sf ../init.d/cleanfs ${ETCDIR}/rc.d/rcS.d/S45cleanfs
84 ln -sf ../init.d/udev_retry ${ETCDIR}/rc.d/rcS.d/S50udev_retry
85 ln -sf ../init.d/console ${ETCDIR}/rc.d/rcS.d/S70console
86 ln -sf ../init.d/sysctl ${ETCDIR}/rc.d/rcS.d/S90sysctl
87
88rc0: files
89 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc0.d/K80network
90 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc0.d/K90sysklogd
91 ln -sf ../init.d/sendsignals ${ETCDIR}/rc.d/rc0.d/K92sendsignals
92 ln -sf ../init.d/swap ${ETCDIR}/rc.d/rc0.d/K94swap
93 ln -sf ../init.d/mountfs ${ETCDIR}/rc.d/rc0.d/K96mountfs
94 ln -sf ../init.d/localnet ${ETCDIR}/rc.d/rc0.d/K98localnet
95 ln -sf ../init.d/halt ${ETCDIR}/rc.d/rc0.d/S99halt
96
97rc1: files
98 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc1.d/K80network
99 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc1.d/K90sysklogd
100
101rc2: files
102 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc2.d/S10network
103 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc2.d/S20sysklogd
104
105rc3: files
106 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc3.d/S10sysklogd
107 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc3.d/S20network
108
109rc4: files
110 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc4.d/S10sysklogd
111 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc4.d/S20network
112
113rc5: files
114 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc5.d/S10sysklogd
115 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc5.d/S20network
116
117rc6: files
118 ln -sf ../init.d/network ${ETCDIR}/rc.d/rc6.d/K80network
119 ln -sf ../init.d/sysklogd ${ETCDIR}/rc.d/rc6.d/K90sysklogd
120 ln -sf ../init.d/sendsignals ${ETCDIR}/rc.d/rc6.d/K92sendsignals
121 ln -sf ../init.d/swap ${ETCDIR}/rc.d/rc6.d/K94swap
122 ln -sf ../init.d/mountfs ${ETCDIR}/rc.d/rc6.d/K96mountfs
123 ln -sf ../init.d/localnet ${ETCDIR}/rc.d/rc6.d/K98localnet
124 ln -sf ../init.d/reboot ${ETCDIR}/rc.d/rc6.d/S99reboot
125
126uninstall:
127 rm -rf ${DESTDIR}/lib/services ${DESTDIR}/lib/lsb ${ETCDIR}/rc.d ${ETCDIR}/init.d \
128 ${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \
129 ${ETCDIR}/sysconfig/rc
130
131.PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall
132
Note: See TracBrowser for help on using the repository browser.