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