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