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 550BB1580FD for ; Sat, 21 Dec 2024 21:01:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D22DE0805; Sat, 21 Dec 2024 21:01:27 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38C4AE07D0 for ; Sat, 21 Dec 2024 21:01:25 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24957335D77 for ; Sat, 21 Dec 2024 21:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85F29EB9 for ; Sat, 21 Dec 2024 21:01:22 +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: <1734814870.55379946dc00dfd6169ebfd4f42865cd05cba2f3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-pkcs11/files/, app-crypt/tpm2-pkcs11/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/tpm2-pkcs11/Manifest app-crypt/tpm2-pkcs11/files/tpm2-pkcs11-1.9.1-Fix-prefix-install-variable.patch app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.1.ebuild X-VCS-Directories: app-crypt/tpm2-pkcs11/ app-crypt/tpm2-pkcs11/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 55379946dc00dfd6169ebfd4f42865cd05cba2f3 X-VCS-Branch: master Date: Sat, 21 Dec 2024 21:01:22 +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: f18a1a88-d13c-4db5-bfa5-ad2ec7607730 X-Archives-Hash: 723e65a3bd7312869581f1569797e8c8 commit: 55379946dc00dfd6169ebfd4f42865cd05cba2f3 Author: Christopher Byrne gmail com> AuthorDate: Sun Dec 15 02:46:58 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 21 21:01:10 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55379946 app-crypt/tpm2-pkcs11: add 1.9.1 Also support Python 3.13 Signed-off-by: Christopher Byrne gmail.com> Signed-off-by: Sam James gentoo.org> app-crypt/tpm2-pkcs11/Manifest | 1 + ...-pkcs11-1.9.1-Fix-prefix-install-variable.patch | 13 ++++ app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.1.ebuild | 70 ++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/app-crypt/tpm2-pkcs11/Manifest b/app-crypt/tpm2-pkcs11/Manifest index bc5672346cb0..5a8d2da20c56 100644 --- a/app-crypt/tpm2-pkcs11/Manifest +++ b/app-crypt/tpm2-pkcs11/Manifest @@ -1 +1,2 @@ DIST tpm2-pkcs11-1.9.0.tar.gz 1396590 BLAKE2B a5880b61463154d8f17549c442c7eca49b7a438335c264022d81fa93079b83633cba8ff8c3377f5829a896e6f5f55688018d8c3a78cb8223a888c7d6bfcaf555 SHA512 e88e78790a8d4d5a67713855106860e90dd18da00dc738ca7bfebf7979cdde54ce5089d0be015e7a208117bf393db700ca7739986c5e8138ee0e3b37344614b0 +DIST tpm2-pkcs11-1.9.1.tar.gz 1412372 BLAKE2B 79a40f124e8b00a1dce3f9fe180b6d4f05a45639128592739c64878ff6d9764b3c861d4cfb57759562ac9135f61ad02c1c42831ed04fad86cdb98b260a91d1ad SHA512 c0f76ef941f51f8637906da42917596725dbe15bbd7ab56de9efdb81cbf0ec1a846e752702eb84e08d8c539098755402c519e5f95dce101ac44143de6602c393 diff --git a/app-crypt/tpm2-pkcs11/files/tpm2-pkcs11-1.9.1-Fix-prefix-install-variable.patch b/app-crypt/tpm2-pkcs11/files/tpm2-pkcs11-1.9.1-Fix-prefix-install-variable.patch new file mode 100644 index 000000000000..e698ceb12806 --- /dev/null +++ b/app-crypt/tpm2-pkcs11/files/tpm2-pkcs11-1.9.1-Fix-prefix-install-variable.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 1ec6eb4..9e47feb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -487,7 +487,7 @@ AM_CONDITIONAL([HAVE_P11KIT], [test "x$have_p11kit" = "xyes"]) + + # check for --prefix and set flag HAVE_PREFIX if found + # do not change install location if --prefix is given and with P11_KIT found +-AM_CONDITIONAL([HAVE_PREFIX], [test ! -z "$(prefix)"]) ++AM_CONDITIONAL([HAVE_PREFIX], [test ! -z "${prefix}"]) + + # END P11 CONFIG + diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.1.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.1.ebuild new file mode 100644 index 000000000000..f2b1d9c12716 --- /dev/null +++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.9.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE="sqlite" + +inherit autotools python-single-r1 + +DESCRIPTION="A PKCS#11 interface for TPM2 hardware" +HOMEPAGE="https://tpm2-software.github.io/" +SRC_URI="https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="fapi test" +REQUIRED_USE="( ${PYTHON_REQUIRED_USE} )" + +# Units tests only for now +RESTRICT="!test? ( test )" + +RDEPEND="${PYTHON_DEPS} + app-crypt/p11-kit + app-crypt/tpm2-abrmd + app-crypt/tpm2-tools[fapi?] + !fapi? ( app-crypt/tpm2-tss:= ) + fapi? ( >=app-crypt/tpm2-tss-3.0.1:=[fapi] ) + dev-db/sqlite:3 + dev-libs/libyaml + dev-libs/openssl:= + $(python_gen_cond_dep ' + dev-python/bcrypt[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pyasn1-modules[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/tpm2-pytss[${PYTHON_USEDEP}] + ') +" + +DEPEND="test? ( dev-util/cmocka ) + ${RDEPEND}" +BDEPEND="${PYTHON_DEPS} + dev-build/autoconf-archive + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-1.9.1-Fix-prefix-install-variable.patch" + ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_with fapi) \ + $(use_enable test unit) +} + +src_install() { + default + python_domodule tools/tpm2_pkcs11 + python_newscript tools/tpm2_ptool.py tpm2_ptool + find "${ED}" -name '*.la' -delete || die +}