1 |
commit: 67d949b48cf553dc47203d8a6e60463bc4df6f1f |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Sep 27 21:52:40 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 28 06:14:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67d949b4 |
7 |
|
8 |
app-crypt/tpm2-pkcs11: Bump to 1.7.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/813735 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-crypt/tpm2-pkcs11/Manifest | 1 + |
16 |
app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild | 64 ++++++++++++++++++++++++++ |
17 |
2 files changed, 65 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/tpm2-pkcs11/Manifest b/app-crypt/tpm2-pkcs11/Manifest |
20 |
index 24117b2930d..b5b858c55a4 100644 |
21 |
--- a/app-crypt/tpm2-pkcs11/Manifest |
22 |
+++ b/app-crypt/tpm2-pkcs11/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST tpm2-pkcs11-1.6.0.tar.gz 1370370 BLAKE2B 5dd8c587688a26958e8406366ce14cdadc9d2279f01276037df3895f49f835bd021b96da2c7399881e23527c79c45d25417b57acfb961f934f29d785dacf87f7 SHA512 db94b2194837564fa330ac7cc15a5185258d5d632f033a60fa82a2b3246e046dac29b6dfece19b4e075383e999ac157286c7f18f6c5ab6a98dd01c8e810065ea |
25 |
+DIST tpm2-pkcs11-1.7.0.tar.gz 1386693 BLAKE2B bf53a76be712bda374a8d107910440bab087fdb6c34fee3c748128d471a7a84b08f887ff97c8cdfef632679dd4343cf020e9459b96553cd5feecf76e65d6e290 SHA512 eb2736a7ef00fefa91bb70cc96d94d1c7b6ce3701ab12301658b7b076d8fca93bc590c7cdba5a84934b6bd09dad252b13670804c686e76a65b03c7ef6d96427d |
26 |
|
27 |
diff --git a/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..586ba352bfd |
30 |
--- /dev/null |
31 |
+++ b/app-crypt/tpm2-pkcs11/tpm2-pkcs11-1.7.0.ebuild |
32 |
@@ -0,0 +1,64 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+PYTHON_REQ_USE="sqlite" |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="A PKCS#11 interface for TPM2 hardware" |
44 |
+HOMEPAGE="https://tpm2-software.github.io/" |
45 |
+SRC_URI="https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PV}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+ |
51 |
+IUSE="fapi test" |
52 |
+ |
53 |
+# Units tests only for now |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+RDEPEND="app-crypt/p11-kit |
57 |
+ app-crypt/tpm2-abrmd |
58 |
+ app-crypt/tpm2-tools[fapi?] |
59 |
+ !fapi? ( app-crypt/tpm2-tss ) |
60 |
+ fapi? ( >=app-crypt/tpm2-tss-3.0.1[fapi] ) |
61 |
+ dev-db/sqlite:3 |
62 |
+ dev-libs/openssl:= |
63 |
+ dev-python/bcrypt[${PYTHON_USEDEP}] |
64 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
65 |
+ dev-python/pyasn1[${PYTHON_USEDEP}] |
66 |
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
67 |
+ dev-python/pyyaml[${PYTHON_USEDEP}]" |
68 |
+ |
69 |
+DEPEND="test? ( dev-util/cmocka ) |
70 |
+ ${RDEPEND}" |
71 |
+BDEPEND="sys-devel/autoconf-archive |
72 |
+ virtual/pkgconfig" |
73 |
+ |
74 |
+src_configure() { |
75 |
+ econf \ |
76 |
+ $(use_enable fapi) \ |
77 |
+ $(use_enable test unit) |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ default |
82 |
+ cd "${S}/tools" || die |
83 |
+ BUILD_DIR="${S}/tools" python_foreach_impl distutils-r1_python_compile |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ default |
88 |
+ cd "${S}/tools" || die |
89 |
+ BUILD_DIR="${S}/tools" python_foreach_impl distutils-r1_python_install |
90 |
+ dobin "${S}/tools/tpm2_ptool" |
91 |
+ find "${ED}" -name '*.la' -delete || die |
92 |
+} |
93 |
+ |
94 |
+src_test() { |
95 |
+ default |
96 |
+} |