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