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