%define WITH_BACKLIGHT 0
%define WITH_TIMEDATED 0
%define WITH_RFKILL 0
+%define with_multiuser 1
Name: systemd
Version: 219
--with-sysvinit-path= \
--with-sysvrcnd-path= \
--with-smack-run-label=System \
+%if ! %{?with_multiuser}
+ --disable-logind \
+%endif
cc_cv_CFLAGS__flto=no
make %{?_smp_mflags} \
systemunitdir=%{_unitdir} \
/usr/bin/ln -s ../bin/systemctl %{buildroot}%{_sbindir}/runlevel
# legacy links
+%if %{?with_multiuser}
/usr/bin/ln -s loginctl %{buildroot}%{_bindir}/systemd-loginctl
+%endif
# We create all wants links manually at installation time to make sure
# they are not owned and hence overriden by rpm after the used deleted
/usr/bin/systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service >/dev/null 2>&1 || :
# Rename configuration files that changed their names
+%if %{?with_multiuser}
/usr/bin/mv -n %{_sysconfdir}/systemd/systemd-logind.conf %{_sysconfdir}/systemd/logind.conf >/dev/null 2>&1 || :
+%endif
/usr/bin/mv -n %{_sysconfdir}/systemd/systemd-journald.conf %{_sysconfdir}/systemd/journald.conf >/dev/null 2>&1 || :
%post
%files
%manifest %{name}.manifest
+%if %{with_multiuser}
%config %{_sysconfdir}/pam.d/systemd-user
+%endif
%{_bindir}/bootctl
%{_bindir}/busctl
%{_bindir}/kernel-install
%dir %{_datadir}/systemd
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf
+%if %{?with_multiuser}
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.login1.conf
+%endif
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.locale1.conf
%if %{?WITH_TIMEDATED}
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf
%endif
%config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/user.conf
+%if %{?with_multiuser}
%config(noreplace) %{_sysconfdir}/systemd/logind.conf
+%endif
%config(noreplace) %{_sysconfdir}/systemd/journald.conf
%config(noreplace) %{_sysconfdir}/udev/udev.conf
%{_sysconfdir}/xdg/systemd
%{_bindir}/systemd-ask-password
%{_bindir}/systemd-tty-ask-password-agent
%{_bindir}/systemd-machine-id-setup
+%if %{?with_multiuser}
%{_bindir}/loginctl
%{_bindir}/systemd-loginctl
+%endif
%{_bindir}/journalctl
%{_bindir}/systemd-tmpfiles
%{_bindir}/systemd-nspawn
%{_bindir}/systemd-cgtop
%{_bindir}/systemd-delta
%{_bindir}/systemd-detect-virt
+%if %{?with_multiuser}
%{_bindir}/systemd-inhibit
+%endif
%{_bindir}/udevadm
%{_bindir}/systemd-escape
%{_bindir}/systemd-path
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
+%if %{?with_multiuser}
%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
+%endif
%{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
%if %{?WITH_TIMEDATED}
%{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
+%if %{?with_multiuser}
%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
+%endif
%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
%if %{?WITH_TIMEDATED}
%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
%files -n libsystemd
%manifest %{name}.manifest
+%if %{?with_multiuser}
%{_libdir}/security/pam_systemd.so
+%endif
%{_libdir}/libsystemd.so.*
%{_libdir}/libudev.so.*
%{_libdir}/libsystemd-daemon.so.*