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