SHA256
1
0
forked from pool/systemd

- enable pam_systemd module, using pam-config.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=179
This commit is contained in:
Frederic Crozat 2011-08-19 08:39:33 +00:00 committed by Git OBS Bridge
parent cbe0a610ca
commit e41bfa5fff
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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