diff options
author | Christopher Byrne <salah.coronya@gmail.com> | 2021-09-27 16:52:40 -0500 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-09-28 09:14:57 +0300 |
commit | 67d949b48cf553dc47203d8a6e60463bc4df6f1f (patch) | |
tree | 02472f90274e38d41d54954af85c421b1b9ddd6b /app-crypt/tpm2-pkcs11 | |
parent | dev-cpp/notcurses: Remove old version 2.3.18 (diff) | |
download | gentoo-67d949b48cf553dc47203d8a6e60463bc4df6f1f.tar.gz gentoo-67d949b48cf553dc47203d8a6e60463bc4df6f1f.tar.bz2 gentoo-67d949b48cf553dc47203d8a6e60463bc4df6f1f.zip |
app-crypt/tpm2-pkcs11: Bump to 1.7.0
Closes: https://bugs.gentoo.org/813735
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt/tpm2-pkcs11')
-rw-r--r-- | app-crypt/tpm2-pkcs11/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/app-crypt/tpm2-pkcs11/Manifest b/app-crypt/tpm2-pkcs11/Manifest index 24117b2930d9..b5b858c55a41 100644 --- a/app-crypt/tpm2-pkcs11/Manifest +++ b/app-crypt/tpm2-pkcs11/Manifest @@ -1 +1,2 @@ DIST tpm2-pkcs11-1.6.0.tar.gz 1370370 BLAKE2B 5dd8c587688a26958e8406366ce14cdadc9d2279f01276037df3895f49f835bd021b96da2c7399881e23527c79c45d25417b57acfb961f934f29d785dacf87f7 SHA512 db94b2194837564fa330ac7cc15a5185258d5d632f033a60fa82a2b3246e046dac29b6dfece19b4e075383e999ac157286c7f18f6c5ab6a98dd01c8e810065ea +DIST tpm2-pkcs11-1.7.0.tar.gz 1386693 BLAKE2B bf53a76be712bda374a8d107910440bab087fdb6c34fee3c748128d471a7a84b08f887ff97c8cdfef632679dd4343cf020e9459b96553cd5feecf76e65d6e290 SHA512 eb2736a7ef00fefa91bb70cc96d94d1c7b6ce3701ab12301658b7b076d8fca93bc590c7cdba5a84934b6bd09dad252b13670804c686e76a65b03c7ef6d96427d diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild new file mode 100644 index 000000000000..586ba352bfdb --- /dev/null +++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-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" + +# Units tests only for now +RESTRICT="!test? ( test )" + +RDEPEND="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/openssl:= + 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}]" + +DEPEND="test? ( dev-util/cmocka ) + ${RDEPEND}" +BDEPEND="sys-devel/autoconf-archive + virtual/pkgconfig" + +src_configure() { + econf \ + $(use_enable fapi) \ + $(use_enable test unit) +} + +src_compile() { + default + cd "${S}/tools" || die + BUILD_DIR="${S}/tools" python_foreach_impl distutils-r1_python_compile +} + +src_install() { + default + cd "${S}/tools" || die + BUILD_DIR="${S}/tools" python_foreach_impl distutils-r1_python_install + dobin "${S}/tools/tpm2_ptool" + find "${ED}" -name '*.la' -delete || die +} + +src_test() { + default +} |