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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B41A9158042 for ; Mon, 28 Oct 2024 13:37:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2743E07D0; Mon, 28 Oct 2024 13:37:00 +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 A3FB7E07D0 for ; Mon, 28 Oct 2024 13:37:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 B0952342F8D for ; Mon, 28 Oct 2024 13:36:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F35E4AE7 for ; Mon, 28 Oct 2024 13:36:57 +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: <1730122465.83af658fe676ff865949d57be8d946dc69dd2849.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg-pkcs11-scd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-9999.ebuild X-VCS-Directories: app-crypt/gnupg-pkcs11-scd/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 83af658fe676ff865949d57be8d946dc69dd2849 X-VCS-Branch: master Date: Mon, 28 Oct 2024 13:36:57 +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: 966be782-d83d-4d90-a1f7-62319d8befe7 X-Archives-Hash: 8ae54f042c3139538496f7331189a844 commit: 83af658fe676ff865949d57be8d946dc69dd2849 Author: Adrian Ratiu collabora com> AuthorDate: Sun Oct 20 13:49:11 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Oct 28 13:34:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83af658f app-crypt/gnupg-pkcs11-scd: add 9999 ebuild This project depends upon the old libassuan v2 due to a build bug which got fixed upstream in the latest "master" branch, however upstream releases are very far in between (last was in Jan 2022) so we add the 9999 ebuild which works nicely with libassuan 3.0. I've asked upstream to cut a new release containing the fix [1] however I don't know how long that will take and we can still have the same problems down the line, so it's useful to have a 9999 git ebuild. Link: [1] https://github.com/alonbl/gnupg-pkcs11-scd/issues/65 Signed-off-by: Adrian Ratiu collabora.com> Closes: https://github.com/gentoo/gentoo/pull/39056 Signed-off-by: Sam James gentoo.org> .../gnupg-pkcs11-scd/gnupg-pkcs11-scd-9999.ebuild | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-9999.ebuild b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-9999.ebuild new file mode 100644 index 000000000000..338e9e3bd924 --- /dev/null +++ b/app-crypt/gnupg-pkcs11-scd/gnupg-pkcs11-scd-9999.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="PKCS#11 support for GnuPG" +HOMEPAGE="https://sourceforge.net/projects/gnupg-pkcs11/" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/alonbl/gnupg-pkcs11-scd.git" + inherit autotools git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/alonbl/${PN}/releases/download/${P}/${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" +fi +LICENSE="BSD" +SLOT="0" +IUSE="proxy" + +DEPEND=" + dev-libs/openssl:= + dev-libs/libassuan:= + dev-libs/libgcrypt:= + dev-libs/libgpg-error:= + dev-libs/pkcs11-helper:=" +RDEPEND=" + ${DEPEND} + proxy? ( + acct-group/gnupg-pkcs11 + acct-group/gnupg-pkcs11-scd-proxy + acct-user/gnupg-pkcs11-scd-proxy + )" +BDEPEND="virtual/pkgconfig" + +src_configure() { + eautoreconf + local myeconfargs=( + $(use_enable proxy) + --with-proxy-socket=/run/gnupg-pkcs11-scd-proxy/cmd + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use proxy; then + newinitd "${FILESDIR}"/gnupg-pkcs11-scd-proxy.initd gnupg-pkcs11-scd-proxy + newconfd "${FILESDIR}"/gnupg-pkcs11-scd-proxy.confd gnupg-pkcs11-scd-proxy + fi +}