1 |
commit: 5ce37c8ef4f0c1429d3e1a423bd6a7c4897b38d0 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Sep 28 19:43:23 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 4 14:23:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ce37c8e |
7 |
|
8 |
app-crypt/tpm2-tools: Bump to 5.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
app-crypt/tpm2-tools/Manifest | 1 + |
15 |
app-crypt/tpm2-tools/tpm2-tools-5.2.ebuild | 67 ++++++++++++++++++++++++++++++ |
16 |
2 files changed, 68 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/tpm2-tools/Manifest b/app-crypt/tpm2-tools/Manifest |
19 |
index ec36aa46f00..158898da959 100644 |
20 |
--- a/app-crypt/tpm2-tools/Manifest |
21 |
+++ b/app-crypt/tpm2-tools/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST tpm2-tools-4.3.2.tar.gz 887708 BLAKE2B ee6fe3d0566138d6289d1a91252ccb106d36ff80d55f2d6f9ee30c8e16338d706e80085ac5f4f56a79bcb339e5dcb240efcf71d4003bcffdad366f3cd7a1165b SHA512 1aa47c62c3d2a83195ec649e50c0be2c8be39f926806d8d7cb96edc499c385d527661813e02024e98f83ae9ebcb22d7dadc507ddfab48be9bbe428d9439d7ee1 |
24 |
DIST tpm2-tools-5.1.1.tar.gz 1044427 BLAKE2B 885ff61ad971c95d067bf8f9339de289f082f3103d1c382f45ac3ffbd4d5effc343ddc3c2c74b97b9d31f3f823d264991d1726c1f9c21d5c9b82ac1cdf714d3f SHA512 4e094dcffb66103773d85e866ab9ba8db5d0f205ff9658e08fe14e8e41250570a7f7274b4048934adf256ea41650fa498fc3d6da2786adc241a4bf2e8f7bf78e |
25 |
+DIST tpm2-tools-5.2.tar.gz 1072078 BLAKE2B 27d035e0f44029db57477a1fd10e1cee9b470ad54411297985cb7f33ba7bbb7a94ac392815e32287d69abf928dce0c361703542b812ae88b208ddca645bb3be2 SHA512 9fb5dc298717a8a57c89d286e3590370a096c81b14d2d8d4eb5fca140d66148a8e24727ee04fb02057bbfcc3ede50e93ba0ef22396888c9df48bf6f42a5d6e6b |
26 |
|
27 |
diff --git a/app-crypt/tpm2-tools/tpm2-tools-5.2.ebuild b/app-crypt/tpm2-tools/tpm2-tools-5.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..87c3b2f5697 |
30 |
--- /dev/null |
31 |
+++ b/app-crypt/tpm2-tools/tpm2-tools-5.2.ebuild |
32 |
@@ -0,0 +1,67 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit autotools bash-completion-r1 python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="Tools for the TPM 2.0 TSS" |
42 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tools" |
43 |
+SRC_URI="https://github.com/tpm2-software/tpm2-tools/releases/download/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="+fapi test" |
49 |
+ |
50 |
+RESTRICT="!test? ( test )" |
51 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
52 |
+ |
53 |
+RDEPEND=">=app-crypt/tpm2-tss-3.0.1[fapi?] |
54 |
+ dev-libs/openssl:= |
55 |
+ net-misc/curl |
56 |
+ sys-libs/efivar:= |
57 |
+ ${PYTHON_DEPS}" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ test? ( |
60 |
+ app-crypt/swtpm |
61 |
+ app-crypt/tpm2-abrmd |
62 |
+ dev-util/cmocka |
63 |
+ )" |
64 |
+BDEPEND="virtual/pkgconfig |
65 |
+ sys-devel/autoconf-archive |
66 |
+ test? ( |
67 |
+ app-editors/vim-core |
68 |
+ dev-tcltk/expect |
69 |
+ $(python_gen_cond_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
70 |
+ ) |
71 |
+ ${PYTHON_DEPS}" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-5.1.1-no-efivar-automagic.patch" |
75 |
+) |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ default |
79 |
+ sed -i \ |
80 |
+ "s/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/" \ |
81 |
+ "configure.ac" || die |
82 |
+ "./scripts/utils/man_to_bashcompletion.sh" || die |
83 |
+ eautoreconf |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ econf \ |
88 |
+ $(use_enable fapi) \ |
89 |
+ $(use_enable test unit) \ |
90 |
+ --with-bashcompdir=$(get_bashcompdir) \ |
91 |
+ --enable-hardening |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ default |
96 |
+ mv "${ED}"/$(get_bashcompdir)/tpm2{_completion.bash,} || die |
97 |
+ local utils=( "${ED}"/usr/bin/tpm2_* ) |
98 |
+ bashcomp_alias tpm2 "${utils[@]##*/}" |
99 |
+} |