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