Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/sssd/
Date: Sun, 03 Oct 2021 11:28:43
Message-Id: 1633260479.62c0847cca5a9dab98c8178fd00d0deb4d56c922.soap@gentoo
1 commit: 62c0847cca5a9dab98c8178fd00d0deb4d56c922
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 3 11:27:59 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 3 11:27:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62c0847c
7
8 sys-auth/sssd: drop 2.3.1-r3, 2.5.2
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 sys-auth/sssd/Manifest | 1 -
13 sys-auth/sssd/sssd-2.3.1-r3.ebuild | 290 ------------------------------------
14 sys-auth/sssd/sssd-2.5.2.ebuild | 297 -------------------------------------
15 3 files changed, 588 deletions(-)
16
17 diff --git a/sys-auth/sssd/Manifest b/sys-auth/sssd/Manifest
18 index 949f7b2f62e..5a4af14d089 100644
19 --- a/sys-auth/sssd/Manifest
20 +++ b/sys-auth/sssd/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST sssd-2.3.1-CVE-2021-3621.patch.bz2 3174 BLAKE2B 201c51fff92dd17d9517834e59a12422850ee3c5aab1efff51bcdc5b82521516589271222b6be36d12da2a388d122d37e9f455d593f22551ba9ea58ead694b49 SHA512 faffe46b710e3f8b2db54fc4f637b176b72f6bc31a2d5d1cae7a5ffc81609c4faa5decee1d6db4b2bf87451677c8eda068e153e38755f013afbce982daf58f65
23 DIST sssd-2.3.1.tar.gz 7186526 BLAKE2B 6d630fe75b9b426ef54adbe1704fde8e01fc34df7861028c07ce2985db8a151ce743d633061386fea6460fe8eabb89242b816d4bac87975bb9b7b2064ad1d547 SHA512 6aeb52d5222c5992d581296996749327bcaf276e4eb4413a6a32ea6529343432cfe413006aca4245c19b38b515be1c4c2ef88a157c617d889274179253355bc6
24 DIST sssd-2.5.2-CVE-2021-3621.patch.bz2 3155 BLAKE2B c50e331f0f1acbb9ef8e6d54a63219da44df5e565608c24635d85a110fcc024f7d5293c4412bca64831a9a3a14e2c1188be1a802c76575ad6d7a83243d3d89c2 SHA512 650af7c67b3a807935c0875ee877d366facdf818492fb4244757448ad351454a279968ea5414e6b3cd116e873abe4f1aef2ccdaf790a4df0cf7f2a0078a41860
25 DIST sssd-2.5.2.tar.gz 7579208 BLAKE2B ec5d9aeaf5b5e05b56c01f9137f6f24db05544dbd48458d742285b60e7beb6d48af865f3415e11ce89e187f4643bbecf15bbb321859ec80cfe458eb781cea6c9 SHA512 a9bac7b2cc23022dce3bcda314c9c26a0a0914c448f6d5a51c5ba18670f04c1fd1a94cb20173235b6285df1dcc9251cb6b3f3e71a220037b4eb66668e6f33c48
26
27 diff --git a/sys-auth/sssd/sssd-2.3.1-r3.ebuild b/sys-auth/sssd/sssd-2.3.1-r3.ebuild
28 deleted file mode 100644
29 index 3f70659ea8f..00000000000
30 --- a/sys-auth/sssd/sssd-2.3.1-r3.ebuild
31 +++ /dev/null
32 @@ -1,290 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( python3_{7,8,9} )
39 -
40 -inherit autotools linux-info multilib-minimal python-single-r1 pam systemd toolchain-funcs
41 -
42 -DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
43 -HOMEPAGE="https://github.com/SSSD/sssd"
44 -SRC_URI="https://github.com/SSSD/sssd/releases/download/${PN}-${PV//./_}/${P}.tar.gz"
45 -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-CVE-2021-3621.patch.bz2"
46 -
47 -LICENSE="GPL-3"
48 -SLOT="0"
49 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
50 -IUSE="acl doc +locator +netlink nfsv4 nls +man pac python samba selinux sudo systemd test valgrind"
51 -RESTRICT="!test? ( test )"
52 -
53 -REQUIRED_USE="pac? ( samba )
54 - python? ( ${PYTHON_REQUIRED_USE} )"
55 -
56 -DEPEND="
57 - >=app-crypt/mit-krb5-1.10.3
58 - app-crypt/p11-kit
59 - >=dev-libs/ding-libs-0.2
60 - dev-libs/glib:2
61 - >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
62 - >=dev-libs/libpcre-8.30:=
63 - >=dev-libs/popt-1.16
64 - >=dev-libs/openssl-1.0.2:0=
65 - >=net-dns/bind-tools-9.9[gssapi]
66 - >=net-dns/c-ares-1.7.4
67 - >=net-nds/openldap-2.4.30[sasl]
68 - >=sys-apps/dbus-1.6
69 - >=sys-apps/keyutils-1.5:=
70 - >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}]
71 - >=sys-libs/talloc-2.0.7
72 - >=sys-libs/tdb-1.2.9
73 - >=sys-libs/tevent-0.9.16
74 - >=sys-libs/ldb-1.1.17-r1:=
75 - virtual/libintl
76 - locator? (
77 - >=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
78 - >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
79 - )
80 - acl? ( net-fs/cifs-utils[acl] )
81 - netlink? ( dev-libs/libnl:3 )
82 - nfsv4? ( || ( >=net-fs/nfs-utils-2.3.1-r2 net-libs/libnfsidmap ) )
83 - nls? ( >=sys-devel/gettext-0.18 )
84 - pac? (
85 - app-crypt/mit-krb5[${MULTILIB_USEDEP}]
86 - net-fs/samba
87 - )
88 - python? ( ${PYTHON_DEPS} )
89 - samba? ( >=net-fs/samba-4.10.2[winbind] )
90 - selinux? (
91 - >=sys-libs/libselinux-2.1.9
92 - >=sys-libs/libsemanage-2.1
93 - )
94 - systemd? (
95 - dev-libs/jansson:0=
96 - net-libs/http-parser:0=
97 - net-misc/curl:0=
98 - )"
99 -RDEPEND="${DEPEND}
100 - >=sys-libs/glibc-2.17[nscd]
101 - selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )"
102 -BDEPEND=">=sys-devel/autoconf-2.69-r5
103 - virtual/pkgconfig
104 - doc? ( app-doc/doxygen )
105 - test? (
106 - dev-libs/check
107 - dev-libs/softhsm:2
108 - dev-util/cmocka
109 - net-libs/gnutls[pkcs11,tools]
110 - sys-libs/libfaketime
111 - sys-libs/nss_wrapper
112 - sys-libs/pam_wrapper
113 - sys-libs/uid_wrapper
114 - valgrind? ( dev-util/valgrind )
115 - )
116 - man? (
117 - app-text/docbook-xml-dtd:4.4
118 - >=dev-libs/libxslt-1.1.26
119 - nls? ( app-text/po4a )
120 - )"
121 -
122 -CONFIG_CHECK="~KEYS"
123 -
124 -MULTILIB_WRAPPED_HEADERS=(
125 - /usr/include/ipa_hbac.h
126 - /usr/include/sss_idmap.h
127 - /usr/include/sss_nss_idmap.h
128 - # --with-ifp
129 - /usr/include/sss_sifp.h
130 - /usr/include/sss_sifp_dbus.h
131 - # from 1.15.3
132 - /usr/include/sss_certmap.h
133 -)
134 -
135 -PATCHES=(
136 - "${FILESDIR}"/${P}-test_ca-Look-for-libsofthsm2.so-in-usr-libdir-sofths.patch
137 - "${WORKDIR}"/${P}-CVE-2021-3621.patch
138 -)
139 -
140 -pkg_setup() {
141 - linux-info_pkg_setup
142 -}
143 -
144 -src_prepare() {
145 - sed -i 's:/var/run:/run:' \
146 - "${S}"/src/examples/logrotate || die
147 -
148 - default
149 - eautoreconf
150 - multilib_copy_sources
151 - if use python && multilib_is_native_abi; then
152 - python_setup
153 - fi
154 -}
155 -
156 -src_configure() {
157 - local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
158 -
159 - multilib-minimal_src_configure
160 -}
161 -
162 -multilib_src_configure() {
163 - local myconf=()
164 -
165 - myconf+=(
166 - --localstatedir="${EPREFIX}"/var
167 - --runstatedir="${EPREFIX}"/run
168 - --with-pid-path="${EPREFIX}"/run
169 - --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
170 - --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
171 - --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
172 - --with-db-path="${EPREFIX}"/var/lib/sss/db
173 - --with-gpo-cache-path="${EPREFIX}"/var/lib/sss/gpo_cache
174 - --with-pubconf-path="${EPREFIX}"/var/lib/sss/pubconf
175 - --with-pipe-path="${EPREFIX}"/var/lib/sss/pipes
176 - --with-mcache-path="${EPREFIX}"/var/lib/sss/mc
177 - --with-secrets-db-path="${EPREFIX}"/var/lib/sss/secrets
178 - --with-log-path="${EPREFIX}"/var/log/sssd
179 - --with-os=gentoo
180 - --with-nscd="${EPREFIX}"/usr/sbin/nscd
181 - --with-unicode-lib="glib2"
182 - --disable-rpath
183 - --sbindir=/usr/sbin
184 - --with-crypto="libcrypto"
185 - --enable-local-provider
186 - $(multilib_native_use_with systemd kcm)
187 - $(multilib_native_use_with systemd secrets)
188 - $(use_with samba)
189 - --with-smb-idmap-interface-version=6
190 - $(multilib_native_use_enable acl cifs-idmap-plugin)
191 - $(multilib_native_use_with selinux)
192 - $(multilib_native_use_with selinux semanage)
193 - $(use_enable locator krb5-locator-plugin)
194 - $(use_enable pac pac-responder)
195 - $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
196 - $(use_enable nls)
197 - $(multilib_native_use_with netlink libnl)
198 - $(multilib_native_use_with man manpages)
199 - $(multilib_native_use_with sudo)
200 - $(multilib_native_with autofs)
201 - $(multilib_native_with ssh)
202 - $(use_enable valgrind)
203 - --without-python2-bindings
204 - $(multilib_native_use_with python python3-bindings)
205 - )
206 -
207 - # Annoyingly configure requires that you pick systemd XOR sysv
208 - if use systemd; then
209 - myconf+=(
210 - --with-initscript="systemd"
211 - --with-systemdunitdir=$(systemd_get_systemunitdir)
212 - )
213 - else
214 - myconf+=(--with-initscript="sysv")
215 - fi
216 -
217 - if ! multilib_is_native_abi; then
218 - # work-around all the libraries that are used for CLI and server
219 - myconf+=(
220 - {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
221 - # ldb headers are fine since native needs it
222 - # ldb lib fails... but it does not seem to bother
223 - {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1,1_3}}_{CFLAGS,LIBS}=' '
224 - {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO,P11_KIT}_{CFLAGS,LIBS}=' '
225 - {NDR_NBT,SMBCLIENT,NDR_KRB5PAC}_{CFLAGS,LIBS}=' '
226 -
227 - # use native include path for dbus (needed for build)
228 - DBUS_CFLAGS="${native_dbus_cflags}"
229 -
230 - # non-pkgconfig checks
231 - ac_cv_lib_ldap_ldap_search=yes
232 - --without-secrets
233 - --without-kcm
234 - )
235 - fi
236 -
237 - econf "${myconf[@]}"
238 -}
239 -
240 -multilib_src_compile() {
241 - if multilib_is_native_abi; then
242 - default
243 - use doc && emake docs
244 - if use man || use nls; then
245 - emake update-po
246 - fi
247 - else
248 - emake libnss_sss.la pam_sss.la
249 - use locator && emake sssd_krb5_locator_plugin.la
250 - use pac && emake sssd_pac_plugin.la
251 - fi
252 -}
253 -
254 -multilib_src_install() {
255 - if multilib_is_native_abi; then
256 - emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
257 - if use python; then
258 - python_optimize
259 - python_fix_shebang "${ED}"
260 - fi
261 -
262 - else
263 - # easier than playing with automake...
264 - dopammod .libs/pam_sss.so
265 -
266 - into /
267 - dolib.so .libs/libnss_sss.so*
268 -
269 - if use locator; then
270 - exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
271 - doexe .libs/sssd_krb5_locator_plugin.so
272 - fi
273 -
274 - if use pac; then
275 - exeinto /usr/$(get_libdir)/krb5/plugins/authdata
276 - doexe .libs/sssd_pac_plugin.so
277 - fi
278 - fi
279 -}
280 -
281 -multilib_src_install_all() {
282 - einstalldocs
283 - find "${ED}" -type f -name '*.la' -delete || die
284 -
285 - insinto /etc/sssd
286 - insopts -m600
287 - doins "${S}"/src/examples/sssd-example.conf
288 -
289 - insinto /etc/logrotate.d
290 - insopts -m644
291 - newins "${S}"/src/examples/logrotate sssd
292 -
293 - newconfd "${FILESDIR}"/sssd.conf sssd
294 -
295 - keepdir /var/lib/sss/db
296 - keepdir /var/lib/sss/deskprofile
297 - keepdir /var/lib/sss/gpo_cache
298 - keepdir /var/lib/sss/keytabs
299 - keepdir /var/lib/sss/mc
300 - keepdir /var/lib/sss/pipes/private
301 - keepdir /var/lib/sss/pubconf/krb5.include.d
302 - keepdir /var/lib/sss/secrets
303 - keepdir /var/log/sssd
304 -
305 - # strip empty dirs
306 - if ! use doc ; then
307 - rm -r "${ED}"/usr/share/doc/"${PF}"/doc || die
308 - rm -r "${ED}"/usr/share/doc/"${PF}"/{hbac,idmap,nss_idmap,sss_simpleifp}_doc || die
309 - fi
310 -
311 - rm -r "${ED}"/run || die
312 -}
313 -
314 -multilib_src_test() {
315 - multilib_is_native_abi && emake check
316 -}
317 -
318 -pkg_postinst() {
319 - elog "You must set up sssd.conf (default installed into /etc/sssd)"
320 - elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
321 - elog "features. Please see howto in https://sssd.io/docs/design_pages/smartcard_authentication_require.html"
322 -}
323
324 diff --git a/sys-auth/sssd/sssd-2.5.2.ebuild b/sys-auth/sssd/sssd-2.5.2.ebuild
325 deleted file mode 100644
326 index 9c003fca855..00000000000
327 --- a/sys-auth/sssd/sssd-2.5.2.ebuild
328 +++ /dev/null
329 @@ -1,297 +0,0 @@
330 -# Copyright 1999-2021 Gentoo Authors
331 -# Distributed under the terms of the GNU General Public License v2
332 -
333 -EAPI=7
334 -
335 -PYTHON_COMPAT=( python3_{8..10} )
336 -
337 -inherit autotools linux-info multilib-minimal python-single-r1 pam systemd toolchain-funcs
338 -
339 -DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
340 -HOMEPAGE="https://github.com/SSSD/sssd"
341 -SRC_URI="https://github.com/SSSD/sssd/releases/download/${PV}/${P}.tar.gz"
342 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
343 -
344 -LICENSE="GPL-3"
345 -SLOT="0"
346 -IUSE="acl doc +locator +netlink nfsv4 nls +man pac python samba selinux sudo systemd systemtap test valgrind"
347 -RESTRICT="!test? ( test )"
348 -
349 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
350 - pac? ( samba )
351 - test? ( sudo )
352 - valgrind? ( test )"
353 -
354 -BDEPEND=">=sys-devel/autoconf-2.69-r5
355 - virtual/pkgconfig
356 - ${PYTHON_DEPS}
357 - doc? ( app-doc/doxygen )
358 - test? (
359 - dev-libs/check
360 - dev-libs/softhsm:2
361 - dev-util/cmocka
362 - net-libs/gnutls[pkcs11,tools]
363 - sys-libs/libfaketime
364 - sys-libs/nss_wrapper
365 - sys-libs/pam_wrapper
366 - sys-libs/uid_wrapper
367 - valgrind? ( dev-util/valgrind )
368 - )
369 - man? (
370 - app-text/docbook-xml-dtd:4.4
371 - >=dev-libs/libxslt-1.1.26
372 - nls? ( app-text/po4a )
373 - )"
374 -
375 -DEPEND=">=app-crypt/mit-krb5-1.19.1[${MULTILIB_USEDEP}]
376 - app-crypt/p11-kit
377 - >=dev-libs/ding-libs-0.2
378 - dev-libs/glib:2
379 - >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
380 - >=dev-libs/libpcre-8.30:=
381 - >=dev-libs/popt-1.16
382 - >=dev-libs/openssl-1.0.2:0=
383 - >=net-dns/bind-tools-9.9[gssapi]
384 - >=net-dns/c-ares-1.7.4
385 - >=net-nds/openldap-2.4.30[sasl]
386 - >=sys-apps/dbus-1.6
387 - >=sys-apps/keyutils-1.5:=
388 - >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}]
389 - >=sys-libs/talloc-2.0.7
390 - >=sys-libs/tdb-1.2.9
391 - >=sys-libs/tevent-0.9.16
392 - >=sys-libs/ldb-1.1.17-r1:=
393 - virtual/libintl
394 - locator? (
395 - >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
396 - )
397 - acl? ( net-fs/cifs-utils[acl] )
398 - netlink? ( dev-libs/libnl:3 )
399 - nfsv4? ( || ( >=net-fs/nfs-utils-2.3.1-r2 net-libs/libnfsidmap ) )
400 - nls? ( >=sys-devel/gettext-0.18 )
401 - pac? (
402 - net-fs/samba
403 - )
404 - python? ( ${PYTHON_DEPS} )
405 - samba? ( >=net-fs/samba-4.10.2[winbind] )
406 - selinux? (
407 - >=sys-libs/libselinux-2.1.9
408 - >=sys-libs/libsemanage-2.1
409 - )
410 - systemd? (
411 - dev-libs/jansson:0=
412 - net-libs/http-parser:0=
413 - net-misc/curl:0=
414 - )
415 - systemtap? ( dev-util/systemtap )"
416 -RDEPEND="${DEPEND}
417 - >=sys-libs/glibc-2.17[nscd]
418 - selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )"
419 -
420 -CONFIG_CHECK="~KEYS"
421 -
422 -MULTILIB_WRAPPED_HEADERS=(
423 - /usr/include/ipa_hbac.h
424 - /usr/include/sss_idmap.h
425 - /usr/include/sss_nss_idmap.h
426 - # --with-ifp
427 - /usr/include/sss_sifp.h
428 - /usr/include/sss_sifp_dbus.h
429 - # from 1.15.3
430 - /usr/include/sss_certmap.h
431 -)
432 -
433 -pkg_setup() {
434 - linux-info_pkg_setup
435 - python-single-r1_pkg_setup
436 -}
437 -
438 -src_prepare() {
439 - default
440 -
441 - sed -i \
442 - -e 's:/var/run:/run:' \
443 - "${S}"/src/examples/logrotate \
444 - || die
445 -
446 - # disable flaky test, see https://github.com/SSSD/sssd/issues/5631
447 - sed -i \
448 - -e '/^\s*pam-srv-tests[ \\]*$/d' \
449 - "${S}"/Makefile.am \
450 - || die
451 -
452 - eautoreconf
453 -
454 - multilib_copy_sources
455 -}
456 -
457 -src_configure() {
458 - local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
459 -
460 - multilib-minimal_src_configure
461 -}
462 -
463 -multilib_src_configure() {
464 - local myconf=()
465 -
466 - myconf+=(
467 - --localstatedir="${EPREFIX}"/var
468 - --runstatedir="${EPREFIX}"/run
469 - --with-pid-path="${EPREFIX}"/run
470 - --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
471 - --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
472 - --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
473 - --with-db-path="${EPREFIX}"/var/lib/sss/db
474 - --with-gpo-cache-path="${EPREFIX}"/var/lib/sss/gpo_cache
475 - --with-pubconf-path="${EPREFIX}"/var/lib/sss/pubconf
476 - --with-pipe-path="${EPREFIX}"/var/lib/sss/pipes
477 - --with-mcache-path="${EPREFIX}"/var/lib/sss/mc
478 - --with-secrets-db-path="${EPREFIX}"/var/lib/sss/secrets
479 - --with-log-path="${EPREFIX}"/var/log/sssd
480 - --with-os=gentoo
481 - --with-nscd="${EPREFIX}"/usr/sbin/nscd
482 - --with-unicode-lib="glib2"
483 - --disable-rpath
484 - --disable-static
485 - --sbindir=/usr/sbin
486 - --enable-local-provider
487 - $(multilib_native_use_with systemd kcm)
488 - $(multilib_native_use_with systemd secrets)
489 - $(use_with samba)
490 - --with-smb-idmap-interface-version=6
491 - $(multilib_native_use_enable acl cifs-idmap-plugin)
492 - $(multilib_native_use_with selinux)
493 - $(multilib_native_use_with selinux semanage)
494 - $(use_enable locator krb5-locator-plugin)
495 - $(use_enable pac pac-responder)
496 - $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
497 - $(use_enable nls)
498 - $(multilib_native_use_with netlink libnl)
499 - $(multilib_native_use_with man manpages)
500 - $(multilib_native_use_with sudo)
501 - $(multilib_native_with autofs)
502 - $(multilib_native_with ssh)
503 - $(use_enable systemtap)
504 - $(use_enable valgrind)
505 - --without-python2-bindings
506 - $(multilib_native_use_with python python3-bindings)
507 - )
508 -
509 - # Annoyingly configure requires that you pick systemd XOR sysv
510 - if use systemd; then
511 - myconf+=(
512 - --with-initscript="systemd"
513 - --with-systemdunitdir=$(systemd_get_systemunitdir)
514 - )
515 - else
516 - myconf+=(--with-initscript="sysv")
517 - fi
518 -
519 - if ! multilib_is_native_abi; then
520 - # work-around all the libraries that are used for CLI and server
521 - myconf+=(
522 - {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
523 - # ldb headers are fine since native needs it
524 - # ldb lib fails... but it does not seem to bother
525 - {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1,1_3}}_{CFLAGS,LIBS}=' '
526 - {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO,P11_KIT}_{CFLAGS,LIBS}=' '
527 - {NDR_NBT,SMBCLIENT,NDR_KRB5PAC}_{CFLAGS,LIBS}=' '
528 -
529 - # use native include path for dbus (needed for build)
530 - DBUS_CFLAGS="${native_dbus_cflags}"
531 -
532 - # non-pkgconfig checks
533 - ac_cv_lib_ldap_ldap_search=yes
534 - --without-secrets
535 - --without-kcm
536 - )
537 - fi
538 -
539 - econf "${myconf[@]}"
540 -}
541 -
542 -multilib_src_compile() {
543 - if multilib_is_native_abi; then
544 - default
545 - use doc && emake docs
546 - if use man || use nls; then
547 - emake update-po
548 - fi
549 - else
550 - emake libnss_sss.la pam_sss.la
551 - use locator && emake sssd_krb5_locator_plugin.la
552 - use pac && emake sssd_pac_plugin.la
553 - fi
554 -}
555 -
556 -multilib_src_test() {
557 - if multilib_is_native_abi; then
558 - local -x CK_TIMEOUT_MULTIPLIER=10
559 - emake check VERBOSE=yes
560 - fi
561 -}
562 -
563 -multilib_src_install() {
564 - if multilib_is_native_abi; then
565 - emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
566 - if use python; then
567 - python_optimize
568 - python_fix_shebang "${ED}"
569 - fi
570 - else
571 - # easier than playing with automake...
572 - dopammod .libs/pam_sss.so
573 -
574 - into /
575 - dolib.so .libs/libnss_sss.so*
576 -
577 - if use locator; then
578 - exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
579 - doexe .libs/sssd_krb5_locator_plugin.so
580 - fi
581 -
582 - if use pac; then
583 - exeinto /usr/$(get_libdir)/krb5/plugins/authdata
584 - doexe .libs/sssd_pac_plugin.so
585 - fi
586 - fi
587 -}
588 -
589 -multilib_src_install_all() {
590 - einstalldocs
591 - find "${ED}" -type f -name '*.la' -delete || die
592 -
593 - insinto /etc/sssd
594 - insopts -m600
595 - doins "${S}"/src/examples/sssd-example.conf
596 -
597 - insinto /etc/logrotate.d
598 - insopts -m644
599 - newins "${S}"/src/examples/logrotate sssd
600 -
601 - newconfd "${FILESDIR}"/sssd.conf sssd
602 -
603 - keepdir /var/lib/sss/db
604 - keepdir /var/lib/sss/deskprofile
605 - keepdir /var/lib/sss/gpo_cache
606 - keepdir /var/lib/sss/keytabs
607 - keepdir /var/lib/sss/mc
608 - keepdir /var/lib/sss/pipes/private
609 - keepdir /var/lib/sss/pubconf/krb5.include.d
610 - keepdir /var/lib/sss/secrets
611 - keepdir /var/log/sssd
612 -
613 - # strip empty dirs
614 - if ! use doc; then
615 - rm -r "${ED}"/usr/share/doc/"${PF}"/doc || die
616 - rm -r "${ED}"/usr/share/doc/"${PF}"/{hbac,idmap,nss_idmap,sss_simpleifp}_doc || die
617 - fi
618 -
619 - rm -r "${ED}"/run || die
620 -}
621 -
622 -pkg_postinst() {
623 - elog "You must set up sssd.conf (default installed into /etc/sssd)"
624 - elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
625 - elog "features. Please see howto in https://sssd.io/docs/design_pages/smartcard_authentication_require.html"
626 -}