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