]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - sssd/sssd.nm
kernel: update to 4.12.10
[people/arne_f/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
a6209452
AM
7version = 1.14.1
8release = 1
01eadb71
SS
9
10groups = System/Tools
11url = http://fedorahosted.org/sssd/
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
22source_dl = https://fedorahosted.org/released/sssd/
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
a6209452 37 ding-libs-devel >= 0.6.0
01eadb71 38 docbook-xsl
a6209452 39 gettext-devel
01eadb71
SS
40 glib2-devel
41 krb5-devel >= 1.10.3
42 libcollection-devel
43 libdhash-devel
44 libini_config-devel
45 libldb-devel
a6209452
AM
46 libnl3-devel
47 libnfsidmap-devel
01eadb71
SS
48 libsemanage-devel
49 libtalloc-devel
50 libtdb-devel
51 libtevent-devel
a6209452 52 libtool
01eadb71
SS
53 openldap-devel
54 openssl-devel
1f5d577a 55 pam-devel >= 1.1.6
01eadb71
SS
56 pcre-devel
57 popt-devel
a6209452
AM
58 python3-devel
59 samba-devel >= 4.0.5
60 systemd-devel
61 end
62
63 prepare_cmds
64 autoreconf -vfi
01eadb71
SS
65 end
66
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 \
79 --disable-static \
a6209452
AM
80 --disable-rpath \
81 --disable-config-lib \
82 --without-secrets
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
95 end
96end
97
a6209452
AM
98quality-agent
99 whitelist_rpath
100 %{libdir}/sssd
101 %{libdir}:%{libdir}/sssd
102 %{libdir}/sssd:%{libdir}
103 end
104end
105
01eadb71
SS
106packages
107 package %{name}
1f5d577a
SS
108 groups += Base
109
01eadb71
SS
110 configfiles
111 %{sysconfdir}/sssd/sssd.conf
112 end
1f5d577a
SS
113
114 prerequires += systemd-units
115
116 script postin
117 systemctl daemon-reload >/dev/null 2>&1 || :
118 end
119
120 script preun
121 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
122 systemctl stop sssd.service >/dev/null 2>&1 || :
123 end
124
125 script postun
126 systemctl daemon-reload >/dev/null 2>&1 || :
127 end
128
129 script postup
130 systemctl daemon-reload >/dev/null 2>&1 || :
131 systemctl try-restart sssd.service >/dev/null 2>&1 || :
132 end
01eadb71
SS
133 end
134
135 package %{name}-client
136 summary = SSSD Client libraries.
137 description = %{summary}
1f5d577a
SS
138 groups += Base
139
140 requires
141 %{name} = %{thisver}
142 end
143
144 obsoletes
145 nss_ldap
146 pam_ldap
147 end
01eadb71
SS
148
149 files
150 %{libdir}/libnss_sss.so.*
151 %{libdir}/security/pam_sss.so
152 %{libdir}/krb5/
153 %{mandir}/man8/pam_sss.8*
154 %{mandir}/man8/sssd_krb5*.8*
155 end
1f5d577a
SS
156
157 prerequires += \
158 authconfig >= 6.2.5
159
160 script postin
161 authconfig --update --enableldap --enablesssd --enablesssdauth
162 end
163
164 script postun
165 authconfig --update --disableldap --disablesssd --disablesssdauth
166 end
01eadb71
SS
167 end
168
169 package %{name}-tools
170 summary = Userspace tools for use with the SSSD.
171 description
172 Provides userspace tools for manipulating users, groups, and nested groups in
173 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
174 end
175
176 requires
177 %{name} = %{thisver}
178 end
179
180 files
181 %{sbindir}/sss_*
182 %{mandir}/man8/sss_*.8*
183 end
184 end
185
186 package %{name}-devel
187 template DEVEL
188 end
189
190 package libsss_idmap
191 summary = FreeIPA Idmap library.
192 description
193 Utility library to convert SIDs to Unix uids and gids.
194 end
195
196 files
197 %{libdir}/libsss_idmap.so.*
198 end
199 end
200
201 package libsss_idmap-devel
202 summary = Development files for libsss_idmap.
203 description = %{summary}
204
205 files
206 %{libdir}/libsss_idmap.so
207 %{libdir}/pkgconfig/sss_idmap.pc
208 %{includedir}/sss_idmap.h
209 end
210 end
211
212 package libipa_hbac
213 summary = FreeIPA HBAC Evaluator library.
214 description
215 Utility library to validate FreeIPA HBAC rules for authorization requests.
216 end
217
218 files
219 %{libdir}/libipa_hbac.so.*
220 end
221 end
222
223 package libipa_hbac-devel
224 summary = Development files for libipa_hbac.
225 description = %{summary}
226
227 files
228 %{libdir}/libipa_hbac.so
229 %{libdir}/pkgconfig/ipa_hbac.pc
230 %{includedir}/ipa_hbac.h
231 end
232 end
233
234 package python-libipa_hbac
235 summary = Python bindings for the FreeIPA HBAC Evaluator library.
236 description
237 This package contains the bindings so that libipa_hbac can be
238 used by Python applications.
239 end
240
241 files
242 %{python_sitearch}/pyhbac.so
243 end
244 end
245
246 package libsss_sudo
247 summary = A library to allow communication between SUDO and SSSD.
248 description
249 A utility library to allow communication between SUDO and SSSD.
250 end
251
252 files
253 %{libdir}/libsss_sudo.so.*
254 end
255 end
256
257 package libsss_sudo-devel
258 summary = Development header for libsss_sudo.
259 description = %{summary}
260
261 files
262 %{libdir}/libsss_sudo.so
263 %{libdir}/pkgconfig/sss_sudo.pc
264 %{includedir}/sss_sudo.h
265 end
266 end
267
268 package %{name}-debuginfo
269 template DEBUGINFO
270 end
271end