Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/sssd/files/, sys-auth/sssd/
Date: Sun, 18 Oct 2020 15:50:09
Message-Id: 1603036201.bf28cc84a678e8583724c13beb23ade8d84b6b3b.zlogene@gentoo
1 commit: bf28cc84a678e8583724c13beb23ade8d84b6b3b
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 18 15:49:39 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 18 15:50:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf28cc84
7
8 sys-auth/sssd: Drop old
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 sys-auth/sssd/Manifest | 2 -
14 .../sssd/files/sssd-2.2.3-glibc-2.32-compat.patch | 71 -------
15 sys-auth/sssd/sssd-2.2.2.ebuild | 230 --------------------
16 sys-auth/sssd/sssd-2.2.3.ebuild | 234 ---------------------
17 4 files changed, 537 deletions(-)
18
19 diff --git a/sys-auth/sssd/Manifest b/sys-auth/sssd/Manifest
20 index 9f06f51f441..0c71572a614 100644
21 --- a/sys-auth/sssd/Manifest
22 +++ b/sys-auth/sssd/Manifest
23 @@ -1,5 +1,3 @@
24 DIST sssd-2.2.0.tar.gz 6642715 BLAKE2B e6c16ca69effe59769fc166c02203faee445ebe2bf551c6a1460bdee2474ccbce1a38b3aa59b1ae4a79bb170696a784b800a9299025bf6a58bc9aeb94b946338 SHA512 9ebd8784e1f0c72cb808bbc153c0b0aa9bf507938f78336a260073a89b49350dc2c6172653509738ea7a50bb9da596725e1d6c92f99c7a03308aa42f6378dbbb
25 -DIST sssd-2.2.2.tar.gz 6767578 BLAKE2B e0eedaf1da1de953903730c96479af0709ee14dd83eca82a11316dc96c29573b5f3de5965f386d5c12a69e7d98b6168c9d197bbd46ac51f0122feababe52dfe1 SHA512 4cce8fdbcc05d1469dad5ba987cb0f9bc33702b37f85e8e248975461bb50b0740fec92ff213bdb640b506405be7ead936ff253ab02d4a27205ddf20cc0e54801
26 -DIST sssd-2.2.3.tar.gz 6894302 BLAKE2B b72443ebd4f50581a0d9d2b7cf691fdda0dfe3cfb2ed82c383595aeca8d6198c7f44f1c49e56bdfeac23f9151897ac2df70d1afbbeceb2231daee71492884420 SHA512 b61d52a53e26e8efa9cb799fc6efc2314bf9d174d3cacfe591a4ca77530637591eacc0dc70c0555252e04a9617e8b134b1ab2d9b0f7351b4228e7b61499e6a10
27 DIST sssd-2.3.1.tar.gz 7186526 BLAKE2B 6d630fe75b9b426ef54adbe1704fde8e01fc34df7861028c07ce2985db8a151ce743d633061386fea6460fe8eabb89242b816d4bac87975bb9b7b2064ad1d547 SHA512 6aeb52d5222c5992d581296996749327bcaf276e4eb4413a6a32ea6529343432cfe413006aca4245c19b38b515be1c4c2ef88a157c617d889274179253355bc6
28 DIST sssd-2.4.0.tar.gz 7280358 BLAKE2B 28136953cd7c9f3119bd5a223c911a3b3f97921402c5a8ba34c6fca90434fead46906266e33450688fe131a515edf9e5f8654658cc10cfaafb44a9c2d8c59dd8 SHA512 d9a4b17665ce3a1ea51cfe2fdb53818ac1e265a33c61f657f61699ecc716e1244e45b5b628aeae6c54e601383084f3cac327cb3edd7bea80bca397b1fbe4ab72
29
30 diff --git a/sys-auth/sssd/files/sssd-2.2.3-glibc-2.32-compat.patch b/sys-auth/sssd/files/sssd-2.2.3-glibc-2.32-compat.patch
31 deleted file mode 100644
32 index 9d59ae91be5..00000000000
33 --- a/sys-auth/sssd/files/sssd-2.2.3-glibc-2.32-compat.patch
34 +++ /dev/null
35 @@ -1,71 +0,0 @@
36 -From fe9eeb51be06059721e873f77092b1e9ba08e6c1 Mon Sep 17 00:00:00 2001
37 -From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@××××××.com>
38 -Date: Thu, 27 Feb 2020 06:50:40 +0100
39 -Subject: [PATCH] nss: Collision with external nss symbol
40 -MIME-Version: 1.0
41 -Content-Type: text/plain; charset=UTF-8
42 -Content-Transfer-Encoding: 8bit
43 -
44 -One of our internal static function names started
45 -to collide with external nss symbol. Additional
46 -sss_ suffix was added to avoid the collision.
47 -
48 -This is needed to unblock Fedora Rawhide's
49 -SSSD build.
50 -
51 -Reviewed-by: Pavel Březina <pbrezina@××××××.com>
52 ----
53 - src/responder/nss/nss_cmd.c | 18 ++++++++++--------
54 - 1 file changed, 10 insertions(+), 8 deletions(-)
55 -
56 -diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c
57 -index 356aea1564..02706c4b94 100644
58 ---- a/src/responder/nss/nss_cmd.c
59 -+++ b/src/responder/nss/nss_cmd.c
60 -@@ -731,11 +731,13 @@ static void nss_getent_done(struct tevent_req *subreq)
61 - talloc_free(cmd_ctx);
62 - }
63 -
64 --static void nss_setnetgrent_done(struct tevent_req *subreq);
65 -+static void sss_nss_setnetgrent_done(struct tevent_req *subreq);
66 -
67 --static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
68 -- enum cache_req_type type,
69 -- nss_protocol_fill_packet_fn fill_fn)
70 -+/* This function's name started to collide with external nss symbol,
71 -+ * so it has additional sss_* prefix unlike other functions here. */
72 -+static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx,
73 -+ enum cache_req_type type,
74 -+ nss_protocol_fill_packet_fn fill_fn)
75 - {
76 - struct nss_ctx *nss_ctx;
77 - struct nss_state_ctx *state_ctx;
78 -@@ -777,7 +779,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
79 - goto done;
80 - }
81 -
82 -- tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
83 -+ tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx);
84 -
85 - ret = EOK;
86 -
87 -@@ -790,7 +792,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
88 - return EOK;
89 - }
90 -
91 --static void nss_setnetgrent_done(struct tevent_req *subreq)
92 -+static void sss_nss_setnetgrent_done(struct tevent_req *subreq)
93 - {
94 - struct nss_cmd_ctx *cmd_ctx;
95 - errno_t ret;
96 -@@ -1040,8 +1042,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx)
97 -
98 - static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx)
99 - {
100 -- return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
101 -- nss_protocol_fill_setnetgrent);
102 -+ return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
103 -+ nss_protocol_fill_setnetgrent);
104 - }
105 -
106 - static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx)
107
108 diff --git a/sys-auth/sssd/sssd-2.2.2.ebuild b/sys-auth/sssd/sssd-2.2.2.ebuild
109 deleted file mode 100644
110 index 98af8535a88..00000000000
111 --- a/sys-auth/sssd/sssd-2.2.2.ebuild
112 +++ /dev/null
113 @@ -1,230 +0,0 @@
114 -# Copyright 1999-2020 Gentoo Authors
115 -# Distributed under the terms of the GNU General Public License v2
116 -
117 -EAPI=7
118 -
119 -inherit autotools flag-o-matic linux-info multilib-minimal pam systemd toolchain-funcs
120 -
121 -DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
122 -HOMEPAGE="https://pagure.io/SSSD/sssd"
123 -SRC_URI="http://releases.pagure.org/SSSD/${PN}/${P}.tar.gz"
124 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
125 -
126 -LICENSE="GPL-3"
127 -SLOT="0"
128 -IUSE="acl autofs +locator +netlink nfsv4 nls +manpages samba selinux sudo ssh test"
129 -RESTRICT="!test? ( test )"
130 -
131 -COMMON_DEP="
132 - >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}]
133 - >=dev-libs/popt-1.16
134 - dev-libs/glib:2
135 - >=dev-libs/ding-libs-0.2
136 - >=sys-libs/talloc-2.0.7
137 - >=sys-libs/tdb-1.2.9
138 - >=sys-libs/tevent-0.9.16
139 - >=sys-libs/ldb-1.1.17-r1:=
140 - >=net-nds/openldap-2.4.30[sasl]
141 - net-libs/http-parser
142 - >=dev-libs/libpcre-8.30
143 - >=app-crypt/mit-krb5-1.10.3
144 - dev-libs/jansson
145 - net-misc/curl
146 - locator? (
147 - >=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
148 - >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
149 - )
150 - >=sys-apps/keyutils-1.5:=
151 - >=net-dns/c-ares-1.7.4
152 - >=dev-libs/nss-3.12.9
153 - selinux? (
154 - >=sys-libs/libselinux-2.1.9
155 - >=sys-libs/libsemanage-2.1
156 - )
157 - >=net-dns/bind-tools-9.9[gssapi]
158 - >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
159 - >=sys-apps/dbus-1.6
160 - acl? ( net-fs/cifs-utils[acl] )
161 - nfsv4? ( || ( >=net-fs/nfs-utils-2.3.1-r2 net-libs/libnfsidmap ) )
162 - nls? ( >=sys-devel/gettext-0.18 )
163 - virtual/libintl
164 - netlink? ( dev-libs/libnl:3 )
165 - samba? ( >=net-fs/samba-4.10.2[winbind] )
166 - "
167 -
168 -RDEPEND="${COMMON_DEP}
169 - >=sys-libs/glibc-2.17[nscd]
170 - selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
171 - "
172 -DEPEND="${COMMON_DEP}
173 - test? ( dev-libs/check )
174 - manpages? (
175 - >=dev-libs/libxslt-1.1.26
176 - app-text/docbook-xml-dtd:4.4
177 - )"
178 -
179 -CONFIG_CHECK="~KEYS"
180 -
181 -MULTILIB_WRAPPED_HEADERS=(
182 - /usr/include/ipa_hbac.h
183 - /usr/include/sss_idmap.h
184 - /usr/include/sss_nss_idmap.h
185 - /usr/include/wbclient_sssd.h
186 - # --with-ifp
187 - /usr/include/sss_sifp.h
188 - /usr/include/sss_sifp_dbus.h
189 - # from 1.15.3
190 - /usr/include/sss_certmap.h
191 -)
192 -
193 -pkg_setup() {
194 - linux-info_pkg_setup
195 -}
196 -
197 -src_prepare() {
198 - sed -i 's:#!/sbin/runscript:#!/sbin/openrc-run:' \
199 - "${S}"/src/sysv/gentoo/sssd.in || die "sed sssd.in"
200 -
201 - default
202 - eautoreconf
203 - multilib_copy_sources
204 -}
205 -
206 -src_configure() {
207 - local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
208 -
209 - multilib-minimal_src_configure
210 -}
211 -
212 -multilib_src_configure() {
213 - # set initscript to sysv because the systemd option needs systemd to
214 - # be installed. We provide our own systemd file anyway.
215 - local myconf=()
216 - #Work around linker dependency problem.
217 - append-ldflags "-Wl,--allow-shlib-undefined"
218 -
219 - myconf+=(
220 - --localstatedir="${EPREFIX}"/var
221 - --enable-nsslibdir="${EPREFIX}"/$(get_libdir)
222 - --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
223 - --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
224 - --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
225 - --with-os=gentoo
226 - --with-nscd
227 - --with-unicode-lib="glib2"
228 - --disable-rpath
229 - --sbindir=/usr/sbin
230 - --without-kcm
231 - $(use_with samba libwbclient)
232 - --with-secrets
233 - $(multilib_native_use_with samba)
234 - $(multilib_native_use_enable acl cifs-idmap-plugin)
235 - $(multilib_native_use_with selinux)
236 - $(multilib_native_use_with selinux semanage)
237 - $(use_enable locator krb5-locator-plugin)
238 - $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
239 - $(use_enable nls )
240 - $(multilib_native_use_with netlink libnl)
241 - $(multilib_native_use_with manpages)
242 - $(multilib_native_use_with sudo)
243 - $(multilib_native_use_with autofs)
244 - $(multilib_native_use_with ssh)
245 - --with-crypto="nss"
246 - --with-initscript="sysv"
247 - --without-python2-bindings
248 - --without-python3-bindings
249 -
250 - KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
251 - )
252 -
253 - if ! multilib_is_native_abi; then
254 - # work-around all the libraries that are used for CLI and server
255 - myconf+=(
256 - {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
257 - # ldb headers are fine since native needs it
258 - # ldb lib fails... but it does not seem to bother
259 - {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1}}_{CFLAGS,LIBS}=' '
260 - {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
261 -
262 - # use native include path for dbus (needed for build)
263 - DBUS_CFLAGS="${native_dbus_cflags}"
264 -
265 - # non-pkgconfig checks
266 - ac_cv_lib_ldap_ldap_search=yes
267 - --without-secrets
268 - --without-libwbclient
269 - --without-kcm
270 - --with-crypto=""
271 - )
272 -
273 - use locator || myconf+=(
274 - KRB5_CONFIG=/bin/true
275 - )
276 - fi
277 -
278 - econf "${myconf[@]}"
279 -}
280 -
281 -multilib_src_compile() {
282 - if multilib_is_native_abi; then
283 - default
284 - else
285 - emake libnss_sss.la pam_sss.la
286 - use locator && emake sssd_krb5_locator_plugin.la
287 - fi
288 -}
289 -
290 -multilib_src_install() {
291 - if multilib_is_native_abi; then
292 - emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
293 - else
294 - # easier than playing with automake...
295 - dopammod .libs/pam_sss.so
296 -
297 - into /
298 - dolib.so .libs/libnss_sss.so*
299 -
300 - if use locator; then
301 - exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
302 - doexe .libs/sssd_krb5_locator_plugin.so
303 - fi
304 - fi
305 -}
306 -
307 -multilib_src_install_all() {
308 - einstalldocs
309 - find "${ED}" -type f -name '*.la' -delete || die
310 -
311 - insinto /etc/sssd
312 - insopts -m600
313 - doins "${S}"/src/examples/sssd-example.conf
314 -
315 - insinto /etc/logrotate.d
316 - insopts -m644
317 - newins "${S}"/src/examples/logrotate sssd
318 -
319 - newconfd "${FILESDIR}"/sssd.conf sssd
320 - newinitd "${FILESDIR}"/sssd sssd
321 -
322 - keepdir /var/lib/sss/db
323 - keepdir /var/lib/sss/deskprofile
324 - keepdir /var/lib/sss/gpo_cache
325 - keepdir /var/lib/sss/keytabs
326 - keepdir /var/lib/sss/mc
327 - keepdir /var/lib/sss/pipes/private
328 - keepdir /var/lib/sss/pubconf/krb5.include.d
329 - keepdir /var/lib/sss/secrets
330 - keepdir /var/log/sssd
331 -
332 - systemd_dounit "${FILESDIR}/${PN}.service"
333 -}
334 -
335 -multilib_src_test() {
336 - default
337 -}
338 -
339 -pkg_postinst() {
340 - elog "You must set up sssd.conf (default installed into /etc/sssd)"
341 - elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
342 - elog "features. Please see howto in https://docs.pagure.org/SSSD.sssd/design_pages/smartcard_authentication_require.html"
343 -}
344
345 diff --git a/sys-auth/sssd/sssd-2.2.3.ebuild b/sys-auth/sssd/sssd-2.2.3.ebuild
346 deleted file mode 100644
347 index 044a58e8615..00000000000
348 --- a/sys-auth/sssd/sssd-2.2.3.ebuild
349 +++ /dev/null
350 @@ -1,234 +0,0 @@
351 -# Copyright 1999-2020 Gentoo Authors
352 -# Distributed under the terms of the GNU General Public License v2
353 -
354 -EAPI=7
355 -
356 -inherit autotools flag-o-matic linux-info multilib-minimal pam systemd toolchain-funcs
357 -
358 -DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
359 -HOMEPAGE="https://pagure.io/SSSD/sssd"
360 -SRC_URI="http://releases.pagure.org/SSSD/${PN}/${P}.tar.gz"
361 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
362 -
363 -LICENSE="GPL-3"
364 -SLOT="0"
365 -IUSE="acl autofs +locator +netlink nfsv4 nls +manpages samba selinux sudo ssh test"
366 -RESTRICT="!test? ( test )"
367 -
368 -COMMON_DEP="
369 - >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}]
370 - >=dev-libs/popt-1.16
371 - dev-libs/glib:2
372 - >=dev-libs/ding-libs-0.2
373 - >=sys-libs/talloc-2.0.7
374 - >=sys-libs/tdb-1.2.9
375 - >=sys-libs/tevent-0.9.16
376 - >=sys-libs/ldb-1.1.17-r1:=
377 - >=net-nds/openldap-2.4.30[sasl]
378 - net-libs/http-parser
379 - >=dev-libs/libpcre-8.30
380 - >=app-crypt/mit-krb5-1.10.3
381 - dev-libs/jansson
382 - net-misc/curl
383 - locator? (
384 - >=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
385 - >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
386 - )
387 - >=sys-apps/keyutils-1.5:=
388 - >=net-dns/c-ares-1.7.4
389 - >=dev-libs/nss-3.12.9
390 - selinux? (
391 - >=sys-libs/libselinux-2.1.9
392 - >=sys-libs/libsemanage-2.1
393 - )
394 - >=net-dns/bind-tools-9.9[gssapi]
395 - >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
396 - >=sys-apps/dbus-1.6
397 - acl? ( net-fs/cifs-utils[acl] )
398 - nfsv4? ( || ( >=net-fs/nfs-utils-2.3.1-r2 net-libs/libnfsidmap ) )
399 - nls? ( >=sys-devel/gettext-0.18 )
400 - virtual/libintl
401 - netlink? ( dev-libs/libnl:3 )
402 - samba? ( >=net-fs/samba-4.10.2[winbind] )
403 - "
404 -
405 -RDEPEND="${COMMON_DEP}
406 - >=sys-libs/glibc-2.17[nscd]
407 - selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
408 - "
409 -DEPEND="${COMMON_DEP}
410 - test? ( dev-libs/check )
411 - manpages? (
412 - >=dev-libs/libxslt-1.1.26
413 - app-text/docbook-xml-dtd:4.4
414 - )"
415 -
416 -CONFIG_CHECK="~KEYS"
417 -
418 -MULTILIB_WRAPPED_HEADERS=(
419 - /usr/include/ipa_hbac.h
420 - /usr/include/sss_idmap.h
421 - /usr/include/sss_nss_idmap.h
422 - /usr/include/wbclient_sssd.h
423 - # --with-ifp
424 - /usr/include/sss_sifp.h
425 - /usr/include/sss_sifp_dbus.h
426 - # from 1.15.3
427 - /usr/include/sss_certmap.h
428 -)
429 -
430 -PATCHES=(
431 - "${FILESDIR}"/${P}-glibc-2.32-compat.patch
432 -)
433 -
434 -pkg_setup() {
435 - linux-info_pkg_setup
436 -}
437 -
438 -src_prepare() {
439 - sed -i 's:#!/sbin/runscript:#!/sbin/openrc-run:' \
440 - "${S}"/src/sysv/gentoo/sssd.in || die "sed sssd.in"
441 -
442 - default
443 - eautoreconf
444 - multilib_copy_sources
445 -}
446 -
447 -src_configure() {
448 - local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
449 -
450 - multilib-minimal_src_configure
451 -}
452 -
453 -multilib_src_configure() {
454 - # set initscript to sysv because the systemd option needs systemd to
455 - # be installed. We provide our own systemd file anyway.
456 - local myconf=()
457 - #Work around linker dependency problem.
458 - append-ldflags "-Wl,--allow-shlib-undefined"
459 -
460 - myconf+=(
461 - --localstatedir="${EPREFIX}"/var
462 - --enable-nsslibdir="${EPREFIX}"/$(get_libdir)
463 - --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
464 - --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
465 - --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
466 - --with-os=gentoo
467 - --with-nscd
468 - --with-unicode-lib="glib2"
469 - --disable-rpath
470 - --sbindir=/usr/sbin
471 - --without-kcm
472 - $(use_with samba libwbclient)
473 - --with-secrets
474 - $(multilib_native_use_with samba)
475 - $(multilib_native_use_enable acl cifs-idmap-plugin)
476 - $(multilib_native_use_with selinux)
477 - $(multilib_native_use_with selinux semanage)
478 - $(use_enable locator krb5-locator-plugin)
479 - $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
480 - $(use_enable nls )
481 - $(multilib_native_use_with netlink libnl)
482 - $(multilib_native_use_with manpages)
483 - $(multilib_native_use_with sudo)
484 - $(multilib_native_use_with autofs)
485 - $(multilib_native_use_with ssh)
486 - --with-crypto="nss"
487 - --with-initscript="sysv"
488 - --without-python2-bindings
489 - --without-python3-bindings
490 -
491 - KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
492 - )
493 -
494 - if ! multilib_is_native_abi; then
495 - # work-around all the libraries that are used for CLI and server
496 - myconf+=(
497 - {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
498 - # ldb headers are fine since native needs it
499 - # ldb lib fails... but it does not seem to bother
500 - {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1}}_{CFLAGS,LIBS}=' '
501 - {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
502 -
503 - # use native include path for dbus (needed for build)
504 - DBUS_CFLAGS="${native_dbus_cflags}"
505 -
506 - # non-pkgconfig checks
507 - ac_cv_lib_ldap_ldap_search=yes
508 - --without-secrets
509 - --without-libwbclient
510 - --without-kcm
511 - --with-crypto=""
512 - )
513 -
514 - use locator || myconf+=(
515 - KRB5_CONFIG=/bin/true
516 - )
517 - fi
518 -
519 - econf "${myconf[@]}"
520 -}
521 -
522 -multilib_src_compile() {
523 - if multilib_is_native_abi; then
524 - default
525 - else
526 - emake libnss_sss.la pam_sss.la
527 - use locator && emake sssd_krb5_locator_plugin.la
528 - fi
529 -}
530 -
531 -multilib_src_install() {
532 - if multilib_is_native_abi; then
533 - emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
534 - else
535 - # easier than playing with automake...
536 - dopammod .libs/pam_sss.so
537 -
538 - into /
539 - dolib.so .libs/libnss_sss.so*
540 -
541 - if use locator; then
542 - exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
543 - doexe .libs/sssd_krb5_locator_plugin.so
544 - fi
545 - fi
546 -}
547 -
548 -multilib_src_install_all() {
549 - einstalldocs
550 - find "${ED}" -type f -name '*.la' -delete || die
551 -
552 - insinto /etc/sssd
553 - insopts -m600
554 - doins "${S}"/src/examples/sssd-example.conf
555 -
556 - insinto /etc/logrotate.d
557 - insopts -m644
558 - newins "${S}"/src/examples/logrotate sssd
559 -
560 - newconfd "${FILESDIR}"/sssd.conf sssd
561 - newinitd "${FILESDIR}"/sssd sssd
562 -
563 - keepdir /var/lib/sss/db
564 - keepdir /var/lib/sss/deskprofile
565 - keepdir /var/lib/sss/gpo_cache
566 - keepdir /var/lib/sss/keytabs
567 - keepdir /var/lib/sss/mc
568 - keepdir /var/lib/sss/pipes/private
569 - keepdir /var/lib/sss/pubconf/krb5.include.d
570 - keepdir /var/lib/sss/secrets
571 - keepdir /var/log/sssd
572 -
573 - systemd_dounit "${FILESDIR}/${PN}.service"
574 -}
575 -
576 -multilib_src_test() {
577 - default
578 -}
579 -
580 -pkg_postinst() {
581 - elog "You must set up sssd.conf (default installed into /etc/sssd)"
582 - elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
583 - elog "features. Please see howto in https://docs.pagure.org/SSSD.sssd/design_pages/smartcard_authentication_require.html"
584 -}