From e41bfa5fff5515ddb0b3265710fa6efd040c2a45d8c15da75a7c9398e93bd142 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Fri, 19 Aug 2011 08:39:33 +0000 Subject: [PATCH] - enable pam_systemd module, using pam-config. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=179 --- systemd.changes | 5 +++++ systemd.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/systemd.changes b/systemd.changes index 50126bea..54376ba8 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 19 08:15:15 UTC 2011 - fcrozat@suse.com + +- enable pam_systemd module, using pam-config. + ------------------------------------------------------------------- Thu Aug 18 07:31:12 UTC 2011 - aj@suse.de diff --git a/systemd.spec b/systemd.spec index 899b1da5..f126b5e8 100644 --- a/systemd.spec +++ b/systemd.spec @@ -43,6 +43,7 @@ Requires: udev >= 172 Requires: dbus-1 >= 1.4.0 Requires: kbd Requires: util-linux >= 2.19 +Requires: pam-config Conflicts: filesystem < 11.5 Conflicts: mkinitrd < 2.7.0 Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2 @@ -183,6 +184,7 @@ ln -s systemd-random-seed-load.service %{buildroot}/lib/systemd/system/random.se %endif %post +/usr/sbin/pam-config -a --systemd || : /bin/systemd-machine-id-setup >/dev/null 2>&1 || : /bin/systemctl daemon-reexec >/dev/null 2>&1 || : /sbin/ldconfig @@ -205,9 +207,12 @@ fi %postun /sbin/ldconfig -if [ $1 -ge 1 ] ; then +if [ $1 -ge 1 ]; then /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : fi +if [ $1 -eq 0 ]; then + /usr/sbin/pam-config -d --systemd || : +fi %preun if [ $1 -eq 0 ]; then