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/
25 # The system security services daemon and many tools requires
26 # an rpath to run properly. Disable the macro for fixing these rpath's.
27 MACRO_FIX_LIBTOOL = # Do nothing.
34 cifs-utils-devel >= 6.6
37 ding-libs-devel >= 0.6.0
67 configure_options += \
68 --with-crypto=libcrypto \
69 --with-db-path=%{localstatedir}/sss/db \
70 --with-pipe-path=%{localstatedir}/sss/pipe \
71 --with-pubconf-path=%{localstatedir}/sss/pubconf \
72 --with-mcache-path=%{localstatedir}/sss/mc \
73 --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
74 --with-default-ccache-dir=/run/user/%U \
75 --with-default-ccname-template=DIR:%d/krb5cc \
76 --with-initscript=systemd \
77 --with-systemdunitdir=%{unitdir} \
78 --enable-pammoddir=%{libdir}/security \
81 --disable-config-lib \
89 # Install default config file.
90 install -m 600 %{DIR_SOURCE}/sssd.conf \
91 %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
93 # Remove old sysVinit stuff.
94 rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
101 %{libdir}:%{libdir}/sssd
102 %{libdir}/sssd:%{libdir}
111 %{sysconfdir}/sssd/sssd.conf
114 prerequires += systemd-units
117 systemctl daemon-reload >/dev/null 2>&1 || :
121 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
122 systemctl stop sssd.service >/dev/null 2>&1 || :
126 systemctl daemon-reload >/dev/null 2>&1 || :
130 systemctl daemon-reload >/dev/null 2>&1 || :
131 systemctl try-restart sssd.service >/dev/null 2>&1 || :
135 package %{name}-client
136 summary = SSSD Client libraries.
137 description = %{summary}
150 %{libdir}/libnss_sss.so.*
151 %{libdir}/security/pam_sss.so
153 %{mandir}/man8/pam_sss.8*
154 %{mandir}/man8/sssd_krb5*.8*
161 authconfig --update --enableldap --enablesssd --enablesssdauth
165 authconfig --update --disableldap --disablesssd --disablesssdauth
169 package %{name}-tools
170 summary = Userspace tools for use with the SSSD.
172 Provides userspace tools for manipulating users, groups, and nested groups in
173 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
182 %{mandir}/man8/sss_*.8*
186 package %{name}-devel
191 summary = FreeIPA Idmap library.
193 Utility library to convert SIDs to Unix uids and gids.
197 %{libdir}/libsss_idmap.so.*
201 package libsss_idmap-devel
202 summary = Development files for libsss_idmap.
203 description = %{summary}
206 %{libdir}/libsss_idmap.so
207 %{libdir}/pkgconfig/sss_idmap.pc
208 %{includedir}/sss_idmap.h
213 summary = FreeIPA HBAC Evaluator library.
215 Utility library to validate FreeIPA HBAC rules for authorization requests.
219 %{libdir}/libipa_hbac.so.*
223 package libipa_hbac-devel
224 summary = Development files for libipa_hbac.
225 description = %{summary}
228 %{libdir}/libipa_hbac.so
229 %{libdir}/pkgconfig/ipa_hbac.pc
230 %{includedir}/ipa_hbac.h
234 package python-libipa_hbac
235 summary = Python bindings for the FreeIPA HBAC Evaluator library.
237 This package contains the bindings so that libipa_hbac can be
238 used by Python applications.
242 %{python_sitearch}/pyhbac.so
247 summary = A library to allow communication between SUDO and SSSD.
249 A utility library to allow communication between SUDO and SSSD.
253 %{libdir}/libsss_sudo.so.*
257 package libsss_sudo-devel
258 summary = Development header for libsss_sudo.
259 description = %{summary}
262 %{libdir}/libsss_sudo.so
263 %{libdir}/pkgconfig/sss_sudo.pc
264 %{includedir}/sss_sudo.h
268 package %{name}-debuginfo