source: bootscripts/Makefile@ 6206f72

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6206f72 was f6fe500, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Update bootscripts for eudev.
Add gcc patch for upstream changes.</para>
Change explanation for using omit-frame-pointer in gcc-pass2.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10560 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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