SHA256
1
0
forked from pool/sssd

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
This commit is contained in:
Jan Engelhardt 2019-12-17 16:30:17 +00:00 committed by Git OBS Bridge
parent 129141e5ed
commit 477ab8e21c
2 changed files with 102 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 22 13:31:54 UTC 2019 - Samuel Cabrero <scabrero@suse.de>
- Install infopipe dbus service (bsc#1106598)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 21 12:56:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Thu Nov 21 12:56:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

101
sssd.spec
View File

@ -211,7 +211,7 @@ groups identified by their SID to POSIX users and groups identified
by their POSIX UIDs and GIDs respectively. by their POSIX UIDs and GIDs respectively.
%package winbind-idmap %package winbind-idmap
Summary: idmap backend for Winbind Summary: The sss idmap backend for Winbind
Group: System/Libraries Group: System/Libraries
%description winbind-idmap %description winbind-idmap
@ -428,6 +428,13 @@ install -m644 src/examples/logrotate "$b/%_sysconfdir/logrotate.d/sssd"
rm -Rfv "$b/%_initddir" rm -Rfv "$b/%_initddir"
ln -sfv service "$b/%_sbindir/rcsssd" 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/%sssdstatedir/mc"
mkdir -pv "$b/%_sysconfdir/ld.so.conf.d" 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 %_libdir/%name/modules
EOF EOF
find "$b" -type f -name "*.la" -print -delete 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" rm -Rfv "$b/usr/lib/debug/usr/lib/sssd/p11_child-1.16.2-0.x86_64.debug"
%find_lang %name --all-name %find_lang %name --all-name
@ -445,15 +451,54 @@ make %{?_smp_mflags} check ||:
%pre %pre
%service_add_pre sssd.service %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 %post
/sbin/ldconfig /sbin/ldconfig
# migrate config variable krb5_kdcip to krb5_server (bnc#851048) # migrate config variable krb5_kdcip to krb5_server (bnc#851048)
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf /bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf
%service_add_post sssd.service %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 %preun
%service_del_preun sssd.service %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 %postun
/sbin/ldconfig /sbin/ldconfig
@ -465,6 +510,19 @@ fi
rm -f /var/lib/sss/db/*.ldb rm -f /var/lib/sss/db/*.ldb
# del_postun includes a try-restart # del_postun includes a try-restart
%service_del_postun sssd.service %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 %post -n libipa_hbac0 -p /sbin/ldconfig
%postun -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 %postun -n libsss_nss_idmap0 -p /sbin/ldconfig
%post -n libsss_simpleifp0 -p /sbin/ldconfig %post -n libsss_simpleifp0 -p /sbin/ldconfig
%postun -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 %files -f sssd.lang
%license COPYING %license COPYING
%_unitdir
%_unitdir/sssd.service %_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_* %_bindir/sss_ssh_*
%_sbindir/sssctl %_sbindir/sssctl
%_sbindir/sssd %_sbindir/sssd
%_sbindir/rcsssd %_sbindir/rcsssd
%_sbindir/rcsssd-autofs
%_sbindir/rcsssd-nss
%_sbindir/rcsssd-pac
%_sbindir/rcsssd-pam
%_sbindir/rcsssd-ssh
%_sbindir/rcsssd-sudo
%dir %_mandir/??/ %dir %_mandir/??/
%dir %_mandir/??/man[158]/ %dir %_mandir/??/man[158]/
%_mandir/??/man1/sss_ssh_* %_mandir/??/man1/sss_ssh_*
@ -592,6 +682,10 @@ rm -f /var/lib/sss/db/*.ldb
%dir %_mandir/??/ %dir %_mandir/??/
%dir %_mandir/??/man5/ %dir %_mandir/??/man5/
%_mandir/??/man5/sssd-ifp.5* %_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 %files ipa
%dir %_libdir/%name/ %dir %_libdir/%name/
@ -678,7 +772,6 @@ rm -f /var/lib/sss/db/*.ldb
%_libdir/pkgconfig/ipa_hbac.pc %_libdir/pkgconfig/ipa_hbac.pc
%files -n libsss_certmap0 %files -n libsss_certmap0
%_libdir/libsss_certmap.so
%_libdir/libsss_certmap.so.0* %_libdir/libsss_certmap.so.0*
%files -n libsss_certmap-devel %files -n libsss_certmap-devel