From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F1179158094 for ; Mon, 18 Jul 2022 18:39:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 004ABE0A94; Mon, 18 Jul 2022 18:39:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1B8FE0A94 for ; Mon, 18 Jul 2022 18:39:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA03F340EC5 for ; Mon, 18 Jul 2022 18:39:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A50EE543 for ; Mon, 18 Jul 2022 18:39:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1658169575.1dabcb8b732f8e8048665f164563bdd24919d07c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/gsasl/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/gsasl/gsasl-2.0.1-r1.ebuild X-VCS-Directories: net-misc/gsasl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1dabcb8b732f8e8048665f164563bdd24919d07c X-VCS-Branch: master Date: Mon, 18 Jul 2022 18:39:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5545a224-e00e-41ed-a91f-022650d2fbd8 X-Archives-Hash: e91aa44b3fa2b736de8e9f25e4c0c650 commit: 1dabcb8b732f8e8048665f164563bdd24919d07c Author: Sam James gentoo org> AuthorDate: Mon Jul 18 18:31:02 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jul 18 18:39:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dabcb8b net-misc/gsasl: use libgssglue As upstream request: https://blog.josefsson.org/2022/07/14/towards-pluggable-gss-api- modules/ Signed-off-by: Sam James gentoo.org> net-misc/gsasl/gsasl-2.0.1-r1.ebuild | 92 ++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/net-misc/gsasl/gsasl-2.0.1-r1.ebuild b/net-misc/gsasl/gsasl-2.0.1-r1.ebuild new file mode 100644 index 000000000000..82aa58509187 --- /dev/null +++ b/net-misc/gsasl/gsasl-2.0.1-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="The GNU SASL client, server, and library" +HOMEPAGE="https://www.gnu.org/software/gsasl/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +# Before giving keywords (or ideally even bumping), please check https://www.gnu.org/software/gsasl/ to see +# if it's a stable release or not! +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="+client gcrypt gnutls idn kerberos nls ntlm +server static-libs" +REQUIRED_USE="|| ( client server )" + +DEPEND=" + !net-libs/libgsasl + sys-libs/readline:= + gcrypt? ( dev-libs/libgcrypt:= ) + gnutls? ( net-libs/gnutls:= ) + idn? ( net-dns/libidn:= ) + kerberos? ( net-libs/libgssglue ) + nls? ( >=sys-devel/gettext-0.18.1 ) + ntlm? ( >=net-libs/libntlm-0.3.5 ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -i \ + -e '/gl_WARN_ADD(\[-Werror/d' \ + -e 's/ -Werror//' \ + configure.ac || die + + eautoreconf +} + +src_configure() { + local krb5_impl="--with-gssapi-impl=no" + + # See https://blog.josefsson.org/2022/07/14/towards-pluggable-gss-api-modules/ + if use kerberos; then + krb5_impl="--with-gssapi-impl=gssglue" + fi + + local myeconfargs=( + --disable-valgrind-tests + --disable-rpath + + --with-packager="Gentoo Linux" + --with-packager-bug-reports="https://bugs.gentoo.org" + --with-packager-version="r${PR}" + + $(use_enable client) + $(use_enable server) + + $(use_enable kerberos gssapi) + ${krb5_impl} + $(use_enable kerberos gs2) + + $(use_with gcrypt libgcrypt) + $(use_with gnutls) + $(use_enable nls) + $(use_with idn stringprep) + $(use_enable ntlm) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if ! use static-libs; then + rm -f "${ED}"/usr/lib*/lib*.la || die + fi + + doman doc/gsasl.1 doc/man/*.3 +} + +pkg_postinst() { + ewarn "For USE=kerberos, ${PN} now uses libgssglue to allow choosing" + ewarn "the Kerberos implementation at runtime." + elog "See https://blog.josefsson.org/2022/07/14/towards-pluggable-gss-api-modules/" + elog "for more details." +}