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