]> git.ipfire.org Git - ipfire-3.x.git/blame - sssd/sssd.nm
sssd: Update to version 2.9.2-1
[ipfire-3.x.git] / sssd / sssd.nm
CommitLineData
01eadb71
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = sssd
3cf4b627
AB
7version = 2.9.2
8release = 1
01eadb71
SS
9
10groups = System/Tools
92ae11e3 11url = https://github.com/SSSD/sssd
01eadb71
SS
12license = GPLv3+
13summary = System Security Services Daemon.
14
15description
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
19 account sources.
20end
21
8bf49f00 22source_dl = https://github.com/SSSD/sssd/releases/download/%{version}/
01eadb71
SS
23
24build
a6209452
AM
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.
28
01eadb71
SS
29 requires
30 /usr/bin/nsupdate
31 c-ares-devel
8bf49f00 32 curl-devel
01eadb71
SS
33 cyrus-sasl-devel
34 dbus-devel
92ae11e3 35 ding-libs-devel >= 0.6.1
01eadb71 36 docbook-xsl
a6209452 37 gettext-devel
01eadb71 38 glib2-devel
8bf49f00
SS
39 jansson-devel
40 jose-devel
01eadb71
SS
41 krb5-devel >= 1.10.3
42 libcollection-devel
92ae11e3
SS
43 libdhash-devel >= 0.6.1
44 libini_config-devel >= 0.6.1
8bf49f00 45 libldb-devel >= 1.6.1
a6209452 46 libnfsidmap-devel
8f967a84 47 libnl3-devel
01eadb71
SS
48 libtalloc-devel
49 libtdb-devel
50 libtevent-devel
a6209452 51 libtool
8bf49f00 52 libunistring-devel
01eadb71
SS
53 openldap-devel
54 openssl-devel
8bf49f00 55 p11-kit-devel >= 0.23.3
1f5d577a 56 pam-devel >= 1.1.6
01eadb71
SS
57 pcre-devel
58 popt-devel
a6209452 59 python3-devel
8bf49f00 60 samba-devel >= 4.17.5
a6209452
AM
61 systemd-devel
62 end
63
01eadb71
SS
64 configure_options += \
65 --with-crypto=libcrypto \
b4df42b9
SS
66 --with-db-path=%{sharedstatedir}/sss/db \
67 --with-pipe-path=%{sharedstatedir}/sss/pipe \
68 --with-pubconf-path=%{sharedstatedir}/sss/pubconf \
69 --with-mcache-path=%{sharedstatedir}/sss/mc \
01eadb71
SS
70 --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
71 --with-default-ccache-dir=/run/user/%U \
72 --with-default-ccname-template=DIR:%d/krb5cc \
73 --with-initscript=systemd \
74 --with-systemdunitdir=%{unitdir} \
75 --enable-pammoddir=%{libdir}/security \
76 --disable-static \
a6209452
AM
77 --disable-rpath \
78 --disable-config-lib \
92ae11e3
SS
79 --without-secrets \
80 --without-semanage \
8f967a84
SS
81 --without-selinux \
82 --disable-cifs-idmap-plugin
a6209452
AM
83
84 test
85 make check
86 end
01eadb71
SS
87
88 install_cmds
1f5d577a
SS
89 # Install default config file.
90 install -m 600 %{DIR_SOURCE}/sssd.conf \
91 %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
01eadb71
SS
92
93 # Remove old sysVinit stuff.
94 rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
b4df42b9
SS
95
96 # Drop /var/run
97 rm -rvf %{BUILDROOT}%{localstatedir}/run
3cf4b627
AB
98
99 # Change python to python3 in sss_analyze file
100 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' %{BUILDROOT}/usr/lib/sssd/sss_analyze
01eadb71
SS
101 end
102end
103
104packages
105 package %{name}
1f5d577a
SS
106 groups += Base
107
01eadb71
SS
108 configfiles
109 %{sysconfdir}/sssd/sssd.conf
110 end
1f5d577a 111
1f5d577a
SS
112 script postin
113 systemctl daemon-reload >/dev/null 2>&1 || :
114 end
115
116 script preun
117 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
118 systemctl stop sssd.service >/dev/null 2>&1 || :
119 end
120
121 script postun
122 systemctl daemon-reload >/dev/null 2>&1 || :
123 end
124
125 script postup
126 systemctl daemon-reload >/dev/null 2>&1 || :
127 systemctl try-restart sssd.service >/dev/null 2>&1 || :
128 end
01eadb71
SS
129 end
130
131 package %{name}-client
132 summary = SSSD Client libraries.
133 description = %{summary}
1f5d577a
SS
134 groups += Base
135
136 requires
137 %{name} = %{thisver}
138 end
139
140 obsoletes
141 nss_ldap
142 pam_ldap
143 end
01eadb71
SS
144
145 files
146 %{libdir}/libnss_sss.so.*
147 %{libdir}/security/pam_sss.so
148 %{libdir}/krb5/
149 %{mandir}/man8/pam_sss.8*
150 %{mandir}/man8/sssd_krb5*.8*
151 end
152 end
153
154 package %{name}-tools
155 summary = Userspace tools for use with the SSSD.
156 description
157 Provides userspace tools for manipulating users, groups, and nested groups in
158 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
159 end
160
161 requires
162 %{name} = %{thisver}
163 end
164
165 files
166 %{sbindir}/sss_*
167 %{mandir}/man8/sss_*.8*
168 end
169 end
170
171 package %{name}-devel
172 template DEVEL
173 end
174
175 package libsss_idmap
176 summary = FreeIPA Idmap library.
177 description
178 Utility library to convert SIDs to Unix uids and gids.
179 end
180
181 files
182 %{libdir}/libsss_idmap.so.*
183 end
184 end
185
186 package libsss_idmap-devel
187 summary = Development files for libsss_idmap.
188 description = %{summary}
189
190 files
191 %{libdir}/libsss_idmap.so
192 %{libdir}/pkgconfig/sss_idmap.pc
193 %{includedir}/sss_idmap.h
194 end
195 end
196
197 package libipa_hbac
198 summary = FreeIPA HBAC Evaluator library.
199 description
200 Utility library to validate FreeIPA HBAC rules for authorization requests.
201 end
202
203 files
204 %{libdir}/libipa_hbac.so.*
205 end
206 end
207
208 package libipa_hbac-devel
209 summary = Development files for libipa_hbac.
210 description = %{summary}
211
212 files
213 %{libdir}/libipa_hbac.so
214 %{libdir}/pkgconfig/ipa_hbac.pc
215 %{includedir}/ipa_hbac.h
216 end
217 end
218
219 package python-libipa_hbac
220 summary = Python bindings for the FreeIPA HBAC Evaluator library.
221 description
222 This package contains the bindings so that libipa_hbac can be
223 used by Python applications.
224 end
225
226 files
227 %{python_sitearch}/pyhbac.so
228 end
229 end
230
231 package libsss_sudo
232 summary = A library to allow communication between SUDO and SSSD.
233 description
234 A utility library to allow communication between SUDO and SSSD.
235 end
236
237 files
238 %{libdir}/libsss_sudo.so.*
239 end
240 end
241
242 package libsss_sudo-devel
243 summary = Development header for libsss_sudo.
244 description = %{summary}
245
246 files
247 %{libdir}/libsss_sudo.so
248 %{libdir}/pkgconfig/sss_sudo.pc
249 %{includedir}/sss_sudo.h
250 end
251 end
252
253 package %{name}-debuginfo
254 template DEBUGINFO
255 end
256end