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