You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit autotools 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"
|
||
|
IUSE="static-libs test"
|
||
|
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
RDEPEND="acct-group/tss
|
||
4 years ago
|
acct-user/tss
|
||
|
sys-apps/dbus
|
||
|
dev-libs/glib:=
|
||
|
app-crypt/tpm2-tss"
|
||
5 years ago
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
test? (
|
||
|
app-crypt/swtpm
|
||
|
>=app-crypt/tpm2-tss-3.0.0
|
||
|
dev-util/cmocka
|
||
|
)"
|
||
5 years ago
|
BDEPEND="virtual/pkgconfig
|
||
|
dev-util/gdbus-codegen"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable static-libs static) \
|
||
|
$(use_enable test unit) \
|
||
4 years ago
|
$(use_enable test integration) \
|
||
5 years ago
|
--disable-defaultflags \
|
||
|
--with-dbuspolicydir="${EPREFIX}/etc/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}
|
||
|
}
|