summaryrefslogtreecommitdiff
path: root/app-crypt/tpm2-pkcs11
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /app-crypt/tpm2-pkcs11
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'app-crypt/tpm2-pkcs11')
-rw-r--r--app-crypt/tpm2-pkcs11/Manifest8
-rw-r--r--app-crypt/tpm2-pkcs11/metadata.xml3
-rw-r--r--app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.2.ebuild (renamed from app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.1.ebuild)1
-rw-r--r--app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.4.0.ebuild58
4 files changed, 67 insertions, 3 deletions
diff --git a/app-crypt/tpm2-pkcs11/Manifest b/app-crypt/tpm2-pkcs11/Manifest
index 3a54297bc745..82a623ea012f 100644
--- a/app-crypt/tpm2-pkcs11/Manifest
+++ b/app-crypt/tpm2-pkcs11/Manifest
@@ -1,3 +1,5 @@
-DIST tpm2-pkcs11-1.3.1.tar.gz 1256873 BLAKE2B 16bf9c2806fe515cfc31e5885c940774d8d1a04d8a780c8a119db4d9c684e6db3ad3f719fa09d9dc7b6b0fb09212aa4745c53bd7253fd444ebfcb6b8f1dbeb3a SHA512 031b7411c135b2cb3b8f7c38af69a46e65088c4dc1da13ae5c44f92d2a2e293dfe2bea0adc68eb3e64b02b5445f55c353c5c209ecbc977411747fbd429ebdc86
-EBUILD tpm2-pkcs11-1.3.1.ebuild 1228 BLAKE2B fed0bed0fad0b5eb4ad287ab23de0f7387c5a7a6d33ed57259be7f76c196eba9a34d37c1fdb99e13bd7cc394f996bceb28b11f96e96019d929e44a15bc55a517 SHA512 11b8b296353a0de0742537153857f3682659571015e1772dccfeb2b73c157f68c708bbb8b05d3d8c426350e3d008d0e8d657276f240d0bb228da300e910cce48
-MISC metadata.xml 370 BLAKE2B eb4d1a4a8e56cbdcb5b7f86029feb6e2151967f7b4801fbb3a8c2de35840969a4987ca2aada95792cb35ab03702715b1f66fe966c176969de743c64775bed0cb SHA512 5a2f5a0089bb0c54dd36821005a65cbe8c4fd05f1d7e0367eaff02031a39c749e005e5432da334081304af8c55b330b549821819455f1f0919d4525a254ca5c6
+DIST tpm2-pkcs11-1.3.2.tar.gz 1260000 BLAKE2B 219af608db4c72b9bd6c471af9499a4e78a4c9ba6afff72681830cd2f6ce174bc684b9b33c16d263bd6069f0f17f3c92afc56b03779aea38236f36232cd0e5ce SHA512 cca15ace5e6c576591c3432eabb0de98f276a334785b021aa28601c9a77686737c23702fd0ac384feeaf71c8966eccc0006ba428b400de58f811848538ffa978
+DIST tpm2-pkcs11-1.4.0.tar.gz 1334539 BLAKE2B 7f165fab37577903da98c5d3c134fe22e0f630e9494061fe8ced3293b96e2c830650090d8aa349c8ce57fea74c07774415279ef5fbde8db628c8607f2b3203cf SHA512 b271500c7aab256edf4b9e070e700bbc8162db070cd8dfe49289db60d8c4527b8e54c794beb8c97fda0d989e095ac6cb790898912993db1906b7139942c87ffb
+EBUILD tpm2-pkcs11-1.3.2.ebuild 1250 BLAKE2B 7216c963db4964e27323eb3c6eb88b186b7edf8bb72900ba91bc28e1753094c730dba75db09cc56478fa97e85f6ca04070865e59ca3a3c53b227347a9ea134d8 SHA512 c728ba486857889aef98f635f74420573689f04f7a8589127fda247110de7f224f750d363b3d95ca1b294d035a1dbdfb995cc4b21e3aed6e40004f05ee90232b
+EBUILD tpm2-pkcs11-1.4.0.ebuild 1346 BLAKE2B a2439527a123b86c3fec733224e3988ecebceca10ec1bf55dda86a63a7116dfef0716e6705457d2f98116972287d64ca2c2a14108d658b9774bb5f2c9cc5c66c SHA512 c579cb36906cdacd8bdc922564855ac6daf4182a0e00f4b3958c261400f232ec6863134b2d4078fdd833d58fdd76f539238add7f8739ad41b27798262393aeed
+MISC metadata.xml 439 BLAKE2B 6f2f3a6188973cfdc23515761b9ac0a1a67d644374de859c8f493874c79b8802a8cfdab9635ff6af3eb03cf925fc22214da23a26738b51d5dd3c0d5c9e78af72 SHA512 0d819fb83133364a6ff8fa22a868e4a88101ca1d72d2552e007e25be1f4ea7da9066556123879035962f36910dd5eaf2f5b5dc613c8e7807ab383084185bef41
diff --git a/app-crypt/tpm2-pkcs11/metadata.xml b/app-crypt/tpm2-pkcs11/metadata.xml
index 6ddd104074b9..428d019c9ce4 100644
--- a/app-crypt/tpm2-pkcs11/metadata.xml
+++ b/app-crypt/tpm2-pkcs11/metadata.xml
@@ -9,5 +9,8 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <use>
+ <flag name="fapi">Enable feature API backend</flag>
+ </use>
</pkgmetadata>
diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.1.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.2.ebuild
index 59219ad465e6..eacca8899f54 100644
--- a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.1.ebuild
+++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.3.2.ebuild
@@ -22,6 +22,7 @@ RESTRICT="test"
RDEPEND="app-crypt/p11-kit
app-crypt/tpm2-abrmd
+ app-crypt/tpm2-tools
app-crypt/tpm2-tss
dev-db/sqlite:3
dev-libs/openssl
diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.4.0.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.4.0.ebuild
new file mode 100644
index 000000000000..be28c64da7ec
--- /dev/null
+++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.4.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+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 requires the IBM TPM simulator that's not in portage
+RESTRICT="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.0[fapi] )
+ dev-db/sqlite:3
+ dev-libs/openssl
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/autoconf-archive
+ virtual/pkgconfig"
+
+src_configure() {
+ econf \
+ $(use_enable fapi)
+}
+
+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 "${D}" -name '*.la' -delete || die
+}