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