source: bootscripts/Makefile@ 4f14c0d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4f14c0d was 163a6701, checked in by Jim Gifford <clfs@…>, 19 years ago

r720@server (orig r718): jim | 2005-11-18 08:06:26 -0800
Added bootscripts to cross-lfs svn

  • Property mode set to 100644
File size: 11.6 KB
RevLine 
[163a6701]1ETCDIR=/etc
2EXTDIR=${DESTDIR}${ETCDIR}
3MODE=754
4DIRMODE=755
5CONFMODE=644
6
7all: install
8
9create-dirs:
10 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc0.d
11 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc1.d
12 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc2.d
13 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc3.d
14 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc4.d
15 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc5.d
16 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc6.d
17 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rcsysinit.d
18 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
19 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig
20
21create-service-dir:
22 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
23
24install: create-dirs create-service-dir
25 install -m ${MODE} lfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
26 install -m ${MODE} lfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
27 install -m ${CONFMODE} lfs/init.d/functions ${EXTDIR}/rc.d/init.d/
28 install -m ${MODE} lfs/init.d/halt ${EXTDIR}/rc.d/init.d/
29 install -m ${MODE} lfs/init.d/console ${EXTDIR}/rc.d/init.d/
30 install -m ${MODE} lfs/init.d/hotplug ${EXTDIR}/rc.d/init.d/
31 install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
32 install -m ${MODE} lfs/init.d/modules ${EXTDIR}/rc.d/init.d/
33 install -m ${MODE} lfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/
34 install -m ${MODE} lfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/
35 install -m ${MODE} lfs/init.d/network ${EXTDIR}/rc.d/init.d/
36 install -m ${MODE} lfs/init.d/rc ${EXTDIR}/rc.d/init.d/
37 install -m ${MODE} lfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
38 install -m ${MODE} lfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
39 install -m ${MODE} lfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
40 install -m ${MODE} lfs/init.d/sysklogd ${EXTDIR}/rc.d/init.d/
41 install -m ${MODE} lfs/init.d/swap ${EXTDIR}/rc.d/init.d/
42 install -m ${MODE} lfs/init.d/sysctl ${EXTDIR}/rc.d/init.d/
43 install -m ${MODE} lfs/init.d/template ${EXTDIR}/rc.d/init.d/
44 install -m ${MODE} lfs/init.d/udev ${EXTDIR}/rc.d/init.d/
45 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network
46 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd
47 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc0.d/S50hotplug
48 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
49 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
50 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
51 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet
52 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
53 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network
54 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc1.d/K90sysklogd
55 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/K80network
56 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc2.d/K90sysklogd
57 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc3.d/S10sysklogd
58 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network
59 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc4.d/S10sysklogd
60 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network
61 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc5.d/S10sysklogd
62 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network
63 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network
64 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd
65 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc6.d/S50hotplug
66 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
67 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
68 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
69 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet
70 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
71 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs
72 ln -sf ../init.d/modules ${EXTDIR}/rc.d/rcsysinit.d/S05modules
73 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev
74 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S20swap
75 ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S30checkfs
76 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs
77 ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S50cleanfs
78 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rcsysinit.d/S55hotplug
79 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
80 ln -sf ../init.d/console ${EXTDIR}/rc.d/rcsysinit.d/S70console
81 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rcsysinit.d/S80localnet
82 ln -sf ../init.d/sysctl ${EXTDIR}/rc.d/rcsysinit.d/S90sysctl
83 if [ ! -f ${EXTDIR}/sysconfig/console ]; then install -m ${CONFMODE} lfs/sysconfig/console ${EXTDIR}/sysconfig/; fi
84 if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} lfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
85 if [ ! -f ${EXTDIR}/sysconfig/modules ]; then install -m ${CONFMODE} lfs/sysconfig/modules ${EXTDIR}/sysconfig/; fi
86 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} lfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
87 install -m ${MODE} lfs/sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/
88 install -m ${MODE} lfs/sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/
89 install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/
90 install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/
91
92install-consolelog: create-dirs
93 install -m ${MODE} contrib/init.d/consolelog ${EXTDIR}/rc.d/init.d
94 ln -sf ../init.d/consolelog ${EXTDIR}/rc.d/rcsysinit.d/S00consolelog
95 install --backup=numbered -m ${CONFMODE} contrib/sysconfig/consolelog ${EXTDIR}/sysconfig/
96
97install-lsb-compliant:
98 make -C contrib/lsb
99
100install-service-mtu: create-service-dir
101 install -m ${MODE} contrib/sysconfig/network-devices/services/mtu ${EXTDIR}/sysconfig/network-devices/services
102
103install-livecd: create-dirs create-service-dir
104 install -m ${CONFMODE} lfs/init.d/functions ${EXTDIR}/rc.d/init.d/
105 install -m ${MODE} lfs/init.d/halt ${EXTDIR}/rc.d/init.d/
106 install -m ${MODE} lfs/init.d/console ${EXTDIR}/rc.d/init.d/
107 install -m ${MODE} contrib/livecd/hotplug ${EXTDIR}/rc.d/init.d/
108 install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
109 install -m ${MODE} lfs/init.d/rc ${EXTDIR}/rc.d/init.d/
110 install -m ${MODE} lfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
111 install -m ${MODE} lfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
112 install -m ${MODE} lfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
113 install -m ${MODE} lfs/init.d/sysctl ${EXTDIR}/rc.d/init.d/
114 install -m ${MODE} lfs/init.d/sysklogd ${EXTDIR}/rc.d/init.d/
115 install -m ${MODE} contrib/livecd/startup ${EXTDIR}/rc.d/init.d/
116 install -m ${MODE} contrib/livecd/mountsqfs ${EXTDIR}/rc.d/init.d/
117 install -m ${MODE} contrib/livecd/network ${EXTDIR}/rc.d/init.d/
118 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network
119 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc0.d/S50hotplug
120 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
121 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet
122 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
123 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network
124 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/K80network
125 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network
126 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network
127 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network
128 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network
129 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc6.d/S50hotplug
130 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
131 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet
132 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
133 ln -sf ../init.d/startup ${EXTDIR}/rc.d/rcsysinit.d/S00startup
134 ln -sf ../init.d/mountsqfs ${EXTDIR}/rc.d/rcsysinit.d/S05mountsqfs
135 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rcsysinit.d/S55hotplug
136 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
137 ln -sf ../init.d/console ${EXTDIR}/rc.d/rcsysinit.d/S70console
138 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rcsysinit.d/S80localnet
139 ln -sf ../init.d/sysctl ${EXTDIR}/rc.d/rcsysinit.d/S90sysctl
140 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} lfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
141 if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} lfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
142 install -m ${MODE} lfs/sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/
143 install -m ${MODE} lfs/sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/
144 install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/
145 install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/
146
147minimal: create-dirs create-service-dir
148 install -m ${MODE} lfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
149 install -m ${MODE} lfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
150 install -m ${CONFMODE} lfs/init.d/functions ${EXTDIR}/rc.d/init.d/
151 install -m ${MODE} lfs/init.d/halt ${EXTDIR}/rc.d/init.d/
152 install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
153 install -m ${MODE} lfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/
154 install -m ${MODE} lfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/
155 install -m ${MODE} lfs/init.d/rc ${EXTDIR}/rc.d/init.d/
156 install -m ${MODE} lfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
157 install -m ${MODE} lfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
158 install -m ${MODE} lfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
159 install -m ${MODE} lfs/init.d/swap ${EXTDIR}/rc.d/init.d/
160 install -m ${MODE} lfs/init.d/udev ${EXTDIR}/rc.d/init.d/
161 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
162 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
163 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
164 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
165 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
166 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
167 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
168 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
169 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs
170 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev
171 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S20swap
172 ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S30checkfs
173 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs
174 ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S50cleanfs
175 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
176 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} lfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
177
178install-net-agent:
179 install -m 755 contrib/hotplug/net.agent ${EXTDIR}/hotplug
180
181install-enhanced:
182 mv ${EXTDIR}/rc.d/init.d/rc ${EXTDIR}/rc.d/init.d/rc-enhanced.bak
183 mv ${EXTDIR}/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/functions-enhanced.bak
184 mv ${EXTDIR}/sysconfig/rc ${EXTDIR}/sysconfig/rc-enhanced.bak
185 install -d -m ${DIRMODE} /media/boottemp
186 install -m ${MODE} contrib/enhanced/init.d/rc ${EXTDIR}/rc.d/init.d/rc
187 install -m ${CONFMODE} contrib/enhanced/init.d/functions ${EXTDIR}/rc.d/init.d/functions
188 install -m ${CONFMODE} contrib/enhanced/sysconfig/rc ${EXTDIR}/sysconfig/rc
189
190.PHONY: all create-dirs create-service-dir \
191 install install-service-mtu install-livecd \
192 install-net-agent install-enhanced
193
Note: See TracBrowser for help on using the repository browser.