diff --git a/systemd.changes b/systemd.changes index 50126be..54376ba 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 899b1da..f126b5e 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