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: Tue, 14 Sep 2021 07:39:36
Message-Id: 1631605132.6025273d3ca145017bbc447e768fb821a1cc0161.juippis@gentoo
1 commit: 6025273d3ca145017bbc447e768fb821a1cc0161
2 Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Sat Sep 11 01:08:46 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 07:38:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6025273d
7
8 dev-libs/libtpms: Bump to 0.8.6
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.6.ebuild | 49 +++++++++++++++++++++++++++++++++++
16 2 files changed, 50 insertions(+)
17
18 diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest
19 index 0751f4736c8..a2583854903 100644
20 --- a/dev-libs/libtpms/Manifest
21 +++ b/dev-libs/libtpms/Manifest
22 @@ -1 +1,2 @@
23 DIST libtpms-0.8.5.tar.gz 1255741 BLAKE2B a9960d4f58093f9291ee718c4577138cfd36f637a2911b2bacc3dde68b9def5ab1fd085e38a46b8a57d15f68072e7268a132687f5cc8c593390b1ef986aa0813 SHA512 7f1591b6b655ec99d3737ee41e37e4c0fc05f2e9676463a44c88015b37b2a39291a576e81e394cdf3deac3f1227774c6c60baca445befb24339515773e20b766
24 +DIST libtpms-0.8.6.tar.gz 1255964 BLAKE2B 44d9b1f78944ede5842b3cbef09900899f53ba3525e63f09de8263b9c1878a889db80eaf3ba35334a2233334bcb4ebd03d2bb841e4184059f9a155ad4a2aa244 SHA512 d57d52d140d582a6a7d2146aa9a10445c5c50807da53b26f6efbb8632ac83afa3c67e1a47ffa6a898a45cbac3aff199fe61947d69bc5af727e9623564bac45d8
25
26 diff --git a/dev-libs/libtpms/libtpms-0.8.6.ebuild b/dev-libs/libtpms/libtpms-0.8.6.ebuild
27 new file mode 100644
28 index 00000000000..fe5361b4519
29 --- /dev/null
30 +++ b/dev-libs/libtpms/libtpms-0.8.6.ebuild
31 @@ -0,0 +1,49 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
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 ~arm ~arm64 ~ppc ~ppc64 ~x86"
45 +
46 +DEPEND="dev-libs/openssl:="
47 +RDEPEND="${DEPEND}"
48 +BDEPEND="virtual/pkgconfig"
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 +}