]> git.ipfire.org Git - ipfire-3.x.git/blame - sssd/sssd.nm
kernel: Update to 5.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
92ae11e3 7version = 1.14.2
a6209452 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
92ae11e3 22source_dl = https://releases.pagure.org/SSSD/sssd/
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
a6209452
AM
31 autoconf
32 automake
01eadb71 33 c-ares-devel
a6209452 34 cifs-utils-devel >= 6.6
01eadb71
SS
35 cyrus-sasl-devel
36 dbus-devel
92ae11e3 37 ding-libs-devel >= 0.6.1
01eadb71 38 docbook-xsl
a6209452 39 gettext-devel
01eadb71
SS
40 glib2-devel
41 krb5-devel >= 1.10.3
42 libcollection-devel
92ae11e3
SS
43 libdhash-devel >= 0.6.1
44 libini_config-devel >= 0.6.1
45 libldb-devel >= 1.1.20
a6209452
AM
46 libnl3-devel
47 libnfsidmap-devel
01eadb71
SS
48 libtalloc-devel
49 libtdb-devel
50 libtevent-devel
a6209452 51 libtool
01eadb71
SS
52 openldap-devel
53 openssl-devel
1f5d577a 54 pam-devel >= 1.1.6
01eadb71
SS
55 pcre-devel
56 popt-devel
a6209452
AM
57 python3-devel
58 samba-devel >= 4.0.5
59 systemd-devel
60 end
61
62 prepare_cmds
63 autoreconf -vfi
01eadb71
SS
64 end
65
66 configure_options += \
67 --with-crypto=libcrypto \
68 --with-db-path=%{localstatedir}/sss/db \
69 --with-pipe-path=%{localstatedir}/sss/pipe \
70 --with-pubconf-path=%{localstatedir}/sss/pubconf \
71 --with-mcache-path=%{localstatedir}/sss/mc \
72 --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
73 --with-default-ccache-dir=/run/user/%U \
74 --with-default-ccname-template=DIR:%d/krb5cc \
75 --with-initscript=systemd \
76 --with-systemdunitdir=%{unitdir} \
77 --enable-pammoddir=%{libdir}/security \
78 --disable-static \
a6209452
AM
79 --disable-rpath \
80 --disable-config-lib \
92ae11e3
SS
81 --without-secrets \
82 --without-semanage \
83 --without-selinux
a6209452
AM
84
85 test
86 make check
87 end
01eadb71
SS
88
89 install_cmds
1f5d577a
SS
90 # Install default config file.
91 install -m 600 %{DIR_SOURCE}/sssd.conf \
92 %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
01eadb71
SS
93
94 # Remove old sysVinit stuff.
95 rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
96 end
97end
98
a6209452
AM
99quality-agent
100 whitelist_rpath
101 %{libdir}/sssd
102 %{libdir}:%{libdir}/sssd
103 %{libdir}/sssd:%{libdir}
104 end
105end
106
01eadb71
SS
107packages
108 package %{name}
1f5d577a
SS
109 groups += Base
110
01eadb71
SS
111 configfiles
112 %{sysconfdir}/sssd/sssd.conf
113 end
1f5d577a
SS
114
115 prerequires += systemd-units
116
117 script postin
118 systemctl daemon-reload >/dev/null 2>&1 || :
119 end
120
121 script preun
122 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
123 systemctl stop sssd.service >/dev/null 2>&1 || :
124 end
125
126 script postun
127 systemctl daemon-reload >/dev/null 2>&1 || :
128 end
129
130 script postup
131 systemctl daemon-reload >/dev/null 2>&1 || :
132 systemctl try-restart sssd.service >/dev/null 2>&1 || :
133 end
01eadb71
SS
134 end
135
136 package %{name}-client
137 summary = SSSD Client libraries.
138 description = %{summary}
1f5d577a
SS
139 groups += Base
140
141 requires
142 %{name} = %{thisver}
143 end
144
145 obsoletes
146 nss_ldap
147 pam_ldap
148 end
01eadb71
SS
149
150 files
151 %{libdir}/libnss_sss.so.*
152 %{libdir}/security/pam_sss.so
153 %{libdir}/krb5/
154 %{mandir}/man8/pam_sss.8*
155 %{mandir}/man8/sssd_krb5*.8*
156 end
1f5d577a
SS
157
158 prerequires += \
159 authconfig >= 6.2.5
160
161 script postin
162 authconfig --update --enableldap --enablesssd --enablesssdauth
163 end
164
165 script postun
166 authconfig --update --disableldap --disablesssd --disablesssdauth
167 end
01eadb71
SS
168 end
169
170 package %{name}-tools
171 summary = Userspace tools for use with the SSSD.
172 description
173 Provides userspace tools for manipulating users, groups, and nested groups in
174 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
175 end
176
177 requires
178 %{name} = %{thisver}
179 end
180
181 files
182 %{sbindir}/sss_*
183 %{mandir}/man8/sss_*.8*
184 end
185 end
186
187 package %{name}-devel
188 template DEVEL
189 end
190
191 package libsss_idmap
192 summary = FreeIPA Idmap library.
193 description
194 Utility library to convert SIDs to Unix uids and gids.
195 end
196
197 files
198 %{libdir}/libsss_idmap.so.*
199 end
200 end
201
202 package libsss_idmap-devel
203 summary = Development files for libsss_idmap.
204 description = %{summary}
205
206 files
207 %{libdir}/libsss_idmap.so
208 %{libdir}/pkgconfig/sss_idmap.pc
209 %{includedir}/sss_idmap.h
210 end
211 end
212
213 package libipa_hbac
214 summary = FreeIPA HBAC Evaluator library.
215 description
216 Utility library to validate FreeIPA HBAC rules for authorization requests.
217 end
218
219 files
220 %{libdir}/libipa_hbac.so.*
221 end
222 end
223
224 package libipa_hbac-devel
225 summary = Development files for libipa_hbac.
226 description = %{summary}
227
228 files
229 %{libdir}/libipa_hbac.so
230 %{libdir}/pkgconfig/ipa_hbac.pc
231 %{includedir}/ipa_hbac.h
232 end
233 end
234
235 package python-libipa_hbac
236 summary = Python bindings for the FreeIPA HBAC Evaluator library.
237 description
238 This package contains the bindings so that libipa_hbac can be
239 used by Python applications.
240 end
241
242 files
243 %{python_sitearch}/pyhbac.so
244 end
245 end
246
247 package libsss_sudo
248 summary = A library to allow communication between SUDO and SSSD.
249 description
250 A utility library to allow communication between SUDO and SSSD.
251 end
252
253 files
254 %{libdir}/libsss_sudo.so.*
255 end
256 end
257
258 package libsss_sudo-devel
259 summary = Development header for libsss_sudo.
260 description = %{summary}
261
262 files
263 %{libdir}/libsss_sudo.so
264 %{libdir}/pkgconfig/sss_sudo.pc
265 %{includedir}/sss_sudo.h
266 end
267 end
268
269 package %{name}-debuginfo
270 template DEBUGINFO
271 end
272end