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