1 |
commit: a88129cec9b0fba20f944fd2510ae52bd3588f83 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 1 19:24:31 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 22 08:29:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a88129ce |
7 |
|
8 |
dev-libs/libtpms: Bump to 0.8.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libtpms/Manifest | 1 + |
15 |
dev-libs/libtpms/libtpms-0.8.3.ebuild | 46 +++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 47 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest |
19 |
index 93f2642fb36..fa9ee38e060 100644 |
20 |
--- a/dev-libs/libtpms/Manifest |
21 |
+++ b/dev-libs/libtpms/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libtpms-0.8.2.tar.gz 1253915 BLAKE2B 48281512f2611376f0f3a67a2646fdc406c2d28bfd560a07b23c122a1b4d68c2840c5cd23f41beae4a13eab419e722aed821cecd919ae6219da325724d55e3b3 SHA512 635f1b30265f1752602caefa1fa87f0032e4d38f1b7113137b7e25a85da10e34f89f9d928b960660e9451306807f111ed96c2a11cbb2de4fb4beb7e638f83727 |
24 |
+DIST libtpms-0.8.3.tar.gz 1254474 BLAKE2B c71f52d6475d4328e93a35f88557de3400308984ec086f7e6b3c32ebc266e078b3a9864396546ba11fc310c1572efa1521bdac89075c5eba18cb35eef883e706 SHA512 07cf78c2a5b03f3c9179b041db57d5ec049dc0085c09e4fd5c9b54a247cf81a3b9982f0fb1cd571cd6b21b3d9824b061f8f38508fc25b6a23a6a6b06dea7115b |
25 |
|
26 |
diff --git a/dev-libs/libtpms/libtpms-0.8.3.ebuild b/dev-libs/libtpms/libtpms-0.8.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d8fb23739da |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libtpms/libtpms-0.8.3.ebuild |
31 |
@@ -0,0 +1,46 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools |
38 |
+ |
39 |
+DESCRIPTION="Library providing software emultion of a TPM" |
40 |
+HOMEPAGE="https://github.com/stefanberger/libtpms" |
41 |
+SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+ |
46 |
+DEPEND="dev-libs/openssl:0=" |
47 |
+RDEPEND="${DEPEND}" |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}/${PN}-0.8.0-Remove-WError.patch" |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ eautoreconf |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ econf \ |
60 |
+ --disable-static \ |
61 |
+ --with-openssl \ |
62 |
+ --with-tpm2 |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ default |
67 |
+ find "${D}" -name '*.la' -delete || die |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA" |
72 |
+ elog "keys due to a flawed key creation algorithm. Because fixing this would render" |
73 |
+ elog "existing sealed data inaccessible, to use the corrected algorithm, the old" |
74 |
+ elog "TPM state file must be deleted and a new TPM state file created. Data still" |
75 |
+ elog "sealed using the old state file will be permanently inaccessible. For the" |
76 |
+ elog "details see https://github.com/stefanberger/libtpms/issues/183" |
77 |
+} |