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