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