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