Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtpms/
Date: Sat, 04 Sep 2021 06:26:48
Message-Id: 1630735501.95b07883ea66954424ef4bbc5b94cbbff9f6913c.juippis@gentoo
1 commit: 95b07883ea66954424ef4bbc5b94cbbff9f6913c
2 Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 2 18:35:13 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 4 06:05:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b07883
7
8 dev-libs/libtpms: Bump to 0.8.5
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
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.5.ebuild | 48 +++++++++++++++++++++++++++++++++++
16 2 files changed, 49 insertions(+)
17
18 diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest
19 index 06243131e7d..dcf7baba26f 100644
20 --- a/dev-libs/libtpms/Manifest
21 +++ b/dev-libs/libtpms/Manifest
22 @@ -1,2 +1,3 @@
23 DIST libtpms-0.8.3.tar.gz 1254474 BLAKE2B c71f52d6475d4328e93a35f88557de3400308984ec086f7e6b3c32ebc266e078b3a9864396546ba11fc310c1572efa1521bdac89075c5eba18cb35eef883e706 SHA512 07cf78c2a5b03f3c9179b041db57d5ec049dc0085c09e4fd5c9b54a247cf81a3b9982f0fb1cd571cd6b21b3d9824b061f8f38508fc25b6a23a6a6b06dea7115b
24 DIST libtpms-0.8.4.tar.gz 1255255 BLAKE2B 0786b19dc8f3226508548ab16544ee8ac05e8d9de057eed840a0cb7577c1d1386d83af1a725ec91e64344e2459f9d4836268e2c9a097136cf76d59ea8e23b0c8 SHA512 58244a774cb6ec5dcbbc2d795628fca9eb64936874c72b169ea8288f2bf0cafa8127b1e89ed3ddbf5694df5a5944a7d61254dc729d75b63b3e4f9346b2f0a7b5
25 +DIST libtpms-0.8.5.tar.gz 1255741 BLAKE2B a9960d4f58093f9291ee718c4577138cfd36f637a2911b2bacc3dde68b9def5ab1fd085e38a46b8a57d15f68072e7268a132687f5cc8c593390b1ef986aa0813 SHA512 7f1591b6b655ec99d3737ee41e37e4c0fc05f2e9676463a44c88015b37b2a39291a576e81e394cdf3deac3f1227774c6c60baca445befb24339515773e20b766
26
27 diff --git a/dev-libs/libtpms/libtpms-0.8.5.ebuild b/dev-libs/libtpms/libtpms-0.8.5.ebuild
28 new file mode 100644
29 index 00000000000..72093b56297
30 --- /dev/null
31 +++ b/dev-libs/libtpms/libtpms-0.8.5.ebuild
32 @@ -0,0 +1,48 @@
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 ~arm64 ~ppc ~ppc64"
46 +
47 +DEPEND="dev-libs/openssl:="
48 +RDEPEND="${DEPEND}"
49 +
50 +PATCHES=(
51 + "${FILESDIR}/${PN}-0.8.0-Remove-WError.patch"
52 +)
53 +
54 +src_prepare() {
55 + default
56 + eautoreconf
57 +}
58 +
59 +src_configure() {
60 + econf \
61 + --disable-static \
62 + --with-openssl \
63 + --with-tpm2
64 +}
65 +
66 +src_install() {
67 + default
68 + find "${ED}" -name '*.la' -delete || die
69 +}
70 +
71 +pkg_postinst() {
72 + if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.8.0; then
73 + elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA"
74 + elog "keys due to a flawed key creation algorithm. Because fixing this would render"
75 + elog "existing sealed data inaccessible, to use the corrected algorithm, the old"
76 + elog "TPM state file must be deleted and a new TPM state file created. Data still"
77 + elog "sealed using the old state file will be permanently inaccessible. For the"
78 + elog "details see https://github.com/stefanberger/libtpms/issues/183"
79 + fi
80 +}