1 |
commit: ba3496859148c769144d5b975c49453a8cfc18c1 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Nov 24 19:54:49 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 28 00:19:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba349685 |
7 |
|
8 |
dev-libs/libtpms: Bump to 0.9.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, 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 |
dev-libs/libtpms/Manifest | 1 + |
15 |
dev-libs/libtpms/libtpms-0.9.1.ebuild | 47 +++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 48 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest |
19 |
index e634b5473961..88784e0d2704 100644 |
20 |
--- a/dev-libs/libtpms/Manifest |
21 |
+++ b/dev-libs/libtpms/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST libtpms-0.8.7.tar.gz 1256807 BLAKE2B d3630ece39a78dcc99d15ad603eec5c3d858d1d0c928ae2d3ae5ad5e4d419e186fa23b25ad15824806838401aac33e7224d7cc7ce6fb79647500d4b3a3871223 SHA512 061ec66bbeee9838f12c6a9724ba953cd604981148d6f3a8ebe444e89e59b228b763d8f98c55d67b9477277ccbf9987f2e5632d1b518e78d182f5d7066020ed4 |
24 |
DIST libtpms-0.9.0.tar.gz 1261212 BLAKE2B 06b065c47bd151cc0001bfffb8aa54aa6d7ef81340f244fb235958bf5801df0fe8cb8a62c51168284e40f34d1a467b4456862087f35f6ac256dcc5e2d12527c5 SHA512 8e9c9e3d1c0c2fb0de3a40b1a84e866e0de662cd00b3bf75dbe01c35d6558a0b325b9c91508d80eeb2bc5162b1413cc624a1f0de1876b9ebe4573cb6343c8287 |
25 |
+DIST libtpms-0.9.1.tar.gz 1261528 BLAKE2B 8a81fbea7dff44fe55da048f5121511c22ce264aaa64778ec28b6e55be64677f46f8266bed9edaeb57605ccede755ddfa7463a10e8fc806a86ea09d7a1f9283e SHA512 15ae14bca4ac24391ba06accae37d7e914e410ac9dc1aeae0743295371c9a0e0851f191c55bffb765cb731e8d397188be6441d2b6c1f5011b56a354428c4dad1 |
26 |
|
27 |
diff --git a/dev-libs/libtpms/libtpms-0.9.1.ebuild b/dev-libs/libtpms/libtpms-0.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..0eed7e6454dd |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libtpms/libtpms-0.9.1.ebuild |
32 |
@@ -0,0 +1,47 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit autotools |
39 |
+ |
40 |
+DESCRIPTION="Library providing software emultion of a TPM" |
41 |
+HOMEPAGE="https://github.com/stefanberger/libtpms" |
42 |
+SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
46 |
+ |
47 |
+DEPEND="dev-libs/openssl:=" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+BDEPEND="virtual/pkgconfig" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${PN}-0.9.0-Remove-WError.patch" |
53 |
+) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ eautoreconf |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf \ |
62 |
+ --with-openssl |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ default |
67 |
+ find "${ED}" -name '*.la' -delete || die |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.8.0; then |
72 |
+ elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA" |
73 |
+ elog "keys due to a flawed key creation algorithm. Because fixing this would render" |
74 |
+ elog "existing sealed data inaccessible, to use the corrected algorithm, the old" |
75 |
+ elog "TPM state file must be deleted and a new TPM state file created. Data still" |
76 |
+ elog "sealed using the old state file will be permanently inaccessible. For the" |
77 |
+ elog "details see https://github.com/stefanberger/libtpms/issues/183" |
78 |
+ fi |
79 |
+} |