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