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