]> git.pld-linux.org Git - packages/systemd.git/blame - systemd.spec
do not inherit $HOSTNAME when setting up /etc/hostname in systemd-units post scriptlet
[packages/systemd.git] / systemd.spec
CommitLineData
d374e721 1# TODO:
d1ac392b 2# - consider providing the factory files via appropriate packages (setup, pam)
a4981830 3# - merge rpm macros provided by systemd with ours
63dba220
ER
4# - handle udev package removal:
5# - http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-March/023852.html
6# - restore (write) sane value for kernel.hotplug, i.e from rc-scripts: sysctl -q -e -w kernel.hotplug=/lib/firmware/firmware-loader.sh
47f64e1e
ER
7# - dev->udev upgrade:
8# - /dev/urandom remains missing, not created with start_udev anymore
d374e721 9#
c3037397 10# Conditional build:
6c89bbd4
ER
11%bcond_without audit # without audit support
12%bcond_without cryptsetup # without cryptsetup support
f5bd7642 13%bcond_without microhttpd # use microhttpd for network journal access
23107006 14%bcond_without pam # PAM authentication support
f8d07093 15%bcond_without qrencode # QRencode support
23107006
TP
16%bcond_without selinux # without SELinux support
17%bcond_without tcpd # libwrap (tcp_wrappers) support
bb76a18a 18%bcond_with tests # "make check" (requires systemd already installed)
9c0b975d 19
c3037397 20Summary: A System and Service Manager
ede8d3e5 21Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
22Name: systemd
30121190 23# Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
7edc5189 24Version: 220
4505f4b8 25Release: 0.2
30121190 26Epoch: 1
e03b3ba9 27License: GPL v2+ (udev), LGPL v2.1+ (the rest)
ede8d3e5 28Group: Base
440d1d13 29Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
7edc5189 30# Source0-md5: 60acd92b04c0f5faa806678abd433014
4f25b6ac 31Source1: %{name}-sysv-convert
b0980573 32Source2: %{name}_booted.c
a3a953ae 33Source3: network.service
870fdd3d
JR
34Source4: var-lock.mount
35Source5: var-run.mount
44410185
JR
36Source10: pld-storage-init-late.service
37Source11: pld-storage-init.service
38Source12: pld-wait-storage.service
39Source13: pld-storage-init.sh
50b8f452
ER
40Source14: pld-clean-tmp.service
41Source15: pld-clean-tmp.sh
bb6fb962
JR
42Source16: pld-rc-inetd-generator.sh
43Source17: rc-inetd.service
a98a12d9 44Source18: default.preset
2be4d5dc 45Source19: prefdm.service
30121190
JR
46# rules
47Source101: udev-alsa.rules
48Source102: udev.rules
49Source103: udev-links.conf
50# scripts / helpers
51Source110: udev-net.helper
52Source111: start_udev
53# misc
54Source120: udev.blacklist
55Source121: fbdev.blacklist
7619c097 56Patch0: target-pld.patch
252e1bad 57Patch1: config-pld.patch
d034a897
JR
58Patch2: pld-sysv-network.patch
59Patch3: tmpfiles-not-fatal.patch
60Patch4: udev-ploop-rules.patch
61Patch5: udevadm-in-sbin.patch
62Patch6: net-rename-revert.patch
63Patch7: nss-in-rootlib.patch
64Patch8: proc-hidepid.patch
65Patch9: systemd-configfs.patch
66Patch10: pld-boot_efi_mount.patch
67Patch11: optional-tmp-on-tmpfs.patch
68Patch12: uids_gids.patch
69Patch13: root-lib.patch
ede8d3e5 70URL: http://www.freedesktop.org/wiki/Software/systemd
5b9bde26 71BuildRequires: acl-devel
e03b3ba9 72BuildRequires: attr-devel
6c89bbd4 73%{?with_audit:BuildRequires: audit-libs-devel}
86d3399e 74BuildRequires: autoconf >= 2.64
6e34428f 75BuildRequires: automake >= 1:1.11
e4c66821 76BuildRequires: binutils >= 3:2.22.52.0.1-2
11fa1d33 77%{?with_cryptsetup:BuildRequires: cryptsetup-devel >= 1.6.0}
23107006 78BuildRequires: dbus-devel >= 1.3.2
11db4517 79BuildRequires: docbook-dtd45-xml
c3037397 80BuildRequires: docbook-style-xsl
dbf0cb82 81BuildRequires: elfutils-devel
11db4517 82BuildRequires: gettext-tools
30121190
JR
83BuildRequires: glib2-devel >= 1:2.22.0
84BuildRequires: glibc-misc
dbf0cb82 85BuildRequires: gnutls-devel >= 3.1.4
86d3399e 86BuildRequires: gobject-introspection-devel >= 1.31.1
3fc7a1cc 87BuildRequires: gperf
86d3399e 88BuildRequires: gtk-doc >= 1.18
5b9bde26 89BuildRequires: intltool >= 0.40.0
11fa1d33 90BuildRequires: kmod-devel >= 14
dbf0cb82 91BuildRequires: libapparmor-devel
30121190 92BuildRequires: libblkid-devel >= 2.20
b82d0bf2 93BuildRequires: libcap-devel
f8d07093 94BuildRequires: libgcrypt-devel >= 1.4.5
dbf0cb82 95%{?with_microhttpd:BuildRequires: libmicrohttpd-devel >= 0.9.33}
7dffbad7 96BuildRequires: libmount-devel
dbf0cb82 97BuildRequires: libseccomp-devel >= 1.0.0
f8d07093 98%{?with_selinux:BuildRequires: libselinux-devel >= 2.1.9}
6c89bbd4
ER
99BuildRequires: libtool >= 2:2.2
100%{?with_tcpd:BuildRequires: libwrap-devel}
6e34428f 101BuildRequires: libxslt-progs
abea5afb 102BuildRequires: lz4-devel
961baf80 103BuildRequires: m4
6c89bbd4 104%{?with_pam:BuildRequires: pam-devel}
23107006 105BuildRequires: pkgconfig >= 0.9.0
618c1d39 106BuildRequires: python-devel
995ed764 107BuildRequires: python-lxml
30121190 108BuildRequires: python-modules
f8d07093 109%{?with_qrencode:BuildRequires: qrencode-devel}
618c1d39 110BuildRequires: rpm-pythonprov
30121190
JR
111BuildRequires: rpmbuild(macros) >= 1.628
112BuildRequires: sed >= 4.0
50ada2ab 113%{?with_tests:BuildRequires: systemd}
30121190 114BuildRequires: usbutils >= 0.82
58fd72e9 115BuildRequires: xz-devel
30121190 116BuildRequires: zlib-devel
7e0e6b4e
JR
117Requires: %{name}-libs = %{epoch}:%{version}-%{release}
118Requires: %{name}-units = %{epoch}:%{version}-%{release}
e0f956b2
JR
119Requires(postun): /usr/sbin/groupdel
120Requires(postun): /usr/sbin/userdel
3cfd9ace 121Requires(post): /bin/setfacl
e0f956b2
JR
122Requires(pre): /bin/id
123Requires(pre): /usr/bin/getgid
124Requires(pre): /usr/sbin/groupadd
125Requires(pre): /usr/sbin/useradd
58d6217a 126Requires: /etc/os-release
2ff27c26 127Requires: SysVinit-tools
37b8df82 128Requires: agetty
11fa1d33 129%{?with_cryptsetup:Requires: cryptsetup >= 1.6.0}
b0980573 130Requires: dbus >= 1.4.16-6
d1ac392b 131Requires: filesystem >= 4.0-39
acd85388 132Requires: kmod >= 14
dbf0cb82 133%{?with_microhttpd:Requires: libmicrohttpd >= 0.9.33}
ed5c41d4 134Requires: libutempter
60c3e1b7 135Requires: polkit
a2018b66 136Requires: rc-scripts >= 0.4.5.3-7
56701781 137Requires: setup >= 2.8.0-2
cbba36f4
JR
138Requires: udev-core = %{epoch}:%{version}-%{release}
139Requires: udev-libs = %{epoch}:%{version}-%{release}
abea5afb 140Requires: uname(release) >= 3.7
b0980573 141Suggests: ConsoleKit
abea5afb 142Suggests: fsck >= 2.25.0
c35aa49c 143Suggests: service(klogd)
1cdd35cf 144Suggests: service(syslog)
565c6a39
JK
145Provides: group(systemd-bus-proxy)
146Provides: group(systemd-network)
147Provides: group(systemd-resolve)
148Provides: group(systemd-timesync)
e0f956b2 149Provides: group(systemd-journal)
565c6a39
JK
150Provides: group(systemd-journal-remote)
151Provides: group(systemd-journal-upload)
152Provides: user(systemd-bus-proxy)
153Provides: user(systemd-network)
154Provides: user(systemd-resolve)
155Provides: user(systemd-timesync)
156Provides: user(systemd-journal-remote)
157Provides: user(systemd-journal-upload)
2bd26e1e 158Provides: udev-acl = %{epoch}:%{version}-%{release}
ca73092d 159Obsoletes: systemd-no-compat-tmpfiles
cbba36f4 160Obsoletes: udev-systemd
a6203073 161# sytemd wants pam with pam_systemd.so in system-auth...
3b292a99 162Conflicts: pam < 1:1.1.5-5
a6203073
JR
163# ...and sudo hates it
164Conflicts: sudo < 1:1.7.8p2-4
06d34666
JR
165# for prefdm script
166Conflicts: xinitrc-ng < 1.0
0fedd233
JR
167# systemd scripts use options not present in older versions
168Conflicts: kpartx < 0.4.9-7
169Conflicts: multipath-tools < 0.4.9-7
d833377f
JR
170# no tmpfs on /media, use /run/media/$USER for mounting
171Conflicts: udisks2 < 1.92.0
ca73092d
JR
172# packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs
173Conflicts: ConsoleKit-dirs < 0.4.5-7
174Conflicts: NetworkManager < 2:0.9.2.0-3
175Conflicts: Zope < 2.11.8-2
176Conflicts: amavisd-new < 1:2.7.0-1
177Conflicts: apache-base < 2.2.21-4
178Conflicts: apache-mod_bw < 0.92-3
179Conflicts: apache-mod_fastcgi < 2.4.6-6
180Conflicts: apache1-base < 1.3.42-5
181Conflicts: apache1-mod_fastcgi < 2.4.6-2
182Conflicts: asterisk < 10.0.1-2
183Conflicts: autossh-init < 1.4b-3
184Conflicts: balance < 3.54-2
185Conflicts: bind < 7:9.8.1.P1-4
186Conflicts: bopm < 3.1.3-4
187Conflicts: callweaver < 1.2.1-9
188Conflicts: cassandra-bin < 0.8.9-2
189Conflicts: clamav < 0.97.3-3
190Conflicts: cups < 1:1.5.0-10
ca73092d
JR
191Conflicts: dovecot < 1:2.0.16-3
192Conflicts: dspam < 3.9.0-6
193Conflicts: fail2ban < 0.8.4-4
abea5afb 194Conflicts: fsck < 2.25.0
ca73092d
JR
195Conflicts: gammu-smsd < 1:1.31.0-3
196# Break gdm2.20 installs
197#Conflicts: gdm < 2:3.2.1.1-9
198Conflicts: greylistd < 0.8.8-2
199Conflicts: inn < 2.4.6-7
200Conflicts: ipsec-tools < 0.8.0-3
201Conflicts: jabber-common < 0-9
202Conflicts: laptop-mode-tools < 1.58-2
203Conflicts: libgpod < 0.8.0-6
204Conflicts: libvirt-utils < 0.9.9-4
205Conflicts: lighttpd < 1.4.30-5
206Conflicts: lirc < 0.9.0-20
207Conflicts: mailman < 5:2.1.14-4
208Conflicts: memcached < 1.4.11-2
209Conflicts: mpd < 0.16.5-4
210Conflicts: mrtg < 2.17.0-3
211Conflicts: munin-common < 1.4.5-5
212Conflicts: nagios-nrpe < 2.13-2
213Conflicts: ndisc6-rdnssd < 1.0.1-3
214Conflicts: nscd < 6:2.14.1-5
215Conflicts: nss_ldapd-nslcd < 0.8.4-2
216Conflicts: openct < 0.6.20-3
217Conflicts: openl2tp < 1.8-3
218Conflicts: openldap-overlay-nssov < 2.4.28-4
219Conflicts: openldap-servers < 2.4.28-4
220Conflicts: openvpn < 2.2.2-2
221Conflicts: pam-pam_mount < 2.12-3
222Conflicts: pam-pam_ssh < 1.97-2
223Conflicts: pcsc-lite < 1.8.1-2
224Conflicts: php-dirs < 1.2-3
225Conflicts: policyd < 2.0.10-3
226Conflicts: pound < 2.6-2
227Conflicts: pptp < 1.7.2-3
228Conflicts: proftpd-common < 2:1.3.4a-2
229Conflicts: pulseaudio-server < 1.1-2
230Conflicts: quagga < 0.99.20-3
231Conflicts: radvd < 1.8.5-2
ca73092d
JR
232Conflicts: red5 < 0.9.0-2
233Conflicts: redis-server < 2.4.2-4
234Conflicts: smokeping < 2.4.2-10
235Conflicts: smtp-gated < 1.4.17-2
236Conflicts: socat < 1.7.2.0-2
237Conflicts: speech-dispatcher < 0.7.1-2
238Conflicts: sphinx < 2.0.3-4
239Conflicts: splashutils < 1.5.4.3-3
240Conflicts: stunnel < 4.50-2
241Conflicts: tenshi < 0.12-2
242Conflicts: tor < 0.2.2.35-2
243Conflicts: ucarp < 1.5.2-3
244Conflicts: udisks < 1.0.4-3
245Conflicts: util-vserver < 0.30.216-1.pre3002.3
246Conflicts: vpnc < 0.5.3-2
247Conflicts: web2ldap < 1.1.0rc1-2
248Conflicts: wesnoth-server < 1:1.10-2
249Conflicts: wpa_supplicant < 0.7.3-10
250Conflicts: xl2tpd < 1.3.0-2
251# end of tmpfiles conflicts
ede8d3e5 252BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
253
c75fd19d 254%define _sbindir /sbin
85879912
ER
255%define _libexecdir %{_prefix}/lib
256
ede8d3e5 257%description
1c239f8b 258systemd is a system and service manager for Linux, compatible with
ede8d3e5 259SysV and LSB init scripts. systemd provides aggressive parallelization
260capabilities, uses socket and D-Bus activation for starting services,
261offers on-demand starting of daemons, keeps track of processes using
262Linux cgroups, supports snapshotting and restoring of the system
263state, maintains mount and automount points and implements an
264elaborate transactional dependency-based service control logic. It can
1c239f8b 265work as a drop-in replacement for sysvinit.
ede8d3e5 266
267%description -l pl.UTF-8
268systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
269skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
270paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
271oferuje uruchamianie usług na życzenie, monitoruje procesy używając
272linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
273(restore) stanu systemu, zarządza (auto)mount pointami oraz
274implementuje starannie opracowaną transakcjonalną, bazującą na
d45dfc3a 275zależnościach logikę kontroli usług. Może pracować jako zastępca dla
ede8d3e5 276sysvinit.
277
c97dacdd
TP
278%package init
279Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
5b9bde26 280Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
c97dacdd 281Group: Base
d6829efa 282Requires: systemd
c97dacdd
TP
283Provides: readahead = 1:1.5.7-3
284Provides: virtual(init-daemon)
285Obsoletes: SysVinit
286Obsoletes: readahead < 1:1.5.7-3
287Obsoletes: virtual(init-daemon)
8cb53aef 288Conflicts: rc-scripts < 0.4.5.5-2
4e1559fc 289Conflicts: upstart
1bb18b38
ER
290# systemd takes care of that and causes problems
291Conflicts: binfmt-detector
c97dacdd
TP
292
293%description init
294Install this package when you are ready to final switch to systemd.
295
5b9bde26
JB
296%description init -l pl.UTF-8
297Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
298przejścia na systemd.
299
c3037397
ER
300%package units
301Summary: Configuration files, directories and installation tool for systemd
5b9bde26 302Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
c3037397 303Group: Base
c3037397 304Requires(post): coreutils
a8d86f01 305Requires(post): /bin/awk
c3037397
ER
306
307%description units
308Basic configuration files, directories and installation tool for the
309systemd system and service manager.
310
f341cd9b 311This is common config, use %{_sysconfdir}/systemd/system to override.
10ffdcd2 312
5b9bde26
JB
313%description units -l pl.UTF-8
314Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
315zarządcy systemu i usług systemd.
316
317Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
318poprzez katalog %{_sysconfdir}/systemd/system.
319
48066926
ER
320%package journal-gateway
321Summary: Gateway for serving journal events over the network using HTTP
9653a320 322Summary(pl.UTF-8): Bramka do serwowania zdarzeń dziennika po sieci poprzez HTTP
02f3a8f1 323License: LGPL v2.1+
48066926
ER
324Group: Base
325Requires: %{name} = %{epoch}:%{version}-%{release}
326Requires(postun): /usr/sbin/groupdel
327Requires(postun): /usr/sbin/userdel
328Requires(pre): /bin/id
329Requires(pre): /usr/bin/getgid
330Requires(pre): /usr/sbin/groupadd
331Requires(pre): /usr/sbin/useradd
332Provides: group(systemd-journal-gateway)
333Provides: user(systemd-journal-gateway)
334Conflicts: systemd < 1:206-3
335
336%description journal-gateway
337systemd-journal-gatewayd serves journal events over the network using
338HTTP.
339
9653a320
JB
340%description journal-gateway -l pl.UTF-8
341systemd-journal-gatewayd serwuje zdarzenia dziennika po sieci poprzez
342HTTP.
343
909f05f5
JK
344%package networkd
345Summary: systemd network manager
346Summary(pl.UTF-8): Zarządca sieci systemd
347Group: Base
348Requires: %{name} = %{epoch}:%{version}-%{release}
349Suggests: %{name}-resolved = %{epoch}:%{version}-%{release}
350
351%description networkd
352systemd-networkd is a system service that manages networks. It detects
353and configures network devices as they appear, as well as creating
354virtual network devices.
355
356%description networkd -l pl.UTF-8
357systemd-networkd to usługa systemowa zarządzająca siecią. Wykrywa
358i konfiguruje interfejsy sieciowe gdy się pojawiają, a także tworzy
359wirtualne urządzenia sieciowe.
360
361%package resolved
362Summary: systemd network name resolution manager
363Summary(pl.UTF-8): Zarządca rozwiązywania nazw sieciowych systemd
364Group: Base
365Requires: %{name} = %{epoch}:%{version}-%{release}
366
367%description resolved
368systemd-resolved is a system service that manages network name
369resolution. It implements a caching DNS stub resolver and an LLMNR
370resolver and responder.
de1f2a1e 371
909f05f5
JK
372It also generates /run/systemd/resolve/resolv.conf for compatibility
373which may be symlinked from /etc/resolv.conf.
374
375%description resolved -l pl.UTF-8
376systemd-resolved to usługa systemowa zarządzająca rozwiązywaniem nazw
de1f2a1e
JB
377sieciowych. Implementuje keszujący resolver DNS oraz resolver i
378responder LLMNR.
379
380Generuje także dla zgodności plik /run/systemd/resolve/resolv.conf,
381który można użyć do dowiązania symbolicznego z /etc/resolv.conf.
909f05f5 382
bb6fb962
JR
383%package inetd
384Summary: Native inet service support for systemd via socket activation
385Summary(pl.UTF-8): Natywna obsługa usług inet dla systemd
386Group: Base
387Requires: %{name} = %{epoch}:%{version}-%{release}
388Requires: rc-inetd
389Provides: inetdaemon
390Obsoletes: inetd
391Obsoletes: inetdaemon
392Obsoletes: rlinetd
393Obsoletes: xinetd
394
395%description inetd
396Native inet service support for systemd via socket activation.
397
fbd2881e
ER
398This package contains inet service generator that provides the
399functionality of rc-inetd service and replaces a separate inet daemon
400with systemd socket activation feature.
bb6fb962
JR
401
402%description inetd -l pl.UTF-8
403Natywna obsługa usług inet dla systemd.
404
405Ten pakiet zawiera generator usług inet udostępniający funkcjonalność
406serwisu rc-inetd i zastępujący osobny demon inet przez systemd i
407aktywację usług przez gniazda.
408
4e5e9c32
ER
409%package analyze
410Summary: Tool for processing systemd profiling information
86d3399e 411Summary(pl.UTF-8): Narzędzie do przetwarzania informacji profilujących systemd
4e5e9c32 412Group: Base
7e0e6b4e 413Requires: %{name} = %{epoch}:%{version}-%{release}
4e5e9c32
ER
414Requires: python-dbus
415Requires: python-modules
f4059b36 416Suggests: python-pycairo
36c60baa 417Conflicts: systemd < 44-3
4e5e9c32
ER
418
419%description analyze
420'systemd-analyze blame' lists which systemd unit needed how much time
421to finish initialization at boot. 'systemd-analyze plot' renders an
422SVG visualizing the parallel start of units at boot.
423
86d3399e
JB
424%description analyze -l pl.UTF-8
425'systemd-analyze blame' wypisuje, ile czasu wymagały poszczególne
426jednostki systemd na zakończenie podczas rozruchu systemu.
427'systemd-analyze plot' tworzy wykres SVG wizualizujący równoległy
428start jednostek podczas rozruchu.
429
011bccb6 430%package libs
5b9bde26
JB
431Summary: Shared systemd libraries
432Summary(pl.UTF-8): Biblioteki współdzielone systemd
011bccb6 433Group: Libraries
f8d07093
JR
434Requires: libgcrypt >= 1.4.5
435%{?with_selinux:Requires: libselinux >= 2.1.9}
e22b3018 436Obsoletes: nss_myhostname
011bccb6
BZ
437
438%description libs
5b9bde26
JB
439Shared systemd libraries.
440
441%description libs -l pl.UTF-8
442Biblioteki współdzielone systemd.
011bccb6 443
961baf80
AF
444%package devel
445Summary: Header files for systemd libraries
446Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
447Group: Development/Libraries
7e0e6b4e 448Requires: %{name}-libs = %{epoch}:%{version}-%{release}
f29c4a98 449Obsoletes: systemd-static
961baf80
AF
450
451%description devel
452Header files for systemd libraries.
453
454%description devel -l pl.UTF-8
455Pliki nagłówkowe bibliotek systemd.
456
c8a3952f
JB
457%package -n python-systemd
458Summary: Systemd Python bindings
459Summary(pl.UTF-8): Wiązania do Systemd dla Pythona
460Group: Development/Languages/Python
461Requires: %{name}-libs = %{epoch}:%{version}-%{release}
462Requires: python
463
464%description -n python-systemd
465Systemd Python bindings.
466
467%description -n python-systemd -l pl.UTF-8
468Wiązania do Systemd dla Pythona.
469
5b9bde26
JB
470%package -n bash-completion-systemd
471Summary: bash-completion for systemd
472Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
473Group: Applications/Shells
c8a3952f 474Requires: %{name} = %{epoch}:%{version}-%{release}
1a13d7a2 475Requires: bash-completion >= 2.0
cb74df1d
ER
476%if "%{_rpmversion}" >= "5"
477BuildArch: noarch
478%endif
5b9bde26
JB
479
480%description -n bash-completion-systemd
481bash-completion for systemd.
482
483%description -n bash-completion-systemd -l pl.UTF-8
86d3399e 484Bashowe dopełnianie składni dla systemd.
5b9bde26 485
77d7e0b4
JR
486%package -n zsh-completion-systemd
487Summary: zsh completion for systemd commands
488Summary(pl.UTF-8): Uzupełnianie parametrów w zsh dla poleceń systemd
489Group: Applications/Shells
c8a3952f 490Requires: %{name} = %{epoch}:%{version}-%{release}
cb74df1d
ER
491%if "%{_rpmversion}" >= "5"
492BuildArch: noarch
493%endif
77d7e0b4
JR
494
495%description -n zsh-completion-systemd
496zsh completion for systemd commands.
497
498%description -n zsh-completion-systemd -l pl.UTF-8
499Uzupełnianie parametrów w zsh dla poleceń systemd.
500
30121190
JR
501%package -n udev
502Summary: Device manager for the Linux 2.6 kernel series
503Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6
504Group: Base
505Requires: udev-core = %{epoch}:%{version}-%{release}
506Provides: dev = 3.5.0
507Obsoletes: dev
508Obsoletes: hotplug
509Obsoletes: hotplug-input
510Obsoletes: hotplug-net
511Obsoletes: hotplug-pci
30121190
JR
512Obsoletes: udev-dev
513Obsoletes: udev-extras < 20090628
514Obsoletes: udev-tools
515
516%description -n udev
517udev is the device manager for the Linux 2.6 kernel series. Its
518primary function is managing device nodes in /dev. It is the successor
519of devfs and hotplug.
520
521%description -n udev -l pl.UTF-8
522udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest
523zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i
524hotpluga.
525
526%package -n udev-core
527Summary: A userspace implementation of devfs - core part of udev
528Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev
529Group: Base
30121190
JR
530Requires: coreutils
531Requires: filesystem >= 3.0-45
391296e6 532Requires: kmod >= 14
f8d07093
JR
533Requires: libblkid >= 2.20
534%{?with_selinux:Requires: libselinux >= 2.1.9}
5a32fc22 535Requires: setup >= 2.9.0-3
fbd2881e 536Requires: udev-libs = %{epoch}:%{version}-%{release}
30121190 537Requires: uname(release) >= 2.6.32
abea5afb 538#Suggests: uname(release) >= 3.7
fbd2881e
ER
539Obsoletes: udev-compat
540Obsoletes: udev-initrd < %{epoch}:%{version}-%{release}}
60c3e1b7 541Conflicts: geninitrd < 12639
30121190 542Conflicts: rc-scripts < 0.4.5.3-1
cbba36f4 543Conflicts: systemd-units < 1:183
30121190
JR
544Conflicts: udev < 1:118-1
545
546%description -n udev-core
547A userspace implementation of devfs - core part of udev.
548
549%description -n udev-core -l pl.UTF-8
550Implementacja devfs w przestrzeni użytkownika - główna część udev.
551
552%package -n udev-libs
553Summary: Shared library to access udev device information
554Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev
555Group: Libraries
556
557%description -n udev-libs
558Shared libudev library to access udev device information.
559
560%description -n udev-libs -l pl.UTF-8
561Biblioteka współdzielona libudev służąca do dostępu do informacji o
562urządzeniach udev.
563
564%package -n udev-devel
565Summary: Header file for libudev library
566Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev
567Group: Development/Libraries
568Requires: udev-libs = %{epoch}:%{version}-%{release}
f29c4a98 569Obsoletes: udev-static
30121190
JR
570
571%description -n udev-devel
572Header file for libudev library.
573
574%description -n udev-devel -l pl.UTF-8
575Plik nagłówkowy biblioteki libudev.
576
30121190
JR
577%package -n udev-apidocs
578Summary: libudev API documentation
579Summary(pl.UTF-8): Dokumentacja API libudev
580Group: Documentation
581Requires: gtk-doc-common
405bb8b3
ER
582%if "%{_rpmversion}" >= "5"
583BuildArch: noarch
584%endif
30121190
JR
585
586%description -n udev-apidocs
587libudev API documentation.
588
589%description -n udev-apidocs -l pl.UTF-8
590Dokumentacja API libudev.
591
592%package -n udev-glib
593Summary: Shared libgudev library - GObject bindings for libudev
594Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev
595Group: Libraries
30121190 596Requires: glib2 >= 1:2.22.0
fbd2881e 597Requires: udev-libs = %{epoch}:%{version}-%{release}
30121190
JR
598
599%description -n udev-glib
600Shared libgudev library - GObject bindings for libudev.
601
602%description -n udev-glib -l pl.UTF-8
603Biblioteka współdzielona libgudev - wiązania GObject do libudev.
604
605%package -n udev-glib-devel
606Summary: Header file for libgudev library
607Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev
608Group: Development/Libraries
fbd2881e 609Requires: glib2-devel >= 1:2.22.0
30121190
JR
610Requires: udev-devel = %{epoch}:%{version}-%{release}
611Requires: udev-glib = %{epoch}:%{version}-%{release}
f29c4a98 612Obsoletes: udev-glib-static
30121190
JR
613
614%description -n udev-glib-devel
615Header file for libgudev library.
616
617%description -n udev-glib-devel -l pl.UTF-8
618Plik nagłówkowy biblioteki libgudev.
619
30121190
JR
620%package -n udev-glib-apidocs
621Summary: libgudev API documentation
622Summary(pl.UTF-8): Dokumentacja API libgudev
623Group: Documentation
624Requires: gtk-doc-common
405bb8b3
ER
625%if "%{_rpmversion}" >= "5"
626BuildArch: noarch
627%endif
30121190
JR
628
629%description -n udev-glib-apidocs
630libgudev API documentation.
631
632%description -n udev-glib-apidocs -l pl.UTF-8
633Dokumentacja API libgudev.
634
864041a0
JR
635%package -n bash-completion-udev
636Summary: bash-completion for udev
637Summary(pl.UTF-8): Bashowe dopełnianie składni dla udev
638Group: Applications/Shells
1a13d7a2 639Requires: bash-completion >= 2.0
c8a3952f 640Requires: udev = %{epoch}:%{version}-%{release}
cb74df1d
ER
641%if "%{_rpmversion}" >= "5"
642BuildArch: noarch
643%endif
864041a0
JR
644
645%description -n bash-completion-udev
646bash-completion for udev.
647
648%description -n bash-completion-udev -l pl.UTF-8
649Bashowe dopełnianie składni dla udev.
650
77d7e0b4
JR
651%package -n zsh-completion-udev
652Summary: zsh completion for udev commands
653Summary(pl.UTF-8): Uzupełnianie parametrów w zsh dla poleceń udev
654Group: Applications/Shells
c8a3952f 655Requires: %{name} = %{epoch}:%{version}-%{release}
cb74df1d
ER
656%if "%{_rpmversion}" >= "5"
657BuildArch: noarch
658%endif
77d7e0b4
JR
659
660%description -n zsh-completion-udev
661zsh completion for udev commands.
662
663%description -n zsh-completion-udev -l pl.UTF-8
664Uzupełnianie parametrów w zsh dla poleceń udev.
864041a0 665
ede8d3e5 666%prep
667%setup -q
4c5b5ab6 668%patch0 -p1
252e1bad 669%patch1 -p1
d034a897 670%patch2 -p1
19e6c1c7 671%patch3 -p1
d374e721 672%patch4 -p1
d034a897
JR
673%patch5 -p1
674# rejected upstream (do not disable!)
675%patch6 -p1
676%patch7 -p1
3be4738a 677%patch8 -p1
39e47c85 678%patch9 -p1
d3c9da06 679%patch10 -p1
2be4d5dc 680%patch11 -p1
fa700b62 681%patch12 -p1
d034a897 682%patch13 -p1
b77423ae 683cp -p %{SOURCE2} src/systemd_booted.c
ede8d3e5 684
d3c9da06
JR
685# this file is autogenerated
686%{__rm} src/udev/keyboard-keys-from-name.gperf
687
ede8d3e5 688%build
c75fd19d
JR
689%{__gtkdocize}
690%{__libtoolize}
4c5b5ab6 691%{__aclocal} -I m4
ede8d3e5 692%{__autoconf}
6e34428f 693%{__autoheader}
ede8d3e5 694%{__automake}
9c0b975d 695%configure \
f8d07093
JR
696 QUOTAON=/sbin/quotaon \
697 QUOTACHECK=/sbin/quotacheck \
698 SETCAP=/sbin/setcap \
699 KILL=/bin/kill \
2d0b9d33
AF
700 KMOD=/sbin/kmod \
701 KEXEC=/sbin/kexec \
c75fd19d 702 %{?debug:--enable-debug} \
6c89bbd4
ER
703 %{__enable_disable audit} \
704 %{__enable_disable cryptsetup libcryptsetup} \
6c89bbd4
ER
705 %{__enable_disable pam} \
706 %{__enable_disable selinux} \
707 %{__enable_disable tcpd tcpwrap} \
f8d07093
JR
708 %{__enable_disable microhttpd} \
709 %{__enable_disable qrencode} \
6c89bbd4 710 --disable-silent-rules \
0a9f5d7b 711 --enable-chkconfig \
995ed764 712 --enable-compat-libs \
f8d07093
JR
713 --enable-gtk-doc \
714 --enable-introspection \
715 --enable-split-usr \
abea5afb 716 --enable-lz4 \
0a9f5d7b
JB
717 --with-html-dir=%{_gtkdocdir} \
718 --with-kbd-loadkeys=/usr/bin/loadkeys \
719 --with-kbd-setfont=/bin/setfont \
720 --with-sysvinit-path=/etc/rc.d/init.d \
721 --with-sysvrcnd-path=/etc/rc.d \
c03ba8f3 722 --with-firmware-path=/lib/firmware \
0a9f5d7b
JB
723 --with-rc-local-script-path-start=/etc/rc.d/rc.local \
724 --with-rc-local-script-path-stop=/sbin/halt.local \
c75fd19d 725 --with-rootprefix="" \
0a9f5d7b 726 --with-rootlibdir=/%{_lib}
e1d9cc15 727
32fac32a 728%{__make}
b77423ae 729./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
ede8d3e5 730
2a54abb3
AM
731%{?with_tests:%{__make} check}
732
ede8d3e5 733%install
734rm -rf $RPM_BUILD_ROOT
2f2b39e6 735install -d $RPM_BUILD_ROOT/var/lib/{%{name}/coredump,machines} \
a98a12d9 736 $RPM_BUILD_ROOT{%{_sysconfdir}/{modprobe.d,systemd/system-preset},%{_sbindir}}
23107006 737
ede8d3e5 738%{__make} install \
739 DESTDIR=$RPM_BUILD_ROOT
740
216f25d7 741./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
b77423ae 742
c75fd19d 743# compatibility symlinks to udevd binary
cbba36f4
JR
744mv $RPM_BUILD_ROOT/lib/{systemd/systemd-,udev/}udevd
745ln -s /lib/udev/udevd $RPM_BUILD_ROOT/lib/systemd/systemd-udevd
746ln -s /lib/udev/udevd $RPM_BUILD_ROOT%{_sbindir}/udevd
c75fd19d
JR
747
748# compat symlinks for "/ merged into /usr" programs
bce90f0e
JR
749mv $RPM_BUILD_ROOT/{,s}bin/udevadm
750ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT/bin
183de3c2 751ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/
c75fd19d
JR
752
753# install custom udev rules from pld package
754cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
755cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules
756
2be4d5dc
JR
757# disable this abomination
758# http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
759ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/80-net-name-slot.rules
760
c75fd19d
JR
761# install udev configs
762cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf
763
764# install udev executables (scripts, helpers, etc.)
765install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper
766install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev
767
768# install misc udev stuff
769cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf
770cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
771
ba7dc07d
JR
772:>$RPM_BUILD_ROOT%{_sysconfdir}/udev/hwdb.bin
773
cbba36f4 774mv $RPM_BUILD_ROOT%{_mandir}/man8/{systemd-,}udevd.8
579cb1fc 775echo ".so man8/udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/systemd-udevd.8
c75fd19d 776
4389e6f9
JR
777# Main binary has been moved, but we don't want to break existing installs
778ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
779
1dcb74bb 780# Create SysV compatibility symlinks. systemctl/systemd are smart
2a61be78 781# enough to detect the way they were called
c28b0c1c 782install -d $RPM_BUILD_ROOT/sbin
4389e6f9 783ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
1dcb74bb 784ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
785ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
23107006
TP
786ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
787ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
1dcb74bb 788ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
789ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
1dcb74bb 790
5d32f234 791ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
44410185
JR
792
793# disable redundant SYSV services
794ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service
4cc1cb1d 795ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
44410185
JR
796ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service
797ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service
798ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service
799ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
5d32f234 800
f1586299 801# add static (non-NetworkManager) networking
216f25d7 802cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
f1586299 803
d833377f
JR
804# restore bind-mounts /var/run -> run and /var/lock -> /run/lock
805# we don't have those directories symlinked
870fdd3d
JR
806cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount
807cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount
0e50d607
JR
808ln -s ../var-lock.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
809ln -s ../var-run.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
d833377f 810
5f97ec0f 811# and remove mounting tmp on tmpfs by default
183de3c2 812%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/tmp.mount
d833377f 813
44410185 814# Install and enable storage subsystems support services (RAID, LVM, etc.)
216f25d7
ER
815cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service
816cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service
817cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service
50b8f452 818cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service
216f25d7 819install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init
50b8f452 820install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp
44410185 821
50b8f452
ER
822ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
823ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
824ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
c3037397 825
77d7e0b4
JR
826# As of 207 the systemd-sysctl tool no longer natively reads the file /etc/sysctl.conf.
827# If desired, the file should be symlinked from /etc/sysctl.d/99-sysctl.conf.
828ln -s /etc/sysctl.conf $RPM_BUILD_ROOT/etc/sysctl.d/99-sysctl.conf
829
bb6fb962 830# Install rc-inetd replacement
acd85388 831cp -p %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}-generators/pld-rc-inetd-generator
bb6fb962
JR
832cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdunitdir}/rc-inetd.service
833
a98a12d9
JR
834cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system-preset/default.preset
835
2be4d5dc
JR
836cp -p %{SOURCE19} $RPM_BUILD_ROOT%{systemdunitdir}/prefdm.service
837
216f25d7 838# handled by rc-local sysv service, no need for generator
acd85388 839%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}-generators/systemd-rc-local-generator
216f25d7 840
72e4d9f8 841# provided by rc-scripts
acd85388 842%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/rc-local.service
72e4d9f8 843
2a61be78
TP
844# Make sure these directories are properly owned:
845# - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd,
846# - syslog _might_ be used by some syslog implementation (none for now),
847# - isn't dbus populated by dbus-systemd only (so to be moved there)?
1aed57ba 848install -d $RPM_BUILD_ROOT%{systemdunitdir}/{basic,dbus,halt,initrd,kexec,poweroff,reboot,shutdown,syslog}.target.wants
961baf80 849
acd85388
ER
850# Make sure the shutdown/sleep drop-in dirs exist
851install -d $RPM_BUILD_ROOT%{_libexecdir}/systemd/system-{shutdown,sleep}
852
961baf80 853# Create new-style configuration files so that we can ghost-own them
70047b34 854touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf}
4bbef33c 855
9d8b5dfe 856# Install SysV conversion tool for systemd
4f25b6ac 857install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
9d8b5dfe 858
5bb38820
JR
859# Create directory for service helper scripts
860install -d $RPM_BUILD_ROOT/lib/systemd/pld-helpers.d
861
909f05f5
JK
862# to be enabled only when the packages are installed
863%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants/systemd-networkd.service
2f2b39e6 864%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants/systemd-networkd.socket
909f05f5
JK
865%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants/systemd-resolved.service
866
9d8b5dfe 867install -d $RPM_BUILD_ROOT/var/log
5a65c84e
TP
868:> $RPM_BUILD_ROOT/var/log/btmp
869:> $RPM_BUILD_ROOT/var/log/wtmp
a761f93e 870
5d32f234 871%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
a86320a6 872%{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la
0a9f5d7b 873%{__rm} $RPM_BUILD_ROOT/%{_lib}/libnss_myhostname.la
5d32f234 874%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
f8d07093
JR
875%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/systemd/*.la
876%py_postclean
5d32f234 877
995ed764
TR
878%find_lang %{name}
879
ede8d3e5 880%clean
881rm -rf $RPM_BUILD_ROOT
882
e0f956b2
JR
883%pre
884%groupadd -g 288 systemd-journal
565c6a39
JK
885%groupadd -g 315 systemd-bus-proxy
886%useradd -u 315 -g 315 -d /var/log/journal -s /bin/false -c "Systemd Bus Proxy" systemd-bus-proxy
887%groupadd -g 316 systemd-network
888%useradd -u 316 -g 316 -d /var/log/journal -s /bin/false -c "Systemd Network Management" systemd-network
889%groupadd -g 317 systemd-resolve
890%useradd -u 317 -g 317 -d /var/log/journal -s /bin/false -c "Systemd Resolver" systemd-resolve
891%groupadd -g 318 systemd-timesync
892%useradd -u 318 -g 318 -d /var/log/journal -s /bin/false -c "Systemd Time Synchronization" systemd-timesync
893%groupadd -g 319 systemd-journal-remote
894%useradd -u 319 -g 319 -d /var/log/journal -s /bin/false -c "Systemd Journal Remote" systemd-journal-remote
895%groupadd -g 320 systemd-journal-upload
896%useradd -u 320 -g 320 -d /var/log/journal -s /bin/false -c "Systemd Journal Upload" systemd-journal-upload
e0f956b2 897
9638c72f 898%post
ba7dc07d 899/bin/systemd-machine-id-setup || :
61652e98 900/lib/systemd/systemd-random-seed save || :
ba7dc07d
JR
901/bin/systemctl --system daemon-reexec || :
902/bin/journalctl --update-catalog || :
c3037397 903
961baf80 904%postun
85879912 905if [ $1 -ge 1 ]; then
ba7dc07d
JR
906 /bin/systemctl --system daemon-reload || :
907 /bin/systemctl try-restart systemd-logind.service || :
9638c72f 908fi
e0f956b2 909if [ "$1" = "0" ]; then
e0f956b2
JR
910 %groupremove systemd-journal
911fi
9638c72f 912
fd907fd5 913%triggerpostun -- systemd < 1:208-1
3d025d25
JR
914chgrp -R systemd-journal /var/log/journal
915chmod g+s /var/log/journal
916
fd907fd5 917%triggerpostun -- systemd < 1:220-1
4505f4b8
JR
918# https://bugs.freedesktop.org/show_bug.cgi?id=89202
919/bin/getfacl -p /var/log/journal/$(cat /etc/machine-id) | grep -v '^#' | sort -u | /bin/setfacl -R --set-file=- /var/log/journal/$(cat /etc/machine-id) || :
920
3edd52a6
TP
921%post libs -p /sbin/ldconfig
922%postun libs -p /sbin/ldconfig
011bccb6 923
961baf80 924%post units
85879912 925if [ $1 -eq 1 ]; then
961baf80 926 # Try to read default runlevel from the old inittab if it exists
ba7dc07d 927 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2>/dev/null)
961baf80 928 if [ -z "$runlevel" ] ; then
4cc1cb1d 929 target="%{systemdunitdir}/graphical.target"
961baf80 930 else
4cc1cb1d 931 target="%{systemdunitdir}/runlevel$runlevel.target"
961baf80
AF
932 fi
933
934 # And symlink what we found to the new-style default.target
ba7dc07d 935 ln -s "$target" %{_sysconfdir}/systemd/system/default.target || :
cf819365
JR
936
937 # Setup hostname
dcd9e39e 938 HOSTNAME=
cf819365
JR
939 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
940 if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
941 [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave
942 echo $HOSTNAME > /etc/hostname
943 chmod 644 /etc/hostname
944 fi
44410185
JR
945
946 # Enable the services we install by default.
947 /bin/systemctl enable \
44410185
JR
948 network.service \
949 remote-fs.target \
950 systemd-readahead-replay.service \
cbba36f4 951 systemd-readahead-collect.service \
ba7dc07d 952 systemd-udev-settle.service || :
9638c72f 953fi
c3037397
ER
954
955%preun units
961baf80
AF
956if [ $1 -eq 0 ] ; then
957 /bin/systemctl disable \
f1586299 958 network.service \
961baf80
AF
959 remote-fs.target \
960 systemd-readahead-replay.service \
cbba36f4 961 systemd-readahead-collect.service \
ba7dc07d 962 systemd-udev-settle.service || :
961baf80 963
ba7dc07d 964 %{__rm} -f %{_sysconfdir}/systemd/system/default.target || :
c3037397 965fi
9638c72f 966
961baf80 967%postun units
85879912 968if [ $1 -ge 1 ]; then
ba7dc07d 969 /bin/systemctl daemon-reload || :
9638c72f 970fi
971
2386bcb6 972%triggerpostun units -- systemd-units < 43-7
44410185 973# Remove design fialures
ba7dc07d
JR
974%{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service || :
975%{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service || :
976%{__rm} -f %{_sysconfdir}/systemd/system/multi-user.target.wants/network-post.service || :
977/bin/systemctl reenable network.service || :
44410185 978
cde7998d 979%triggerpostun units -- systemd-units < 1:183
ba7dc07d
JR
980/bin/systemctl --quiet enable systemd-udev-settle.service || :
981%{__rm} -f /etc/systemd/system/basic.target.wants/udev-settle.service || :
6f109eab
JR
982# preserve renamed configs
983if [ -f /etc/systemd/systemd-journald.conf.rpmsave ]; then
984 %{__mv} /etc/systemd/journald.conf{,.rpmnew}
985 %{__mv} -f /etc/systemd/systemd-journald.conf.rpmsave /etc/systemd/journald.conf
986fi
987if [ -f /etc/systemd/systemd-logind.conf.rpmsave ]; then
988 %{__mv} /etc/systemd/logind.conf{,.rpmnew}
989 %{__mv} -f /etc/systemd/systemd-logind.conf.rpmsave /etc/systemd/logind.conf
990fi
cbba36f4 991
a98a12d9
JR
992%triggerpostun units -- systemd-units < 1:187-3
993if [ -f /etc/sysconfig/rpm ]; then
994 . /etc/sysconfig/rpm
995 if [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ]; then
996 echo "disable *" >>%{_sysconfdir}/systemd/system-preset/default.preset
997 fi
998fi
999
b45719fb
JK
1000%triggerpostun units -- systemd-units < 1:208-9
1001# remove buggy symlink
1002if [ -L /etc/systemd/system/getty.target.wants/getty@.service ] ; then
1003 rm -f /etc/systemd/system/getty.target.wants/getty@.service || :
1004fi
1005
bb6fb962
JR
1006%post inetd
1007%systemd_reload
f96cfa86
JR
1008# Do not change it to restart, we only want to start new services here
1009%systemd_service_start sockets.target
bb6fb962
JR
1010
1011%postun inetd
1012%systemd_reload
1013
48066926
ER
1014%pre journal-gateway
1015%groupadd -g 287 systemd-journal-gateway
1016%useradd -u 287 -g 287 -d /var/log/journal -s /bin/false -c "Systemd Journal Gateway" systemd-journal-gateway
1017
1018%post journal-gateway
1019%systemd_post systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
1020
1021%preun journal-gateway
1022%systemd_preun systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
1023
1024%postun journal-gateway
1025%systemd_reload
1026
1027if [ "$1" = "0" ]; then
1028 %userremove systemd-journal-gateway
1029 %groupremove systemd-journal-gateway
1030fi
1031
909f05f5 1032%post networkd
2f2b39e6 1033%systemd_post systemd-networkd.socket systemd-networkd.service
909f05f5
JK
1034
1035%preun networkd
2f2b39e6 1036%systemd_preun systemd-networkd.socket systemd-networkd.service
909f05f5
JK
1037
1038%postun networkd
1039%systemd_reload
1040
1041%post resolved
1042%systemd_post systemd-resolved.service
1043
1044%preun resolved
1045%systemd_preun systemd-resolved.service
1046
1047%postun resolved
1048%systemd_reload
1049
30121190
JR
1050%triggerpostun -n udev-core -- dev
1051if [ "$2" = 0 ]; then
1052 # need to kill and restart udevd as after obsoleting dev package the
1053 # /dev tree will remain empty. umask is needed as otherwise udev will
1054 # create devices with strange permissions (udev bug probably)
1055 umask 000
1056 /sbin/start_udev || exit 0
1057fi
1058
1059%triggerpostun -n udev-core -- udev < 108
1060%{__sed} -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules
1061%if "%{_lib}" != "lib"
1062%{__sed} -i -e 's#/%{_lib}/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules
1063%endif
1064
1065%triggerpostun -n udev-core -- udev < 165
1066/sbin/udevadm info --convert-db
1067
30121190 1068%post -n udev-core
ba7dc07d 1069/sbin/udevadm hwdb --update || :
30121190
JR
1070if [ $1 -gt 1 ]; then
1071 if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
1072 if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then
1073 /sbin/udevadm control --exit
ac4b515a 1074 /lib/udev/udevd --daemon
30121190
JR
1075 fi
1076 else
1077 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
2bf49637 1078 /bin/systemctl --quiet try-restart systemd-udevd.service || :
30121190
JR
1079 fi
1080fi
30121190
JR
1081
1082%postun -n udev-core
cbba36f4
JR
1083if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
1084 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
1085 /bin/systemctl --quiet daemon-reload || :
1086fi
30121190
JR
1087
1088%post -n udev-libs -p /sbin/ldconfig
1089%postun -n udev-libs -p /sbin/ldconfig
1090
1091%post -n udev-glib -p /sbin/ldconfig
1092%postun -n udev-glib -p /sbin/ldconfig
1093
995ed764 1094%files -f %{name}.lang
ede8d3e5 1095%defattr(644,root,root,755)
dbf0cb82 1096%doc DISTRO_PORTING NEWS README TODO
6e34428f 1097/etc/dbus-1/system.d/org.freedesktop.hostname1.conf
2f2b39e6 1098/etc/dbus-1/system.d/org.freedesktop.import1.conf
961baf80
AF
1099/etc/dbus-1/system.d/org.freedesktop.locale1.conf
1100/etc/dbus-1/system.d/org.freedesktop.login1.conf
1aed57ba 1101/etc/dbus-1/system.d/org.freedesktop.machine1.conf
c3037397 1102/etc/dbus-1/system.d/org.freedesktop.systemd1.conf
961baf80 1103/etc/dbus-1/system.d/org.freedesktop.timedate1.conf
3edd52a6 1104%ghost %config(noreplace) %{_sysconfdir}/machine-id
b77423ae
AF
1105%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname
1106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf
1107%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info
b77423ae
AF
1108%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone
1109%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf
be33f3c6 1110%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/bootchart.conf
995ed764 1111%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/coredump.conf
f5bd7642 1112%if %{with microhttpd}
ed4d2b1f
AM
1113%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journal-remote.conf
1114%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journal-upload.conf
f5bd7642 1115%endif
c75fd19d
JR
1116%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journald.conf
1117%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/logind.conf
1118%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
995ed764 1119%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/timesyncd.conf
c75fd19d 1120%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/user.conf
2a61be78 1121%dir %{_sysconfdir}/systemd/user
2f2b39e6
JR
1122%dir %{_sysconfdir}/systemd/system/getty.target.wants
1123%dir %{_sysconfdir}/systemd/system/multi-user.target.wants
1124%dir %{_sysconfdir}/systemd/system/sockets.target.wants
1125%dir %{_sysconfdir}/systemd/system/sysinit.target.wants
1126%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/getty.target.wants/getty@tty1.service
1127%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service
1128%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/multi-user.target.wants/remote-fs.target
77d7e0b4 1129%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/systemd-user
abd479ee 1130/etc/xdg/systemd
c75fd19d
JR
1131%attr(755,root,root) /bin/journalctl
1132%attr(755,root,root) /bin/loginctl
1aed57ba 1133%attr(755,root,root) /bin/machinectl
1dcb74bb 1134%attr(755,root,root) /bin/systemd
1135%attr(755,root,root) /bin/systemd-ask-password
ed4d2b1f
AM
1136%attr(755,root,root) /bin/systemd-escape
1137%attr(755,root,root) /bin/systemd-firstboot
c75fd19d 1138%attr(755,root,root) /bin/systemd-inhibit
7a76bc86 1139%attr(755,root,root) /bin/systemd-machine-id-setup
1dcb74bb 1140%attr(755,root,root) /bin/systemd-notify
995ed764 1141%attr(755,root,root) /bin/systemd-sysusers
1dcb74bb 1142%attr(755,root,root) /bin/systemd-tty-ask-password-agent
be33f3c6 1143%attr(755,root,root) %{_bindir}/bootctl
995ed764
TR
1144%attr(755,root,root) %{_bindir}/busctl
1145%attr(755,root,root) %{_bindir}/coredumpctl
618c1d39 1146%attr(755,root,root) %{_bindir}/hostnamectl
be33f3c6 1147%attr(755,root,root) %{_bindir}/kernel-install
618c1d39 1148%attr(755,root,root) %{_bindir}/localectl
d374e721 1149%attr(755,root,root) %{_bindir}/systemd-cat
23107006 1150%attr(755,root,root) %{_bindir}/systemd-cgls
f8d07093 1151%attr(755,root,root) %{_bindir}/systemd-cgtop
c75fd19d
JR
1152%attr(755,root,root) %{_bindir}/systemd-delta
1153%attr(755,root,root) %{_bindir}/systemd-detect-virt
57cd0d13 1154%attr(755,root,root) %{_bindir}/systemd-nspawn
995ed764 1155%attr(755,root,root) %{_bindir}/systemd-path
1aed57ba 1156%attr(755,root,root) %{_bindir}/systemd-run
57cd0d13 1157%attr(755,root,root) %{_bindir}/systemd-stdio-bridge
2a61be78 1158%attr(755,root,root) %{_bindir}/systemd-sysv-convert
f8d07093 1159%attr(755,root,root) %{_bindir}/timedatectl
2f2b39e6 1160/lib/systemd/import-pubring.gpg
8a78a3e8 1161%attr(755,root,root) /lib/systemd/pld-clean-tmp
44410185 1162%attr(755,root,root) /lib/systemd/pld-storage-init
c75fd19d 1163%attr(755,root,root) /lib/systemd/systemd-ac-power
be33f3c6 1164%attr(755,root,root) /lib/systemd/systemd-activate
77d7e0b4 1165%attr(755,root,root) /lib/systemd/systemd-backlight
c75fd19d 1166%attr(755,root,root) /lib/systemd/systemd-binfmt
2be4d5dc 1167%attr(755,root,root) /lib/systemd/systemd-bootchart
995ed764 1168%attr(755,root,root) /lib/systemd/systemd-bus-proxyd
c75fd19d
JR
1169%attr(755,root,root) /lib/systemd/systemd-cgroups-agent
1170%attr(755,root,root) /lib/systemd/systemd-coredump
657515ed 1171%{?with_cryptsetup:%attr(755,root,root) /lib/systemd/systemd-cryptsetup}
7edc5189 1172%attr(755,root,root) /lib/systemd/systemd-export
c75fd19d 1173%attr(755,root,root) /lib/systemd/systemd-fsck
ed4d2b1f 1174%attr(755,root,root) /lib/systemd/systemd-hibernate-resume
c75fd19d 1175%attr(755,root,root) /lib/systemd/systemd-hostnamed
7edc5189 1176%attr(755,root,root) /lib/systemd/systemd-import
2f2b39e6 1177%attr(755,root,root) /lib/systemd/systemd-importd
c75fd19d
JR
1178%attr(755,root,root) /lib/systemd/systemd-initctl
1179%attr(755,root,root) /lib/systemd/systemd-journald
f5bd7642 1180%if %{with microhttpd}
995ed764 1181%attr(755,root,root) /lib/systemd/systemd-journal-remote
ed4d2b1f 1182%attr(755,root,root) /lib/systemd/systemd-journal-upload
f5bd7642 1183%endif
c75fd19d
JR
1184%attr(755,root,root) /lib/systemd/systemd-localed
1185%attr(755,root,root) /lib/systemd/systemd-logind
1aed57ba 1186%attr(755,root,root) /lib/systemd/systemd-machined
7dffbad7 1187%attr(755,root,root) /lib/systemd/systemd-machine-id-commit
c75fd19d 1188%attr(755,root,root) /lib/systemd/systemd-modules-load
2f2b39e6 1189%attr(755,root,root) /lib/systemd/systemd-pull
c75fd19d
JR
1190%attr(755,root,root) /lib/systemd/systemd-quotacheck
1191%attr(755,root,root) /lib/systemd/systemd-random-seed
c75fd19d
JR
1192%attr(755,root,root) /lib/systemd/systemd-remount-fs
1193%attr(755,root,root) /lib/systemd/systemd-reply-password
ed4d2b1f 1194%attr(755,root,root) /lib/systemd/systemd-resolve-host
995ed764 1195%attr(755,root,root) /lib/systemd/systemd-rfkill
c75fd19d 1196%attr(755,root,root) /lib/systemd/systemd-shutdown
c75fd19d 1197%attr(755,root,root) /lib/systemd/systemd-sleep
995ed764 1198%attr(755,root,root) /lib/systemd/systemd-socket-proxyd
c75fd19d
JR
1199%attr(755,root,root) /lib/systemd/systemd-sysctl
1200%attr(755,root,root) /lib/systemd/systemd-timedated
995ed764 1201%attr(755,root,root) /lib/systemd/systemd-timesyncd
cbba36f4 1202%attr(755,root,root) /lib/systemd/systemd-udevd
c75fd19d 1203%attr(755,root,root) /lib/systemd/systemd-update-utmp
995ed764 1204%attr(755,root,root) /lib/systemd/systemd-update-done
c75fd19d
JR
1205%attr(755,root,root) /lib/systemd/systemd-user-sessions
1206%attr(755,root,root) /lib/systemd/systemd-vconsole-setup
4389e6f9 1207%attr(755,root,root) /lib/systemd/systemd
2f2b39e6
JR
1208%{?with_cryptsetup:%attr(755,root,root) /lib/systemd/system-generators/systemd-cryptsetup-generator}
1209%attr(755,root,root) /lib/systemd/system-generators/systemd-debug-generator
1210%attr(755,root,root) /lib/systemd/system-generators/systemd-efi-boot-generator
1211%attr(755,root,root) /lib/systemd/system-generators/systemd-fstab-generator
1212%attr(755,root,root) /lib/systemd/system-generators/systemd-getty-generator
1213%attr(755,root,root) /lib/systemd/system-generators/systemd-gpt-auto-generator
1214%attr(755,root,root) /lib/systemd/system-generators/systemd-hibernate-resume-generator
1215%attr(755,root,root) /lib/systemd/system-generators/systemd-system-update-generator
1216%attr(755,root,root) /lib/systemd/system-generators/systemd-sysv-generator
961baf80
AF
1217/lib/udev/rules.d/70-uaccess.rules
1218/lib/udev/rules.d/71-seat.rules
1219/lib/udev/rules.d/73-seat-late.rules
f8d07093 1220/lib/udev/rules.d/99-systemd.rules
995ed764
TR
1221%dir %{_libexecdir}/kernel
1222%dir %{_libexecdir}/kernel/install.d
1223%{_libexecdir}/kernel/install.d/50-depmod.install
1224%{_libexecdir}/kernel/install.d/90-loaderentry.install
f8d07093
JR
1225%dir %{_libexecdir}/systemd/catalog
1226%{_libexecdir}/systemd/catalog/systemd.catalog
dbf0cb82
JB
1227%lang(fr) %{_libexecdir}/systemd/catalog/systemd.fr.catalog
1228%lang(it) %{_libexecdir}/systemd/catalog/systemd.it.catalog
ed4d2b1f 1229%lang(pl) %{_libexecdir}/systemd/catalog/systemd.pl.catalog
2f2b39e6 1230%lang(pt_BR) %{_libexecdir}/systemd/catalog/systemd.pt_BR.catalog
dbf0cb82 1231%lang(ru) %{_libexecdir}/systemd/catalog/systemd.ru.catalog
995ed764
TR
1232%dir %{_libexecdir}/sysusers.d
1233%{_libexecdir}/sysusers.d/basic.conf
1234%{_libexecdir}/sysusers.d/systemd.conf
f5bd7642 1235%if %{with microhttpd}
ed4d2b1f 1236%{_libexecdir}/sysusers.d/systemd-remote.conf
f5bd7642 1237%endif
995ed764 1238%{_libexecdir}/tmpfiles.d/etc.conf
7edc5189 1239%{_libexecdir}/tmpfiles.d/home.conf
c7a423d8
JR
1240%{_libexecdir}/tmpfiles.d/legacy.conf
1241%{_libexecdir}/tmpfiles.d/systemd.conf
995ed764 1242%{_libexecdir}/tmpfiles.d/systemd-nologin.conf
f5bd7642 1243%if %{with microhttpd}
ed4d2b1f 1244%{_libexecdir}/tmpfiles.d/systemd-remote.conf
f5bd7642 1245%endif
c7a423d8 1246%{_libexecdir}/tmpfiles.d/tmp.conf
995ed764 1247%{_libexecdir}/tmpfiles.d/var.conf
c7a423d8 1248%{_libexecdir}/tmpfiles.d/x11.conf
3d28548d 1249%{_libexecdir}/sysctl.d/50-coredump.conf
1c239f8b 1250%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
6e34428f 1251%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
2f2b39e6 1252%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
961baf80
AF
1253%{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
1254%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
1aed57ba 1255%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
1c239f8b 1256%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
961baf80 1257%{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
6e34428f 1258%{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
2f2b39e6 1259%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
961baf80
AF
1260%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
1261%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
2f2b39e6 1262%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
961baf80
AF
1263%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
1264%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
1265%dir %{_datadir}/systemd
f8d07093 1266%{?with_microhttpd:%{_datadir}/systemd/gatewayd}
961baf80 1267%{_datadir}/systemd/kbd-model-map
2f2b39e6 1268%{_datadir}/systemd/language-fallback-map
d1ac392b
JK
1269%{_datadir}/factory/etc/nsswitch.conf
1270%{_datadir}/factory/etc/pam.d/other
1271%{_datadir}/factory/etc/pam.d/system-auth
995ed764
TR
1272%{_mandir}/man1/bootctl.1*
1273%{_mandir}/man1/busctl.1*
1274%{_mandir}/man1/coredumpctl.1*
618c1d39 1275%{_mandir}/man1/hostnamectl.1*
c75fd19d 1276%{_mandir}/man1/journalctl.1*
f8d07093 1277%{_mandir}/man1/localectl.1*
c75fd19d 1278%{_mandir}/man1/loginctl.1*
11fa1d33 1279%{_mandir}/man1/machinectl.1*
7a76bc86 1280%{_mandir}/man1/systemd.1*
c75fd19d 1281%{_mandir}/man1/systemd-ask-password.1*
2be4d5dc 1282%{_mandir}/man1/systemd-bootchart.1*
c75fd19d
JR
1283%{_mandir}/man1/systemd-cat.1*
1284%{_mandir}/man1/systemd-cgls.1*
1285%{_mandir}/man1/systemd-cgtop.1*
1286%{_mandir}/man1/systemd-delta.1*
1287%{_mandir}/man1/systemd-detect-virt.1*
ed4d2b1f
AM
1288%{_mandir}/man1/systemd-escape.1*
1289%{_mandir}/man1/systemd-firstboot.1*
1290%{_mandir}/man1/systemd-firstboot.service.1*
c75fd19d 1291%{_mandir}/man1/systemd-inhibit.1*
7dffbad7 1292%{_mandir}/man1/systemd-machine-id-commit.1*
c75fd19d
JR
1293%{_mandir}/man1/systemd-machine-id-setup.1*
1294%{_mandir}/man1/systemd-notify.1*
1295%{_mandir}/man1/systemd-nspawn.1*
995ed764 1296%{_mandir}/man1/systemd-path.1*
11fa1d33 1297%{_mandir}/man1/systemd-run.1*
4400c575 1298%{_mandir}/man1/systemd-tty-ask-password-agent.1*
f8d07093 1299%{_mandir}/man1/timedatectl.1*
6e34428f 1300%{_mandir}/man5/binfmt.d.5*
be33f3c6 1301%{_mandir}/man5/bootchart.conf.5*
7dffbad7 1302%{_mandir}/man5/bootchart.conf.d.5*
995ed764 1303%{_mandir}/man5/coredump.conf.5*
7dffbad7 1304%{_mandir}/man5/coredump.conf.d.5*
1c239f8b 1305%{_mandir}/man5/hostname.5*
7edc5189
JR
1306%if %{with microhttpd}
1307%{_mandir}/man5/journal-remote.conf.5*
1308%{_mandir}/man5/journal-remote.conf.d.5*
1309%endif
c75fd19d 1310%{_mandir}/man5/journald.conf.5*
7dffbad7 1311%{_mandir}/man5/journald.conf.d.5*
1c239f8b 1312%{_mandir}/man5/locale.conf.5*
618c1d39 1313%{_mandir}/man5/localtime.5*
c75fd19d 1314%{_mandir}/man5/logind.conf.5*
7dffbad7 1315%{_mandir}/man5/logind.conf.d.5*
7a76bc86 1316%{_mandir}/man5/machine-id.5*
6e34428f 1317%{_mandir}/man5/machine-info.5*
1c239f8b 1318%{_mandir}/man5/modules-load.d.5*
1319%{_mandir}/man5/os-release.5*
7dffbad7 1320%{_mandir}/man5/sleep.conf.d.5*
6e34428f 1321%{_mandir}/man5/sysctl.d.5*
7dffbad7 1322%{_mandir}/man5/system.conf.d.5*
89d58574 1323%{_mandir}/man5/systemd.*.5*
890c04f0 1324%{_mandir}/man5/systemd-sleep.conf.5*
be33f3c6
JR
1325%{_mandir}/man5/systemd-system.conf.5*
1326%{_mandir}/man5/systemd-user.conf.5*
995ed764 1327%{_mandir}/man5/sysusers.d.5*
ed4d2b1f 1328%{_mandir}/man5/timesyncd.conf.5*
7dffbad7
JK
1329%{_mandir}/man5/timesyncd.conf.d.5*
1330%{_mandir}/man5/user.conf.d.5*
23107006 1331%{_mandir}/man5/vconsole.conf.5*
4400c575 1332%{_mandir}/man7/bootup.7*
1c239f8b 1333%{_mandir}/man7/daemon.7*
995ed764 1334%{_mandir}/man7/file-hierarchy.7*
4400c575 1335%{_mandir}/man7/kernel-command-line.7*
be33f3c6 1336%{_mandir}/man7/systemd.directives.7*
2f2b39e6 1337%{_mandir}/man7/systemd.generator.7*
be33f3c6 1338%{_mandir}/man7/systemd.index.7*
c75fd19d 1339%{_mandir}/man7/systemd.journal-fields.7*
4400c575 1340%{_mandir}/man7/systemd.special.7*
2be4d5dc 1341%{_mandir}/man7/systemd.time.7*
be33f3c6 1342%{_mandir}/man8/kernel-install.8*
de1f2a1e
JB
1343%{_mandir}/man8/libnss_myhostname.so.2.8*
1344%{_mandir}/man8/libnss_mymachines.so.2.8*
2be4d5dc 1345%{_mandir}/man8/nss-myhostname.8*
2f2b39e6 1346%{_mandir}/man8/nss-mymachines.8*
be33f3c6 1347%{_mandir}/man8/systemd-activate.8*
77d7e0b4 1348%{_mandir}/man8/systemd-backlight.8*
4f1f9baf 1349%{_mandir}/man8/systemd-binfmt.8*
ed4d2b1f 1350%{_mandir}/man8/systemd-coredump.8*
657515ed 1351%{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup-generator.8*}
2f2b39e6 1352%{_mandir}/man8/systemd-debug-generator.8*
f8d07093 1353%{_mandir}/man8/systemd-fsck.8*
77d7e0b4
JR
1354%{_mandir}/man8/systemd-efi-boot-generator.8*
1355%{_mandir}/man8/systemd-gpt-auto-generator.8*
4400c575
JR
1356%{_mandir}/man8/systemd-fstab-generator.8*
1357%{_mandir}/man8/systemd-getty-generator.8*
ed4d2b1f
AM
1358%{_mandir}/man8/systemd-hibernate-resume-generator.8*
1359%{_mandir}/man8/systemd-hibernate-resume.8*
1360%{_mandir}/man8/systemd-hibernate-resume@.service.8*
4400c575
JR
1361%{_mandir}/man8/systemd-hostnamed.8*
1362%{_mandir}/man8/systemd-initctl.8*
de1f2a1e 1363%{_mandir}/man8/systemd-journald-dev-log.socket.8*
4f1f9baf 1364%{_mandir}/man8/systemd-journald.8*
f5bd7642 1365%if %{with microhttpd}
ed4d2b1f
AM
1366%{_mandir}/man8/systemd-journal-remote.8.*
1367%{_mandir}/man8/systemd-journal-upload.8.*
f5bd7642 1368%endif
4400c575 1369%{_mandir}/man8/systemd-localed.8*
4f1f9baf 1370%{_mandir}/man8/systemd-logind.8*
11fa1d33 1371%{_mandir}/man8/systemd-machined.8*
7dffbad7 1372%{_mandir}/man8/systemd-machine-id-commit.service.8*
4f1f9baf 1373%{_mandir}/man8/systemd-modules-load.8*
4400c575
JR
1374%{_mandir}/man8/systemd-quotacheck.8*
1375%{_mandir}/man8/systemd-random-seed.8*
4400c575 1376%{_mandir}/man8/systemd-remount-fs.8*
de1f2a1e 1377%{_mandir}/man8/systemd-rfkill.8*
2f2b39e6 1378%{_mandir}/man8/systemd-rfkill@.service.8*
4400c575 1379%{_mandir}/man8/systemd-shutdown.8*
4400c575 1380%{_mandir}/man8/systemd-sleep.8*
2f2b39e6 1381%{_mandir}/man8/systemd-socket-proxyd.8*
4f1f9baf 1382%{_mandir}/man8/systemd-sysctl.8*
4400c575 1383%{_mandir}/man8/systemd-system-update-generator.8*
7dffbad7 1384%{_mandir}/man8/systemd-sysv-generator.8*
2f2b39e6 1385%{_mandir}/man8/systemd-sysusers.8*
de1f2a1e 1386%{_mandir}/man8/systemd-sysusers.service.8*
4400c575 1387%{_mandir}/man8/systemd-timedated.8*
de1f2a1e 1388%{_mandir}/man8/systemd-timesyncd.8*
2f2b39e6 1389%{_mandir}/man8/systemd-timesyncd.service.8*
cbba36f4 1390%{_mandir}/man8/systemd-udevd.8*
de1f2a1e 1391%{_mandir}/man8/systemd-update-done.8*
2f2b39e6 1392%{_mandir}/man8/systemd-update-done.service.8*
4400c575
JR
1393%{_mandir}/man8/systemd-update-utmp.8*
1394%{_mandir}/man8/systemd-user-sessions.8*
1395%{_mandir}/man8/systemd-vconsole-setup.8*
2f2b39e6 1396%dir /var/lib/machines
24f95219
ER
1397%dir /var/lib/%{name}
1398%dir /var/lib/%{name}/coredump
a761f93e
TP
1399%attr(640,root,root) %ghost /var/log/btmp
1400%attr(664,root,utmp) %ghost /var/log/wtmp
3d025d25 1401%attr(2755,root,systemd-journal) %dir /var/log/journal
c3037397 1402
6c89bbd4 1403%if %{with pam}
a86320a6 1404%attr(755,root,root) /%{_lib}/security/pam_systemd.so
6c89bbd4
ER
1405%{_mandir}/man8/pam_systemd.8*
1406%endif
1407
c97dacdd 1408%files init
5b9bde26 1409%defattr(644,root,root,755)
c97dacdd
TP
1410%attr(755,root,root) /sbin/halt
1411%attr(755,root,root) /sbin/init
1412%attr(755,root,root) /sbin/poweroff
1413%attr(755,root,root) /sbin/reboot
1414%attr(755,root,root) /sbin/runlevel
1415%attr(755,root,root) /sbin/shutdown
1416%attr(755,root,root) /sbin/telinit
8cb53aef 1417%{_mandir}/man1/init.1*
dd480017 1418%{?with_cryptsetup:%{_mandir}/man5/crypttab.5*}
c97dacdd 1419%{_mandir}/man8/halt.8*
8cb53aef
JB
1420%{_mandir}/man8/poweroff.8*
1421%{_mandir}/man8/reboot.8*
c97dacdd
TP
1422%{_mandir}/man8/runlevel.8*
1423%{_mandir}/man8/shutdown.8*
1424%{_mandir}/man8/telinit.8*
1425
c3037397
ER
1426%files units
1427%defattr(644,root,root,755)
abd479ee
MB
1428%dir %{_sysconfdir}/binfmt.d
1429%dir %{_sysconfdir}/modules-load.d
5d32f234 1430%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf
abd479ee 1431%dir %{_sysconfdir}/sysctl.d
77d7e0b4 1432%{_sysconfdir}/sysctl.d/99-sysctl.conf
c3037397
ER
1433%dir %{_sysconfdir}/systemd
1434%dir %{_sysconfdir}/systemd/system
a98a12d9
JR
1435%dir %{_sysconfdir}/systemd/system-preset
1436%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system-preset/default.preset
c3037397 1437%dir %{_sysconfdir}/tmpfiles.d
85879912
ER
1438%dir %{_libexecdir}/binfmt.d
1439%dir %{_libexecdir}/modules-load.d
1440%dir %{_libexecdir}/sysctl.d
ea1081fa
JB
1441%{_libexecdir}/sysctl.d/50-default.conf
1442%dir %{_libexecdir}/systemd
1443%dir %{_libexecdir}/systemd/system-shutdown
1444%dir %{_libexecdir}/systemd/system-sleep
1445%dir %{_libexecdir}/systemd/user
2f2b39e6
JR
1446%{_libexecdir}/systemd/user/basic.target
1447%{_libexecdir}/systemd/user/bluetooth.target
1448%{_libexecdir}/systemd/user/default.target
1449%{_libexecdir}/systemd/user/exit.target
1450%{_libexecdir}/systemd/user/paths.target
1451%{_libexecdir}/systemd/user/printer.target
1452%{_libexecdir}/systemd/user/shutdown.target
1453%{_libexecdir}/systemd/user/smartcard.target
1454%{_libexecdir}/systemd/user/sockets.target
1455%{_libexecdir}/systemd/user/sound.target
1456%{_libexecdir}/systemd/user/timers.target
ea1081fa
JB
1457%{_libexecdir}/systemd/user/systemd-exit.service
1458%dir %{_libexecdir}/systemd/user-generators
5bb38820 1459%dir /lib/systemd/pld-helpers.d
95ffdd1e 1460%dir /lib/systemd/system-generators
995ed764
TR
1461%dir /lib/systemd/system-preset
1462/lib/systemd/system-preset/90-systemd.preset
16f4419f 1463%dir /lib/systemd/system-sleep
828362e7 1464%dir /lib/systemd/system-shutdown
c3037397
ER
1465%attr(755,root,root) /bin/systemctl
1466%attr(755,root,root) /bin/systemd-tmpfiles
b77423ae 1467%attr(755,root,root) /bin/systemd_booted
c3037397 1468%{_mandir}/man1/systemctl.1*
89d58574 1469%{_mandir}/man5/tmpfiles.d.5*
c3037397 1470%{_mandir}/man8/systemd-tmpfiles.8*
7edc5189 1471%{_npkgconfigdir}/systemd.pc
2f2b39e6
JR
1472
1473%{systemdunitdir}/proc-sys-fs-binfmt_misc.automount
1474%{systemdunitdir}/dev-hugepages.mount
1475%{systemdunitdir}/dev-mqueue.mount
1476%{systemdunitdir}/proc-sys-fs-binfmt_misc.mount
1477%{systemdunitdir}/sys-fs-fuse-connections.mount
1478%{systemdunitdir}/sys-kernel-config.mount
1479%{systemdunitdir}/sys-kernel-debug.mount
1480%{systemdunitdir}/tmp.mount
7edc5189 1481%{systemdunitdir}/var-lib-machines.mount
2f2b39e6
JR
1482%{systemdunitdir}/var-lock.mount
1483%{systemdunitdir}/var-run.mount
1484%{systemdunitdir}/systemd-ask-password-console.path
1485%{systemdunitdir}/systemd-ask-password-wall.path
1486%{systemdunitdir}/allowlogin.service
1487%{systemdunitdir}/autovt@.service
1488%{systemdunitdir}/console-getty.service
1489%{systemdunitdir}/console-shell.service
1490%{systemdunitdir}/console.service
1491%{systemdunitdir}/container-getty@.service
1492%{systemdunitdir}/cpusets.service
1493%{systemdunitdir}/dbus-org.freedesktop.hostname1.service
1494%{systemdunitdir}/dbus-org.freedesktop.import1.service
1495%{systemdunitdir}/dbus-org.freedesktop.locale1.service
1496%{systemdunitdir}/dbus-org.freedesktop.login1.service
1497%{systemdunitdir}/dbus-org.freedesktop.machine1.service
1498%{systemdunitdir}/dbus-org.freedesktop.timedate1.service
1499%{systemdunitdir}/debug-shell.service
1500%{systemdunitdir}/display-manager.service
1501%{systemdunitdir}/emergency.service
1502%{systemdunitdir}/getty@.service
1503%{systemdunitdir}/halt-local.service
1504%{systemdunitdir}/initrd-cleanup.service
1505%{systemdunitdir}/initrd-parse-etc.service
1506%{systemdunitdir}/initrd-switch-root.service
1507%{systemdunitdir}/initrd-udevadm-cleanup-db.service
1508%{systemdunitdir}/killall.service
1509%{systemdunitdir}/kmod-static-nodes.service
1510%{systemdunitdir}/ldconfig.service
1511%{systemdunitdir}/netfs.service
1512%{systemdunitdir}/network.service
1513%{systemdunitdir}/pld-clean-tmp.service
1514%{systemdunitdir}/pld-storage-init-late.service
1515%{systemdunitdir}/pld-storage-init.service
1516%{systemdunitdir}/pld-wait-storage.service
1517%{systemdunitdir}/prefdm.service
1518%{systemdunitdir}/quotaon.service
1519%{systemdunitdir}/random.service
1520%{systemdunitdir}/rescue.service
1521%{systemdunitdir}/serial-getty@.service
1522%{systemdunitdir}/single.service
1523%{systemdunitdir}/sys-kernel-config.service
1524%{systemdunitdir}/systemd-ask-password-console.service
1525%{systemdunitdir}/systemd-ask-password-wall.service
1526%{systemdunitdir}/systemd-backlight@.service
1527%{systemdunitdir}/systemd-binfmt.service
1528%{systemdunitdir}/systemd-bootchart.service
1529%{systemdunitdir}/systemd-firstboot.service
1530%{systemdunitdir}/systemd-fsck-root.service
1531%{systemdunitdir}/systemd-fsck@.service
1532%{systemdunitdir}/systemd-halt.service
1533%{systemdunitdir}/systemd-hibernate-resume@.service
1534%{systemdunitdir}/systemd-hibernate.service
1535%{systemdunitdir}/systemd-hostnamed.service
1536%{systemdunitdir}/systemd-hwdb-update.service
1537%{systemdunitdir}/systemd-hybrid-sleep.service
1538%{systemdunitdir}/systemd-importd.service
1539%{systemdunitdir}/systemd-initctl.service
1540%{systemdunitdir}/systemd-journal-catalog-update.service
1541%{systemdunitdir}/systemd-journal-flush.service
1542%{systemdunitdir}/systemd-journal-gatewayd.service
1543%{systemdunitdir}/systemd-journal-remote.service
1544%{systemdunitdir}/systemd-journal-upload.service
1545%{systemdunitdir}/systemd-journald.service
1546%{systemdunitdir}/systemd-kexec.service
1547%{systemdunitdir}/systemd-localed.service
1548%{systemdunitdir}/systemd-logind.service
1549%{systemdunitdir}/systemd-machine-id-commit.service
1550%{systemdunitdir}/systemd-machined.service
1551%{systemdunitdir}/systemd-modules-load.service
1552%{systemdunitdir}/systemd-nspawn@.service
1553%{systemdunitdir}/systemd-poweroff.service
1554%{systemdunitdir}/systemd-quotacheck.service
1555%{systemdunitdir}/systemd-random-seed.service
1556%{systemdunitdir}/systemd-reboot.service
1557%{systemdunitdir}/systemd-remount-fs.service
1558%{systemdunitdir}/systemd-rfkill@.service
2f2b39e6
JR
1559%{systemdunitdir}/systemd-suspend.service
1560%{systemdunitdir}/systemd-sysctl.service
1561%{systemdunitdir}/systemd-sysusers.service
1562%{systemdunitdir}/systemd-timedated.service
1563%{systemdunitdir}/systemd-timesyncd.service
1564%{systemdunitdir}/systemd-tmpfiles-clean.service
1565%{systemdunitdir}/systemd-tmpfiles-setup-dev.service
1566%{systemdunitdir}/systemd-tmpfiles-setup.service
1567%{systemdunitdir}/systemd-udev-settle.service
1568%{systemdunitdir}/systemd-udev-trigger.service
1569%{systemdunitdir}/systemd-udevd.service
1570%{systemdunitdir}/systemd-update-done.service
1571%{systemdunitdir}/systemd-update-utmp-runlevel.service
1572%{systemdunitdir}/systemd-update-utmp.service
1573%{systemdunitdir}/systemd-user-sessions.service
1574%{systemdunitdir}/systemd-vconsole-setup.service
1575%{systemdunitdir}/user@.service
1576%{systemdunitdir}/-.slice
1577%{systemdunitdir}/machine.slice
1578%{systemdunitdir}/system.slice
1579%{systemdunitdir}/user.slice
618c1d39 1580%exclude %{systemdunitdir}/rc-inetd.service
2f2b39e6
JR
1581%{systemdunitdir}/syslog.socket
1582%{systemdunitdir}/systemd-initctl.socket
1583%{systemdunitdir}/systemd-journal-remote.socket
1584%{systemdunitdir}/systemd-journald-audit.socket
1585%{systemdunitdir}/systemd-journald-dev-log.socket
1586%{systemdunitdir}/systemd-journald.socket
2f2b39e6
JR
1587%{systemdunitdir}/systemd-udevd-control.socket
1588%{systemdunitdir}/systemd-udevd-kernel.socket
1589%{systemdunitdir}/basic.target
1590%{systemdunitdir}/bluetooth.target
1591%{?with_cryptsetup:%{systemdunitdir}/cryptsetup-pre.target}
1592%{?with_cryptsetup:%{systemdunitdir}/cryptsetup.target}
1593%{systemdunitdir}/ctrl-alt-del.target
1594%{systemdunitdir}/default.target
1595%{systemdunitdir}/emergency.target
1596%{systemdunitdir}/final.target
1597%{systemdunitdir}/getty.target
1598%{systemdunitdir}/graphical.target
1599%{systemdunitdir}/halt.target
1600%{systemdunitdir}/hibernate.target
1601%{systemdunitdir}/hybrid-sleep.target
1602%{systemdunitdir}/initrd-fs.target
1603%{systemdunitdir}/initrd-root-fs.target
1604%{systemdunitdir}/initrd-switch-root.target
1605%{systemdunitdir}/initrd.target
1606%{systemdunitdir}/kexec.target
1607%{systemdunitdir}/local-fs-pre.target
1608%{systemdunitdir}/local-fs.target
1609%{systemdunitdir}/machines.target
1610%{systemdunitdir}/multi-user.target
1611%{systemdunitdir}/network-online.target
1612%{systemdunitdir}/network-pre.target
1613%{systemdunitdir}/network.target
1614%{systemdunitdir}/nss-lookup.target
1615%{systemdunitdir}/nss-user-lookup.target
1616%{systemdunitdir}/paths.target
1617%{systemdunitdir}/poweroff.target
1618%{systemdunitdir}/printer.target
1619%{systemdunitdir}/reboot.target
1620%{systemdunitdir}/remote-fs-pre.target
1621%{systemdunitdir}/remote-fs.target
1622%{systemdunitdir}/rescue.target
1623%{systemdunitdir}/rpcbind.target
1624%{systemdunitdir}/runlevel0.target
1625%{systemdunitdir}/runlevel1.target
1626%{systemdunitdir}/runlevel2.target
1627%{systemdunitdir}/runlevel3.target
1628%{systemdunitdir}/runlevel4.target
1629%{systemdunitdir}/runlevel5.target
1630%{systemdunitdir}/runlevel6.target
1631%{systemdunitdir}/shutdown.target
1632%{systemdunitdir}/sigpwr.target
1633%{systemdunitdir}/sleep.target
1634%{systemdunitdir}/slices.target
1635%{systemdunitdir}/smartcard.target
1636%{systemdunitdir}/sockets.target
1637%{systemdunitdir}/sound.target
1638%{systemdunitdir}/suspend.target
1639%{systemdunitdir}/swap.target
1640%{systemdunitdir}/sysinit.target
1641%{systemdunitdir}/system-update.target
1642%{systemdunitdir}/time-sync.target
1643%{systemdunitdir}/timers.target
1644%{systemdunitdir}/umount.target
1645%{systemdunitdir}/systemd-tmpfiles-clean.timer
e4c66821
JB
1646%dir %{systemdunitdir}/basic.target.wants
1647%dir %{systemdunitdir}/dbus.target.wants
7edc5189 1648%dir %{systemdunitdir}/graphical.target.wants
e4c66821 1649%dir %{systemdunitdir}/halt.target.wants
aa8c5e72 1650%dir %{systemdunitdir}/initrd.target.wants
e4c66821
JB
1651%dir %{systemdunitdir}/kexec.target.wants
1652%dir %{systemdunitdir}/local-fs.target.wants
1653%dir %{systemdunitdir}/multi-user.target.wants
1654%dir %{systemdunitdir}/poweroff.target.wants
1655%dir %{systemdunitdir}/reboot.target.wants
7edc5189 1656%dir %{systemdunitdir}/rescue.target.wants
e4c66821
JB
1657%dir %{systemdunitdir}/runlevel[12345].target.wants
1658%dir %{systemdunitdir}/shutdown.target.wants
1659%dir %{systemdunitdir}/sockets.target.wants
1660%dir %{systemdunitdir}/sysinit.target.wants
1661%dir %{systemdunitdir}/syslog.target.wants
bce90f0e 1662%dir %{systemdunitdir}/timers.target.wants
7edc5189
JR
1663%{systemdunitdir}/graphical.target.wants/display-manager.service
1664%{systemdunitdir}/graphical.target.wants/systemd-update-utmp-runlevel.service
2f2b39e6
JR
1665%{systemdunitdir}/local-fs.target.wants/pld-clean-tmp.service
1666%{systemdunitdir}/local-fs.target.wants/pld-storage-init-late.service
1667%{systemdunitdir}/local-fs.target.wants/pld-storage-init.service
1668%{systemdunitdir}/local-fs.target.wants/systemd-remount-fs.service
7edc5189 1669%{systemdunitdir}/local-fs.target.wants/var-lib-machines.mount
2f2b39e6
JR
1670%{systemdunitdir}/local-fs.target.wants/var-lock.mount
1671%{systemdunitdir}/local-fs.target.wants/var-run.mount
c7a423d8
JR
1672%{systemdunitdir}/multi-user.target.wants/getty.target
1673%{systemdunitdir}/multi-user.target.wants/rc-local.service
1674%{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path
1675%{systemdunitdir}/multi-user.target.wants/systemd-logind.service
7edc5189 1676%{systemdunitdir}/multi-user.target.wants/systemd-update-utmp-runlevel.service
c7a423d8 1677%{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service
7edc5189 1678%{systemdunitdir}/rescue.target.wants/systemd-update-utmp-runlevel.service
2f2b39e6
JR
1679%{systemdunitdir}/sockets.target.wants/systemd-initctl.socket
1680%{systemdunitdir}/sockets.target.wants/systemd-journald-audit.socket
1681%{systemdunitdir}/sockets.target.wants/systemd-journald-dev-log.socket
1682%{systemdunitdir}/sockets.target.wants/systemd-journald.socket
2f2b39e6
JR
1683%{systemdunitdir}/sockets.target.wants/systemd-udevd-control.socket
1684%{systemdunitdir}/sockets.target.wants/systemd-udevd-kernel.socket
c7a423d8
JR
1685%{?with_cryptsetup:%{systemdunitdir}/sysinit.target.wants/cryptsetup.target}
1686%{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount
1687%{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount
11fa1d33 1688%{systemdunitdir}/sysinit.target.wants/kmod-static-nodes.service
995ed764 1689%{systemdunitdir}/sysinit.target.wants/ldconfig.service
c7a423d8 1690%{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount
2f2b39e6
JR
1691%{systemdunitdir}/sysinit.target.wants/sys-fs-fuse-connections.mount
1692%{systemdunitdir}/sysinit.target.wants/sys-kernel-debug.mount
1693%{systemdunitdir}/sysinit.target.wants/systemd-ask-password-console.path
1694%{systemdunitdir}/sysinit.target.wants/systemd-binfmt.service
1695%{systemdunitdir}/sysinit.target.wants/systemd-firstboot.service
1696%{systemdunitdir}/sysinit.target.wants/systemd-hwdb-update.service
1697%{systemdunitdir}/sysinit.target.wants/systemd-journal-catalog-update.service
1698%{systemdunitdir}/sysinit.target.wants/systemd-journald.service
1699%{systemdunitdir}/sysinit.target.wants/systemd-journal-flush.service
1700%{systemdunitdir}/sysinit.target.wants/systemd-machine-id-commit.service
1701%{systemdunitdir}/sysinit.target.wants/systemd-modules-load.service
1702%{systemdunitdir}/sysinit.target.wants/systemd-random-seed.service
1703%{systemdunitdir}/sysinit.target.wants/systemd-sysctl.service
1704%{systemdunitdir}/sysinit.target.wants/systemd-sysusers.service
1705%{systemdunitdir}/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
1706%{systemdunitdir}/sysinit.target.wants/systemd-tmpfiles-setup.service
1707%{systemdunitdir}/sysinit.target.wants/systemd-udevd.service
1708%{systemdunitdir}/sysinit.target.wants/systemd-udev-trigger.service
1709%{systemdunitdir}/sysinit.target.wants/systemd-update-done.service
1710%{systemdunitdir}/sysinit.target.wants/systemd-update-utmp.service
1711%{systemdunitdir}/sysinit.target.wants/systemd-vconsole-setup.service
1712%{systemdunitdir}/timers.target.wants/systemd-tmpfiles-clean.timer
4400c575
JR
1713%{_mandir}/man8/systemd-ask-password-console.path.8*
1714%{_mandir}/man8/systemd-ask-password-console.service.8*
1715%{_mandir}/man8/systemd-ask-password-wall.path.8*
1716%{_mandir}/man8/systemd-ask-password-wall.service.8*
77d7e0b4 1717%{_mandir}/man8/systemd-backlight@.service.8*
4400c575 1718%{_mandir}/man8/systemd-binfmt.service.8*
657515ed
JK
1719%{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup.8*}
1720%{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup@.service.8*}
4400c575
JR
1721%{_mandir}/man8/systemd-fsck-root.service.8*
1722%{_mandir}/man8/systemd-fsck@.service.8*
1723%{_mandir}/man8/systemd-halt.service.8*
1724%{_mandir}/man8/systemd-hibernate.service.8*
1725%{_mandir}/man8/systemd-hostnamed.service.8*
f8d07093 1726%{_mandir}/man8/systemd-hybrid-sleep.service.8*
4400c575
JR
1727%{_mandir}/man8/systemd-initctl.service.8*
1728%{_mandir}/man8/systemd-initctl.socket.8*
1729%{_mandir}/man8/systemd-journald.service.8*
1730%{_mandir}/man8/systemd-journald.socket.8*
1731%{_mandir}/man8/systemd-kexec.service.8*
1732%{_mandir}/man8/systemd-localed.service.8*
1733%{_mandir}/man8/systemd-logind.service.8*
11fa1d33 1734%{_mandir}/man8/systemd-machined.service.8*
4400c575
JR
1735%{_mandir}/man8/systemd-modules-load.service.8*
1736%{_mandir}/man8/systemd-poweroff.service.8*
1737%{_mandir}/man8/systemd-quotacheck.service.8*
1aed57ba 1738%{_mandir}/man8/systemd-random-seed.service.8*
4400c575
JR
1739%{_mandir}/man8/systemd-reboot.service.8*
1740%{_mandir}/man8/systemd-remount-fs.service.8*
4400c575
JR
1741%{_mandir}/man8/systemd-suspend.service.8*
1742%{_mandir}/man8/systemd-sysctl.service.8*
1743%{_mandir}/man8/systemd-timedated.service.8*
1744%{_mandir}/man8/systemd-tmpfiles-clean.service.8*
1745%{_mandir}/man8/systemd-tmpfiles-clean.timer.8*
1746%{_mandir}/man8/systemd-tmpfiles-setup.service.8*
890c04f0 1747%{_mandir}/man8/systemd-tmpfiles-setup-dev.service.8*
4400c575 1748%{_mandir}/man8/systemd-udevd.service.8*
f8d07093
JR
1749%{_mandir}/man8/systemd-udevd-control.socket.8*
1750%{_mandir}/man8/systemd-udevd-kernel.socket.8*
4400c575 1751%{_mandir}/man8/systemd-update-utmp-runlevel.service.8*
1aed57ba 1752%{_mandir}/man8/systemd-update-utmp.service.8*
4400c575
JR
1753%{_mandir}/man8/systemd-user-sessions.service.8*
1754%{_mandir}/man8/systemd-vconsole-setup.service.8*
e4c66821 1755
48066926
ER
1756%if %{with microhttpd}
1757%files journal-gateway
1758%defattr(644,root,root,755)
2f2b39e6 1759%{systemdunitdir}/systemd-journal-gatewayd.socket
48066926
ER
1760%attr(755,root,root) /lib/systemd/systemd-journal-gatewayd
1761%{_mandir}/man8/systemd-journal-gatewayd.8*
1762%{_mandir}/man8/systemd-journal-gatewayd.service.8*
1763%{_mandir}/man8/systemd-journal-gatewayd.socket.8*
1764%endif
909f05f5
JK
1765
1766%files networkd
1767%defattr(644,root,root,755)
2f2b39e6 1768/etc/dbus-1/system.d/org.freedesktop.network1.conf
aae72bea
JR
1769%dir %{_sysconfdir}/systemd/network
1770%dir %{_sysconfdir}/systemd/system/network-online.target.wants
1771%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
1772%dir /lib/systemd/network
1773/lib/systemd/network/80-container-host0.network
1774/lib/systemd/network/80-container-ve.network
1775/lib/systemd/network/99-default.link
2f2b39e6
JR
1776%{systemdunitdir}/dbus-org.freedesktop.network1.service
1777%{systemdunitdir}/systemd-networkd-wait-online.service
1778%{systemdunitdir}/systemd-networkd.service
1779%{systemdunitdir}/systemd-networkd.socket
2f2b39e6
JR
1780%{_datadir}/dbus-1/system-services/org.freedesktop.network1.service
1781%attr(755,root,root) /bin/networkctl
909f05f5
JK
1782%attr(755,root,root) /lib/systemd/systemd-networkd
1783%attr(755,root,root) /lib/systemd/systemd-networkd-wait-online
2f2b39e6 1784%{_mandir}/man1/networkctl.1*
de1f2a1e 1785%{_mandir}/man8/systemd-networkd-wait-online.8*
2f2b39e6 1786%{_mandir}/man8/systemd-networkd-wait-online.service.8*
de1f2a1e 1787%{_mandir}/man8/systemd-networkd.8*
2f2b39e6 1788%{_mandir}/man8/systemd-networkd.service.8*
909f05f5
JK
1789
1790%files resolved
1791%defattr(644,root,root,755)
1792%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/resolved.conf
2f2b39e6
JR
1793/etc/dbus-1/system.d/org.freedesktop.resolve1.conf
1794%{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service
1795%{systemdunitdir}/dbus-org.freedesktop.resolve1.service
1796%{systemdunitdir}/systemd-resolved.service
909f05f5
JK
1797%attr(755,root,root) /lib/systemd/systemd-resolved
1798%{_mandir}/man5/resolved.conf.5*
1799%{_mandir}/man5/resolved.conf.d.5*
de1f2a1e 1800%{_mandir}/man8/systemd-resolved.8*
2f2b39e6 1801%{_mandir}/man8/systemd-resolved.service.8*
48066926 1802
bb6fb962
JR
1803%files inetd
1804%defattr(644,root,root,755)
60c3e1b7 1805%attr(755,root,root) %{systemdunitdir}-generators/pld-rc-inetd-generator
bb6fb962
JR
1806%{systemdunitdir}/rc-inetd.service
1807
4e5e9c32
ER
1808%files analyze
1809%defattr(644,root,root,755)
1810%attr(755,root,root) %{_bindir}/systemd-analyze
4400c575 1811%{_mandir}/man1/systemd-analyze.1*
4e5e9c32 1812
5b9bde26 1813%files libs
6c89bbd4 1814%defattr(644,root,root,755)
ed4d2b1f
AM
1815%attr(755,root,root) %{_libdir}/libnss_mymachines.so.2
1816%attr(755,root,root) %{_libdir}/libnss_resolve.so.2
2be4d5dc 1817%attr(755,root,root) /%{_lib}/libnss_myhostname.so.2
995ed764
TR
1818%attr(755,root,root) /%{_lib}/libsystemd.so.*.*.*
1819%attr(755,root,root) %ghost /%{_lib}/libsystemd.so.0
6ba1f779
MB
1820%attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
1821%attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
1822%attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.*
1823%attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0
1824%attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.*
1825%attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0
1826%attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
1827%attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
961baf80
AF
1828
1829%files devel
1830%defattr(644,root,root,755)
995ed764 1831%attr(755,root,root) %{_libdir}/libsystemd.so
89d58574 1832%attr(755,root,root) %{_libdir}/libsystemd-daemon.so
c76a8951
BZ
1833%attr(755,root,root) %{_libdir}/libsystemd-id128.so
1834%attr(755,root,root) %{_libdir}/libsystemd-journal.so
89d58574 1835%attr(755,root,root) %{_libdir}/libsystemd-login.so
5b9bde26 1836%{_includedir}/%{name}
995ed764 1837%{_pkgconfigdir}/libsystemd.pc
961baf80 1838%{_pkgconfigdir}/libsystemd-daemon.pc
c76a8951
BZ
1839%{_pkgconfigdir}/libsystemd-id128.pc
1840%{_pkgconfigdir}/libsystemd-journal.pc
961baf80 1841%{_pkgconfigdir}/libsystemd-login.pc
ab590cee
JR
1842%{_mandir}/man3/SD_*.3*
1843%{_mandir}/man3/sd*.3*
5b9bde26 1844
c8a3952f
JB
1845%files -n python-systemd
1846%defattr(644,root,root,755)
1847%dir %{py_sitedir}/systemd
1848%{py_sitedir}/systemd/*.py[co]
1849%attr(755,root,root) %{py_sitedir}/systemd/_daemon.so
1850%attr(755,root,root) %{py_sitedir}/systemd/_journal.so
1851%attr(755,root,root) %{py_sitedir}/systemd/_reader.so
1852%attr(755,root,root) %{py_sitedir}/systemd/id128.so
1853%attr(755,root,root) %{py_sitedir}/systemd/login.so
1854
5b9bde26
JB
1855%files -n bash-completion-systemd
1856%defattr(644,root,root,755)
995ed764
TR
1857%{_datadir}/bash-completion/completions/bootctl
1858%{_datadir}/bash-completion/completions/busctl
1859%{_datadir}/bash-completion/completions/coredumpctl
864041a0
JR
1860%{_datadir}/bash-completion/completions/hostnamectl
1861%{_datadir}/bash-completion/completions/journalctl
c8a3952f 1862%{_datadir}/bash-completion/completions/kernel-install
864041a0
JR
1863%{_datadir}/bash-completion/completions/localectl
1864%{_datadir}/bash-completion/completions/loginctl
995ed764 1865%{_datadir}/bash-completion/completions/machinectl
864041a0 1866%{_datadir}/bash-completion/completions/systemctl
890c04f0 1867%{_datadir}/bash-completion/completions/systemd-analyze
995ed764
TR
1868%{_datadir}/bash-completion/completions/systemd-cat
1869%{_datadir}/bash-completion/completions/systemd-cgls
1870%{_datadir}/bash-completion/completions/systemd-cgtop
1871%{_datadir}/bash-completion/completions/systemd-delta
1872%{_datadir}/bash-completion/completions/systemd-detect-virt
1873%{_datadir}/bash-completion/completions/systemd-nspawn
77d7e0b4 1874%{_datadir}/bash-completion/completions/systemd-run
864041a0 1875%{_datadir}/bash-completion/completions/timedatectl
ae4d0acb 1876
77d7e0b4
JR
1877%files -n zsh-completion-systemd
1878%defattr(644,root,root,755)
995ed764
TR
1879%{_datadir}/zsh/site-functions/_bootctl
1880%{_datadir}/zsh/site-functions/_coredumpctl
77d7e0b4
JR
1881%{_datadir}/zsh/site-functions/_hostnamectl
1882%{_datadir}/zsh/site-functions/_journalctl
c8a3952f 1883%{_datadir}/zsh/site-functions/_kernel-install
77d7e0b4
JR
1884%{_datadir}/zsh/site-functions/_localectl
1885%{_datadir}/zsh/site-functions/_loginctl
1886%{_datadir}/zsh/site-functions/_machinectl
1887%{_datadir}/zsh/site-functions/_sd_hosts_or_user_at_host
995ed764 1888%{_datadir}/zsh/site-functions/_sd_machines
ed4d2b1f
AM
1889%{_datadir}/zsh/site-functions/_sd_outputmodes
1890%{_datadir}/zsh/site-functions/_sd_unit_files
77d7e0b4
JR
1891%{_datadir}/zsh/site-functions/_systemctl
1892%{_datadir}/zsh/site-functions/_systemd
1893%{_datadir}/zsh/site-functions/_systemd-analyze
77d7e0b4
JR
1894%{_datadir}/zsh/site-functions/_systemd-delta
1895%{_datadir}/zsh/site-functions/_systemd-inhibit
1896%{_datadir}/zsh/site-functions/_systemd-nspawn
995ed764 1897%{_datadir}/zsh/site-functions/_systemd-run
77d7e0b4
JR
1898%{_datadir}/zsh/site-functions/_systemd-tmpfiles
1899%{_datadir}/zsh/site-functions/_timedatectl
1900
30121190
JR
1901%files -n udev
1902%defattr(644,root,root,755)
1903%dev(c,1,3) %attr(666,root,root) /dev/null
1904%dev(c,5,1) %attr(660,root,console) /dev/console
1905%dev(c,1,5) %attr(666,root,root) /dev/zero
1906
1907%files -n udev-core
1908%defattr(644,root,root,755)
30121190 1909
183de3c2 1910/usr/lib/udev
30121190 1911
30121190
JR
1912%attr(755,root,root) /lib/udev/collect
1913
30121190
JR
1914%attr(755,root,root) /lib/udev/net_helper
1915
1916%attr(755,root,root) /lib/udev/ata_id
1917%attr(755,root,root) /lib/udev/cdrom_id
1918%attr(755,root,root) /lib/udev/mtd_probe
1919%attr(755,root,root) /lib/udev/scsi_id
1920%attr(755,root,root) /lib/udev/v4l_id
1921
1922%attr(755,root,root) /lib/udev/udevd
1923
30121190 1924%attr(755,root,root) /lib/udev/accelerometer
30121190 1925
f8d07093 1926%dir /lib/udev/hwdb.d
f8d07093 1927/lib/udev/hwdb.d/20-acpi-vendor.hwdb
2be4d5dc 1928/lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb
995ed764 1929/lib/udev/hwdb.d/20-net-ifname.hwdb
7edc5189 1930/lib/udev/hwdb.d/20-OUI.hwdb
f8d07093 1931/lib/udev/hwdb.d/20-pci-classes.hwdb
bce90f0e 1932/lib/udev/hwdb.d/20-pci-vendor-model.hwdb
995ed764
TR
1933/lib/udev/hwdb.d/20-sdio-classes.hwdb
1934/lib/udev/hwdb.d/20-sdio-vendor-model.hwdb
f8d07093 1935/lib/udev/hwdb.d/20-usb-classes.hwdb
bce90f0e 1936/lib/udev/hwdb.d/20-usb-vendor-model.hwdb
7edc5189 1937/lib/udev/hwdb.d/60-evdev.hwdb
11fa1d33 1938/lib/udev/hwdb.d/60-keyboard.hwdb
7dffbad7 1939/lib/udev/hwdb.d/70-mouse.hwdb
7edc5189 1940/lib/udev/hwdb.d/70-pointingstick.hwdb
2f2b39e6 1941/lib/udev/hwdb.d/70-touchpad.hwdb
f8d07093 1942
30121190
JR
1943%attr(755,root,root) %{_sbindir}/start_udev
1944%attr(755,root,root) %{_sbindir}/udevd
1945%attr(755,root,root) %{_sbindir}/udevadm
2f2b39e6 1946%attr(755,root,root) /bin/systemd-hwdb
bce90f0e 1947%attr(755,root,root) /bin/udevadm
30121190
JR
1948
1949%dir %{_sysconfdir}/udev
1950%dir %{_sysconfdir}/udev/rules.d
618c1d39 1951%dir %{_sysconfdir}/udev/hwdb.d
ba7dc07d 1952%ghost %{_sysconfdir}/udev/hwdb.bin
30121190
JR
1953
1954%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
1955%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/udev_blacklist.conf
1956%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf
1957%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
1958%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules
2be4d5dc 1959%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/80-net-name-slot.rules
30121190
JR
1960
1961%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf
1962
1963# rules below are NOT supposed to be changed by users
1964/lib/udev/rules.d/42-usb-hid-pm.rules
1965/lib/udev/rules.d/50-udev-default.rules
7edc5189 1966/lib/udev/rules.d/60-block.rules
30121190 1967/lib/udev/rules.d/60-cdrom_id.rules
995ed764 1968/lib/udev/rules.d/60-drm.rules
7edc5189 1969/lib/udev/rules.d/60-evdev.rules
30121190
JR
1970/lib/udev/rules.d/60-persistent-alsa.rules
1971/lib/udev/rules.d/60-persistent-input.rules
30121190 1972/lib/udev/rules.d/60-persistent-storage.rules
7edc5189 1973/lib/udev/rules.d/60-persistent-storage-tape.rules
30121190 1974/lib/udev/rules.d/60-persistent-v4l.rules
7edc5189 1975/lib/udev/rules.d/60-serial.rules
30121190 1976/lib/udev/rules.d/61-accelerometer.rules
618c1d39 1977/lib/udev/rules.d/64-btrfs.rules
7dffbad7 1978/lib/udev/rules.d/70-mouse.rules
4f1f9baf 1979/lib/udev/rules.d/70-power-switch.rules
2f2b39e6 1980/lib/udev/rules.d/70-touchpad.rules
30121190
JR
1981/lib/udev/rules.d/75-net-description.rules
1982/lib/udev/rules.d/75-probe_mtd.rules
30121190
JR
1983/lib/udev/rules.d/78-sound-card.rules
1984/lib/udev/rules.d/80-drivers.rules
995ed764 1985/lib/udev/rules.d/80-net-setup-link.rules
7dffbad7 1986/lib/udev/rules.d/90-vconsole.rules
30121190 1987
ed4d2b1f 1988%{_mandir}/man5/udev.conf.5*
30121190 1989%{_mandir}/man7/udev.7*
2f2b39e6
JR
1990%{_mandir}/man7/hwdb.7*
1991%{_mandir}/man8/systemd-hwdb.8*
c75fd19d
JR
1992%{_mandir}/man8/udevadm.8*
1993%{_mandir}/man8/udevd.8*
1994
30121190
JR
1995%files -n udev-libs
1996%defattr(644,root,root,755)
1997%attr(755,root,root) /%{_lib}/libudev.so.*.*.*
c75fd19d 1998%attr(755,root,root) %ghost /%{_lib}/libudev.so.1
30121190
JR
1999
2000%files -n udev-devel
2001%defattr(644,root,root,755)
2002%attr(755,root,root) %{_libdir}/libudev.so
30121190
JR
2003%{_includedir}/libudev.h
2004%{_pkgconfigdir}/libudev.pc
2005%{_npkgconfigdir}/udev.pc
2006
30121190
JR
2007%files -n udev-apidocs
2008%defattr(644,root,root,755)
2009%{_gtkdocdir}/libudev
2010
2011%files -n udev-glib
2012%defattr(644,root,root,755)
ed4d2b1f
AM
2013%attr(755,root,root) %{_libdir}/libgudev-1.0.so.*.*.*
2014%attr(755,root,root) %ghost %{_libdir}/libgudev-1.0.so.0
30121190
JR
2015%{_libdir}/girepository-1.0/GUdev-1.0.typelib
2016
2017%files -n udev-glib-devel
2018%defattr(644,root,root,755)
2019%attr(755,root,root) %{_libdir}/libgudev-1.0.so
30121190
JR
2020%{_includedir}/gudev-1.0
2021%{_pkgconfigdir}/gudev-1.0.pc
2022%{_datadir}/gir-1.0/GUdev-1.0.gir
2023
30121190
JR
2024%files -n udev-glib-apidocs
2025%defattr(644,root,root,755)
2026%{_gtkdocdir}/gudev
2027
864041a0
JR
2028%files -n bash-completion-udev
2029%defattr(644,root,root,755)
2030%{_datadir}/bash-completion/completions/udevadm
2031
77d7e0b4
JR
2032%files -n zsh-completion-udev
2033%defattr(644,root,root,755)
2034%{_datadir}/zsh/site-functions/_udevadm
This page took 0.582113 seconds and 4 git commands to generate.