1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://fedorahosted.org/sssd/
13 summary = System Security Services Daemon.
16 Provides a set of daemons to manage access to remote directories and
17 authentication mechanisms. It provides an NSS and PAM interface toward
18 the system and a pluggable backend system to connect to multiple different
22 source_dl = https://fedorahosted.org/released/sssd/
50 configure_options += \
51 --with-crypto=libcrypto \
52 --with-db-path=%{localstatedir}/sss/db \
53 --with-pipe-path=%{localstatedir}/sss/pipe \
54 --with-pubconf-path=%{localstatedir}/sss/pubconf \
55 --with-mcache-path=%{localstatedir}/sss/mc \
56 --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
57 --with-default-ccache-dir=/run/user/%U \
58 --with-default-ccname-template=DIR:%d/krb5cc \
59 --with-initscript=systemd \
60 --with-systemdunitdir=%{unitdir} \
61 --enable-pammoddir=%{libdir}/security \
66 # Install default config file.
67 install -m 600 %{DIR_SOURCE}/sssd.conf \
68 %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
70 # Remove old sysVinit stuff.
71 rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
80 %{sysconfdir}/sssd/sssd.conf
83 prerequires += systemd-units
86 systemctl daemon-reload >/dev/null 2>&1 || :
90 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
91 systemctl stop sssd.service >/dev/null 2>&1 || :
95 systemctl daemon-reload >/dev/null 2>&1 || :
99 systemctl daemon-reload >/dev/null 2>&1 || :
100 systemctl try-restart sssd.service >/dev/null 2>&1 || :
104 package %{name}-client
105 summary = SSSD Client libraries.
106 description = %{summary}
119 %{libdir}/libnss_sss.so.*
120 %{libdir}/security/pam_sss.so
122 %{mandir}/man8/pam_sss.8*
123 %{mandir}/man8/sssd_krb5*.8*
130 authconfig --update --enableldap --enablesssd --enablesssdauth
134 authconfig --update --disableldap --disablesssd --disablesssdauth
138 package %{name}-tools
139 summary = Userspace tools for use with the SSSD.
141 Provides userspace tools for manipulating users, groups, and nested groups in
142 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
151 %{mandir}/man8/sss_*.8*
155 package %{name}-devel
160 summary = FreeIPA Idmap library.
162 Utility library to convert SIDs to Unix uids and gids.
166 %{libdir}/libsss_idmap.so.*
170 package libsss_idmap-devel
171 summary = Development files for libsss_idmap.
172 description = %{summary}
175 %{libdir}/libsss_idmap.so
176 %{libdir}/pkgconfig/sss_idmap.pc
177 %{includedir}/sss_idmap.h
182 summary = FreeIPA HBAC Evaluator library.
184 Utility library to validate FreeIPA HBAC rules for authorization requests.
188 %{libdir}/libipa_hbac.so.*
192 package libipa_hbac-devel
193 summary = Development files for libipa_hbac.
194 description = %{summary}
197 %{libdir}/libipa_hbac.so
198 %{libdir}/pkgconfig/ipa_hbac.pc
199 %{includedir}/ipa_hbac.h
203 package python-libipa_hbac
204 summary = Python bindings for the FreeIPA HBAC Evaluator library.
206 This package contains the bindings so that libipa_hbac can be
207 used by Python applications.
211 %{python_sitearch}/pyhbac.so
216 summary = A library to allow communication between SUDO and SSSD.
218 A utility library to allow communication between SUDO and SSSD.
222 %{libdir}/libsss_sudo.so.*
226 package libsss_sudo-devel
227 summary = Development header for libsss_sudo.
228 description = %{summary}
231 %{libdir}/libsss_sudo.so
232 %{libdir}/pkgconfig/sss_sudo.pc
233 %{includedir}/sss_sudo.h
237 package %{name}-debuginfo