dev-libs/libtpms - 0.9.6 (libressl)

Search

Package Information

Description:
Library providing software emulation of a TPM
Homepage:
https://github.com/stefanberger/libtpms
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
0.9.6 8 amd64 arm arm64 ~loong ~ppc ppc64 ~riscv x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Library providing software emulation 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 arm arm64 ~loong ~ppc ppc64 ~riscv x86"

DEPEND="dev-libs/openssl:="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}/${PN}-0.9.0-Remove-WError.patch"
	"${FILESDIR}/${PN}-0.9.5-slibtool.patch" # 858671
	"${FILESDIR}/${PN}-0.9.6-libressl.patch"
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		--with-openssl
}

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
}

Dependencies

DEPEND

dev-libs/openssl:=

RDEPEND

dev-libs/openssl:=

BDEPEND

virtual/pkgconfig

Manifest for 0.9.6

Type File Size Source URLs
DIST libtpms-0.9.6.tar.gz 1264338 bytes https://github.com/stefanberger/libtpms/archive/v0.9.6.tar.gz