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