app-crypt/tpm2-abrmd - 3.0.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-crypt/tpm2-abrmd-3.0.0

Package Information

Description:
TPM2 Access Broker & Resource Manager
Homepage:
https://github.com/tpm2-software/tpm2-abrmd
License:
BSD

Ebuild Details

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

EAPI=8

inherit autotools flag-o-matic systemd

DESCRIPTION="TPM2 Access Broker & Resource Manager"
HOMEPAGE="https://github.com/tpm2-software/tpm2-abrmd"
SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86"
IUSE="selinux static-libs test"

RESTRICT="!test? ( test )"

RDEPEND="acct-group/tss
	acct-user/tss
	sys-apps/dbus
	dev-libs/glib:=
	app-crypt/tpm2-tss:="
DEPEND="${RDEPEND}
	test? (
		app-crypt/swtpm
		>=app-crypt/tpm2-tss-3.0.0:=
		dev-util/cmocka
		sys-apps/iproute2[-minimal]
	)"
RDEPEND+=" selinux? ( sec-policy/selinux-tpm2 )"
BDEPEND="virtual/pkgconfig
	dev-util/gdbus-codegen"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	# tests fail with LTO enabbled. See bug 865275
	filter-lto
	econf \
		$(use_enable static-libs static) \
		$(use_enable test unit) \
		$(use_enable test integration) \
		--disable-defaultflags \
		--with-dbuspolicydir="${EPREFIX}/usr/share/dbus-1/system.d" \
		--with-systemdpresetdir="$(systemd_get_systemunitdir)/../system-preset" \
		--with-systemdpresetdisable \
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
}

src_install() {
	default

	find "${D}" -name '*.la' -delete || die

	newinitd "${FILESDIR}"/${PN}.initd ${PN}
	newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

pkg_postinst() {
	einfo "As of tpm2-abrmd 3.0.0, users must be in the tss group"
	einfo "to access the TPM"
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/tpm2-abrmd | euse -E <flag> -p app-crypt/tpm2-abrmd | euse -D <flag> -p app-crypt/tpm2-abrmd

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

acct-group/tss
	acct-user/tss
	sys-apps/dbus
	dev-libs/glib:=
	app-crypt/tpm2-tss:=
	test? (
		app-crypt/swtpm
		>=app-crypt/tpm2-tss-3.0.0:=
		dev-util/cmocka
		sys-apps/iproute2[-minimal]
	)

RDEPEND

acct-group/tss
	acct-user/tss
	sys-apps/dbus
	dev-libs/glib:=
	app-crypt/tpm2-tss:=  selinux? ( sec-policy/selinux-tpm2 )

BDEPEND

virtual/pkgconfig
	dev-util/gdbus-codegen

Manifest for 3.0.0

Type File Size Source URLs
DIST tpm2-abrmd-3.0.0.tar.gz 576822 bytes https://github.com/tpm2-software/tpm2-abrmd/releases/download/3.0.0/tpm2-abrmd-3.0.0.tar.gz