]>
Commit | Line | Data |
---|---|---|
d374e721 | 1 | # TODO: |
b63d2415 | 2 | # - pldize vconsole setup: |
30121190 JR |
3 | # http://cgit.freedesktop.org/systemd/systemd/tree/src/vconsole/vconsole-setup.c |
4 | # - udev initrd needs love (is probably completly unusable in current form) | |
4400c575 | 5 | # - replace our rpm macros with systemd provided? |
d374e721 | 6 | # |
c3037397 | 7 | # Conditional build: |
6c89bbd4 ER |
8 | %bcond_without audit # without audit support |
9 | %bcond_without cryptsetup # without cryptsetup support | |
23107006 TP |
10 | %bcond_without pam # PAM authentication support |
11 | %bcond_without selinux # without SELinux support | |
12 | %bcond_without tcpd # libwrap (tcp_wrappers) support | |
9c0b975d | 13 | |
183de3c2 | 14 | %bcond_without initrd # build without udev-initrd |
30121190 JR |
15 | %bcond_with uClibc # link initrd version with static uClibc |
16 | %bcond_with klibc # link initrd version with static klibc | |
17 | %bcond_with dietlibc # link initrd version with static dietlibc (currently broken and unsupported) | |
18 | %bcond_without glibc # link initrd version with static glibc | |
19 | ||
20 | %ifarch sparc sparc64 | |
21 | %define with_glibc 1 | |
22 | %endif | |
23 | ||
24 | # if one of the *libc is enabled disable default uClibc | |
25 | %if %{with dietlibc} && %{with uClibc} | |
26 | %undefine with_uClibc | |
27 | %endif | |
28 | ||
29 | %if %{with glibc} && %{with uClibc} | |
30 | %undefine with_uClibc | |
31 | %endif | |
32 | ||
33 | %if %{with klibc} && %{with uClibc} | |
34 | %undefine with_uClibc | |
35 | %endif | |
36 | ||
c3037397 | 37 | Summary: A System and Service Manager |
ede8d3e5 | 38 | Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa |
39 | Name: systemd | |
30121190 | 40 | # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often) |
ab590cee | 41 | Version: 187 |
a98a12d9 | 42 | Release: 3 |
30121190 | 43 | Epoch: 1 |
ede8d3e5 | 44 | License: GPL v2+ |
45 | Group: Base | |
440d1d13 | 46 | Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz |
ab590cee | 47 | # Source0-md5: 26606e3c84448800ef0b3ffd57e6e8b6 |
4f25b6ac | 48 | Source1: %{name}-sysv-convert |
b0980573 | 49 | Source2: %{name}_booted.c |
a3a953ae | 50 | Source3: network.service |
870fdd3d JR |
51 | Source4: var-lock.mount |
52 | Source5: var-run.mount | |
44410185 JR |
53 | Source10: pld-storage-init-late.service |
54 | Source11: pld-storage-init.service | |
55 | Source12: pld-wait-storage.service | |
56 | Source13: pld-storage-init.sh | |
50b8f452 ER |
57 | Source14: pld-clean-tmp.service |
58 | Source15: pld-clean-tmp.sh | |
bb6fb962 JR |
59 | Source16: pld-rc-inetd-generator.sh |
60 | Source17: rc-inetd.service | |
a98a12d9 | 61 | Source18: default.preset |
30121190 JR |
62 | # rules |
63 | Source101: udev-alsa.rules | |
64 | Source102: udev.rules | |
65 | Source103: udev-links.conf | |
66 | # scripts / helpers | |
67 | Source110: udev-net.helper | |
68 | Source111: start_udev | |
69 | # misc | |
70 | Source120: udev.blacklist | |
71 | Source121: fbdev.blacklist | |
7619c097 | 72 | Patch0: target-pld.patch |
252e1bad | 73 | Patch1: config-pld.patch |
8e088cd5 | 74 | Patch2: shut-sysv-up.patch |
2e1f31c8 | 75 | Patch3: pld-sysv-network.patch |
d374e721 | 76 | Patch4: tmpfiles-not-fatal.patch |
c75fd19d JR |
77 | Patch5: kmsg-to-syslog.patch |
78 | Patch6: udev-so.patch | |
79 | Patch7: udev-uClibc.patch | |
80 | Patch8: udev-ploop-rules.patch | |
39e47c85 JR |
81 | Patch9: udevadm-in-sbin.patch |
82 | # hack set to allow static udev build | |
83 | Patch100: static-udev.patch | |
ede8d3e5 | 84 | URL: http://www.freedesktop.org/wiki/Software/systemd |
5b9bde26 | 85 | BuildRequires: acl-devel |
6c89bbd4 | 86 | %{?with_audit:BuildRequires: audit-libs-devel} |
86d3399e | 87 | BuildRequires: autoconf >= 2.64 |
6e34428f | 88 | BuildRequires: automake >= 1:1.11 |
e4c66821 | 89 | BuildRequires: binutils >= 3:2.22.52.0.1-2 |
ab590cee | 90 | %{?with_cryptsetup:BuildRequires: cryptsetup-devel >= 1.4.3} |
23107006 | 91 | BuildRequires: dbus-devel >= 1.3.2 |
c3037397 | 92 | BuildRequires: docbook-style-xsl |
30121190 JR |
93 | BuildRequires: glib2-devel >= 1:2.22.0 |
94 | BuildRequires: glibc-misc | |
86d3399e | 95 | BuildRequires: gobject-introspection-devel >= 1.31.1 |
3fc7a1cc | 96 | BuildRequires: gperf |
86d3399e | 97 | BuildRequires: gtk-doc >= 1.18 |
5b9bde26 | 98 | BuildRequires: intltool >= 0.40.0 |
4389e6f9 | 99 | BuildRequires: kmod-devel >= 5 |
30121190 | 100 | BuildRequires: libblkid-devel >= 2.20 |
b82d0bf2 | 101 | BuildRequires: libcap-devel |
def6d132 | 102 | %{?with_selinux:BuildRequires: libselinux-devel >= 2.1.0} |
6c89bbd4 ER |
103 | BuildRequires: libtool >= 2:2.2 |
104 | %{?with_tcpd:BuildRequires: libwrap-devel} | |
6e34428f | 105 | BuildRequires: libxslt-progs |
961baf80 | 106 | BuildRequires: m4 |
6c89bbd4 | 107 | %{?with_pam:BuildRequires: pam-devel} |
30121190 | 108 | BuildRequires: pciutils |
23107006 | 109 | BuildRequires: pkgconfig >= 0.9.0 |
30121190 JR |
110 | BuildRequires: python-modules |
111 | BuildRequires: rpmbuild(macros) >= 1.628 | |
112 | BuildRequires: sed >= 4.0 | |
113 | BuildRequires: usbutils >= 0.82 | |
58fd72e9 | 114 | BuildRequires: xz-devel |
30121190 JR |
115 | BuildRequires: zlib-devel |
116 | %if %{with initrd} | |
117 | BuildRequires: acl-static | |
118 | BuildRequires: attr-static | |
119 | %{?with_dietlibc:BuildRequires: dietlibc-static} | |
120 | BuildRequires: glib2-static >= 1:2.22.0 | |
121 | %{?with_glibc:BuildRequires: glibc-static} | |
122 | %{?with_klibc:BuildRequires: klibc-static} | |
123 | BuildRequires: kmod-libs-static >= 5 | |
124 | BuildRequires: libblkid-static >= 2.20 | |
125 | %{?with_glibc:BuildRequires: libselinux-static} | |
126 | %{?with_glibc:BuildRequires: libsepol-static} | |
127 | %{?with_klibc:BuildRequires: linux-libc-headers} | |
128 | BuildRequires: pcre-static | |
129 | %{?with_uClibc:BuildRequires: uClibc-static >= 4:0.9.30.3} | |
130 | BuildRequires: xz-static | |
131 | BuildRequires: zlib-static | |
132 | %endif | |
7e0e6b4e JR |
133 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
134 | Requires: %{name}-units = %{epoch}:%{version}-%{release} | |
58d6217a | 135 | Requires: /etc/os-release |
2ff27c26 | 136 | Requires: SysVinit-tools |
37b8df82 | 137 | Requires: agetty |
b0980573 | 138 | Requires: dbus >= 1.4.16-6 |
1b342fb2 | 139 | Requires: filesystem >= 4.0-3 |
ed5c41d4 | 140 | Requires: libutempter |
a2018b66 | 141 | Requires: rc-scripts >= 0.4.5.3-7 |
56701781 | 142 | Requires: setup >= 2.8.0-2 |
cbba36f4 JR |
143 | Requires: udev-core = %{epoch}:%{version}-%{release} |
144 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
e3134fe0 | 145 | Requires: virtual(module-tools) |
b0980573 | 146 | Suggests: ConsoleKit |
2a61be78 | 147 | Suggests: fsck >= 2.20 |
e3134fe0 | 148 | Suggests: kmod >= 5 |
4b15486a | 149 | Suggests: nss_myhostname |
c35aa49c | 150 | Suggests: service(klogd) |
1cdd35cf | 151 | Suggests: service(syslog) |
2bd26e1e | 152 | Provides: udev-acl = %{epoch}:%{version}-%{release} |
ca73092d | 153 | Obsoletes: systemd-no-compat-tmpfiles |
cbba36f4 | 154 | Obsoletes: udev-systemd |
3baeefca PG |
155 | # systemd takes care of that and causes problems |
156 | Conflicts: binfmt-detector | |
a6203073 | 157 | # sytemd wants pam with pam_systemd.so in system-auth... |
3b292a99 | 158 | Conflicts: pam < 1:1.1.5-5 |
a6203073 JR |
159 | # ...and sudo hates it |
160 | Conflicts: sudo < 1:1.7.8p2-4 | |
06d34666 JR |
161 | # for prefdm script |
162 | Conflicts: xinitrc-ng < 1.0 | |
0fedd233 JR |
163 | # systemd scripts use options not present in older versions |
164 | Conflicts: kpartx < 0.4.9-7 | |
165 | Conflicts: multipath-tools < 0.4.9-7 | |
d833377f JR |
166 | # no tmpfs on /media, use /run/media/$USER for mounting |
167 | Conflicts: udisks2 < 1.92.0 | |
ca73092d JR |
168 | # packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs |
169 | Conflicts: ConsoleKit-dirs < 0.4.5-7 | |
170 | Conflicts: NetworkManager < 2:0.9.2.0-3 | |
171 | Conflicts: Zope < 2.11.8-2 | |
172 | Conflicts: amavisd-new < 1:2.7.0-1 | |
173 | Conflicts: apache-base < 2.2.21-4 | |
174 | Conflicts: apache-mod_bw < 0.92-3 | |
175 | Conflicts: apache-mod_fastcgi < 2.4.6-6 | |
176 | Conflicts: apache1-base < 1.3.42-5 | |
177 | Conflicts: apache1-mod_fastcgi < 2.4.6-2 | |
178 | Conflicts: asterisk < 10.0.1-2 | |
179 | Conflicts: autossh-init < 1.4b-3 | |
180 | Conflicts: balance < 3.54-2 | |
181 | Conflicts: bind < 7:9.8.1.P1-4 | |
182 | Conflicts: bopm < 3.1.3-4 | |
183 | Conflicts: callweaver < 1.2.1-9 | |
184 | Conflicts: cassandra-bin < 0.8.9-2 | |
185 | Conflicts: clamav < 0.97.3-3 | |
186 | Conflicts: cups < 1:1.5.0-10 | |
ca73092d JR |
187 | Conflicts: dovecot < 1:2.0.16-3 |
188 | Conflicts: dspam < 3.9.0-6 | |
189 | Conflicts: fail2ban < 0.8.4-4 | |
ca73092d JR |
190 | Conflicts: gammu-smsd < 1:1.31.0-3 |
191 | # Break gdm2.20 installs | |
192 | #Conflicts: gdm < 2:3.2.1.1-9 | |
193 | Conflicts: greylistd < 0.8.8-2 | |
194 | Conflicts: inn < 2.4.6-7 | |
195 | Conflicts: ipsec-tools < 0.8.0-3 | |
196 | Conflicts: jabber-common < 0-9 | |
197 | Conflicts: laptop-mode-tools < 1.58-2 | |
198 | Conflicts: libgpod < 0.8.0-6 | |
199 | Conflicts: libvirt-utils < 0.9.9-4 | |
200 | Conflicts: lighttpd < 1.4.30-5 | |
201 | Conflicts: lirc < 0.9.0-20 | |
202 | Conflicts: mailman < 5:2.1.14-4 | |
203 | Conflicts: memcached < 1.4.11-2 | |
204 | Conflicts: mpd < 0.16.5-4 | |
205 | Conflicts: mrtg < 2.17.0-3 | |
206 | Conflicts: munin-common < 1.4.5-5 | |
207 | Conflicts: nagios-nrpe < 2.13-2 | |
208 | Conflicts: ndisc6-rdnssd < 1.0.1-3 | |
209 | Conflicts: nscd < 6:2.14.1-5 | |
210 | Conflicts: nss_ldapd-nslcd < 0.8.4-2 | |
211 | Conflicts: openct < 0.6.20-3 | |
212 | Conflicts: openl2tp < 1.8-3 | |
213 | Conflicts: openldap-overlay-nssov < 2.4.28-4 | |
214 | Conflicts: openldap-servers < 2.4.28-4 | |
215 | Conflicts: openvpn < 2.2.2-2 | |
216 | Conflicts: pam-pam_mount < 2.12-3 | |
217 | Conflicts: pam-pam_ssh < 1.97-2 | |
218 | Conflicts: pcsc-lite < 1.8.1-2 | |
219 | Conflicts: php-dirs < 1.2-3 | |
220 | Conflicts: policyd < 2.0.10-3 | |
221 | Conflicts: pound < 2.6-2 | |
222 | Conflicts: pptp < 1.7.2-3 | |
223 | Conflicts: proftpd-common < 2:1.3.4a-2 | |
224 | Conflicts: pulseaudio-server < 1.1-2 | |
225 | Conflicts: quagga < 0.99.20-3 | |
226 | Conflicts: radvd < 1.8.5-2 | |
ca73092d JR |
227 | Conflicts: red5 < 0.9.0-2 |
228 | Conflicts: redis-server < 2.4.2-4 | |
229 | Conflicts: smokeping < 2.4.2-10 | |
230 | Conflicts: smtp-gated < 1.4.17-2 | |
231 | Conflicts: socat < 1.7.2.0-2 | |
232 | Conflicts: speech-dispatcher < 0.7.1-2 | |
233 | Conflicts: sphinx < 2.0.3-4 | |
234 | Conflicts: splashutils < 1.5.4.3-3 | |
235 | Conflicts: stunnel < 4.50-2 | |
236 | Conflicts: tenshi < 0.12-2 | |
237 | Conflicts: tor < 0.2.2.35-2 | |
238 | Conflicts: ucarp < 1.5.2-3 | |
239 | Conflicts: udisks < 1.0.4-3 | |
240 | Conflicts: util-vserver < 0.30.216-1.pre3002.3 | |
241 | Conflicts: vpnc < 0.5.3-2 | |
242 | Conflicts: web2ldap < 1.1.0rc1-2 | |
243 | Conflicts: wesnoth-server < 1:1.10-2 | |
244 | Conflicts: wpa_supplicant < 0.7.3-10 | |
245 | Conflicts: xl2tpd < 1.3.0-2 | |
246 | # end of tmpfiles conflicts | |
ede8d3e5 | 247 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
248 | ||
c75fd19d | 249 | %define _sbindir /sbin |
85879912 ER |
250 | %define _libexecdir %{_prefix}/lib |
251 | ||
ede8d3e5 | 252 | %description |
1c239f8b | 253 | systemd is a system and service manager for Linux, compatible with |
ede8d3e5 | 254 | SysV and LSB init scripts. systemd provides aggressive parallelization |
255 | capabilities, uses socket and D-Bus activation for starting services, | |
256 | offers on-demand starting of daemons, keeps track of processes using | |
257 | Linux cgroups, supports snapshotting and restoring of the system | |
258 | state, maintains mount and automount points and implements an | |
259 | elaborate transactional dependency-based service control logic. It can | |
1c239f8b | 260 | work as a drop-in replacement for sysvinit. |
ede8d3e5 | 261 | |
262 | %description -l pl.UTF-8 | |
263 | systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze | |
264 | skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności | |
265 | paralelizacji, do uruchamiania usług używa socketów oraz D-Busa, | |
266 | oferuje uruchamianie usług na życzenie, monitoruje procesy używając | |
267 | linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie | |
268 | (restore) stanu systemu, zarządza (auto)mount pointami oraz | |
269 | implementuje starannie opracowaną transakcjonalną, bazującą na | |
d45dfc3a | 270 | zależnościach logikę kontroli usług. Może pracować jako zastępca dla |
ede8d3e5 | 271 | sysvinit. |
272 | ||
c97dacdd TP |
273 | %package init |
274 | Summary: systemd /sbin/init and LSB/SysV compatibility symlinks | |
5b9bde26 | 275 | Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV |
c97dacdd | 276 | Group: Base |
d6829efa | 277 | Requires: systemd |
c97dacdd TP |
278 | Provides: readahead = 1:1.5.7-3 |
279 | Provides: virtual(init-daemon) | |
280 | Obsoletes: SysVinit | |
281 | Obsoletes: readahead < 1:1.5.7-3 | |
282 | Obsoletes: virtual(init-daemon) | |
4e1559fc | 283 | Conflicts: upstart |
c97dacdd TP |
284 | |
285 | %description init | |
286 | Install this package when you are ready to final switch to systemd. | |
287 | ||
5b9bde26 JB |
288 | %description init -l pl.UTF-8 |
289 | Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego | |
290 | przejścia na systemd. | |
291 | ||
c3037397 ER |
292 | %package units |
293 | Summary: Configuration files, directories and installation tool for systemd | |
5b9bde26 | 294 | Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd |
c3037397 | 295 | Group: Base |
c3037397 | 296 | Requires(post): coreutils |
a8d86f01 | 297 | Requires(post): /bin/awk |
c3037397 ER |
298 | |
299 | %description units | |
300 | Basic configuration files, directories and installation tool for the | |
301 | systemd system and service manager. | |
302 | ||
f341cd9b | 303 | This is common config, use %{_sysconfdir}/systemd/system to override. |
10ffdcd2 | 304 | |
5b9bde26 JB |
305 | %description units -l pl.UTF-8 |
306 | Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla | |
307 | zarządcy systemu i usług systemd. | |
308 | ||
309 | Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać | |
310 | poprzez katalog %{_sysconfdir}/systemd/system. | |
311 | ||
bb6fb962 JR |
312 | %package inetd |
313 | Summary: Native inet service support for systemd via socket activation | |
314 | Summary(pl.UTF-8): Natywna obsługa usług inet dla systemd | |
315 | Group: Base | |
316 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
317 | Requires: rc-inetd | |
318 | Provides: inetdaemon | |
319 | Obsoletes: inetd | |
320 | Obsoletes: inetdaemon | |
321 | Obsoletes: rlinetd | |
322 | Obsoletes: xinetd | |
323 | ||
324 | %description inetd | |
325 | Native inet service support for systemd via socket activation. | |
326 | ||
327 | This package contains inet service generator that provides | |
328 | the functionality of rc-inetd service and replaces a separate | |
329 | inet daemon with systemd socket activation feature. | |
330 | ||
331 | %description inetd -l pl.UTF-8 | |
332 | Natywna obsługa usług inet dla systemd. | |
333 | ||
334 | Ten pakiet zawiera generator usług inet udostępniający funkcjonalność | |
335 | serwisu rc-inetd i zastępujący osobny demon inet przez systemd i | |
336 | aktywację usług przez gniazda. | |
337 | ||
4e5e9c32 ER |
338 | %package analyze |
339 | Summary: Tool for processing systemd profiling information | |
86d3399e | 340 | Summary(pl.UTF-8): Narzędzie do przetwarzania informacji profilujących systemd |
4e5e9c32 | 341 | Group: Base |
7e0e6b4e | 342 | Requires: %{name} = %{epoch}:%{version}-%{release} |
4e5e9c32 ER |
343 | Requires: python-dbus |
344 | Requires: python-modules | |
345 | Requires: python-pycairo | |
36c60baa | 346 | Conflicts: systemd < 44-3 |
4e5e9c32 ER |
347 | |
348 | %description analyze | |
349 | 'systemd-analyze blame' lists which systemd unit needed how much time | |
350 | to finish initialization at boot. 'systemd-analyze plot' renders an | |
351 | SVG visualizing the parallel start of units at boot. | |
352 | ||
86d3399e JB |
353 | %description analyze -l pl.UTF-8 |
354 | 'systemd-analyze blame' wypisuje, ile czasu wymagały poszczególne | |
355 | jednostki systemd na zakończenie podczas rozruchu systemu. | |
356 | 'systemd-analyze plot' tworzy wykres SVG wizualizujący równoległy | |
357 | start jednostek podczas rozruchu. | |
358 | ||
011bccb6 | 359 | %package libs |
5b9bde26 JB |
360 | Summary: Shared systemd libraries |
361 | Summary(pl.UTF-8): Biblioteki współdzielone systemd | |
011bccb6 BZ |
362 | Group: Libraries |
363 | ||
364 | %description libs | |
5b9bde26 JB |
365 | Shared systemd libraries. |
366 | ||
367 | %description libs -l pl.UTF-8 | |
368 | Biblioteki współdzielone systemd. | |
011bccb6 | 369 | |
961baf80 AF |
370 | %package devel |
371 | Summary: Header files for systemd libraries | |
372 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd | |
373 | Group: Development/Libraries | |
7e0e6b4e | 374 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
961baf80 AF |
375 | |
376 | %description devel | |
377 | Header files for systemd libraries. | |
378 | ||
379 | %description devel -l pl.UTF-8 | |
380 | Pliki nagłówkowe bibliotek systemd. | |
381 | ||
5b9bde26 JB |
382 | %package -n bash-completion-systemd |
383 | Summary: bash-completion for systemd | |
384 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd | |
385 | Group: Applications/Shells | |
7e0e6b4e | 386 | Requires: %{name} = %{epoch}:%{version} |
5b9bde26 JB |
387 | Requires: bash-completion |
388 | ||
389 | %description -n bash-completion-systemd | |
390 | bash-completion for systemd. | |
391 | ||
392 | %description -n bash-completion-systemd -l pl.UTF-8 | |
86d3399e | 393 | Bashowe dopełnianie składni dla systemd. |
5b9bde26 | 394 | |
30121190 JR |
395 | %package -n udev |
396 | Summary: Device manager for the Linux 2.6 kernel series | |
397 | Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6 | |
398 | Group: Base | |
399 | Requires: udev-core = %{epoch}:%{version}-%{release} | |
400 | Provides: dev = 3.5.0 | |
401 | Obsoletes: dev | |
402 | Obsoletes: hotplug | |
403 | Obsoletes: hotplug-input | |
404 | Obsoletes: hotplug-net | |
405 | Obsoletes: hotplug-pci | |
30121190 JR |
406 | Obsoletes: udev-dev |
407 | Obsoletes: udev-extras < 20090628 | |
408 | Obsoletes: udev-tools | |
409 | ||
410 | %description -n udev | |
411 | udev is the device manager for the Linux 2.6 kernel series. Its | |
412 | primary function is managing device nodes in /dev. It is the successor | |
413 | of devfs and hotplug. | |
414 | ||
415 | %description -n udev -l pl.UTF-8 | |
416 | udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest | |
417 | zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i | |
418 | hotpluga. | |
419 | ||
420 | %package -n udev-core | |
421 | Summary: A userspace implementation of devfs - core part of udev | |
422 | Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev | |
423 | Group: Base | |
30121190 JR |
424 | Requires: udev-libs = %{epoch}:%{version}-%{release} |
425 | Requires: coreutils | |
426 | Requires: filesystem >= 3.0-45 | |
427 | Requires: setup >= 2.6.1-1 | |
30121190 | 428 | Requires: uname(release) >= 2.6.32 |
30121190 | 429 | Conflicts: rc-scripts < 0.4.5.3-1 |
cbba36f4 | 430 | Conflicts: systemd-units < 1:183 |
30121190 | 431 | Conflicts: udev < 1:118-1 |
91243ef3 | 432 | Obsoletes: udev-compat |
30121190 JR |
433 | |
434 | %description -n udev-core | |
435 | A userspace implementation of devfs - core part of udev. | |
436 | ||
437 | %description -n udev-core -l pl.UTF-8 | |
438 | Implementacja devfs w przestrzeni użytkownika - główna część udev. | |
439 | ||
440 | %package -n udev-libs | |
441 | Summary: Shared library to access udev device information | |
442 | Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev | |
443 | Group: Libraries | |
444 | ||
445 | %description -n udev-libs | |
446 | Shared libudev library to access udev device information. | |
447 | ||
448 | %description -n udev-libs -l pl.UTF-8 | |
449 | Biblioteka współdzielona libudev służąca do dostępu do informacji o | |
450 | urządzeniach udev. | |
451 | ||
452 | %package -n udev-devel | |
453 | Summary: Header file for libudev library | |
454 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev | |
455 | Group: Development/Libraries | |
456 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
457 | ||
458 | %description -n udev-devel | |
459 | Header file for libudev library. | |
460 | ||
461 | %description -n udev-devel -l pl.UTF-8 | |
462 | Plik nagłówkowy biblioteki libudev. | |
463 | ||
464 | %package -n udev-static | |
465 | Summary: Static libudev library | |
466 | Summary(pl.UTF-8): Biblioteka statyczna libudev | |
467 | Group: Development/Libraries | |
468 | Requires: udev-devel = %{epoch}:%{version}-%{release} | |
469 | ||
470 | %description -n udev-static | |
471 | Static libudev library. | |
472 | ||
473 | %description -n udev-static -l pl.UTF-8 | |
474 | Biblioteka statyczna libudev. | |
475 | ||
476 | %package -n udev-apidocs | |
477 | Summary: libudev API documentation | |
478 | Summary(pl.UTF-8): Dokumentacja API libudev | |
479 | Group: Documentation | |
480 | Requires: gtk-doc-common | |
481 | ||
482 | %description -n udev-apidocs | |
483 | libudev API documentation. | |
484 | ||
485 | %description -n udev-apidocs -l pl.UTF-8 | |
486 | Dokumentacja API libudev. | |
487 | ||
488 | %package -n udev-glib | |
489 | Summary: Shared libgudev library - GObject bindings for libudev | |
490 | Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev | |
491 | Group: Libraries | |
492 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
493 | Requires: glib2 >= 1:2.22.0 | |
494 | ||
495 | %description -n udev-glib | |
496 | Shared libgudev library - GObject bindings for libudev. | |
497 | ||
498 | %description -n udev-glib -l pl.UTF-8 | |
499 | Biblioteka współdzielona libgudev - wiązania GObject do libudev. | |
500 | ||
501 | %package -n udev-glib-devel | |
502 | Summary: Header file for libgudev library | |
503 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev | |
504 | Group: Development/Libraries | |
505 | Requires: udev-devel = %{epoch}:%{version}-%{release} | |
506 | Requires: udev-glib = %{epoch}:%{version}-%{release} | |
507 | Requires: glib2-devel >= 1:2.22.0 | |
508 | ||
509 | %description -n udev-glib-devel | |
510 | Header file for libgudev library. | |
511 | ||
512 | %description -n udev-glib-devel -l pl.UTF-8 | |
513 | Plik nagłówkowy biblioteki libgudev. | |
514 | ||
515 | %package -n udev-glib-static | |
516 | Summary: Static libgudev library | |
517 | Summary(pl.UTF-8): Biblioteka statyczna libgudev | |
518 | Group: Development/Libraries | |
519 | Requires: udev-glib-devel = %{epoch}:%{version}-%{release} | |
520 | ||
521 | %description -n udev-glib-static | |
522 | Static libgudev library. | |
523 | ||
524 | %description -n udev-glib-static -l pl.UTF-8 | |
525 | Biblioteka statyczna libgudev. | |
526 | ||
527 | %package -n udev-glib-apidocs | |
528 | Summary: libgudev API documentation | |
529 | Summary(pl.UTF-8): Dokumentacja API libgudev | |
530 | Group: Documentation | |
531 | Requires: gtk-doc-common | |
532 | ||
533 | %description -n udev-glib-apidocs | |
534 | libgudev API documentation. | |
535 | ||
536 | %description -n udev-glib-apidocs -l pl.UTF-8 | |
537 | Dokumentacja API libgudev. | |
538 | ||
539 | %package -n udev-initrd | |
540 | Summary: A userspace implementation of devfs - static binary for initrd | |
541 | Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla initrd | |
542 | Group: Base | |
543 | Requires: udev-core = %{epoch}:%{version}-%{release} | |
544 | Conflicts: geninitrd < 10000.10 | |
545 | ||
546 | %description -n udev-initrd | |
547 | A userspace implementation of devfs - static binary for initrd. | |
548 | ||
549 | %description -n udev-initrd -l pl.UTF-8 | |
550 | Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla | |
551 | initrd. | |
552 | ||
ede8d3e5 | 553 | %prep |
554 | %setup -q | |
4c5b5ab6 | 555 | %patch0 -p1 |
252e1bad | 556 | %patch1 -p1 |
082609ad | 557 | #patch2 -p1 |
942c9075 | 558 | %patch3 -p1 |
d374e721 | 559 | %patch4 -p1 |
c75fd19d JR |
560 | %patch5 -p1 |
561 | %patch6 -p1 | |
562 | %if %{with uClibc} | |
563 | %patch7 -p1 | |
564 | %endif | |
3be4738a | 565 | %patch8 -p1 |
39e47c85 | 566 | %patch9 -p1 |
b77423ae | 567 | cp -p %{SOURCE2} src/systemd_booted.c |
ede8d3e5 | 568 | |
569 | %build | |
c75fd19d JR |
570 | %{__gtkdocize} |
571 | %{__libtoolize} | |
4c5b5ab6 | 572 | %{__aclocal} -I m4 |
ede8d3e5 | 573 | %{__autoconf} |
6e34428f | 574 | %{__autoheader} |
ede8d3e5 | 575 | %{__automake} |
183de3c2 | 576 | %if %{with initrd} |
39e47c85 | 577 | patch -p1 <%{PATCH100} |
183de3c2 JR |
578 | %configure \ |
579 | %if "%{?configure_cache}" == "1" | |
580 | --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \ | |
581 | %endif | |
582 | %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \ | |
583 | %{?with_dietlibc:CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -D_BSD_SOURCE"} \ | |
584 | %{?with_klibc:CC="%{_bindir}/klcc"} \ | |
585 | %{?debug:--enable-debug} \ | |
586 | --disable-silent-rules \ | |
587 | --disable-shared \ | |
588 | --enable-static \ | |
589 | --with-distro=pld \ | |
590 | --with-rootprefix="" \ | |
591 | --with-rootlibdir=/%{_lib} \ | |
183de3c2 JR |
592 | --disable-gudev \ |
593 | --disable-keymap \ | |
594 | --disable-gtk-doc \ | |
595 | --disable-introspection \ | |
183de3c2 JR |
596 | --with-pci-ids-path=%{_sysconfdir}/pci.ids \ |
597 | --disable-audit \ | |
183de3c2 JR |
598 | --disable-pam \ |
599 | --disable-plymouth \ | |
600 | --disable-selinux \ | |
183de3c2 JR |
601 | --enable-split-usr |
602 | ||
603 | %{__make} \ | |
604 | libudev-core.la \ | |
605 | systemd-udevd \ | |
606 | udevadm \ | |
607 | ata_id \ | |
608 | cdrom_id \ | |
609 | collect \ | |
610 | scsi_id \ | |
611 | v4l_id \ | |
612 | accelerometer \ | |
613 | mtd_probe \ | |
614 | LDFLAGS="-all-static" \ | |
615 | KMOD_LIBS="-lkmod -lz -llzma" | |
616 | ||
617 | mkdir udev-initrd | |
618 | cp -a systemd-udevd \ | |
619 | udevadm \ | |
620 | ata_id \ | |
621 | cdrom_id \ | |
622 | collect \ | |
623 | scsi_id \ | |
624 | v4l_id \ | |
625 | accelerometer \ | |
626 | mtd_probe \ | |
627 | udev-initrd/ | |
628 | ||
629 | %{__make} clean | |
39e47c85 | 630 | patch -p1 -R <%{PATCH100} |
183de3c2 JR |
631 | %endif |
632 | ||
9c0b975d | 633 | %configure \ |
c75fd19d | 634 | %{?debug:--enable-debug} \ |
6c89bbd4 ER |
635 | %{__enable_disable audit} \ |
636 | %{__enable_disable cryptsetup libcryptsetup} \ | |
6c89bbd4 ER |
637 | %{__enable_disable pam} \ |
638 | %{__enable_disable selinux} \ | |
639 | %{__enable_disable tcpd tcpwrap} \ | |
4bceec5f | 640 | --disable-plymouth \ |
6c89bbd4 | 641 | --disable-silent-rules \ |
183de3c2 JR |
642 | --enable-shared \ |
643 | --enable-static \ | |
5b9bde26 | 644 | --with-distro=pld \ |
c75fd19d | 645 | --with-rootprefix="" \ |
4389e6f9 | 646 | --with-rootlibdir=/%{_lib} \ |
c75fd19d JR |
647 | --with-html-dir=%{_gtkdocdir} \ |
648 | --with-pci-ids-path=%{_sysconfdir}/pci.ids \ | |
c75fd19d JR |
649 | --enable-gtk-doc \ |
650 | --enable-introspection \ | |
4389e6f9 | 651 | --enable-split-usr |
e1d9cc15 | 652 | |
ede8d3e5 | 653 | %{__make} |
b77423ae | 654 | ./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon |
ede8d3e5 | 655 | |
656 | %install | |
657 | rm -rf $RPM_BUILD_ROOT | |
c75fd19d | 658 | install -d $RPM_BUILD_ROOT/var/lib/%{name}/coredump \ |
a98a12d9 | 659 | $RPM_BUILD_ROOT{%{_sysconfdir}/{modprobe.d,systemd/system-preset},%{_sbindir}} |
23107006 | 660 | |
ede8d3e5 | 661 | %{__make} install \ |
662 | DESTDIR=$RPM_BUILD_ROOT | |
663 | ||
216f25d7 | 664 | ./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted |
b77423ae | 665 | |
c75fd19d | 666 | # compatibility symlinks to udevd binary |
cbba36f4 JR |
667 | mv $RPM_BUILD_ROOT/lib/{systemd/systemd-,udev/}udevd |
668 | ln -s /lib/udev/udevd $RPM_BUILD_ROOT/lib/systemd/systemd-udevd | |
669 | ln -s /lib/udev/udevd $RPM_BUILD_ROOT%{_sbindir}/udevd | |
c75fd19d JR |
670 | |
671 | # compat symlinks for "/ merged into /usr" programs | |
672 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/udevadm | |
673 | ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT%{_bindir} | |
183de3c2 | 674 | ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/ |
c75fd19d JR |
675 | |
676 | # install custom udev rules from pld package | |
677 | cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules | |
678 | cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules | |
679 | ||
680 | # install udev configs | |
681 | cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf | |
682 | ||
683 | # install udev executables (scripts, helpers, etc.) | |
684 | install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper | |
685 | install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev | |
686 | ||
687 | # install misc udev stuff | |
688 | cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf | |
689 | cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf | |
690 | ||
cbba36f4 | 691 | mv $RPM_BUILD_ROOT%{_mandir}/man8/{systemd-,}udevd.8 |
579cb1fc | 692 | echo ".so man8/udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/systemd-udevd.8 |
c75fd19d JR |
693 | |
694 | %if %{with initrd} | |
695 | install -d $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
183de3c2 JR |
696 | install -p udev-initrd/udevadm $RPM_BUILD_ROOT%{_libdir}/initrd |
697 | install -p udev-initrd/systemd-udevd $RPM_BUILD_ROOT%{_libdir}/initrd | |
698 | # hardlink udevd -> systemd-udevd | |
699 | ln $RPM_BUILD_ROOT%{_libdir}/initrd/{systemd-,}udevd | |
c75fd19d | 700 | ln -s udevd $RPM_BUILD_ROOT%{_libdir}/initrd/udevstart |
183de3c2 JR |
701 | install -p udev-initrd/*_id $RPM_BUILD_ROOT%{_libdir}/initrd/udev |
702 | install -p udev-initrd/collect $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
703 | install -p udev-initrd/mtd_probe $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
c75fd19d JR |
704 | %endif |
705 | ||
4389e6f9 JR |
706 | # Main binary has been moved, but we don't want to break existing installs |
707 | ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd | |
708 | ||
1dcb74bb | 709 | # Create SysV compatibility symlinks. systemctl/systemd are smart |
2a61be78 | 710 | # enough to detect the way they were called |
c28b0c1c | 711 | install -d $RPM_BUILD_ROOT/sbin |
4389e6f9 | 712 | ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init |
1dcb74bb | 713 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt |
714 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff | |
23107006 TP |
715 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot |
716 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel | |
1dcb74bb | 717 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown |
718 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit | |
1dcb74bb | 719 | |
5d32f234 | 720 | ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf |
44410185 JR |
721 | |
722 | # disable redundant SYSV services | |
723 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service | |
4cc1cb1d | 724 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service |
44410185 JR |
725 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service |
726 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service | |
727 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service | |
728 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service | |
5d32f234 | 729 | |
f1586299 | 730 | # add static (non-NetworkManager) networking |
216f25d7 | 731 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service |
f1586299 | 732 | |
d833377f JR |
733 | # restore bind-mounts /var/run -> run and /var/lock -> /run/lock |
734 | # we don't have those directories symlinked | |
870fdd3d JR |
735 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount |
736 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount | |
0e50d607 JR |
737 | ln -s ../var-lock.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants |
738 | ln -s ../var-run.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants | |
d833377f JR |
739 | |
740 | # and remove tmp on tmpfs mount | |
741 | %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/tmp.mount | |
183de3c2 | 742 | %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/tmp.mount |
d833377f | 743 | |
44410185 | 744 | # Install and enable storage subsystems support services (RAID, LVM, etc.) |
216f25d7 ER |
745 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service |
746 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service | |
747 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service | |
50b8f452 | 748 | cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service |
216f25d7 | 749 | install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init |
50b8f452 | 750 | install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp |
44410185 | 751 | |
50b8f452 ER |
752 | ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants |
753 | ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants | |
754 | ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants | |
c3037397 | 755 | |
bb6fb962 JR |
756 | # Install rc-inetd replacement |
757 | cp -p %{SOURCE16} $RPM_BUILD_ROOT/lib/systemd/system-generators/pld-rc-inetd-generator | |
758 | cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdunitdir}/rc-inetd.service | |
759 | ||
a98a12d9 JR |
760 | cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system-preset/default.preset |
761 | ||
216f25d7 ER |
762 | # handled by rc-local sysv service, no need for generator |
763 | %{__rm} $RPM_BUILD_ROOT/lib/systemd/system-generators/systemd-rc-local-generator | |
216f25d7 | 764 | |
2a61be78 TP |
765 | # Make sure these directories are properly owned: |
766 | # - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd, | |
767 | # - syslog _might_ be used by some syslog implementation (none for now), | |
768 | # - isn't dbus populated by dbus-systemd only (so to be moved there)? | |
4cc1cb1d | 769 | install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants |
961baf80 AF |
770 | |
771 | # Create new-style configuration files so that we can ghost-own them | |
70047b34 | 772 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf} |
4bbef33c | 773 | |
9d8b5dfe | 774 | # Install SysV conversion tool for systemd |
4f25b6ac | 775 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir} |
9d8b5dfe BZ |
776 | |
777 | install -d $RPM_BUILD_ROOT/var/log | |
5a65c84e TP |
778 | :> $RPM_BUILD_ROOT/var/log/btmp |
779 | :> $RPM_BUILD_ROOT/var/log/wtmp | |
a761f93e | 780 | |
5d32f234 | 781 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
a86320a6 | 782 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la |
5d32f234 TP |
783 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
784 | ||
ede8d3e5 | 785 | %clean |
786 | rm -rf $RPM_BUILD_ROOT | |
787 | ||
9638c72f | 788 | %post |
4bbef33c | 789 | /bin/systemd-machine-id-setup > /dev/null 2>&1 || : |
9638c72f | 790 | /bin/systemctl daemon-reexec > /dev/null 2>&1 || : |
c3037397 | 791 | |
961baf80 | 792 | %postun |
85879912 | 793 | if [ $1 -ge 1 ]; then |
961baf80 | 794 | /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : |
9638c72f | 795 | fi |
796 | ||
3edd52a6 TP |
797 | %post libs -p /sbin/ldconfig |
798 | %postun libs -p /sbin/ldconfig | |
011bccb6 | 799 | |
961baf80 | 800 | %post units |
85879912 | 801 | if [ $1 -eq 1 ]; then |
961baf80 AF |
802 | # Try to read default runlevel from the old inittab if it exists |
803 | runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null) | |
804 | if [ -z "$runlevel" ] ; then | |
4cc1cb1d | 805 | target="%{systemdunitdir}/graphical.target" |
961baf80 | 806 | else |
4cc1cb1d | 807 | target="%{systemdunitdir}/runlevel$runlevel.target" |
961baf80 AF |
808 | fi |
809 | ||
810 | # And symlink what we found to the new-style default.target | |
f341cd9b | 811 | ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
cf819365 JR |
812 | |
813 | # Setup hostname | |
814 | [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network | |
815 | if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then | |
816 | [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave | |
817 | echo $HOSTNAME > /etc/hostname | |
818 | chmod 644 /etc/hostname | |
819 | fi | |
44410185 JR |
820 | |
821 | # Enable the services we install by default. | |
822 | /bin/systemctl enable \ | |
823 | getty@.service \ | |
824 | network.service \ | |
825 | remote-fs.target \ | |
826 | systemd-readahead-replay.service \ | |
cbba36f4 JR |
827 | systemd-readahead-collect.service \ |
828 | systemd-udev-settle.service >/dev/null 2>&1 || : | |
9638c72f | 829 | fi |
c3037397 ER |
830 | |
831 | %preun units | |
961baf80 AF |
832 | if [ $1 -eq 0 ] ; then |
833 | /bin/systemctl disable \ | |
834 | getty@.service \ | |
f1586299 | 835 | network.service \ |
961baf80 AF |
836 | remote-fs.target \ |
837 | systemd-readahead-replay.service \ | |
cbba36f4 JR |
838 | systemd-readahead-collect.service \ |
839 | systemd-udev-settle.service >/dev/null 2>&1 || : | |
961baf80 | 840 | |
f341cd9b | 841 | %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
c3037397 | 842 | fi |
9638c72f | 843 | |
961baf80 | 844 | %postun units |
85879912 | 845 | if [ $1 -ge 1 ]; then |
9638c72f | 846 | /bin/systemctl daemon-reload > /dev/null 2>&1 || : |
847 | fi | |
848 | ||
2386bcb6 | 849 | %triggerpostun units -- systemd-units < 43-7 |
44410185 | 850 | # Remove design fialures |
cbba36f4 JR |
851 | %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || : |
852 | %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service >/dev/null 2>&1 || : | |
853 | %{__rm} -f %{_sysconfdir}/systemd/system/multi-user.target.wants/network-post.service >/dev/null 2>&1 || : | |
f3877668 | 854 | /bin/systemctl reenable network.service >/dev/null 2>&1 || : |
44410185 | 855 | |
cde7998d | 856 | %triggerpostun units -- systemd-units < 1:183 |
cbba36f4 JR |
857 | /bin/systemctl --quiet enable systemd-udev-settle.service >/dev/null 2>&1 || : |
858 | %{__rm} -f /etc/systemd/system/basic.target.wants/udev-settle.service >/dev/null 2>&1 || : | |
6f109eab JR |
859 | # preserve renamed configs |
860 | if [ -f /etc/systemd/systemd-journald.conf.rpmsave ]; then | |
861 | %{__mv} /etc/systemd/journald.conf{,.rpmnew} | |
862 | %{__mv} -f /etc/systemd/systemd-journald.conf.rpmsave /etc/systemd/journald.conf | |
863 | fi | |
864 | if [ -f /etc/systemd/systemd-logind.conf.rpmsave ]; then | |
865 | %{__mv} /etc/systemd/logind.conf{,.rpmnew} | |
866 | %{__mv} -f /etc/systemd/systemd-logind.conf.rpmsave /etc/systemd/logind.conf | |
867 | fi | |
cbba36f4 | 868 | |
a98a12d9 JR |
869 | %triggerpostun units -- systemd-units < 1:187-3 |
870 | if [ -f /etc/sysconfig/rpm ]; then | |
871 | . /etc/sysconfig/rpm | |
872 | if [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ]; then | |
873 | echo "disable *" >>%{_sysconfdir}/systemd/system-preset/default.preset | |
874 | fi | |
875 | fi | |
876 | ||
bb6fb962 JR |
877 | %post inetd |
878 | %systemd_reload | |
f96cfa86 JR |
879 | # Do not change it to restart, we only want to start new services here |
880 | %systemd_service_start sockets.target | |
bb6fb962 JR |
881 | |
882 | %postun inetd | |
883 | %systemd_reload | |
884 | ||
30121190 JR |
885 | %triggerpostun -n udev-core -- dev |
886 | if [ "$2" = 0 ]; then | |
887 | # need to kill and restart udevd as after obsoleting dev package the | |
888 | # /dev tree will remain empty. umask is needed as otherwise udev will | |
889 | # create devices with strange permissions (udev bug probably) | |
890 | umask 000 | |
891 | /sbin/start_udev || exit 0 | |
892 | fi | |
893 | ||
894 | %triggerpostun -n udev-core -- udev < 108 | |
895 | %{__sed} -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules | |
896 | %if "%{_lib}" != "lib" | |
897 | %{__sed} -i -e 's#/%{_lib}/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules | |
898 | %endif | |
899 | ||
900 | %triggerpostun -n udev-core -- udev < 165 | |
901 | /sbin/udevadm info --convert-db | |
902 | ||
30121190 JR |
903 | %post -n udev-core |
904 | if [ $1 -gt 1 ]; then | |
905 | if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then | |
906 | if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then | |
907 | /sbin/udevadm control --exit | |
ac4b515a | 908 | /lib/udev/udevd --daemon |
30121190 JR |
909 | fi |
910 | else | |
911 | SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \ | |
2bf49637 | 912 | /bin/systemctl --quiet try-restart systemd-udevd.service || : |
30121190 JR |
913 | fi |
914 | fi | |
30121190 JR |
915 | |
916 | %postun -n udev-core | |
cbba36f4 JR |
917 | if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then |
918 | SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \ | |
919 | /bin/systemctl --quiet daemon-reload || : | |
920 | fi | |
30121190 JR |
921 | |
922 | %post -n udev-libs -p /sbin/ldconfig | |
923 | %postun -n udev-libs -p /sbin/ldconfig | |
924 | ||
925 | %post -n udev-glib -p /sbin/ldconfig | |
926 | %postun -n udev-glib -p /sbin/ldconfig | |
927 | ||
ede8d3e5 | 928 | %files |
929 | %defattr(644,root,root,755) | |
1c239f8b | 930 | %doc DISTRO_PORTING README TODO |
6e34428f | 931 | /etc/dbus-1/system.d/org.freedesktop.hostname1.conf |
961baf80 AF |
932 | /etc/dbus-1/system.d/org.freedesktop.locale1.conf |
933 | /etc/dbus-1/system.d/org.freedesktop.login1.conf | |
c3037397 | 934 | /etc/dbus-1/system.d/org.freedesktop.systemd1.conf |
961baf80 | 935 | /etc/dbus-1/system.d/org.freedesktop.timedate1.conf |
3edd52a6 | 936 | %ghost %config(noreplace) %{_sysconfdir}/machine-id |
b77423ae AF |
937 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname |
938 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf | |
939 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info | |
b77423ae AF |
940 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone |
941 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf | |
c75fd19d JR |
942 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journald.conf |
943 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/logind.conf | |
944 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf | |
945 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/user.conf | |
2a61be78 | 946 | %dir %{_sysconfdir}/systemd/user |
44410185 JR |
947 | %dir %{_sysconfdir}/systemd/system/*.target.wants |
948 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.service | |
949 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.target | |
abd479ee | 950 | /etc/xdg/systemd |
c75fd19d JR |
951 | %attr(755,root,root) /bin/journalctl |
952 | %attr(755,root,root) /bin/loginctl | |
1dcb74bb | 953 | %attr(755,root,root) /bin/systemd |
954 | %attr(755,root,root) /bin/systemd-ask-password | |
c75fd19d | 955 | %attr(755,root,root) /bin/systemd-inhibit |
7a76bc86 | 956 | %attr(755,root,root) /bin/systemd-machine-id-setup |
1dcb74bb | 957 | %attr(755,root,root) /bin/systemd-notify |
958 | %attr(755,root,root) /bin/systemd-tty-ask-password-agent | |
d374e721 JR |
959 | %attr(755,root,root) %{_bindir}/systemd-cat |
960 | %attr(755,root,root) %{_bindir}/systemd-cgtop | |
23107006 | 961 | %attr(755,root,root) %{_bindir}/systemd-cgls |
c75fd19d JR |
962 | %attr(755,root,root) %{_bindir}/systemd-delta |
963 | %attr(755,root,root) %{_bindir}/systemd-detect-virt | |
57cd0d13 ZU |
964 | %attr(755,root,root) %{_bindir}/systemd-nspawn |
965 | %attr(755,root,root) %{_bindir}/systemd-stdio-bridge | |
2a61be78 | 966 | %attr(755,root,root) %{_bindir}/systemd-sysv-convert |
8a78a3e8 | 967 | %attr(755,root,root) /lib/systemd/pld-clean-tmp |
44410185 | 968 | %attr(755,root,root) /lib/systemd/pld-storage-init |
c75fd19d JR |
969 | %attr(755,root,root) /lib/systemd/systemd-ac-power |
970 | %attr(755,root,root) /lib/systemd/systemd-binfmt | |
971 | %attr(755,root,root) /lib/systemd/systemd-cgroups-agent | |
972 | %attr(755,root,root) /lib/systemd/systemd-coredump | |
973 | %attr(755,root,root) /lib/systemd/systemd-cryptsetup | |
974 | %attr(755,root,root) /lib/systemd/systemd-fsck | |
975 | %attr(755,root,root) /lib/systemd/systemd-hostnamed | |
976 | %attr(755,root,root) /lib/systemd/systemd-initctl | |
977 | %attr(755,root,root) /lib/systemd/systemd-journald | |
978 | %attr(755,root,root) /lib/systemd/systemd-localed | |
979 | %attr(755,root,root) /lib/systemd/systemd-logind | |
980 | %attr(755,root,root) /lib/systemd/systemd-modules-load | |
981 | %attr(755,root,root) /lib/systemd/systemd-multi-seat-x | |
982 | %attr(755,root,root) /lib/systemd/systemd-quotacheck | |
983 | %attr(755,root,root) /lib/systemd/systemd-random-seed | |
4400c575 | 984 | %attr(755,root,root) /lib/systemd/systemd-readahead |
c75fd19d JR |
985 | %attr(755,root,root) /lib/systemd/systemd-remount-fs |
986 | %attr(755,root,root) /lib/systemd/systemd-reply-password | |
987 | %attr(755,root,root) /lib/systemd/systemd-shutdown | |
988 | %attr(755,root,root) /lib/systemd/systemd-shutdownd | |
989 | %attr(755,root,root) /lib/systemd/systemd-sleep | |
990 | %attr(755,root,root) /lib/systemd/systemd-sysctl | |
991 | %attr(755,root,root) /lib/systemd/systemd-timedated | |
992 | %attr(755,root,root) /lib/systemd/systemd-timestamp | |
cbba36f4 | 993 | %attr(755,root,root) /lib/systemd/systemd-udevd |
c75fd19d JR |
994 | %attr(755,root,root) /lib/systemd/systemd-update-utmp |
995 | %attr(755,root,root) /lib/systemd/systemd-user-sessions | |
996 | %attr(755,root,root) /lib/systemd/systemd-vconsole-setup | |
c3037397 | 997 | %dir /lib/systemd/system-generators |
4389e6f9 | 998 | %attr(755,root,root) /lib/systemd/systemd |
5d32f234 | 999 | %attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator |
1c239f8b | 1000 | /lib/udev/rules.d/99-systemd.rules |
961baf80 AF |
1001 | /lib/udev/rules.d/70-uaccess.rules |
1002 | /lib/udev/rules.d/71-seat.rules | |
1003 | /lib/udev/rules.d/73-seat-late.rules | |
3edd52a6 TP |
1004 | %dir %{_libexecdir}/systemd |
1005 | %{_libexecdir}/systemd/user | |
2a61be78 | 1006 | %dir %{_libexecdir}/systemd/user-generators |
c7a423d8 JR |
1007 | %{_libexecdir}/tmpfiles.d/legacy.conf |
1008 | %{_libexecdir}/tmpfiles.d/systemd.conf | |
1009 | %{_libexecdir}/tmpfiles.d/tmp.conf | |
1010 | %{_libexecdir}/tmpfiles.d/x11.conf | |
961baf80 AF |
1011 | %{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml |
1012 | %{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml | |
c3037397 | 1013 | %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml |
961baf80 | 1014 | %{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml |
1c239f8b | 1015 | %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service |
6e34428f | 1016 | %{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service |
961baf80 AF |
1017 | %{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service |
1018 | %{_datadir}/dbus-1/system-services/org.freedesktop.login1.service | |
1c239f8b | 1019 | %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service |
961baf80 | 1020 | %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service |
6e34428f | 1021 | %{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy |
961baf80 AF |
1022 | %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy |
1023 | %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy | |
1024 | %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy | |
1025 | %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy | |
1026 | %dir %{_datadir}/systemd | |
1027 | %{_datadir}/systemd/kbd-model-map | |
c75fd19d JR |
1028 | %{_mandir}/man1/journalctl.1* |
1029 | %{_mandir}/man1/loginctl.1* | |
7a76bc86 | 1030 | %{_mandir}/man1/systemd.1* |
c75fd19d JR |
1031 | %{_mandir}/man1/systemd-ask-password.1* |
1032 | %{_mandir}/man1/systemd-cat.1* | |
1033 | %{_mandir}/man1/systemd-cgls.1* | |
1034 | %{_mandir}/man1/systemd-cgtop.1* | |
1035 | %{_mandir}/man1/systemd-delta.1* | |
1036 | %{_mandir}/man1/systemd-detect-virt.1* | |
1037 | %{_mandir}/man1/systemd-inhibit.1* | |
1038 | %{_mandir}/man1/systemd-machine-id-setup.1* | |
1039 | %{_mandir}/man1/systemd-notify.1* | |
1040 | %{_mandir}/man1/systemd-nspawn.1* | |
4400c575 | 1041 | %{_mandir}/man1/systemd-tty-ask-password-agent.1* |
6e34428f | 1042 | %{_mandir}/man5/binfmt.d.5* |
4400c575 JR |
1043 | # cfl with rc-scripts |
1044 | #%{_mandir}/man5/crypttab.5* | |
1c239f8b | 1045 | %{_mandir}/man5/hostname.5* |
c75fd19d | 1046 | %{_mandir}/man5/journald.conf.5* |
1c239f8b | 1047 | %{_mandir}/man5/locale.conf.5* |
c75fd19d | 1048 | %{_mandir}/man5/logind.conf.5* |
7a76bc86 | 1049 | %{_mandir}/man5/machine-id.5* |
6e34428f | 1050 | %{_mandir}/man5/machine-info.5* |
1c239f8b | 1051 | %{_mandir}/man5/modules-load.d.5* |
1052 | %{_mandir}/man5/os-release.5* | |
6e34428f | 1053 | %{_mandir}/man5/sysctl.d.5* |
89d58574 | 1054 | %{_mandir}/man5/systemd.*.5* |
961baf80 | 1055 | %{_mandir}/man5/timezone.5* |
23107006 | 1056 | %{_mandir}/man5/vconsole.conf.5* |
4400c575 | 1057 | %{_mandir}/man7/bootup.7* |
1c239f8b | 1058 | %{_mandir}/man7/daemon.7* |
4400c575 | 1059 | %{_mandir}/man7/kernel-command-line.7* |
c75fd19d | 1060 | %{_mandir}/man7/systemd.journal-fields.7* |
4400c575 | 1061 | %{_mandir}/man7/systemd.special.7* |
4f1f9baf | 1062 | %{_mandir}/man8/systemd-binfmt.8* |
4400c575 JR |
1063 | %{_mandir}/man8/systemd-cryptsetup-generator.8* |
1064 | %{_mandir}/man8/systemd-fstab-generator.8* | |
1065 | %{_mandir}/man8/systemd-getty-generator.8* | |
1066 | %{_mandir}/man8/systemd-hostnamed.8* | |
1067 | %{_mandir}/man8/systemd-initctl.8* | |
4f1f9baf | 1068 | %{_mandir}/man8/systemd-journald.8* |
4400c575 | 1069 | %{_mandir}/man8/systemd-localed.8* |
4f1f9baf | 1070 | %{_mandir}/man8/systemd-logind.8* |
4f1f9baf | 1071 | %{_mandir}/man8/systemd-modules-load.8* |
4400c575 JR |
1072 | %{_mandir}/man8/systemd-quotacheck.8* |
1073 | %{_mandir}/man8/systemd-random-seed.8* | |
1074 | %{_mandir}/man8/systemd-readahead.8* | |
1075 | %{_mandir}/man8/systemd-remount-fs.8* | |
1076 | %{_mandir}/man8/systemd-shutdown.8* | |
1077 | %{_mandir}/man8/systemd-shutdownd.8* | |
1078 | %{_mandir}/man8/systemd-sleep.8* | |
4f1f9baf | 1079 | %{_mandir}/man8/systemd-sysctl.8* |
4400c575 JR |
1080 | %{_mandir}/man8/systemd-system-update-generator.8* |
1081 | %{_mandir}/man8/systemd-timedated.8* | |
cbba36f4 | 1082 | %{_mandir}/man8/systemd-udevd.8* |
4400c575 JR |
1083 | %{_mandir}/man8/systemd-update-utmp.8* |
1084 | %{_mandir}/man8/systemd-user-sessions.8* | |
1085 | %{_mandir}/man8/systemd-vconsole-setup.8* | |
24f95219 ER |
1086 | %dir /var/lib/%{name} |
1087 | %dir /var/lib/%{name}/coredump | |
a761f93e TP |
1088 | %attr(640,root,root) %ghost /var/log/btmp |
1089 | %attr(664,root,utmp) %ghost /var/log/wtmp | |
c3037397 | 1090 | |
6c89bbd4 | 1091 | %if %{with pam} |
a86320a6 | 1092 | %attr(755,root,root) /%{_lib}/security/pam_systemd.so |
6c89bbd4 ER |
1093 | %{_mandir}/man8/pam_systemd.8* |
1094 | %endif | |
1095 | ||
c97dacdd | 1096 | %files init |
5b9bde26 | 1097 | %defattr(644,root,root,755) |
c97dacdd TP |
1098 | %attr(755,root,root) /sbin/halt |
1099 | %attr(755,root,root) /sbin/init | |
1100 | %attr(755,root,root) /sbin/poweroff | |
1101 | %attr(755,root,root) /sbin/reboot | |
1102 | %attr(755,root,root) /sbin/runlevel | |
1103 | %attr(755,root,root) /sbin/shutdown | |
1104 | %attr(755,root,root) /sbin/telinit | |
1105 | %{_mandir}/man1/init.1 | |
1106 | %{_mandir}/man8/halt.8* | |
1107 | %{_mandir}/man8/poweroff.8 | |
1108 | %{_mandir}/man8/reboot.8 | |
1109 | %{_mandir}/man8/runlevel.8* | |
1110 | %{_mandir}/man8/shutdown.8* | |
1111 | %{_mandir}/man8/telinit.8* | |
1112 | ||
c3037397 ER |
1113 | %files units |
1114 | %defattr(644,root,root,755) | |
abd479ee MB |
1115 | %dir %{_sysconfdir}/binfmt.d |
1116 | %dir %{_sysconfdir}/modules-load.d | |
5d32f234 | 1117 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf |
abd479ee | 1118 | %dir %{_sysconfdir}/sysctl.d |
c3037397 ER |
1119 | %dir %{_sysconfdir}/systemd |
1120 | %dir %{_sysconfdir}/systemd/system | |
a98a12d9 JR |
1121 | %dir %{_sysconfdir}/systemd/system-preset |
1122 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system-preset/default.preset | |
c3037397 | 1123 | %dir %{_sysconfdir}/tmpfiles.d |
85879912 ER |
1124 | %dir %{_libexecdir}/binfmt.d |
1125 | %dir %{_libexecdir}/modules-load.d | |
1126 | %dir %{_libexecdir}/sysctl.d | |
828362e7 | 1127 | %dir /lib/systemd/system-shutdown |
3be4738a JR |
1128 | # Don't package the kernel.core_pattern setting until systemd-coredump |
1129 | # is a part of an actual systemd release and it's made clear how to | |
1130 | # get the core dumps out of the journal. | |
1131 | #%{_libexecdir}/sysctl.d/coredump.conf | |
c3037397 ER |
1132 | %attr(755,root,root) /bin/systemctl |
1133 | %attr(755,root,root) /bin/systemd-tmpfiles | |
b77423ae | 1134 | %attr(755,root,root) /bin/systemd_booted |
c3037397 | 1135 | %{_mandir}/man1/systemctl.1* |
89d58574 | 1136 | %{_mandir}/man5/tmpfiles.d.5* |
c3037397 | 1137 | %{_mandir}/man8/systemd-tmpfiles.8* |
961baf80 | 1138 | %{_npkgconfigdir}/systemd.pc |
c3037397 | 1139 | |
4cc1cb1d ER |
1140 | %{systemdunitdir}/*.automount |
1141 | %{systemdunitdir}/*.mount | |
1142 | %{systemdunitdir}/*.path | |
1143 | %{systemdunitdir}/*.service | |
1144 | %{systemdunitdir}/*.socket | |
1145 | %{systemdunitdir}/*.target | |
1146 | %{systemdunitdir}/*.timer | |
e4c66821 JB |
1147 | %dir %{systemdunitdir}/basic.target.wants |
1148 | %dir %{systemdunitdir}/dbus.target.wants | |
1149 | %dir %{systemdunitdir}/final.target.wants | |
1150 | %dir %{systemdunitdir}/graphical.target.wants | |
1151 | %dir %{systemdunitdir}/halt.target.wants | |
1152 | %dir %{systemdunitdir}/kexec.target.wants | |
1153 | %dir %{systemdunitdir}/local-fs.target.wants | |
1154 | %dir %{systemdunitdir}/multi-user.target.wants | |
1155 | %dir %{systemdunitdir}/poweroff.target.wants | |
1156 | %dir %{systemdunitdir}/reboot.target.wants | |
1157 | %dir %{systemdunitdir}/runlevel[12345].target.wants | |
1158 | %dir %{systemdunitdir}/shutdown.target.wants | |
1159 | %dir %{systemdunitdir}/sockets.target.wants | |
1160 | %dir %{systemdunitdir}/sysinit.target.wants | |
1161 | %dir %{systemdunitdir}/syslog.target.wants | |
c7a423d8 JR |
1162 | %{systemdunitdir}/basic.target.wants/* |
1163 | %{systemdunitdir}/final.target.wants/* | |
1164 | %{systemdunitdir}/graphical.target.wants/* | |
1165 | %{systemdunitdir}/local-fs.target.wants/* | |
1166 | %{systemdunitdir}/multi-user.target.wants/getty.target | |
1167 | %{systemdunitdir}/multi-user.target.wants/rc-local.service | |
1168 | %{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path | |
1169 | %{systemdunitdir}/multi-user.target.wants/systemd-logind.service | |
1170 | %{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service | |
1171 | %{systemdunitdir}/runlevel[12345].target.wants/* | |
1172 | %{systemdunitdir}/shutdown.target.wants/* | |
1173 | %{systemdunitdir}/sockets.target.wants/* | |
1174 | %{?with_cryptsetup:%{systemdunitdir}/sysinit.target.wants/cryptsetup.target} | |
1175 | %{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount | |
1176 | %{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount | |
1177 | %{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount | |
1178 | %{systemdunitdir}/sysinit.target.wants/sys-*.mount | |
1179 | %{systemdunitdir}/sysinit.target.wants/systemd-* | |
4400c575 JR |
1180 | %{_mandir}/man8/systemd-ask-password-console.path.8* |
1181 | %{_mandir}/man8/systemd-ask-password-console.service.8* | |
1182 | %{_mandir}/man8/systemd-ask-password-wall.path.8* | |
1183 | %{_mandir}/man8/systemd-ask-password-wall.service.8* | |
1184 | %{_mandir}/man8/systemd-binfmt.service.8* | |
1185 | %{_mandir}/man8/systemd-cryptsetup.8* | |
1186 | %{_mandir}/man8/systemd-cryptsetup@.service.8* | |
1187 | %{_mandir}/man8/systemd-fsck-root.service.8* | |
1188 | %{_mandir}/man8/systemd-fsck@.service.8* | |
1189 | %{_mandir}/man8/systemd-halt.service.8* | |
1190 | %{_mandir}/man8/systemd-hibernate.service.8* | |
1191 | %{_mandir}/man8/systemd-hostnamed.service.8* | |
1192 | %{_mandir}/man8/systemd-initctl.service.8* | |
1193 | %{_mandir}/man8/systemd-initctl.socket.8* | |
1194 | %{_mandir}/man8/systemd-journald.service.8* | |
1195 | %{_mandir}/man8/systemd-journald.socket.8* | |
1196 | %{_mandir}/man8/systemd-kexec.service.8* | |
1197 | %{_mandir}/man8/systemd-localed.service.8* | |
1198 | %{_mandir}/man8/systemd-logind.service.8* | |
1199 | %{_mandir}/man8/systemd-modules-load.service.8* | |
1200 | %{_mandir}/man8/systemd-poweroff.service.8* | |
1201 | %{_mandir}/man8/systemd-quotacheck.service.8* | |
1202 | %{_mandir}/man8/systemd-random-seed-load.service.8* | |
1203 | %{_mandir}/man8/systemd-random-seed-save.service.8* | |
1204 | %{_mandir}/man8/systemd-readahead-collect.service.8* | |
1205 | %{_mandir}/man8/systemd-readahead-done.service.8* | |
1206 | %{_mandir}/man8/systemd-readahead-done.timer.8* | |
1207 | %{_mandir}/man8/systemd-readahead-replay.service.8* | |
1208 | %{_mandir}/man8/systemd-reboot.service.8* | |
1209 | %{_mandir}/man8/systemd-remount-fs.service.8* | |
1210 | %{_mandir}/man8/systemd-shutdownd.service.8* | |
1211 | %{_mandir}/man8/systemd-shutdownd.socket.8* | |
1212 | %{_mandir}/man8/systemd-suspend.service.8* | |
1213 | %{_mandir}/man8/systemd-sysctl.service.8* | |
1214 | %{_mandir}/man8/systemd-timedated.service.8* | |
1215 | %{_mandir}/man8/systemd-tmpfiles-clean.service.8* | |
1216 | %{_mandir}/man8/systemd-tmpfiles-clean.timer.8* | |
1217 | %{_mandir}/man8/systemd-tmpfiles-setup.service.8* | |
1218 | %{_mandir}/man8/systemd-udevd.service.8* | |
1219 | %{_mandir}/man8/systemd-update-utmp-runlevel.service.8* | |
1220 | %{_mandir}/man8/systemd-update-utmp-shutdown.service.8* | |
1221 | %{_mandir}/man8/systemd-user-sessions.service.8* | |
1222 | %{_mandir}/man8/systemd-vconsole-setup.service.8* | |
e4c66821 | 1223 | |
bb6fb962 JR |
1224 | %files inetd |
1225 | %defattr(644,root,root,755) | |
1226 | %attr(755,root,root) /lib/systemd/system-generators/pld-rc-inetd-generator | |
1227 | %{systemdunitdir}/rc-inetd.service | |
1228 | ||
4e5e9c32 ER |
1229 | %files analyze |
1230 | %defattr(644,root,root,755) | |
1231 | %attr(755,root,root) %{_bindir}/systemd-analyze | |
4400c575 | 1232 | %{_mandir}/man1/systemd-analyze.1* |
4e5e9c32 | 1233 | |
5b9bde26 | 1234 | %files libs |
6c89bbd4 | 1235 | %defattr(644,root,root,755) |
6ba1f779 MB |
1236 | %attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.* |
1237 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0 | |
1238 | %attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.* | |
1239 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0 | |
1240 | %attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.* | |
1241 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0 | |
1242 | %attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.* | |
1243 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0 | |
961baf80 AF |
1244 | |
1245 | %files devel | |
1246 | %defattr(644,root,root,755) | |
89d58574 | 1247 | %attr(755,root,root) %{_libdir}/libsystemd-daemon.so |
c76a8951 BZ |
1248 | %attr(755,root,root) %{_libdir}/libsystemd-id128.so |
1249 | %attr(755,root,root) %{_libdir}/libsystemd-journal.so | |
89d58574 | 1250 | %attr(755,root,root) %{_libdir}/libsystemd-login.so |
5b9bde26 | 1251 | %{_includedir}/%{name} |
961baf80 | 1252 | %{_pkgconfigdir}/libsystemd-daemon.pc |
c76a8951 BZ |
1253 | %{_pkgconfigdir}/libsystemd-id128.pc |
1254 | %{_pkgconfigdir}/libsystemd-journal.pc | |
961baf80 | 1255 | %{_pkgconfigdir}/libsystemd-login.pc |
ab590cee JR |
1256 | %{_mandir}/man3/SD_*.3* |
1257 | %{_mandir}/man3/sd*.3* | |
5b9bde26 JB |
1258 | |
1259 | %files -n bash-completion-systemd | |
1260 | %defattr(644,root,root,755) | |
391eea76 | 1261 | /etc/bash_completion.d/systemd-bash-completion.sh |
ae4d0acb | 1262 | |
30121190 JR |
1263 | %files -n udev |
1264 | %defattr(644,root,root,755) | |
1265 | %dev(c,1,3) %attr(666,root,root) /dev/null | |
1266 | %dev(c,5,1) %attr(660,root,console) /dev/console | |
1267 | %dev(c,1,5) %attr(666,root,root) /dev/zero | |
1268 | ||
1269 | %files -n udev-core | |
1270 | %defattr(644,root,root,755) | |
30121190 | 1271 | |
183de3c2 | 1272 | /usr/lib/udev |
30121190 | 1273 | |
30121190 JR |
1274 | %attr(755,root,root) /lib/udev/collect |
1275 | ||
1276 | %attr(755,root,root) /lib/udev/keyboard-force-release.sh | |
1277 | ||
1278 | %attr(755,root,root) /lib/udev/net_helper | |
1279 | ||
1280 | %attr(755,root,root) /lib/udev/ata_id | |
1281 | %attr(755,root,root) /lib/udev/cdrom_id | |
1282 | %attr(755,root,root) /lib/udev/mtd_probe | |
1283 | %attr(755,root,root) /lib/udev/scsi_id | |
1284 | %attr(755,root,root) /lib/udev/v4l_id | |
1285 | ||
1286 | %attr(755,root,root) /lib/udev/udevd | |
1287 | ||
1288 | %attr(755,root,root) /lib/udev/keymap | |
1289 | %dir /lib/udev/keymaps | |
1290 | /lib/udev/keymaps/* | |
1291 | ||
1292 | %attr(755,root,root) /lib/udev/accelerometer | |
1293 | %attr(755,root,root) /lib/udev/findkeyboards | |
1294 | ||
1295 | %attr(755,root,root) %{_sbindir}/start_udev | |
1296 | %attr(755,root,root) %{_sbindir}/udevd | |
1297 | %attr(755,root,root) %{_sbindir}/udevadm | |
1298 | %attr(755,root,root) %{_bindir}/udevadm | |
1299 | ||
1300 | %dir %{_sysconfdir}/udev | |
1301 | %dir %{_sysconfdir}/udev/rules.d | |
1302 | ||
1303 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/fbdev-blacklist.conf | |
1304 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/udev_blacklist.conf | |
1305 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf | |
1306 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules | |
1307 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules | |
1308 | ||
1309 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf | |
1310 | ||
1311 | # rules below are NOT supposed to be changed by users | |
1312 | /lib/udev/rules.d/42-usb-hid-pm.rules | |
1313 | /lib/udev/rules.d/50-udev-default.rules | |
1314 | /lib/udev/rules.d/60-cdrom_id.rules | |
30121190 JR |
1315 | /lib/udev/rules.d/60-persistent-alsa.rules |
1316 | /lib/udev/rules.d/60-persistent-input.rules | |
1317 | /lib/udev/rules.d/60-persistent-serial.rules | |
1318 | /lib/udev/rules.d/60-persistent-storage-tape.rules | |
1319 | /lib/udev/rules.d/60-persistent-storage.rules | |
1320 | /lib/udev/rules.d/60-persistent-v4l.rules | |
1321 | /lib/udev/rules.d/61-accelerometer.rules | |
4f1f9baf | 1322 | /lib/udev/rules.d/70-power-switch.rules |
30121190 JR |
1323 | /lib/udev/rules.d/75-net-description.rules |
1324 | /lib/udev/rules.d/75-probe_mtd.rules | |
1325 | /lib/udev/rules.d/75-tty-description.rules | |
1326 | /lib/udev/rules.d/78-sound-card.rules | |
1327 | /lib/udev/rules.d/80-drivers.rules | |
1328 | /lib/udev/rules.d/95-keyboard-force-release.rules | |
1329 | /lib/udev/rules.d/95-keymap.rules | |
1330 | /lib/udev/rules.d/95-udev-late.rules | |
1331 | ||
1332 | %{_mandir}/man7/udev.7* | |
c75fd19d JR |
1333 | %{_mandir}/man8/udevadm.8* |
1334 | %{_mandir}/man8/udevd.8* | |
1335 | ||
30121190 JR |
1336 | %files -n udev-libs |
1337 | %defattr(644,root,root,755) | |
1338 | %attr(755,root,root) /%{_lib}/libudev.so.*.*.* | |
c75fd19d | 1339 | %attr(755,root,root) %ghost /%{_lib}/libudev.so.1 |
30121190 JR |
1340 | |
1341 | %files -n udev-devel | |
1342 | %defattr(644,root,root,755) | |
1343 | %attr(755,root,root) %{_libdir}/libudev.so | |
30121190 JR |
1344 | %{_includedir}/libudev.h |
1345 | %{_pkgconfigdir}/libudev.pc | |
1346 | %{_npkgconfigdir}/udev.pc | |
1347 | ||
1348 | %files -n udev-static | |
1349 | %defattr(644,root,root,755) | |
1350 | %attr(755,root,root) %{_libdir}/libudev.a | |
1351 | ||
1352 | %files -n udev-apidocs | |
1353 | %defattr(644,root,root,755) | |
1354 | %{_gtkdocdir}/libudev | |
1355 | ||
1356 | %files -n udev-glib | |
1357 | %defattr(644,root,root,755) | |
1358 | %attr(755,root,root) /%{_lib}/libgudev-1.0.so.*.*.* | |
1359 | %attr(755,root,root) %ghost /%{_lib}/libgudev-1.0.so.0 | |
1360 | %{_libdir}/girepository-1.0/GUdev-1.0.typelib | |
1361 | ||
1362 | %files -n udev-glib-devel | |
1363 | %defattr(644,root,root,755) | |
1364 | %attr(755,root,root) %{_libdir}/libgudev-1.0.so | |
30121190 JR |
1365 | %{_includedir}/gudev-1.0 |
1366 | %{_pkgconfigdir}/gudev-1.0.pc | |
1367 | %{_datadir}/gir-1.0/GUdev-1.0.gir | |
1368 | ||
1369 | %files -n udev-glib-static | |
1370 | %defattr(644,root,root,755) | |
1371 | %attr(755,root,root) %{_libdir}/libgudev-1.0.a | |
1372 | ||
1373 | %files -n udev-glib-apidocs | |
1374 | %defattr(644,root,root,755) | |
1375 | %{_gtkdocdir}/gudev | |
1376 | ||
1377 | %if %{with initrd} | |
1378 | %files -n udev-initrd | |
1379 | %defattr(644,root,root,755) | |
1380 | %dir %{_libdir}/initrd/udev | |
183de3c2 | 1381 | %attr(755,root,root) %{_libdir}/initrd/systemd-udevd |
30121190 JR |
1382 | %attr(755,root,root) %{_libdir}/initrd/udevd |
1383 | %attr(755,root,root) %{_libdir}/initrd/udevadm | |
1384 | %attr(755,root,root) %{_libdir}/initrd/udevstart | |
1385 | %attr(755,root,root) %{_libdir}/initrd/udev/*_id | |
1386 | %attr(755,root,root) %{_libdir}/initrd/udev/collect | |
183de3c2 | 1387 | %attr(755,root,root) %{_libdir}/initrd/udev/mtd_probe |
30121190 | 1388 | %endif |