wip drop u-a
This commit is contained in:
parent
e9bed7037d
commit
12794d37fa
43
sssd.spec
43
sssd.spec
@ -131,15 +131,11 @@ Obsoletes: sssd-common < %version-%release
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Both SSSD and cifs-utils provide an idmap plugin for cifs.ko
|
# Both SSSD and cifs-utils provide an idmap plugin for cifs.ko
|
||||||
# %%_sysconfdir/cifs-utils/idmap-plugin should be a symlink to one of the 2 idmap plugins
|
# %%_sysconfdir/cifs-utils/idmap-plugin should be a symlink to one of the 2 idmap plugins,
|
||||||
# * cifs-utils one is the default (priority 20)
|
# cifs-utils or sssd. The plugins are individually packaged and conflicts with each other
|
||||||
# * installing SSSD should NOT switch to SSSD plugin (priority 10)
|
# (https://bugzilla.suse.com/show_bug.cgi?id=1235789).
|
||||||
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
|
%define cifs_idmap_plugin %_sysconfdir/cifs-utils/idmap-plugin
|
||||||
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
|
%define cifs_idmap_lib %_libdir/cifs-utils/cifs_idmap_sss.so
|
||||||
%define cifs_idmap_name cifs-idmap-plugin
|
|
||||||
%define cifs_idmap_priority 10
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A set of daemons to manage access to remote directories and
|
A set of daemons to manage access to remote directories and
|
||||||
@ -253,6 +249,15 @@ Group: System/Libraries
|
|||||||
The idmap_sss module provides a way for Winbind to call SSSD to map
|
The idmap_sss module provides a way for Winbind to call SSSD to map
|
||||||
UIDs/GIDs and SIDs.
|
UIDs/GIDs and SIDs.
|
||||||
|
|
||||||
|
%package cifs-idmap-plugin
|
||||||
|
Summary: The sss idmap backend for cifs
|
||||||
|
Group: System/Libraries
|
||||||
|
Provides: cifs-idmap-plugin
|
||||||
|
Conflicts: cifs-idmap-plugin
|
||||||
|
|
||||||
|
%description cifs-idmap-plugin
|
||||||
|
Plugin for cifs.idmap(8)
|
||||||
|
|
||||||
%package -n libsss_certmap0
|
%package -n libsss_certmap0
|
||||||
Summary: FreeIPA ID mapping library
|
Summary: FreeIPA ID mapping library
|
||||||
License: LGPL-3.0-or-later
|
License: LGPL-3.0-or-later
|
||||||
@ -473,8 +478,9 @@ find "$b" -type f -name "*.la" -print -delete
|
|||||||
%find_lang %name --all-name
|
%find_lang %name --all-name
|
||||||
|
|
||||||
# dummy target for cifs-idmap-plugin
|
# dummy target for cifs-idmap-plugin
|
||||||
mkdir -pv "$b/%_sysconfdir/alternatives" "$b/%_sysconfdir/cifs-utils"
|
mkdir -pv "$b/%_sysconfdir/cifs-utils"
|
||||||
ln -sfv "%_sysconfdir/alternatives/%cifs_idmap_name" "$b/%cifs_idmap_plugin"
|
ln -sfv "%cifs_idmap_lib" "$b/%cifs_idmap_plugin"
|
||||||
|
|
||||||
%python3_fix_shebang
|
%python3_fix_shebang
|
||||||
%if 0%{?suse_version} > 1600
|
%if 0%{?suse_version} > 1600
|
||||||
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/sss_analyze
|
%python3_fix_shebang_path %buildroot/%_libexecdir/%name/sss_analyze
|
||||||
@ -530,9 +536,6 @@ fi
|
|||||||
%tmpfiles_create %name.conf
|
%tmpfiles_create %name.conf
|
||||||
%set_permissions %_libexecdir/%name/selinux_child %_libexecdir/%name/sssd_pam
|
%set_permissions %_libexecdir/%name/selinux_child %_libexecdir/%name/sssd_pam
|
||||||
|
|
||||||
# install SSSD cifs-idmap plugin as an alternative
|
|
||||||
update-alternatives --install %cifs_idmap_plugin %cifs_idmap_name %cifs_idmap_lib %cifs_idmap_priority
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%service_del_preun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
@ -544,9 +547,6 @@ fi
|
|||||||
# del_postun includes a try-restart
|
# del_postun includes a try-restart
|
||||||
%service_del_postun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
%service_del_postun sssd.service sssd-autofs.service sssd-autofs.socket sssd-nss.service sssd-nss.socket sssd-pac.service sssd-pac.socket sssd-pam.service sssd-pam.socket sssd-ssh.service sssd-ssh.socket sssd-sudo.service sssd-sudo.socket
|
||||||
|
|
||||||
if [ ! -f "%cifs_idmap_lib" ]; then
|
|
||||||
update-alternatives --remove %cifs_idmap_name %cifs_idmap_lib
|
|
||||||
fi
|
|
||||||
|
|
||||||
%ldconfig_scriptlets -n libsss_certmap0
|
%ldconfig_scriptlets -n libsss_certmap0
|
||||||
%ldconfig_scriptlets -n libipa_hbac0
|
%ldconfig_scriptlets -n libipa_hbac0
|
||||||
@ -781,12 +781,7 @@ fi
|
|||||||
%_mandir/man8/sssd_krb5_localauth_plugin.8*
|
%_mandir/man8/sssd_krb5_localauth_plugin.8*
|
||||||
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
|
%_mandir/??/man8/sssd_krb5_localauth_plugin.8*
|
||||||
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
%_mandir/man8/sssd_krb5_locator_plugin.8*
|
||||||
# cifs idmap plugin
|
|
||||||
%dir %_sysconfdir/cifs-utils
|
|
||||||
%cifs_idmap_plugin
|
|
||||||
%dir %_libdir/cifs-utils
|
|
||||||
%cifs_idmap_lib
|
|
||||||
%ghost %_sysconfdir/alternatives/%cifs_idmap_name
|
|
||||||
|
|
||||||
%files ad
|
%files ad
|
||||||
%dir %_libdir/%name/
|
%dir %_libdir/%name/
|
||||||
@ -892,6 +887,12 @@ fi
|
|||||||
%_libdir/samba/idmap/
|
%_libdir/samba/idmap/
|
||||||
%_mandir/man8/idmap_sss.8*
|
%_mandir/man8/idmap_sss.8*
|
||||||
|
|
||||||
|
%files cifs-idmap-plugin
|
||||||
|
%dir %_sysconfdir/cifs-utils
|
||||||
|
%cifs_idmap_plugin
|
||||||
|
%dir %_libdir/cifs-utils
|
||||||
|
%cifs_idmap_lib
|
||||||
|
|
||||||
%files -n libipa_hbac0
|
%files -n libipa_hbac0
|
||||||
%_libdir/libipa_hbac.so.0*
|
%_libdir/libipa_hbac.so.0*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user