forked from pool/sssd
Accepting request 1046514 from home:schubi2:pam_usr_etc
- Migration of PAM settings to /usr/lib/pam.d. OBS-URL: https://build.opensuse.org/request/show/1046514 OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=281
This commit is contained in:
parent
c22b04d15b
commit
015ebfe1b1
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 3 12:01:41 UTC 2023 - Stefan Schubert <schubi@suse.com>
|
||||
|
||||
- Migration of PAM settings to /usr/lib/pam.d.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 21 19:29:45 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
15
sssd.spec
15
sssd.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package sssd
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -408,6 +408,8 @@ install -d "$b/%_unitdir"
|
||||
%if 0%{?suse_version} > 1500
|
||||
install -d "$b/%_distconfdir/logrotate.d"
|
||||
install -m644 src/examples/logrotate "$b/%_distconfdir/logrotate.d/sssd"
|
||||
install -d "$b/%_pam_vendordir"
|
||||
mv "$b/%_pam_confdir/sssd-shadowutils" "$b/%_pam_vendordir"
|
||||
%else
|
||||
install -d "$b/%_sysconfdir/logrotate.d"
|
||||
install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd"
|
||||
@ -428,6 +430,12 @@ ln -sfv %_sysconfdir/alternatives/%cifs_idmap_name %buildroot/%cifs_idmap_plugin
|
||||
|
||||
%pre
|
||||
%service_add_pre sssd.service
|
||||
%if 0%{?suse_version} > 1500
|
||||
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||
for i in pam.d/sssd-shadowutils ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||
done
|
||||
%endif
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
@ -497,7 +505,7 @@ done
|
||||
%if 0%{?suse_version} > 1500
|
||||
%posttrans
|
||||
# Migration to /usr/etc, restore just created .rpmsave
|
||||
for i in logrotate.d/sssd ; do
|
||||
for i in logrotate.d/sssd pam.d/sssd-shadowutils ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||
done
|
||||
%endif
|
||||
@ -595,11 +603,12 @@ done
|
||||
%config(noreplace) %_sysconfdir/sssd/sssd.conf
|
||||
%if 0%{?suse_version} > 1500
|
||||
%_distconfdir/logrotate.d/sssd
|
||||
%_pam_vendordir/sssd-shadowutils
|
||||
%else
|
||||
%config(noreplace) %_sysconfdir/logrotate.d/sssd
|
||||
%config(noreplace) %_pam_confdir/sssd-shadowutils
|
||||
%endif
|
||||
%dir %_sysconfdir/sssd/conf.d
|
||||
%config(noreplace) %_pam_confdir/sssd-shadowutils
|
||||
%dir %_datadir/%name/
|
||||
%_datadir/%name/cfg_rules.ini
|
||||
%_datadir/%name/sssd.api.conf
|
||||
|
Loading…
Reference in New Issue
Block a user