]> git.pld-linux.org Git - packages/systemd.git/blame - systemd.spec
- rel 5
[packages/systemd.git] / systemd.spec
CommitLineData
5d32f234 1#
d374e721
JR
2# TODO:
3# - remove compat-pld-var-run.tmpfiles and maybe tmpfiles-not-fatal.patch
4# after enough packages provide their own tmpfiles.d configs for
5# /var/run directories
6#
c3037397 7# Conditional build:
6c89bbd4
ER
8%bcond_without audit # without audit support
9%bcond_without cryptsetup # without cryptsetup support
23107006
TP
10%bcond_without gtk # build gtk tools
11%bcond_without pam # PAM authentication support
4389e6f9 12%bcond_with plymouth # plymouth support
23107006
TP
13%bcond_without selinux # without SELinux support
14%bcond_without tcpd # libwrap (tcp_wrappers) support
9c0b975d 15
c3037397 16Summary: A System and Service Manager
ede8d3e5 17Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
18Name: systemd
c3d5cf4e 19Version: 43
06d34666 20Release: 5
ede8d3e5 21License: GPL v2+
22Group: Base
440d1d13 23Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
c3d5cf4e 24# Source0-md5: 446cc6db7625617af67e2d8e5f503a49
4f25b6ac 25Source1: %{name}-sysv-convert
b0980573 26Source2: %{name}_booted.c
a3a953ae
JR
27Source3: network.service
28Source4: compat-pld-media.tmpfiles
29Source5: compat-pld-var-run.tmpfiles
44410185
JR
30Source10: pld-storage-init-late.service
31Source11: pld-storage-init.service
32Source12: pld-wait-storage.service
33Source13: pld-storage-init.sh
7619c097 34Patch0: target-pld.patch
252e1bad 35Patch1: config-pld.patch
8e088cd5 36Patch2: shut-sysv-up.patch
2e1f31c8 37Patch3: pld-sysv-network.patch
d374e721 38Patch4: tmpfiles-not-fatal.patch
ede8d3e5 39URL: http://www.freedesktop.org/wiki/Software/systemd
5b9bde26 40BuildRequires: acl-devel
6c89bbd4 41%{?with_audit:BuildRequires: audit-libs-devel}
6e34428f
MB
42BuildRequires: autoconf >= 2.63
43BuildRequires: automake >= 1:1.11
e4c66821 44BuildRequires: binutils >= 3:2.22.52.0.1-2
6e34428f 45%{?with_cryptsetup:BuildRequires: cryptsetup-luks-devel}
23107006 46BuildRequires: dbus-devel >= 1.3.2
c3037397 47BuildRequires: docbook-style-xsl
3fc7a1cc 48BuildRequires: gperf
5b9bde26 49BuildRequires: intltool >= 0.40.0
4389e6f9 50BuildRequires: kmod-devel >= 5
b82d0bf2 51BuildRequires: libcap-devel
def6d132 52%{?with_selinux:BuildRequires: libselinux-devel >= 2.1.0}
6c89bbd4
ER
53BuildRequires: libtool >= 2:2.2
54%{?with_tcpd:BuildRequires: libwrap-devel}
6e34428f 55BuildRequires: libxslt-progs
961baf80 56BuildRequires: m4
6c89bbd4 57%{?with_pam:BuildRequires: pam-devel}
23107006 58BuildRequires: pkgconfig >= 0.9.0
4cc1cb1d 59BuildRequires: rpmbuild(macros) >= 1.627
58fd72e9 60BuildRequires: udev-devel >= 1:172
5b9bde26
JB
61# not required for building from release (which contains *.c for *.vala)
62#BuildRequires: vala >= 0.10.0
58fd72e9 63BuildRequires: xz-devel
e4c66821
JB
64%if %{with gtk}
65BuildRequires: glib2-devel >= 1:2.26.1
66BuildRequires: gtk+2-devel >= 2:2.24.0
67BuildRequires: libgee-devel
68BuildRequires: libnotify-devel >= 0.7.0
69%endif
011bccb6 70Requires: %{name}-libs = %{version}-%{release}
c3037397 71Requires: %{name}-units = %{version}-%{release}
58d6217a 72Requires: /etc/os-release
2ff27c26 73Requires: SysVinit-tools
37b8df82 74Requires: agetty
b0980573 75Requires: dbus >= 1.4.16-6
7cb5cfc8 76Requires: filesystem >= 4.0-2
851fb4d8 77Requires: rc-scripts >= 0.4.5.1-7
56701781 78Requires: setup >= 2.8.0-2
b0980573 79Requires: udev-core >= 1:175-5
fe6ae5ab 80Requires: udev-libs >= 1:172
e3134fe0 81Requires: virtual(module-tools)
b0980573 82Suggests: ConsoleKit
2a61be78 83Suggests: fsck >= 2.20
e3134fe0 84Suggests: kmod >= 5
4b15486a 85Suggests: nss_myhostname
2a61be78 86# python modules required by systemd-analyze
b0980573 87Suggests: %{name}-no-compat-tmpfiles
2a61be78
TP
88Suggests: python-dbus
89Suggests: python-modules
c35aa49c 90Suggests: service(klogd)
1cdd35cf 91Suggests: service(syslog)
fda563d5 92Provides: udev-acl
3baeefca
PG
93# systemd takes care of that and causes problems
94Conflicts: binfmt-detector
a6203073 95# sytemd wants pam with pam_systemd.so in system-auth...
3b292a99 96Conflicts: pam < 1:1.1.5-5
a6203073
JR
97# ...and sudo hates it
98Conflicts: sudo < 1:1.7.8p2-4
06d34666
JR
99# for prefdm script
100Conflicts: xinitrc-ng < 1.0
ede8d3e5 101BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102
85879912
ER
103%define _libexecdir %{_prefix}/lib
104
ede8d3e5 105%description
1c239f8b 106systemd is a system and service manager for Linux, compatible with
ede8d3e5 107SysV and LSB init scripts. systemd provides aggressive parallelization
108capabilities, uses socket and D-Bus activation for starting services,
109offers on-demand starting of daemons, keeps track of processes using
110Linux cgroups, supports snapshotting and restoring of the system
111state, maintains mount and automount points and implements an
112elaborate transactional dependency-based service control logic. It can
1c239f8b 113work as a drop-in replacement for sysvinit.
ede8d3e5 114
115%description -l pl.UTF-8
116systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
117skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
118paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
119oferuje uruchamianie usług na życzenie, monitoruje procesy używając
120linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
121(restore) stanu systemu, zarządza (auto)mount pointami oraz
122implementuje starannie opracowaną transakcjonalną, bazującą na
d45dfc3a 123zależnościach logikę kontroli usług. Może pracować jako zastępca dla
ede8d3e5 124sysvinit.
125
c97dacdd
TP
126%package init
127Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
5b9bde26 128Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
c97dacdd 129Group: Base
d6829efa 130Requires: systemd
c97dacdd
TP
131Provides: readahead = 1:1.5.7-3
132Provides: virtual(init-daemon)
133Obsoletes: SysVinit
134Obsoletes: readahead < 1:1.5.7-3
135Obsoletes: virtual(init-daemon)
4e1559fc 136Conflicts: upstart
c97dacdd
TP
137
138%description init
139Install this package when you are ready to final switch to systemd.
140
5b9bde26
JB
141%description init -l pl.UTF-8
142Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
143przejścia na systemd.
144
c3037397
ER
145%package units
146Summary: Configuration files, directories and installation tool for systemd
5b9bde26 147Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
c3037397 148Group: Base
c3037397 149Requires(post): coreutils
a8d86f01 150Requires(post): /bin/awk
c3037397
ER
151
152%description units
153Basic configuration files, directories and installation tool for the
154systemd system and service manager.
155
f341cd9b 156This is common config, use %{_sysconfdir}/systemd/system to override.
10ffdcd2 157
5b9bde26
JB
158%description units -l pl.UTF-8
159Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
160zarządcy systemu i usług systemd.
161
162Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
163poprzez katalog %{_sysconfdir}/systemd/system.
164
e4c66821
JB
165%package plymouth
166Summary: Plymouth support units for systemd
167Summary(pl.UTF-8): Jednostki wspierające Plymouth dla systemd
168Group: Base
169Requires: %{name}-units = %{version}-%{release}
170
171%description plymouth
172Plymouth (graphical boot) support units for systemd.
173
174%description plymouth -l pl.UTF-8
175Jednostki wspierające Plymouth (graficzny start systemu) dla systemd.
176
c3037397
ER
177%package gtk
178Summary: Graphical frontend for systemd
5b9bde26 179Summary(pl.UTF-8): Graficzny interfejs do systemd
c3037397
ER
180Group: Base
181Requires: %{name} = %{version}-%{release}
182Requires: polkit
183
184%description gtk
185Graphical front-end for systemd.
186
5b9bde26
JB
187%description gtk -l pl.UTF-8
188Graficzny interfejs do systemd.
6c89bbd4 189
011bccb6 190%package libs
5b9bde26
JB
191Summary: Shared systemd libraries
192Summary(pl.UTF-8): Biblioteki współdzielone systemd
011bccb6
BZ
193Group: Libraries
194
195%description libs
5b9bde26
JB
196Shared systemd libraries.
197
198%description libs -l pl.UTF-8
199Biblioteki współdzielone systemd.
011bccb6 200
961baf80
AF
201%package devel
202Summary: Header files for systemd libraries
203Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
204Group: Development/Libraries
011bccb6 205Requires: %{name}-libs = %{version}-%{release}
961baf80
AF
206
207%description devel
208Header files for systemd libraries.
209
210%description devel -l pl.UTF-8
211Pliki nagłówkowe bibliotek systemd.
212
5b9bde26
JB
213%package -n bash-completion-systemd
214Summary: bash-completion for systemd
215Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
216Group: Applications/Shells
217Requires: %{name}
218Requires: bash-completion
219
220%description -n bash-completion-systemd
221bash-completion for systemd.
222
223%description -n bash-completion-systemd -l pl.UTF-8
224Bashowe dopełnianie składni dla systemd
225
ae4d0acb
JR
226%package no-compat-tmpfiles
227Summary: Force update of packages that provide tmpfiles.d configuration
228Group: Base
229Requires(post): sed > 4.0
230Conflicts: ConsoleKit-dirs < 0.4.5-7
231Conflicts: NetworkManager < 2:0.9.2.0-3
232Conflicts: Zope < 2.11.8-2
233Conflicts: amavisd-new < 1:2.7.0-1
ae4d0acb
JR
234Conflicts: apache-base < 2.2.21-4
235Conflicts: apache-mod_bw < 0.92-3
236Conflicts: apache-mod_fastcgi < 2.4.6-6
b0980573
ŁK
237Conflicts: apache1-base < 1.3.42-5
238Conflicts: apache1-mod_fastcgi < 2.4.6-2
ae4d0acb
JR
239Conflicts: asterisk < 10.0.1-2
240Conflicts: autossh-init < 1.4b-3
241Conflicts: balance < 3.54-2
242Conflicts: bind < 7:9.8.1.P1-4
243Conflicts: bopm < 3.1.3-4
244Conflicts: callweaver < 1.2.1-9
245Conflicts: cassandra-bin < 0.8.9-2
246Conflicts: clamav < 0.97.3-3
247Conflicts: cups < 1:1.5.0-10
248Conflicts: dbus < 1.4.16-4
249Conflicts: dovecot < 1:2.0.16-3
250Conflicts: dspam < 3.9.0-6
251Conflicts: fail2ban < 0.8.4-4
252Conflicts: filesystem < 4.0-3
253Conflicts: gammu-smsd < 1:1.31.0-3
a6203073
JR
254# Break gdm2.20 installs
255#Conflicts: gdm < 2:3.2.1.1-9
ae4d0acb
JR
256Conflicts: greylistd < 0.8.8-2
257Conflicts: inn < 2.4.6-7
258Conflicts: ipsec-tools < 0.8.0-3
259Conflicts: jabber-common < 0-9
260Conflicts: laptop-mode-tools < 1.58-2
261Conflicts: libgpod < 0.8.0-6
262Conflicts: libvirt-utils < 0.9.9-4
263Conflicts: lighttpd < 1.4.30-5
264Conflicts: lirc < 0.9.0-20
265Conflicts: mailman < 5:2.1.14-4
266Conflicts: memcached < 1.4.11-2
267Conflicts: mpd < 0.16.5-4
268Conflicts: mrtg < 2.17.0-3
269Conflicts: munin-common < 1.4.5-5
270Conflicts: nagios-nrpe < 2.13-2
271Conflicts: ndisc6-rdnssd < 1.0.1-3
272Conflicts: nscd < 6:2.14.1-5
273Conflicts: nss_ldapd-nslcd < 0.8.4-2
274Conflicts: openct < 0.6.20-3
275Conflicts: openl2tp < 1.8-3
276Conflicts: openldap-overlay-nssov < 2.4.28-4
277Conflicts: openldap-servers < 2.4.28-4
278Conflicts: openvpn < 2.2.2-2
ae4d0acb
JR
279Conflicts: pam-pam_mount < 2.12-3
280Conflicts: pam-pam_ssh < 1.97-2
281Conflicts: pcsc-lite < 1.8.1-2
282Conflicts: php-dirs < 1.2-3
283Conflicts: policyd < 2.0.10-3
284Conflicts: pound < 2.6-2
285Conflicts: pptp < 1.7.2-3
286Conflicts: proftpd-common < 2:1.3.4a-2
287Conflicts: pulseaudio-server < 1.1-2
288Conflicts: quagga < 0.99.20-3
289Conflicts: radvd < 1.8.5-2
290Conflicts: rc-scripts < 0.4.5.2-3
291Conflicts: red5 < 0.9.0-2
292Conflicts: redis-server < 2.4.2-4
293Conflicts: smokeping < 2.4.2-10
294Conflicts: smtp-gated < 1.4.17-2
295Conflicts: socat < 1.7.2.0-2
296Conflicts: speech-dispatcher < 0.7.1-2
297Conflicts: sphinx < 2.0.3-4
298Conflicts: splashutils < 1.5.4.3-3
299Conflicts: stunnel < 4.50-2
ae4d0acb
JR
300Conflicts: tenshi < 0.12-2
301Conflicts: tor < 0.2.2.35-2
302Conflicts: ucarp < 1.5.2-3
303Conflicts: udisks < 1.0.4-3
304Conflicts: util-vserver < 0.30.216-1.pre3002.3
305Conflicts: vpnc < 0.5.3-2
306Conflicts: web2ldap < 1.1.0rc1-2
307Conflicts: wesnoth-server < 1:1.10-2
308Conflicts: wpa_supplicant < 0.7.3-10
309Conflicts: xl2tpd < 1.3.0-2
310
311%description no-compat-tmpfiles
312Force update of packages that provide tmpfiles.d configuration
313
ede8d3e5 314%prep
315%setup -q
4c5b5ab6 316%patch0 -p1
252e1bad 317%patch1 -p1
a6203073 318%patch2 -p1
942c9075 319%patch3 -p1
d374e721 320%patch4 -p1
b77423ae 321cp -p %{SOURCE2} src/systemd_booted.c
ede8d3e5 322
323%build
4c5b5ab6 324%{__aclocal} -I m4
ede8d3e5 325%{__autoconf}
6e34428f 326%{__autoheader}
ede8d3e5 327%{__automake}
9c0b975d 328%configure \
6c89bbd4
ER
329 %{__enable_disable audit} \
330 %{__enable_disable cryptsetup libcryptsetup} \
331 %{__enable_disable gtk} \
332 %{__enable_disable pam} \
4389e6f9 333 %{__enable_disable plymouth} \
6c89bbd4
ER
334 %{__enable_disable selinux} \
335 %{__enable_disable tcpd tcpwrap} \
336 --disable-silent-rules \
961baf80 337 --disable-static \
5b9bde26 338 --with-distro=pld \
391eea76 339 --with-rootprefix= \
4389e6f9
JR
340 --with-rootlibdir=/%{_lib} \
341 --enable-split-usr
e1d9cc15 342
ede8d3e5 343%{__make}
b77423ae 344./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
ede8d3e5 345
346%install
347rm -rf $RPM_BUILD_ROOT
23107006 348
ede8d3e5 349%{__make} install \
350 DESTDIR=$RPM_BUILD_ROOT
351
b77423ae
AF
352./libtool --mode=install install -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
353
4389e6f9
JR
354# Main binary has been moved, but we don't want to break existing installs
355ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
356
1dcb74bb 357# Create SysV compatibility symlinks. systemctl/systemd are smart
2a61be78 358# enough to detect the way they were called
c28b0c1c 359install -d $RPM_BUILD_ROOT/sbin
4389e6f9 360ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
1dcb74bb 361ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
362ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
23107006
TP
363ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
364ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
1dcb74bb 365ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
366ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
1dcb74bb 367
5d32f234 368ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
44410185
JR
369
370# disable redundant SYSV services
371ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service
4cc1cb1d 372ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
44410185
JR
373ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service
374ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service
375ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service
376ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
5d32f234 377
f1586299 378# add static (non-NetworkManager) networking
a3a953ae 379install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
f1586299 380
5c8fe698 381# install compatibility tmpfiles configs
a3a953ae
JR
382install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/compat-pld-media.conf
383install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/compat-pld-var-run.conf
5c8fe698 384
44410185
JR
385# Install and enable storage subsystems support services (RAID, LVM, etc.)
386install %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service
387install %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service
388install %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service
389install %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init
390
391ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/pld-storage-init-late.service
392ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/pld-storage-init.service
c3037397 393
2a61be78
TP
394# Make sure these directories are properly owned:
395# - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd,
396# - syslog _might_ be used by some syslog implementation (none for now),
397# - isn't dbus populated by dbus-systemd only (so to be moved there)?
4cc1cb1d 398install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants
961baf80
AF
399
400# Create new-style configuration files so that we can ghost-own them
70047b34 401touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf}
4bbef33c 402
9d8b5dfe 403# Install SysV conversion tool for systemd
4f25b6ac 404install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
9d8b5dfe
BZ
405
406install -d $RPM_BUILD_ROOT/var/log
5a65c84e
TP
407:> $RPM_BUILD_ROOT/var/log/btmp
408:> $RPM_BUILD_ROOT/var/log/wtmp
a761f93e 409
5d32f234 410%if %{without gtk}
5d32f234
TP
411%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/systemadm.1*
412%endif
413
414%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
a86320a6 415%{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la
5d32f234
TP
416%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
417
ede8d3e5 418%clean
419rm -rf $RPM_BUILD_ROOT
420
9638c72f 421%post
4bbef33c 422/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
9638c72f 423/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
c3037397 424
961baf80 425%postun
85879912 426if [ $1 -ge 1 ]; then
961baf80 427 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
9638c72f 428fi
429
3edd52a6
TP
430%post libs -p /sbin/ldconfig
431%postun libs -p /sbin/ldconfig
011bccb6 432
961baf80 433%post units
85879912 434if [ $1 -eq 1 ]; then
961baf80
AF
435 # Try to read default runlevel from the old inittab if it exists
436 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
437 if [ -z "$runlevel" ] ; then
4cc1cb1d 438 target="%{systemdunitdir}/graphical.target"
961baf80 439 else
4cc1cb1d 440 target="%{systemdunitdir}/runlevel$runlevel.target"
961baf80
AF
441 fi
442
443 # And symlink what we found to the new-style default.target
f341cd9b 444 ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
cf819365
JR
445
446 # Setup hostname
447 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
448 if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
449 [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave
450 echo $HOSTNAME > /etc/hostname
451 chmod 644 /etc/hostname
452 fi
44410185
JR
453
454 # Enable the services we install by default.
455 /bin/systemctl enable \
456 getty@.service \
457 network.service \
458 remote-fs.target \
459 systemd-readahead-replay.service \
460 systemd-readahead-collect.service >/dev/null 2>&1 || :
9638c72f 461fi
c3037397
ER
462
463%preun units
961baf80
AF
464if [ $1 -eq 0 ] ; then
465 /bin/systemctl disable \
466 getty@.service \
f1586299 467 network.service \
961baf80
AF
468 remote-fs.target \
469 systemd-readahead-replay.service \
470 systemd-readahead-collect.service >/dev/null 2>&1 || :
471
f341cd9b 472 %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
c3037397 473fi
9638c72f 474
961baf80 475%postun units
85879912 476if [ $1 -ge 1 ]; then
9638c72f 477 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
478fi
479
44410185
JR
480%triggerpostun units -- %{name}-units < 43-4
481# Remove design fialures
482/bin/systemctl disable network-post.service >/dev/null 2>&1 || :
483rm -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || :
484rm -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service >/dev/null 2>&1 || :
485
ae4d0acb 486%post no-compat-tmpfiles
a6203073 487%{__sed} -i -e '/^#/!s/^/# /g' %{_sysconfdir}/tmpfiles.d/compat-pld-var-run.conf
ae4d0acb 488
ede8d3e5 489%files
490%defattr(644,root,root,755)
1c239f8b 491%doc DISTRO_PORTING README TODO
6e34428f 492/etc/dbus-1/system.d/org.freedesktop.hostname1.conf
961baf80
AF
493/etc/dbus-1/system.d/org.freedesktop.locale1.conf
494/etc/dbus-1/system.d/org.freedesktop.login1.conf
c3037397 495/etc/dbus-1/system.d/org.freedesktop.systemd1.conf
961baf80 496/etc/dbus-1/system.d/org.freedesktop.timedate1.conf
3edd52a6 497%ghost %config(noreplace) %{_sysconfdir}/machine-id
b77423ae
AF
498%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname
499%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf
500%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info
b77423ae
AF
501%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone
502%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf
5d32f234 503%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/*.conf
2a61be78 504%dir %{_sysconfdir}/systemd/user
44410185
JR
505%dir %{_sysconfdir}/systemd/system/*.target.wants
506%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.service
507%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.target
abd479ee 508/etc/xdg/systemd
1dcb74bb 509%attr(755,root,root) /bin/systemd
510%attr(755,root,root) /bin/systemd-ask-password
c76a8951 511%attr(755,root,root) /bin/systemd-journalctl
961baf80 512%attr(755,root,root) /bin/systemd-loginctl
7a76bc86 513%attr(755,root,root) /bin/systemd-machine-id-setup
1dcb74bb 514%attr(755,root,root) /bin/systemd-notify
515%attr(755,root,root) /bin/systemd-tty-ask-password-agent
57cd0d13 516%attr(755,root,root) %{_bindir}/systemd-analyze
d374e721
JR
517%attr(755,root,root) %{_bindir}/systemd-cat
518%attr(755,root,root) %{_bindir}/systemd-cgtop
23107006 519%attr(755,root,root) %{_bindir}/systemd-cgls
57cd0d13
ZU
520%attr(755,root,root) %{_bindir}/systemd-nspawn
521%attr(755,root,root) %{_bindir}/systemd-stdio-bridge
2a61be78 522%attr(755,root,root) %{_bindir}/systemd-sysv-convert
44410185 523%attr(755,root,root) /lib/systemd/pld-storage-init
abd479ee 524%attr(755,root,root) /lib/systemd/systemd-*
c3037397 525%dir /lib/systemd/system-generators
4389e6f9 526%attr(755,root,root) /lib/systemd/systemd
5d32f234 527%attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator
abd479ee 528%dir /lib/systemd/system-shutdown
1c239f8b 529/lib/udev/rules.d/99-systemd.rules
961baf80
AF
530/lib/udev/rules.d/70-uaccess.rules
531/lib/udev/rules.d/71-seat.rules
532/lib/udev/rules.d/73-seat-late.rules
3edd52a6
TP
533%dir %{_libexecdir}/systemd
534%{_libexecdir}/systemd/user
2a61be78 535%dir %{_libexecdir}/systemd/user-generators
89d58574 536%config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/*.conf
961baf80
AF
537%{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml
538%{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml
c3037397 539%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
961baf80 540%{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml
1c239f8b 541%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
6e34428f 542%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
961baf80
AF
543%{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
544%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
1c239f8b 545%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
961baf80 546%{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
6e34428f 547%{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
961baf80
AF
548%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
549%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
550%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
551%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
552%dir %{_datadir}/systemd
553%{_datadir}/systemd/kbd-model-map
7a76bc86 554%{_mandir}/man1/systemd.1*
2a61be78 555%{_mandir}/man1/systemd-*.1*
1c239f8b 556%{_mandir}/man3/sd_booted.3*
557%{_mandir}/man3/sd_is_fifo.3*
558%{_mandir}/man3/sd_is_socket.3
559%{_mandir}/man3/sd_is_socket_inet.3
560%{_mandir}/man3/sd_is_socket_unix.3
561%{_mandir}/man3/sd_listen_fds.3*
562%{_mandir}/man3/sd_notify.3*
563%{_mandir}/man3/sd_notifyf.3
564%{_mandir}/man3/sd_readahead.3*
6e34428f 565%{_mandir}/man5/binfmt.d.5*
1c239f8b 566%{_mandir}/man5/hostname.5*
567%{_mandir}/man5/locale.conf.5*
7a76bc86 568%{_mandir}/man5/machine-id.5*
6e34428f 569%{_mandir}/man5/machine-info.5*
1c239f8b 570%{_mandir}/man5/modules-load.d.5*
571%{_mandir}/man5/os-release.5*
6e34428f 572%{_mandir}/man5/sysctl.d.5*
89d58574 573%{_mandir}/man5/systemd.*.5*
961baf80
AF
574%{_mandir}/man5/systemd-logind.conf.5*
575%{_mandir}/man5/timezone.5*
23107006 576%{_mandir}/man5/vconsole.conf.5*
1c239f8b 577%{_mandir}/man7/daemon.7*
578%{_mandir}/man7/sd-daemon.7*
c76a8951 579%{_mandir}/man7/sd-login.7*
1c239f8b 580%{_mandir}/man7/sd-readahead.7*
581%{_mandir}/man7/systemd.special.7*
a761f93e
TP
582%attr(640,root,root) %ghost /var/log/btmp
583%attr(664,root,utmp) %ghost /var/log/wtmp
c3037397 584
6c89bbd4 585%if %{with pam}
a86320a6 586%attr(755,root,root) /%{_lib}/security/pam_systemd.so
6c89bbd4
ER
587%{_mandir}/man8/pam_systemd.8*
588%endif
589
c97dacdd 590%files init
5b9bde26 591%defattr(644,root,root,755)
c97dacdd
TP
592%attr(755,root,root) /sbin/halt
593%attr(755,root,root) /sbin/init
594%attr(755,root,root) /sbin/poweroff
595%attr(755,root,root) /sbin/reboot
596%attr(755,root,root) /sbin/runlevel
597%attr(755,root,root) /sbin/shutdown
598%attr(755,root,root) /sbin/telinit
599%{_mandir}/man1/init.1
600%{_mandir}/man8/halt.8*
601%{_mandir}/man8/poweroff.8
602%{_mandir}/man8/reboot.8
603%{_mandir}/man8/runlevel.8*
604%{_mandir}/man8/shutdown.8*
605%{_mandir}/man8/telinit.8*
606
c3037397
ER
607%files units
608%defattr(644,root,root,755)
abd479ee
MB
609%dir %{_sysconfdir}/binfmt.d
610%dir %{_sysconfdir}/modules-load.d
5d32f234 611%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf
abd479ee 612%dir %{_sysconfdir}/sysctl.d
c3037397
ER
613%dir %{_sysconfdir}/systemd
614%dir %{_sysconfdir}/systemd/system
615%dir %{_sysconfdir}/tmpfiles.d
7cb5cfc8 616%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/tmpfiles.d/*.conf
85879912
ER
617%dir %{_libexecdir}/binfmt.d
618%dir %{_libexecdir}/modules-load.d
619%dir %{_libexecdir}/sysctl.d
d374e721 620%{_libexecdir}/sysctl.d/coredump.conf
c3037397
ER
621%attr(755,root,root) /bin/systemctl
622%attr(755,root,root) /bin/systemd-tmpfiles
b77423ae 623%attr(755,root,root) /bin/systemd_booted
c3037397 624%{_mandir}/man1/systemctl.1*
89d58574 625%{_mandir}/man5/tmpfiles.d.5*
c3037397 626%{_mandir}/man8/systemd-tmpfiles.8*
961baf80 627%{_npkgconfigdir}/systemd.pc
c3037397 628
4cc1cb1d
ER
629%{systemdunitdir}/*.automount
630%{systemdunitdir}/*.mount
631%{systemdunitdir}/*.path
632%{systemdunitdir}/*.service
633%{systemdunitdir}/*.socket
634%{systemdunitdir}/*.target
635%{systemdunitdir}/*.timer
e4c66821
JB
636%if %{with plymouth}
637%exclude %{systemdunitdir}/plymouth*.service
638%exclude %{systemdunitdir}/systemd-ask-password-plymouth.*
639%endif
640%dir %{systemdunitdir}/basic.target.wants
641%dir %{systemdunitdir}/dbus.target.wants
642%dir %{systemdunitdir}/final.target.wants
643%dir %{systemdunitdir}/graphical.target.wants
644%dir %{systemdunitdir}/halt.target.wants
645%dir %{systemdunitdir}/kexec.target.wants
646%dir %{systemdunitdir}/local-fs.target.wants
647%dir %{systemdunitdir}/multi-user.target.wants
648%dir %{systemdunitdir}/poweroff.target.wants
649%dir %{systemdunitdir}/reboot.target.wants
650%dir %{systemdunitdir}/runlevel[12345].target.wants
651%dir %{systemdunitdir}/shutdown.target.wants
652%dir %{systemdunitdir}/sockets.target.wants
653%dir %{systemdunitdir}/sysinit.target.wants
654%dir %{systemdunitdir}/syslog.target.wants
655%config(noreplace,missingok) %{systemdunitdir}/basic.target.wants/*
656%config(noreplace,missingok) %{systemdunitdir}/final.target.wants/*
657%config(noreplace,missingok) %{systemdunitdir}/graphical.target.wants/*
658%config(noreplace,missingok) %{systemdunitdir}/local-fs.target.wants/*
659%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/getty.target
660%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/rc-local.service
661%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path
662%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-logind.service
663%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service
664%config(noreplace,missingok) %{systemdunitdir}/runlevel[12345].target.wants/*
665%config(noreplace,missingok) %{systemdunitdir}/shutdown.target.wants/*
666%config(noreplace,missingok) %{systemdunitdir}/sockets.target.wants/*
667%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/cryptsetup.target
668%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount
669%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount
670%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount
671%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/sys-*.mount
672%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/systemd-*
673
674%if %{with plymouth}
675%files plymouth
676%defattr(644,root,root,755)
677%{systemdunitdir}/plymouth-halt.service
678%{systemdunitdir}/plymouth-kexec.service
679%{systemdunitdir}/plymouth-poweroff.service
680%{systemdunitdir}/plymouth-quit-wait.service
681%{systemdunitdir}/plymouth-quit.service
682%{systemdunitdir}/plymouth-read-write.service
683%{systemdunitdir}/plymouth-reboot.service
684%{systemdunitdir}/plymouth-start.service
685%{systemdunitdir}/systemd-ask-password-plymouth.path
686%{systemdunitdir}/systemd-ask-password-plymouth.service
687%config(noreplace,missingok) %{systemdunitdir}/halt.target.wants/plymouth-halt.service
688%config(noreplace,missingok) %{systemdunitdir}/kexec.target.wants/plymouth-kexec.service
689%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/plymouth-quit.service
690%config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service
691%config(noreplace,missingok) %{systemdunitdir}/poweroff.target.wants/plymouth-poweroff.service
692%config(noreplace,missingok) %{systemdunitdir}/reboot.target.wants/plymouth-reboot.service
693%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/plymouth-read-write.service
694%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/plymouth-start.service
695%endif
10ffdcd2 696
c3037397
ER
697%if %{with gtk}
698%files gtk
699%defattr(644,root,root,755)
700%attr(755,root,root) %{_bindir}/systemadm
701%attr(755,root,root) %{_bindir}/systemd-gnome-ask-password-agent
c3037397
ER
702%{_mandir}/man1/systemadm.1*
703%endif
6c89bbd4 704
5b9bde26 705%files libs
6c89bbd4 706%defattr(644,root,root,755)
6ba1f779
MB
707%attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
708%attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
709%attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.*
710%attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0
711%attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.*
712%attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0
713%attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
714%attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
961baf80
AF
715
716%files devel
717%defattr(644,root,root,755)
89d58574 718%attr(755,root,root) %{_libdir}/libsystemd-daemon.so
c76a8951
BZ
719%attr(755,root,root) %{_libdir}/libsystemd-id128.so
720%attr(755,root,root) %{_libdir}/libsystemd-journal.so
89d58574 721%attr(755,root,root) %{_libdir}/libsystemd-login.so
5b9bde26 722%{_includedir}/%{name}
961baf80 723%{_pkgconfigdir}/libsystemd-daemon.pc
c76a8951
BZ
724%{_pkgconfigdir}/libsystemd-id128.pc
725%{_pkgconfigdir}/libsystemd-journal.pc
961baf80 726%{_pkgconfigdir}/libsystemd-login.pc
c76a8951
BZ
727%{_mandir}/man3/sd_get_seats.3*
728%{_mandir}/man3/sd_get_sessions.3*
729%{_mandir}/man3/sd_get_uids.3*
730%{_mandir}/man3/sd_is_mq.3*
731%{_mandir}/man3/sd_login_monitor_flush.3*
732%{_mandir}/man3/sd_login_monitor_get_fd.3*
733%{_mandir}/man3/sd_login_monitor_new.3*
734%{_mandir}/man3/sd_login_monitor_unref.3*
735%{_mandir}/man3/sd_pid_get_owner_uid.3*
736%{_mandir}/man3/sd_pid_get_session.3*
737%{_mandir}/man3/sd_pid_get_unit.3*
738%{_mandir}/man3/sd_seat_can_multi_session.3*
739%{_mandir}/man3/sd_seat_get_active.3*
740%{_mandir}/man3/sd_seat_get_sessions.3*
741%{_mandir}/man3/sd_session_get_seat.3*
742%{_mandir}/man3/sd_session_get_uid.3*
743%{_mandir}/man3/sd_session_is_active.3*
744%{_mandir}/man3/sd_uid_get_seats.3*
745%{_mandir}/man3/sd_uid_get_sessions.3*
746%{_mandir}/man3/sd_uid_get_state.3*
747%{_mandir}/man3/sd_uid_is_on_seat.3*
5b9bde26
JB
748
749%files -n bash-completion-systemd
750%defattr(644,root,root,755)
391eea76 751/etc/bash_completion.d/systemd-bash-completion.sh
ae4d0acb
JR
752
753%files no-compat-tmpfiles
754%defattr(644,root,root,755)
755# empty package
This page took 0.204111 seconds and 4 git commands to generate.