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