1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
12 url = http://www.freedesktop.org/wiki/Software/systemd
14 summary = A System and Service Manager.
17 systemd is a system and service manager for Linux, compatible with
18 SysV and LSB init scripts.
21 source_dl = http://cgit.freedesktop.org/systemd/systemd/snapshot/
24 unitdir = %{prefix}/lib/systemd/system
30 cryptsetup-luks-devel >= 1.4.2
36 gobject-introspection-devel >= 1.31
53 configure_options += \
54 --with-distro=ipfire \
66 # Create sysv compatible symlinks.
67 mkdir -pv %{BUILDROOT}%{sbindir}
68 ln -svf ../lib/systemd/systemd %{BUILDROOT}/%{sbindir}/init
69 ln -svf ../lib/systemd/systemd %{BUILDROOT}/%{bindir}/systemd
70 ln -svf ../bin/systemctl %{BUILDROOT}/%{sbindir}/reboot
71 ln -svf ../bin/systemctl %{BUILDROOT}/%{sbindir}/halt
72 ln -svf ../bin/systemctl %{BUILDROOT}/%{sbindir}/poweroff
73 ln -svf ../bin/systemctl %{BUILDROOT}/%{sbindir}/shutdown
75 # Create empty machine-id file.
76 touch %{BUILDROOT}/etc/machine-id
78 # Copy locale and console settings
79 mkdir -pv %{BUILDROOT}%{sysconfdir}
80 cp -vf %{DIR_SOURCE}/{locale,vconsole}.conf %{BUILDROOT}%{sysconfdir}
82 # Recreate all targets
83 rm -rfv %{BUILDROOT}/%{sysconfdir}/systemd/system/*.target.wants
84 for i in basic.target.wants default.target.wants dbus.target.wants getty.target.wants \
85 multi-user.target.wants syslog.target.wants; do
86 mkdir -pv %{BUILDROOT}/%{sysconfdir}/systemd/system/${i} || exit 1
89 # Remove runlevel targets and graphical.target
90 rm -rfv %{BUILDROOT}%{unitdir}/runlevel*
91 rm -rfv %{BUILDROOT}%{unitdir}/graphical.target
93 # Remove service files for utmp update.
94 rm -rvf %{BUILDROOT}%{unitdir}/systemd-update-utmp-*.service
95 rm -rvf %{BUILDROOT}%{unitdir}/shutdown.target.wants/systemd-update-utmp-*.service
97 # Set default target to multi-user
98 ln -svf multi-user.target %{BUILDROOT}%{unitdir}/default.target
100 # Replace absolute symlinks by relative ones.
101 cd %{BUILDROOT}%{unitdir}/../user
102 for i in bluetooth local-fs printer remote-fs shutdown sockets sound swap; do
103 ln -svf ../system/${i}.target ${i}.target || exit 1
106 # Remove tmpfile for X11
107 rm -rfv %{BUILDROOT}/usr/lib/tmpfiles.d/x11.conf
109 # Remove unneeded symlink for xdg
110 rm -rfv %{BUILDROOT}/etc/xdg/systemd
118 prerequires += authconfig
125 %{name}-units=%{thisver}
153 /etc/systemd/journald.conf
154 /etc/systemd/logind.conf
155 /etc/systemd/system.conf
156 /etc/systemd/user.conf
162 # Create groups for udev.
163 getent group cdrom >/dev/null || groupadd -g 11 cdrom || :
164 getent group tape >/dev/null || groupadd -g 33 tape || :
165 getent group dialout >/dev/null || groupadd -g 18 dialout || :
166 getent group floppy >/dev/null || groupadd -g 19 floppy || :
170 # Generate Machine ID.
171 /usr/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
173 # Reexec systemd daemon.
174 /usr/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
176 # Make sure pam_systemd is enabled
177 if ! grep -q pam_systemd /etc/pam.d/system-auth-ac ; then
178 authconfig --update --nostart >/dev/null 2>&1 || :
181 grep -q pam_systemd /etc/pam.d/system-auth-ac || authconfig --updateall --nostart >/dev/null 2>&1 || :
184 /usr/bin/systemctl enable \
187 systemd-readahead-replay.service \
188 systemd-readahead-collect.service \
193 # Be sure to stop the old udev before updating.
194 /usr/bin/systemctl stop udev.service udev-trigger.service \
195 udev-control.socket udev-kernel.socket >/dev/null 2>&1 || :
199 # Restart login service after update
200 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
201 /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
204 # Be sure to start the new udev after everything is done.
206 /usr/bin/systemctl start systemd-udev.service >/dev/null 2>&1 || :
210 # Package information for systemd-units
211 package %{name}-units
212 summary = Configuration files, directories and installation tool for systemd.
214 This package contains all needed configuration files, directories
215 and installation / configuration tool for systemd.
232 %{sysconfdir}/etc/systemd/system
233 %{sysconfdir}/tmpfiles.d
234 %{sysconfdir}/bash_completion.d/systemctl-bash-completion.sh
237 %{bindir}/systemd-tmpfiles
238 %{mandir}/man1/systemctl.*
242 # Reload service files
243 /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || :
247 package %{name}-devel
250 files += %{prefix}/lib/pakfire/macros/
254 summary = Libraries for adding libudev support to applications.
256 This package contains the libraries that make it easier to use libudev
257 functionality from applications.
266 %{libdir}/libgudev*.so.*
267 %{libidr}/girepository*/
271 package libudev-devel
272 summary = Header files for adding libudev support to applications.
274 This package contains the header and pkg-config files for developing
275 applications using libudev functionality.
284 %{libdir}/libgudev*.so
285 %{libdir}/pkgconfig/lib*udev.pc
286 %{libdir}/pkgconfig/gudev*
289 %{datadir}/gtk-doc/html/gudev
293 package %{name}-debuginfo