diff --git a/Makefile.am b/Makefile.am index 459241c4477..a73cbbefe48 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5261,15 +5261,6 @@ if BUILD_KCM src/sysv/systemd/sssd-kcm.service \ $(NULL) endif -else -if HAVE_GENTOO - init_SCRIPTS += \ - src/sysv/gentoo/sssd \ - src/sysv/gentoo/sssd-kcm -else - init_SCRIPTS += \ - src/sysv/sssd -endif endif diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index e61533bdb86..cc6bd604fb5 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -9,12 +9,7 @@ %global sssd_user root %endif -# sysusers depends on presence of sssd user -%if 0%{?rhel} >= 10 -%global use_sysusers 1 -%else %global use_sysusers 0 -%endif # Capabilities of privileged child helpers (required even if SSSD runs under root) %global child_capabilities cap_chown,cap_dac_override,cap_setuid,cap_setgid=ep @@ -154,7 +149,6 @@ BuildRequires: samba-winbind # required for p11_child smartcard tests BuildRequires: softhsm >= 2.1.0 BuildRequires: bc -BuildRequires: systemd-devel BuildRequires: uid_wrapper BuildRequires: po4a BuildRequires: valgrind-devel @@ -199,7 +193,6 @@ Requires(postun): coreutils %if %{use_sssd_user} Requires(pre): shadow-utils %endif -%{?systemd_requires} ### Provides ### Provides: libsss_sudo-devel = %{version}-%{release} @@ -246,8 +239,6 @@ Requires: sssd-common = %{version}-%{release} Requires: python3-sss = %{version}-%{release} Requires: python3-sssdconfig = %{version}-%{release} Requires: libsss_certmap = %{version}-%{release} -# for logger=journald support with sss_analyze -Requires: python3-systemd Requires: sssd-dbus %description tools @@ -439,7 +430,6 @@ be used by Python applications. Summary: The D-Bus responder of the SSSD License: GPLv3+ Requires: sssd-common = %{version}-%{release} -%{?systemd_requires} %description dbus Provides the D-Bus responder of the SSSD, called the InfoPipe, that allows @@ -502,7 +492,6 @@ Requires: sssd-common = %{version}-%{release} %if %{build_kcm_renewals} Requires: krb5-libs >= %{krb5_version} %endif -%{?systemd_requires} %description kcm An implementation of a Kerberos KCM server. Use this package if you want to @@ -552,7 +541,7 @@ autoreconf -ivf --with-db-path=%{dbpath} \ --with-gpo-cache-path=%{gpocachepath} \ --with-init-dir=%{_initrddir} \ - --with-initscript=systemd \ + --with-initscript=sysv \ --with-krb5-rcache-dir=%{_localstatedir}/cache/krb5rcache \ --with-mcache-path=%{mcpath} \ --with-pipe-path=%{pipepath} \ @@ -731,19 +720,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %license COPYING %doc src/examples/sssd-example.conf %{_sbindir}/sssd -%{_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.service -%{_unitdir}/sssd-ssh.socket -%{_unitdir}/sssd-ssh.service -%{_unitdir}/sssd-sudo.socket -%{_unitdir}/sssd-sudo.service %dir %{_libexecdir}/%{servicename} %{_libexecdir}/%{servicename}/sssd_be @@ -753,7 +729,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %{_libexecdir}/%{servicename}/sssd_ssh %{_libexecdir}/%{servicename}/sssd_sudo %{_libexecdir}/%{servicename}/p11_child -%{_libexecdir}/%{servicename}/sssd_check_socket_activated_responders %dir %{_libdir}/%{name} %{_libdir}/%{name}/libsss_simple.so @@ -873,7 +848,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %license COPYING %{_libexecdir}/%{servicename}/sssd_ifp %{_mandir}/man5/sssd-ifp.5* -%{_unitdir}/sssd-ifp.service # InfoPipe DBus plumbing %{_datadir}/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf %{_datadir}/dbus-1/system-services/org.freedesktop.sssd.infopipe.service @@ -1000,8 +974,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %config(noreplace) %{_sysconfdir}/krb5.conf.d/kcm_default_ccache %dir %{_datadir}/sssd-kcm %{_datadir}/sssd-kcm/kcm_default_ccache -%{_unitdir}/sssd-kcm.socket -%{_unitdir}/sssd-kcm.service %{_mandir}/man8/sssd-kcm.8* %files idp @@ -1032,13 +1004,6 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %endif %post common -%systemd_post sssd.service -%systemd_post sssd-autofs.socket -%systemd_post sssd-nss.socket -%systemd_post sssd-pac.socket -%systemd_post sssd-pam.socket -%systemd_post sssd-ssh.socket -%systemd_post sssd-sudo.socket %__rm -f %{mcpath}/passwd %__rm -f %{mcpath}/group %__rm -f %{mcpath}/initgroups @@ -1048,53 +1013,11 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %__chown -R %{sssd_user}:%{sssd_user} %{_sysconfdir}/sssd/conf.d %__chown %{sssd_user}:%{sssd_user} %{_var}/log/%{name}/*.log -%preun common -%systemd_preun sssd.service -%systemd_preun sssd-autofs.socket -%systemd_preun sssd-nss.socket -%systemd_preun sssd-pac.socket -%systemd_preun sssd-pam.socket -%systemd_preun sssd-ssh.socket -%systemd_preun sssd-sudo.socket - %postun common %__rm -f %{mcpath}/passwd %__rm -f %{mcpath}/group %__rm -f %{mcpath}/initgroups %__rm -f %{mcpath}/sid -%systemd_postun_with_restart sssd-autofs.socket -%systemd_postun_with_restart sssd-nss.socket -%systemd_postun_with_restart sssd-pac.socket -%systemd_postun_with_restart sssd-pam.socket -%systemd_postun_with_restart sssd-ssh.socket -%systemd_postun_with_restart sssd-sudo.socket - -# Services have RefuseManualStart=true, therefore we can't request restart. -%systemd_postun sssd-autofs.service -%systemd_postun sssd-nss.service -%systemd_postun sssd-pac.service -%systemd_postun sssd-pam.service -%systemd_postun sssd-ssh.service -%systemd_postun sssd-sudo.service - -%post dbus -%systemd_post sssd-ifp.service - -%preun dbus -%systemd_preun sssd-ifp.service - -%postun dbus -%systemd_postun_with_restart sssd-ifp.service - -%post kcm -%systemd_post sssd-kcm.socket - -%preun kcm -%systemd_preun sssd-kcm.socket - -%postun kcm -%systemd_postun_with_restart sssd-kcm.socket -%systemd_postun_with_restart sssd-kcm.service %post client /usr/sbin/alternatives --install /etc/cifs-utils/idmap-plugin cifs-idmap-plugin %{_libdir}/cifs-utils/cifs_idmap_sss.so 20 @@ -1104,9 +1027,6 @@ if [ $1 -eq 0 ] ; then /usr/sbin/alternatives --remove cifs-idmap-plugin %{_libdir}/cifs-utils/cifs_idmap_sss.so fi -%posttrans common -%systemd_postun_with_restart sssd.service - %changelog * Thu Jan 21 2021 Pavel Březina - @PACKAGE_NAME@-@PACKAGE_VERSION@-0@PRERELEASE_VERSION@ - Built from upstream sources.