From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4176C158020 for ; Wed, 21 Dec 2022 23:37:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3808CE086C; Wed, 21 Dec 2022 23:37:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22028E086C for ; Wed, 21 Dec 2022 23:37:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 230AA3412D1 for ; Wed, 21 Dec 2022 23:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A2BA7DE for ; Wed, 21 Dec 2022 23:37:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671665734.7a09f02ad246b55f6058494f99967381ea0e6397.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-abrmd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/tpm2-abrmd/Manifest app-crypt/tpm2-abrmd/tpm2-abrmd-3.0.0.ebuild X-VCS-Directories: app-crypt/tpm2-abrmd/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7a09f02ad246b55f6058494f99967381ea0e6397 X-VCS-Branch: master Date: Wed, 21 Dec 2022 23:37:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2695bab3-94d3-4a0e-980e-238734cd6b0a X-Archives-Hash: e5c03e56f1d0ebb704a07741883f9e3a commit: 7a09f02ad246b55f6058494f99967381ea0e6397 Author: Christopher Byrne gmail com> AuthorDate: Fri Dec 9 16:02:47 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 21 23:35:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a09f02a app-crypt/tpm2-abrmd: add 3.0.0 Signed-off-by: Christopher Byrne gmail.com> Closes: https://github.com/gentoo/gentoo/pull/28615 Signed-off-by: Sam James gentoo.org> app-crypt/tpm2-abrmd/Manifest | 1 + app-crypt/tpm2-abrmd/tpm2-abrmd-3.0.0.ebuild | 60 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/app-crypt/tpm2-abrmd/Manifest b/app-crypt/tpm2-abrmd/Manifest index ab9d8884a85b..6d4d9df9473c 100644 --- a/app-crypt/tpm2-abrmd/Manifest +++ b/app-crypt/tpm2-abrmd/Manifest @@ -1 +1,2 @@ DIST tpm2-abrmd-2.4.1.tar.gz 577259 BLAKE2B 7d97e1069a171f3693fb11b8e2ce0243993f4352aae9fd691bfbf1b8fcef8615b79957f8f662ac00fe59bf7e3830d8abb79c67790f7be1cd3140fd1c7b1ed560 SHA512 0335285678cfceca4f185981ded90d213ff796cadddc9b5d6dbf2db533f81023a0f1089bbd8a8017bccb95190889be23b24d38a176d3368d221479aff4ff7d6c +DIST tpm2-abrmd-3.0.0.tar.gz 576822 BLAKE2B cdcb677a2dec59cdc454b98793bb0784ba3403c276b618cd37c5748ab1d883ee8f3f69c0ae95c7bf262e2e993dcc0b12ae39010de12c6c211fe3de8c21515160 SHA512 65a39cd0518dfbcbd5835ac6c6628444d412e36471702f2cd1f1077d788330a477778e6403899ea2fa0497b643e5db9ca3e746845492eff78c4c78d8dd8f9e7d diff --git a/app-crypt/tpm2-abrmd/tpm2-abrmd-3.0.0.ebuild b/app-crypt/tpm2-abrmd/tpm2-abrmd-3.0.0.ebuild new file mode 100644 index 000000000000..05a6ccde2828 --- /dev/null +++ b/app-crypt/tpm2-abrmd/tpm2-abrmd-3.0.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 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="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 + )" +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}/etc/dbus-1/system.d" \ + --with-systemdpresetdir="$(systemd_get_systemunitdir)/../system-preset" \ + --with-systemdpresetdisable \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + 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" +}