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