1 |
commit: 490e222ae175348379f09b3770bf20dc282b97bf |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 23 21:00:28 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 09:29:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=490e222a |
7 |
|
8 |
app-crypt/tpm2-tss: Bump to 2.4.3, fix CVE-2020-24455 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-crypt/tpm2-tss/Manifest | 1 + |
15 |
app-crypt/tpm2-tss/tpm2-tss-2.4.3.ebuild | 77 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 78 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest |
19 |
index 88f3e328b95..f8dc34670e9 100644 |
20 |
--- a/app-crypt/tpm2-tss/Manifest |
21 |
+++ b/app-crypt/tpm2-tss/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST tpm2-tss-2.4.1.tar.gz 1445103 BLAKE2B c7be91b93d19b5afeddb6ec455db9ba06795f8dc76ee2a0c6cbabbd8f623930d7c9fdf6319497c70790445531d1e36fe3f904f4c1f4bc9254d833b6d19280f1f SHA512 51551d63fa404e23664aaad1b247bd4b1f93812ced1aed144c37f28cdb3adb4e696aa9e93a502c8fa0eb7e9b4376ac9377f0537eb4c717b68c0b014fee7a0643 |
24 |
DIST tpm2-tss-2.4.2.tar.gz 1461987 BLAKE2B 7d37818ba91c4128862206d5179dcde2c5149b5b00807b242a0b4311531ad2da9e8ad435a6b46872aab5eb91777012010a352ba0f478737740175e0353275643 SHA512 db31d216abcefdad76f5d9ff2995c99c552400392a4dec800b962fa1fa3ac83effacca831602a9b7f814045c996a1bb066802c5373b54233aa24ddafd636c27e |
25 |
+DIST tpm2-tss-2.4.3.tar.gz 1439120 BLAKE2B 21acce29f96e8039124874c024b43eb8d2c4ffda27db58bb4f34446747c0fa6953c6ca390f8e87d22c1349123bada81051b119eaf7a28c7d1ad8a9195287c312 SHA512 4adaeb2724b720017e9d488f66de879ebdc0dbc2a4f7536493214913a49d2c631e302be26f710f0f45b0d514212cb036ca7ba9715ee13c29dda1d4a61595aa27 |
26 |
DIST tpm2-tss-3.0.0.tar.gz 1509288 BLAKE2B 23c46ba6c9ea2b61703556d3aab5b4e75b1a0242a688c44e8c254a4defd8258e100a933598755373ffec9db3ca0ab9d35e6a290a73851c2a456449e04bd8313a SHA512 ba54904f2cd8cbcca85ce4d4ac5c8650da6ab076e8d8d142e1b7ee75c5e9a645520f1a5ac8ffe5269deceba84762c9074b131296e8b2d4c684ddc335a828d7a8 |
27 |
|
28 |
diff --git a/app-crypt/tpm2-tss/tpm2-tss-2.4.3.ebuild b/app-crypt/tpm2-tss/tpm2-tss-2.4.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..031d80ebfaa |
31 |
--- /dev/null |
32 |
+++ b/app-crypt/tpm2-tss/tpm2-tss-2.4.3.ebuild |
33 |
@@ -0,0 +1,77 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit autotools linux-info tmpfiles udev |
40 |
+ |
41 |
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" |
42 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" |
43 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+IUSE="doc +fapi gcrypt +openssl static-libs test" |
49 |
+ |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+REQUIRED_USE="^^ ( gcrypt openssl ) |
53 |
+ fapi? ( openssl !gcrypt )" |
54 |
+ |
55 |
+RDEPEND="acct-group/tss |
56 |
+ acct-user/tss |
57 |
+ fapi? ( |
58 |
+ dev-libs/json-c |
59 |
+ net-misc/curl |
60 |
+ ) |
61 |
+ gcrypt? ( dev-libs/libgcrypt:0= ) |
62 |
+ openssl? ( dev-libs/openssl:0= )" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ test? ( dev-util/cmocka )" |
65 |
+BDEPEND="virtual/pkgconfig |
66 |
+ doc? ( app-doc/doxygen )" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${PN}-2.4.2-Dont-run-systemd-sysusers-in-Makefile.patch" |
70 |
+) |
71 |
+ |
72 |
+pkg_setup() { |
73 |
+ local CONFIG_CHECK=" \ |
74 |
+ ~TCG_TPM |
75 |
+ " |
76 |
+ linux-info_pkg_setup |
77 |
+ kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ econf \ |
87 |
+ --localstatedir=/var \ |
88 |
+ $(use_enable doc doxygen-doc) \ |
89 |
+ $(use_enable fapi) \ |
90 |
+ $(use_enable static-libs static) \ |
91 |
+ $(use_enable test unit) \ |
92 |
+ --disable-tcti-mssim \ |
93 |
+ --disable-defaultflags \ |
94 |
+ --disable-weakcrypto \ |
95 |
+ --with-crypto="$(usex gcrypt gcrypt ossl)" \ |
96 |
+ --with-runstatedir=/run \ |
97 |
+ --with-udevrulesdir="$(get_udevdir)/rules.d" \ |
98 |
+ --with-udevrulesprefix=60- \ |
99 |
+ --with-sysusersdir="/usr/lib/sysusers.d" \ |
100 |
+ --with-tmpfilesdir="/usr/lib/tmpfiles.d" |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ default |
105 |
+ find "${D}" -name '*.la' -delete || die |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ tmpfiles_process tpm2-tss-fapi.conf |
110 |
+} |