]>
Commit | Line | Data |
---|---|---|
94bbb30a | 1 | # |
5b827075 | 2 | # Conditional build: |
a1b2d52b | 3 | %bcond_without static # link binaries with glib dynamically |
5b827075 | 4 | # |
3c3213a3 | 5 | Summary: inittab and /etc/rc.d scripts |
a51a8b92 ER |
6 | Summary(de.UTF-8): inittab und /etc/rc.d Scripts |
7 | Summary(fr.UTF-8): inittab et scripts /etc/rc.d | |
8 | Summary(pl.UTF-8): inittab i skrypty startowe z katalogu /etc/rc.d | |
9 | Summary(tr.UTF-8): inittab ve /etc/rc.d dosyaları | |
3c3213a3 | 10 | Name: rc-scripts |
550a32fe ER |
11 | Version: 0.4.2.8 |
12 | Release: 1 | |
56effd90 | 13 | License: GPL v2 |
3c3213a3 | 14 | Group: Base |
d9a22d82 | 15 | Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz |
550a32fe | 16 | # Source0-md5: dc48dea52becce0d6b55f662c6bfc915 |
e4a20b16 | 17 | Patch0: dropcaps.patch |
3f49e372 | 18 | Patch2: start-stop-daemon-pid-check.patch |
fb654db1 | 19 | URL: http://svn.pld-linux.org/cgi-bin/viewsvn/rc-scripts/ |
31d70394 PZ |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
44151f36 | 22 | BuildRequires: gettext-devel |
9565173a AM |
23 | BuildRequires: glib2-devel |
24 | %{?with_static:BuildRequires: glib2-static} | |
4715c944 ER |
25 | BuildRequires: libcap-devel >= 1:2.17 |
26 | BuildRequires: linux-libc-headers >= 7:2.6.27 | |
8a4b3415 | 27 | BuildRequires: pkgconfig |
136b441d | 28 | BuildRequires: popt-devel |
131b21f1 | 29 | Requires(post): fileutils |
cde0e859 | 30 | %ifarch sparc sparcv9 sparc64 |
3b9e8b82 | 31 | Requires: agetty |
32 | %endif | |
6061dd4f | 33 | Requires: /bin/awk |
44151f36 TP |
34 | Requires: /bin/basename |
35 | Requires: /bin/gettext | |
36 | Requires: /bin/nice | |
6061dd4f | 37 | Requires: /bin/ps |
38 | Requires: SysVinit | |
9caabfde | 39 | Requires: blockdev |
ea1c6ac5 | 40 | Requires: coreutils |
e9d2dcc1 | 41 | Requires: ethtool |
94bbb30a | 42 | Requires: filesystem >= 3.0-11 |
44151f36 | 43 | Requires: findutils |
473be0f1 | 44 | Requires: fsck |
44151f36 TP |
45 | Requires: gettext |
46 | Requires: grep | |
47 | Requires: iproute2 | |
48 | Requires: mingetty | |
49 | Requires: mktemp | |
dc4e27d6 | 50 | Requires: module-init-tools |
6483c4d3 | 51 | Requires: mount >= 2.12 |
05de90fa | 52 | Requires: net-tools |
15580a17 | 53 | Requires: procps >= 1:3.2.6-1.1 |
148e6e6e | 54 | Requires: psmisc >= 22.5-2 |
44151f36 | 55 | Requires: utempter |
b8f7e644 | 56 | Requires: util-linux |
6061dd4f | 57 | Provides: initscripts |
131b21f1 | 58 | Obsoletes: initscripts |
9c80e93b | 59 | Obsoletes: vserver-rc-scripts |
9d4fd9ad | 60 | Conflicts: LPRng < 3.8.0-2 |
0486f695 | 61 | Conflicts: dev < 2.9.0-22 |
c38e096d | 62 | Conflicts: iputils-arping < 2:s20070202-1 |
038ea68f | 63 | Conflicts: openssh-server < 2:3.6.1p2-6 |
cb9a8e88 | 64 | Conflicts: psacct < 6.3.5-10 |
c39424a8 | 65 | Conflicts: tzdata < 2007b-1.1 |
359f7c30 | 66 | %if "%{pld_release}" == "ti" |
67 | Conflicts: udev-core < 1:124-3 | |
68 | %else | |
0486f695 | 69 | Conflicts: udev-core < 1:135-2 |
359f7c30 | 70 | %endif |
6507b5cb | 71 | Conflicts: wpa_supplicant < 0.6.3 |
cb9a8e88 | 72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6061dd4f | 73 | |
6061dd4f | 74 | %define _exec_prefix / |
73844b1c | 75 | %define localedir /etc/sysconfig/locale |
68101dbd | 76 | %define _bindir /bin |
77 | %define _sbindir /sbin | |
3c3213a3 AF |
78 | |
79 | %description | |
80 | This package contains the scripts use to boot a system, change run | |
febd158f | 81 | levels, and shut the system down cleanly. |
3c3213a3 | 82 | |
4a9a0407 JR |
83 | %description -l de.UTF-8 |
84 | Dieses Paket enthält die Scripts, die zum Hochfahren des Systems, | |
85 | Ändern der Betriebsebene und sauberem Herunterfahren des Systems | |
86 | erforderlich sind. Außerdem enthält es die Scripts, die | |
15555262 | 87 | Netzwerkschnittstellen aktivieren und deaktivieren. |
3c3213a3 | 88 | |
4a9a0407 JR |
89 | %description -l fr.UTF-8 |
90 | Ce package contient les scripts utilisés pour démarrer le systéme, | |
91 | changer les niveaux d'exécution, et arréter le systéme proprement. Il | |
92 | contient aussi les scripts qui activent et désactivent la plupart des | |
93 | inetrfaces réseau. | |
3c3213a3 | 94 | |
4a9a0407 | 95 | %description -l pl.UTF-8 |
3c3213a3 | 96 | Pakiet zawiera skrypty uruchamiane przy starcie i zamykaniu systemu, a |
4a9a0407 | 97 | także przy zmianie jego poziomu pracy. |
3c3213a3 | 98 | |
4a9a0407 JR |
99 | %description -l tr.UTF-8 |
100 | Bu paket, sistem açmak, çalışma düzeylerini değiştirmek ve sistemi | |
101 | düzgün bir şekilde kapatmak için gereken dosyaları içerir. Ayrıca pek | |
102 | çok bilgisayar ağı arayüzlerini etkinleştiren ya da edilginleştiren | |
103 | programcıklar içerir. | |
3c3213a3 AF |
104 | |
105 | %prep | |
106 | %setup -q | |
da22bfb2 | 107 | %patch0 -p0 |
3f49e372 | 108 | %patch2 -p0 |
3c3213a3 AF |
109 | |
110 | %build | |
31d70394 PZ |
111 | %{__aclocal} |
112 | %{__autoheader} | |
113 | %{__autoconf} | |
114 | %{__automake} | |
b4948511 | 115 | %configure \ |
116 | --with-localedir=%{localedir} | |
131b21f1 | 117 | %{__make} \ |
9565173a | 118 | %{!?with_static:ppp_watch_LDADD="-lglib-2.0" ppp_watch_DEPENDENCIES=} |
3c3213a3 AF |
119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
c3f43b84 | 122 | install -d $RPM_BUILD_ROOT/var/{run/netreport,log} |
fbf3861e | 123 | install -d $RPM_BUILD_ROOT/etc/sysconfig/hwprofiles |
3c3213a3 | 124 | |
44151f36 | 125 | %{__make} install \ |
038ea68f | 126 | DESTDIR=$RPM_BUILD_ROOT \ |
9565173a | 127 | %{!?with_static:ppp_watch_LDADD="-lglib-2.0" ppp_watch_DEPENDENCIES=} |
c42677f8 AF |
128 | |
129 | for i in 0 1 2 3 4 5 6; do | |
130 | install -d $RPM_BUILD_ROOT/etc/rc.d/rc$i.d | |
131 | done | |
132 | ||
133 | for i in 2 3 4 5; do | |
3189d0c6 | 134 | ln -s ../init.d/local $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S99local |
c9285cbf JR |
135 | ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S10network |
136 | ln -s ../init.d/allowlogin $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S99allowlogin | |
e36baeb4 | 137 | ln -s ../init.d/sys-chroots $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S99sys-chroots |
c9285cbf JR |
138 | done |
139 | ||
140 | for i in 1 2 3 4 5; do | |
141 | ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S00killall | |
c8124ed0 | 142 | ln -s ../init.d/cpusets $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S01cpusets |
c9285cbf JR |
143 | ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S20random |
144 | done | |
145 | ||
146 | for i in 0 2 3 4 5 6; do | |
147 | ln -s ../init.d/single $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K00single | |
148 | done | |
149 | ||
150 | ln -s ../init.d/single $RPM_BUILD_ROOT/etc/rc.d/rc1.d/S00single | |
151 | ||
152 | for i in 0 6; do | |
c8124ed0 | 153 | ln -s ../init.d/cpusets $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K99cpusets |
c9285cbf JR |
154 | ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K90killall |
155 | ln -s ../init.d/random $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K80random | |
156 | done | |
157 | ||
158 | for i in 0 1 6; do | |
159 | ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K90network | |
160 | ln -s ../init.d/allowlogin $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01allowlogin | |
e36baeb4 | 161 | ln -s ../init.d/sys-chroots $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01sys-chroots |
06d65e47 | 162 | ln -s ../init.d/local $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01local |
c42677f8 AF |
163 | done |
164 | ||
2e1d561f | 165 | > $RPM_BUILD_ROOT/var/log/dmesg |
72cd3555 | 166 | |
20fee7b8 ER |
167 | # make /etc/init.d symlink relative |
168 | ln -nfs rc.d/init.d $RPM_BUILD_ROOT/etc/init.d | |
169 | ||
6c174e85 PG |
170 | # in static-routes can be also rules: |
171 | ln -s static-routes $RPM_BUILD_ROOT/etc/sysconfig/static-rules | |
172 | ||
53f9043c | 173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
3c3213a3 | 176 | %post |
3c3213a3 AF |
177 | if [ -f /etc/inittab.rpmsave ]; then |
178 | echo "**** Found old /etc/inittab.rpmsave ****" | |
179 | echo "/etc/inittab renamed to /etc/inittab.rpmnew" | |
92fbcb18 | 180 | mv -f /etc/inittab /etc/inittab.rpmnew |
3c3213a3 | 181 | echo "/etc/inittab.rpmsave renamed to /etc/inittab." |
92fbcb18 | 182 | mv -f /etc/inittab.rpmsave /etc/inittab |
3c3213a3 | 183 | fi |
2e1d561f | 184 | touch /var/log/dmesg |
6b32cfe3 | 185 | chown root:root /var/log/dmesg |
2e1d561f | 186 | chmod 640 /var/log/dmesg |
bd07ea06 ER |
187 | touch /var/cache/rc-scripts/msg.cache |
188 | chmod 644 /var/cache/rc-scripts/msg.cache | |
189 | chown root:root /var/cache/rc-scripts/msg.cache | |
febd158f | 190 | |
ea4b9022 | 191 | # move network interfaces description files to new location |
192 | %triggerpostun -- initscripts | |
e6a3108e | 193 | mv -f /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/interfaces |
ea4b9022 | 194 | |
3c3213a3 | 195 | %files |
ee1cf4d2 | 196 | %defattr(644,root,root,755) |
6c541d0a | 197 | %doc ChangeLog |
0858cd26 | 198 | %doc doc/*.txt rc.d/init.d/template.init |
44151f36 | 199 | %doc sysconfig/interfaces/data/chat-ppp* |
6061dd4f | 200 | %doc sysconfig/interfaces/ifc* |
201 | %doc sysconfig/interfaces/tnl* | |
36963c7f | 202 | %doc sysconfig/init-colors* |
20fee7b8 | 203 | %doc doc/sysvinitfiles |
6061dd4f | 204 | |
4dfe9cd1 ER |
205 | %dir /etc/rc.d |
206 | %dir /etc/rc.d/init.d | |
207 | %dir /etc/rc.d/rc?.d | |
9439d8ba | 208 | /etc/init.d |
1a45f1c3 | 209 | |
210 | /etc/rc.d/init.d/functions | |
211 | %attr(754,root,root) /etc/rc.d/init.d/allowlogin | |
c8124ed0 | 212 | %attr(754,root,root) /etc/rc.d/init.d/cpusets |
fbf3861e | 213 | %attr(754,root,root) /etc/rc.d/init.d/cryptsetup |
1a45f1c3 | 214 | %attr(754,root,root) /etc/rc.d/init.d/killall |
3189d0c6 | 215 | %attr(754,root,root) /etc/rc.d/init.d/local |
1a45f1c3 | 216 | %attr(754,root,root) /etc/rc.d/init.d/network |
217 | %attr(754,root,root) /etc/rc.d/init.d/random | |
218 | %attr(754,root,root) /etc/rc.d/init.d/single | |
b0ffdce5 | 219 | %attr(754,root,root) /etc/rc.d/init.d/sys-chroots |
1a45f1c3 | 220 | |
221 | %attr(754,root,root) /etc/rc.d/rc | |
c1f03f90 | 222 | %config(noreplace) %verify(not md5 mtime size) /etc/rc.d/rc.local |
72f419db | 223 | %attr(754,root,root) /etc/rc.d/rc.init |
1a45f1c3 | 224 | %attr(754,root,root) /etc/rc.d/rc.sysinit |
225 | %attr(754,root,root) /etc/rc.d/rc.shutdown | |
42b701d8 ER |
226 | %attr(754,root,root) /etc/rc.d/rc?.d/K??allowlogin |
227 | %attr(754,root,root) /etc/rc.d/rc?.d/K??cpusets | |
228 | %attr(754,root,root) /etc/rc.d/rc?.d/K??killall | |
06d65e47 | 229 | %attr(754,root,root) /etc/rc.d/rc?.d/K??local |
42b701d8 ER |
230 | %attr(754,root,root) /etc/rc.d/rc?.d/K??network |
231 | %attr(754,root,root) /etc/rc.d/rc?.d/K??random | |
232 | %attr(754,root,root) /etc/rc.d/rc?.d/K??single | |
233 | %attr(754,root,root) /etc/rc.d/rc?.d/K??sys-chroots | |
1a45f1c3 | 234 | %attr(754,root,root) /etc/rc.d/rc?.d/S??allowlogin |
c8124ed0 | 235 | %attr(754,root,root) /etc/rc.d/rc?.d/S??cpusets |
1a45f1c3 | 236 | %attr(754,root,root) /etc/rc.d/rc?.d/S??killall |
237 | %attr(754,root,root) /etc/rc.d/rc?.d/S??local | |
238 | %attr(754,root,root) /etc/rc.d/rc?.d/S??network | |
239 | %attr(754,root,root) /etc/rc.d/rc?.d/S??random | |
240 | %attr(754,root,root) /etc/rc.d/rc?.d/S??single | |
e36baeb4 | 241 | %attr(754,root,root) /etc/rc.d/rc?.d/S??sys-chroots |
6061dd4f | 242 | |
bd07ea06 ER |
243 | %dir /var/cache/rc-scripts |
244 | %ghost /var/cache/rc-scripts/msg.cache | |
06d65e47 | 245 | |
5f425b39 | 246 | %attr(755,root,root) /etc/profile.d/lang.*sh |
6061dd4f | 247 | |
248 | %attr(755,root,root) %{_bindir}/doexec | |
c42677f8 | 249 | %attr(755,root,root) %{_bindir}/ipcalc |
5b84678f | 250 | %attr(755,root,root) %{_bindir}/resolvesymlink |
bddac071 | 251 | %attr(755,root,root) %{_bindir}/run-parts |
44151f36 | 252 | %attr(755,root,root) %{_bindir}/usleep |
c42677f8 | 253 | |
42b701d8 | 254 | %attr(755,root,root) %{_sbindir}/consoletype |
3b0f5789 | 255 | %attr(755,root,root) %{_sbindir}/fstab-decode |
93f606c5 | 256 | %attr(755,root,root) %{_sbindir}/genhostid |
42b701d8 | 257 | %attr(755,root,root) %{_sbindir}/getkey |
72f419db | 258 | %attr(755,root,root) %{_sbindir}/hwprofile |
42b701d8 | 259 | %attr(755,root,root) %{_sbindir}/if* |
6061dd4f | 260 | %attr(755,root,root) %{_sbindir}/initlog |
261 | %attr(755,root,root) %{_sbindir}/loglevel | |
42b701d8 | 262 | %attr(755,root,root) %{_sbindir}/minilogd |
6061dd4f | 263 | %attr(755,root,root) %{_sbindir}/netreport |
42b701d8 ER |
264 | %attr(755,root,root) %{_sbindir}/ppp-watch |
265 | %attr(755,root,root) %{_sbindir}/service | |
44151f36 | 266 | %attr(755,root,root) %{_sbindir}/setsysfont |
42b701d8 | 267 | %attr(755,root,root) %{_sbindir}/start-stop-daemon |
6061dd4f | 268 | %attr(755,root,root) %{_sbindir}/tnl* |
42b701d8 | 269 | %attr(4755,root,root) %{_sbindir}/usernetctl |
54a71628 | 270 | |
4dfe9cd1 | 271 | %dir %{_sysconfdir}/ppp |
1b22f537 | 272 | %attr(754,root,root) %{_sysconfdir}/ppp/* |
4dfe9cd1 ER |
273 | %dir /etc/sysconfig/cpusets |
274 | %dir /etc/sysconfig/hwprofiles | |
275 | %dir /etc/sysconfig/interfaces | |
276 | %dir /etc/sysconfig/interfaces/data | |
277 | %dir /etc/sysconfig/isapnp | |
c39424a8 | 278 | |
4dfe9cd1 | 279 | %dir /etc/sysconfig/network-scripts |
c39424a8 ER |
280 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-br |
281 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-irda | |
282 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-post | |
283 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-ppp | |
284 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-sl | |
285 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifdown-vlan | |
286 | /etc/sysconfig/network-scripts/ifup-aliases | |
287 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-br | |
288 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-ipx | |
289 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-irda | |
290 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-iucv | |
291 | /etc/sysconfig/network-scripts/ifup-neigh | |
292 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-plip | |
293 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-plusb | |
294 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-post | |
295 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-ppp | |
296 | /etc/sysconfig/network-scripts/ifup-routes | |
297 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-sl | |
298 | %attr(755,root,root) /etc/sysconfig/network-scripts/ifup-vlan | |
299 | ||
72f419db | 300 | /etc/sysconfig/network-scripts/functions.network |
1a45f1c3 | 301 | %dir /etc/sysconfig/interfaces/down.d |
302 | %dir /etc/sysconfig/interfaces/down.d/* | |
303 | %dir /etc/sysconfig/interfaces/up.d | |
304 | %dir /etc/sysconfig/interfaces/up.d/* | |
96ebd9bc | 305 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/interfaces/down.d/ppp/logger |
306 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/interfaces/up.d/ppp/logger | |
a044da48 | 307 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/isapnp/isapnp-kernel.conf |
2e1d561f | 308 | %attr(640,root,root) %ghost /var/log/dmesg |
44151f36 | 309 | %attr(750,root,root) %dir /var/run/netreport |
6061dd4f | 310 | |
a044da48 | 311 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime |
fbf3861e | 312 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crypttab |
42b701d8 | 313 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/initlog.conf |
a044da48 JB |
314 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inittab |
315 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules | |
a044da48 JB |
316 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysctl.conf |
317 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clock | |
42b701d8 | 318 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpusets/cpuset-test |
a044da48 JB |
319 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/hwprof |
320 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/i18n | |
42b701d8 ER |
321 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/init-colors |
322 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/interfaces/ifcfg-eth0 | |
a044da48 JB |
323 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/network |
324 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/static-arp | |
325 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/static-nat | |
326 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/static-routes | |
42b701d8 | 327 | %config(noreplace,missingok) %verify(not md5 mtime size) /etc/sysconfig/static-rules |
a044da48 | 328 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/system |
6061dd4f | 329 | |
69025782 AM |
330 | %{_mandir}/man?/* |
331 | %lang(de) %{_mandir}/de/man?/* | |
332 | %lang(es) %{_mandir}/es/man?/* | |
333 | %lang(fr) %{_mandir}/fr/man?/* | |
334 | %lang(ja) %{_mandir}/ja/man?/* | |
335 | %lang(ru) %{_mandir}/ru/man?/* | |
336 | %lang(sv) %{_mandir}/sv/man?/* | |
73844b1c | 337 | |
4c00b6f6 | 338 | %dir %{localedir} |
72f419db | 339 | %lang(de) %{localedir}/de |
44151f36 | 340 | %lang(pl) %{localedir}/pl |