diff --git a/baselibs.conf b/baselibs.conf index c229a20..1f9893a 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,4 +1,4 @@ pam_kwallet requires "pam_kwallet = " supplements "packageand(pam_kwallet:pam-)" - + post "%{_sbindir}/pam-config -a --kwallet5 || :" diff --git a/pam_kwallet.spec b/pam_kwallet.spec index a63bdc6..00b3647 100644 --- a/pam_kwallet.spec +++ b/pam_kwallet.spec @@ -32,6 +32,7 @@ BuildRequires: pam-devel BuildRequires: socat BuildRequires: xz Requires: %{name}-common = %{version} +Requires(postun): coreutils pam pam-config %description This PAM module allows you to automatically open your kwallet @@ -57,6 +58,16 @@ module. %install %kf5_makeinstall -C build +# Due to boo#728586 it is necessary to duplicate this in the 32bit variant. +# So you need to edit baselibs.conf if you change this. +%post + %{_sbindir}/pam-config -a --kwallet5 || : + +%postun + if [ "$1" = "0" ]; then + %{_sbindir}/pam-config -d --kwallet5 || : + fi + %files %defattr(-,root,root) %doc COPYING*