1 |
commit: e3f888a442e6edcc605f7c02f4ffb09c41e23f46 |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Feb 20 02:06:06 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 26 16:17:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3f888a4 |
7 |
|
8 |
app-crypt/tpm2-tools: Bump version to 4.1.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/694988 |
11 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
12 |
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-crypt/tpm2-tools/Manifest | 1 + |
16 |
.../files/tpm2-tools-4.1.1-libressl.patch | 26 ++++++++++++++++++ |
17 |
app-crypt/tpm2-tools/tpm2-tools-4.1.1.ebuild | 32 ++++++++++++++++++++++ |
18 |
3 files changed, 59 insertions(+) |
19 |
|
20 |
diff --git a/app-crypt/tpm2-tools/Manifest b/app-crypt/tpm2-tools/Manifest |
21 |
index fe23dab9fc3..5c398b78b3c 100644 |
22 |
--- a/app-crypt/tpm2-tools/Manifest |
23 |
+++ b/app-crypt/tpm2-tools/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST tpm2-tools-3.1.4.tar.gz 589388 BLAKE2B aaaa9a0158d0658dc2db4734b18ea1d49bd6c0aef84c4f1236f3134245165dccdb0bada69d92f0e5a59ecb1f2973e5cd25924d2b9c4cad2891d9e4f9fb94a84b SHA512 c5e1be4ffab305ee42a8b4a9c9aa4373158259a58844e273465f97a74f913fb12098b9fd81127148be95ecba7378f6a45b96af256dde3101a237e5e33e8e8ccb |
26 |
+DIST tpm2-tools-4.1.1.tar.gz 779914 BLAKE2B 5b347b00508183cbde407e01454df0a7eb3a8080cb5b8f73d153c4972b38b98ac7c066664b54aeedef03b9bfd97b3cff482dbc44d5f11215af9c3c7754380d75 SHA512 25952cf947f0acd16b1a8dbd3ac8573bce85ff970a7e24c290c4f9cd29418e77a3e48ac82c932fbd250887a9303ab301ff92db594c2fffaba47b873382444d26 |
27 |
|
28 |
diff --git a/app-crypt/tpm2-tools/files/tpm2-tools-4.1.1-libressl.patch b/app-crypt/tpm2-tools/files/tpm2-tools-4.1.1-libressl.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..2f39db3283c |
31 |
--- /dev/null |
32 |
+++ b/app-crypt/tpm2-tools/files/tpm2-tools-4.1.1-libressl.patch |
33 |
@@ -0,0 +1,26 @@ |
34 |
+From a1ac2ee0c6592e6f730458c03a2abd1532c66046 Mon Sep 17 00:00:00 2001 |
35 |
+From: Salah Coronya <salah.coronya@×××××.com> |
36 |
+Date: Sun, 12 Jan 2020 19:17:48 -0600 |
37 |
+Subject: [PATCH] lib/tpm2_openssl.c: Fix build for libressl |
38 |
+ |
39 |
+Signed-off-by: Salah Coronya <salah.coronya@×××××.com> |
40 |
+--- |
41 |
+ lib/tpm2_openssl.c | 2 +- |
42 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
43 |
+ |
44 |
+diff --git a/lib/tpm2_openssl.c b/lib/tpm2_openssl.c |
45 |
+index 505dd7a0..fd3861d9 100644 |
46 |
+--- a/lib/tpm2_openssl.c |
47 |
++++ b/lib/tpm2_openssl.c |
48 |
+@@ -14,7 +14,7 @@ |
49 |
+ #include "tpm2_openssl.h" |
50 |
+ |
51 |
+ /* compatibility function for OpenSSL versions < 1.1.0 */ |
52 |
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
53 |
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
54 |
+ static int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen) { |
55 |
+ int r; |
56 |
+ int topad; |
57 |
+-- |
58 |
+2.24.1 |
59 |
+ |
60 |
|
61 |
diff --git a/app-crypt/tpm2-tools/tpm2-tools-4.1.1.ebuild b/app-crypt/tpm2-tools/tpm2-tools-4.1.1.ebuild |
62 |
new file mode 100644 |
63 |
index 00000000000..a2ad7f1f2dc |
64 |
--- /dev/null |
65 |
+++ b/app-crypt/tpm2-tools/tpm2-tools-4.1.1.ebuild |
66 |
@@ -0,0 +1,32 @@ |
67 |
+# Copyright 1999-2020 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=7 |
71 |
+ |
72 |
+DESCRIPTION="Tools for the TPM 2.0 TSS" |
73 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tools" |
74 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
75 |
+ |
76 |
+LICENSE="BSD" |
77 |
+SLOT="0" |
78 |
+KEYWORDS="~amd64" |
79 |
+IUSE="libressl test" |
80 |
+RESTRICT="!test? ( test )" |
81 |
+ |
82 |
+RDEPEND=">=app-crypt/tpm2-tss-2.3.1:= |
83 |
+ net-misc/curl:= |
84 |
+ !libressl? ( dev-libs/openssl:0= ) |
85 |
+ libressl? ( dev-libs/libressl:0= )" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ test? ( dev-util/cmocka )" |
88 |
+BDEPEND="virtual/pkgconfig" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}/${P}-libressl.patch" |
92 |
+) |
93 |
+ |
94 |
+src_configure() { |
95 |
+ econf \ |
96 |
+ $(use_enable !libressl hardening) \ |
97 |
+ $(use_enable test unit) |
98 |
+} |