summaryrefslogtreecommitdiff
path: root/dev-libs/libtpms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-07-17 19:04:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-07-17 19:04:28 +0100
commit514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (patch)
tree555c194dbeb0fb2ac4ad3cde7c0f6a80fd330ce2 /dev-libs/libtpms
parent4df3bf9762850b34cd1ead5c80374d1a0fc3362e (diff)
gentoo resync : 17.07.2021
Diffstat (limited to 'dev-libs/libtpms')
-rw-r--r--dev-libs/libtpms/Manifest4
-rw-r--r--dev-libs/libtpms/libtpms-0.8.3.ebuild2
-rw-r--r--dev-libs/libtpms/libtpms-0.8.4.ebuild48
3 files changed, 52 insertions, 2 deletions
diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest
index 2223d4568217..cae407c7fc1a 100644
--- a/dev-libs/libtpms/Manifest
+++ b/dev-libs/libtpms/Manifest
@@ -1,4 +1,6 @@
AUX libtpms-0.8.0-Remove-WError.patch 472 BLAKE2B 08bf1379957d35b123180d0e2434ee9f0bb050bb420e3ab176467f517489890491edf12a14d1ed28a6eb6d5adb3d7aabe274870de7ea691a9f53b169c269761c SHA512 2e7dcd146f8ac438c574ac662c513a95f4d99277c7123b86f633ea1b4c2d3c8dc758f4675258c519b6b1449cfe6f3573eb13241b7b255d09967965627eddf997
DIST libtpms-0.8.3.tar.gz 1254474 BLAKE2B c71f52d6475d4328e93a35f88557de3400308984ec086f7e6b3c32ebc266e078b3a9864396546ba11fc310c1572efa1521bdac89075c5eba18cb35eef883e706 SHA512 07cf78c2a5b03f3c9179b041db57d5ec049dc0085c09e4fd5c9b54a247cf81a3b9982f0fb1cd571cd6b21b3d9824b061f8f38508fc25b6a23a6a6b06dea7115b
-EBUILD libtpms-0.8.3.ebuild 1192 BLAKE2B 7468ce6ecf8f88536d3025e84fdfc1d1dbd64c7417aafd7990e909a0fb7d01cc6574f0070098e757a5a7acd9e26f196a8d6bcd4eb5d4119b3f08b78365e35495 SHA512 71057c0acbddeb2ef39045e5b0c5751478be601242994103a4a20380aa29701e2300058a8120ee4d742f6520e1aa4de967e68941745438db6d0ffe3ab4111bb7
+DIST libtpms-0.8.4.tar.gz 1255255 BLAKE2B 0786b19dc8f3226508548ab16544ee8ac05e8d9de057eed840a0cb7577c1d1386d83af1a725ec91e64344e2459f9d4836268e2c9a097136cf76d59ea8e23b0c8 SHA512 58244a774cb6ec5dcbbc2d795628fca9eb64936874c72b169ea8288f2bf0cafa8127b1e89ed3ddbf5694df5a5944a7d61254dc729d75b63b3e4f9346b2f0a7b5
+EBUILD libtpms-0.8.3.ebuild 1197 BLAKE2B cfc4d452f26351fa66f744a42f1f24e2c2aa9e464f9189848ef24a01dd94bdbac7a609827407e0e062e90c6bd36646c4bca6aa76a2c52d3d5d7af93f8ae869c2 SHA512 714e720d1895494a214b86fe534f26c7bd28ea5bac0c0eb381e770952bda0f0edaf46bb7eb9cecfe11e5d2a6f8a7bc7c3bd97c00bc2cc8f2fb4656c3fa24f9a3
+EBUILD libtpms-0.8.4.ebuild 1289 BLAKE2B 5721991eb5d0fa307c854cb59c2666be4f4253817d0c5388da44e74ca4089ed32f681429cf45c571659781964e213bf0a0d44bc8f317a2d18e46efb21aec7881 SHA512 500846d4211cdc5d294d56fd4ec6db837bc7e6196ed0252763c1eb3eb1f32cc08f3fb5bad1220d08a64d4595a29c9704ebde5971d4d65ec0a2afd44e253975ea
MISC metadata.xml 535 BLAKE2B bae20f8be44e80b54b497276a1913da891e9c1bf3e61d3ecc41c0db089ba78424dd470d2b3d9e6475f772d786c44b390cea07dba2498521fa5316144622bc4f7 SHA512 ad2c131b3183613382d1ecfb0b24b02ff3f1d2b4901ad586289298816ef39d4604e82ea1065df54f35883e0cc4052c0510f6971220df8196fe9477a105e50f68
diff --git a/dev-libs/libtpms/libtpms-0.8.3.ebuild b/dev-libs/libtpms/libtpms-0.8.3.ebuild
index b7031ae9a4d7..506699ace35a 100644
--- a/dev-libs/libtpms/libtpms-0.8.3.ebuild
+++ b/dev-libs/libtpms/libtpms-0.8.3.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/stefanberger/libtpms"
SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 ~arm64 ~ppc"
DEPEND="dev-libs/openssl:0="
RDEPEND="${DEPEND}"
diff --git a/dev-libs/libtpms/libtpms-0.8.4.ebuild b/dev-libs/libtpms/libtpms-0.8.4.ebuild
new file mode 100644
index 000000000000..3eab05684d98
--- /dev/null
+++ b/dev-libs/libtpms/libtpms-0.8.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Library providing software emultion of a TPM"
+HOMEPAGE="https://github.com/stefanberger/libtpms"
+SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc"
+
+DEPEND="dev-libs/openssl:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.8.0-Remove-WError.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ --with-openssl \
+ --with-tpm2
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 0.8.0; then
+ elog "Versions of libtpms prior to 0.8.0 generate weaker than expected TPM 2.0 RSA"
+ elog "keys due to a flawed key creation algorithm. Because fixing this would render"
+ elog "existing sealed data inaccessible, to use the corrected algorithm, the old"
+ elog "TPM state file must be deleted and a new TPM state file created. Data still"
+ elog "sealed using the old state file will be permanently inaccessible. For the"
+ elog "details see https://github.com/stefanberger/libtpms/issues/183"
+ fi
+}