From 477ab8e21c392141e3d526765af6a68a61649d74d131c375f7074c350bc68c8b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 17 Dec 2019 16:30:17 +0000 Subject: [PATCH] Accepting request 757567 from home:scabrero:branches:network:ldap - Install infopipe dbus service (bsc#1106598) OBS-URL: https://build.opensuse.org/request/show/757567 OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=224 --- sssd.changes | 5 +++ sssd.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 102 insertions(+), 4 deletions(-) diff --git a/sssd.changes b/sssd.changes index b4fc905..b36aa2e 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 22 13:31:54 UTC 2019 - Samuel Cabrero + +- Install infopipe dbus service (bsc#1106598) + ------------------------------------------------------------------- Thu Nov 21 12:56:28 UTC 2019 - Jan Engelhardt diff --git a/sssd.spec b/sssd.spec index b259e1e..20bd0a1 100644 --- a/sssd.spec +++ b/sssd.spec @@ -211,7 +211,7 @@ groups identified by their SID to POSIX users and groups identified by their POSIX UIDs and GIDs respectively. %package winbind-idmap -Summary: idmap backend for Winbind +Summary: The sss idmap backend for Winbind Group: System/Libraries %description winbind-idmap @@ -428,6 +428,13 @@ install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd" rm -Rfv "$b/%_initddir" ln -sfv service "$b/%_sbindir/rcsssd" +ln -sfv service "$b/%_sbindir/rcsssd-autofs" +ln -sfv service "$b/%_sbindir/rcsssd-ifp" +ln -sfv service "$b/%_sbindir/rcsssd-nss" +ln -sfv service "$b/%_sbindir/rcsssd-pac" +ln -sfv service "$b/%_sbindir/rcsssd-pam" +ln -sfv service "$b/%_sbindir/rcsssd-ssh" +ln -sfv service "$b/%_sbindir/rcsssd-sudo" mkdir -pv "$b/%sssdstatedir/mc" mkdir -pv "$b/%_sysconfdir/ld.so.conf.d" @@ -435,7 +442,6 @@ cat >"$b/%_sysconfdir/ld.so.conf.d/sssd-wbclient.conf" <<-EOF %_libdir/%name/modules EOF find "$b" -type f -name "*.la" -print -delete -rm -Rfv "$b/%_sysconfdir/dbus-1" "$b/%_datadir/dbus-1" rm -Rfv "$b/usr/lib/debug/usr/lib/sssd/p11_child-1.16.2-0.x86_64.debug" %find_lang %name --all-name @@ -445,15 +451,54 @@ make %{?_smp_mflags} check ||: %pre %service_add_pre sssd.service +%service_add_pre sssd-autofs.service +%service_add_pre sssd-autofs.socket +%service_add_pre sssd-nss.service +%service_add_pre sssd-nss.socket +%service_add_pre sssd-pac.service +%service_add_pre sssd-pac.socket +%service_add_pre sssd-pam-priv.socket +%service_add_pre sssd-pam.service +%service_add_pre sssd-pam.socket +%service_add_pre sssd-ssh.service +%service_add_pre sssd-ssh.socket +%service_add_pre sssd-sudo.service +%service_add_pre sssd-sudo.socket %post /sbin/ldconfig # migrate config variable krb5_kdcip to krb5_server (bnc#851048) /bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf %service_add_post sssd.service +%service_add_post sssd-autofs.service +%service_add_post sssd-autofs.socket +%service_add_post sssd-nss.service +%service_add_post sssd-nss.socket +%service_add_post sssd-pac.service +%service_add_post sssd-pac.socket +%service_add_post sssd-pam-priv.socket +%service_add_post sssd-pam.service +%service_add_post sssd-pam.socket +%service_add_post sssd-ssh.service +%service_add_post sssd-ssh.socket +%service_add_post sssd-sudo.service +%service_add_post sssd-sudo.socket %preun %service_del_preun sssd.service +%service_del_preun sssd-autofs.service +%service_del_preun sssd-autofs.socket +%service_del_preun sssd-nss.service +%service_del_preun sssd-nss.socket +%service_del_preun sssd-pac.service +%service_del_preun sssd-pac.socket +%service_del_preun sssd-pam-priv.socket +%service_del_preun sssd-pam.service +%service_del_preun sssd-pam.socket +%service_del_preun sssd-ssh.service +%service_del_preun sssd-ssh.socket +%service_del_preun sssd-sudo.service +%service_del_preun sssd-sudo.socket %postun /sbin/ldconfig @@ -465,6 +510,19 @@ fi rm -f /var/lib/sss/db/*.ldb # del_postun includes a try-restart %service_del_postun sssd.service +%service_del_postun sssd-autofs.service +%service_del_postun sssd-autofs.socket +%service_del_postun sssd-nss.service +%service_del_postun sssd-nss.socket +%service_del_postun sssd-pac.service +%service_del_postun sssd-pac.socket +%service_del_postun sssd-pam-priv.socket +%service_del_postun sssd-pam.service +%service_del_postun sssd-pam.socket +%service_del_postun sssd-ssh.service +%service_del_postun sssd-ssh.socket +%service_del_postun sssd-sudo.service +%service_del_postun sssd-sudo.socket %post -n libipa_hbac0 -p /sbin/ldconfig %postun -n libipa_hbac0 -p /sbin/ldconfig @@ -474,15 +532,47 @@ rm -f /var/lib/sss/db/*.ldb %postun -n libsss_nss_idmap0 -p /sbin/ldconfig %post -n libsss_simpleifp0 -p /sbin/ldconfig %postun -n libsss_simpleifp0 -p /sbin/ldconfig +%post -n libsss_certmap0 -p /sbin/ldconfig +%postun -n libsss_certmap0 -p /sbin/ldconfig + +%pre dbus +%service_add_pre sssd-ifp.service + +%post dbus +%service_add_post sssd-ifp.service + +%preun dbus +%service_del_preun sssd-ifp.service + +%postun dbus +%service_del_postun sssd-ifp.service %files -f sssd.lang %license COPYING -%_unitdir %_unitdir/sssd.service +%{_unitdir}/sssd-autofs.socket +%{_unitdir}/sssd-autofs.service +%{_unitdir}/sssd-nss.socket +%{_unitdir}/sssd-nss.service +%{_unitdir}/sssd-pac.socket +%{_unitdir}/sssd-pac.service +%{_unitdir}/sssd-pam.socket +%{_unitdir}/sssd-pam-priv.socket +%{_unitdir}/sssd-pam.service +%{_unitdir}/sssd-ssh.socket +%{_unitdir}/sssd-ssh.service +%{_unitdir}/sssd-sudo.socket +%{_unitdir}/sssd-sudo.service %_bindir/sss_ssh_* %_sbindir/sssctl %_sbindir/sssd %_sbindir/rcsssd +%_sbindir/rcsssd-autofs +%_sbindir/rcsssd-nss +%_sbindir/rcsssd-pac +%_sbindir/rcsssd-pam +%_sbindir/rcsssd-ssh +%_sbindir/rcsssd-sudo %dir %_mandir/??/ %dir %_mandir/??/man[158]/ %_mandir/??/man1/sss_ssh_* @@ -592,6 +682,10 @@ rm -f /var/lib/sss/db/*.ldb %dir %_mandir/??/ %dir %_mandir/??/man5/ %_mandir/??/man5/sssd-ifp.5* +%{_unitdir}/sssd-ifp.service +%_sbindir/rcsssd-ifp +%config %_sysconfdir/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf +%_datadir/dbus-1/system-services/org.freedesktop.sssd.infopipe.service %files ipa %dir %_libdir/%name/ @@ -678,7 +772,6 @@ rm -f /var/lib/sss/db/*.ldb %_libdir/pkgconfig/ipa_hbac.pc %files -n libsss_certmap0 -%_libdir/libsss_certmap.so %_libdir/libsss_certmap.so.0* %files -n libsss_certmap-devel