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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 45B69139335 for ; Tue, 29 Jun 2021 04:40:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62C01E087C; Tue, 29 Jun 2021 04:40:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47DD6E087C for ; Tue, 29 Jun 2021 04:40:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 875D0335D99 for ; Tue, 29 Jun 2021 04:40:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F32C37BE for ; Tue, 29 Jun 2021 04:40:04 +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: <1624939923.5a5b95ee155f9244cbfd0c5916becbe17e52c620.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/swtpm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/swtpm/swtpm-0.6.0-r1.ebuild X-VCS-Directories: app-crypt/swtpm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5a5b95ee155f9244cbfd0c5916becbe17e52c620 X-VCS-Branch: master Date: Tue, 29 Jun 2021 04:40:04 +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: 7da9c847-fbf1-4b1e-b514-1489b7f71680 X-Archives-Hash: cf3522c5d594866e4cc171ab7c5531c4 commit: 5a5b95ee155f9244cbfd0c5916becbe17e52c620 Author: Christopher Byrne gmail com> AuthorDate: Sun Jun 27 18:22:36 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 29 04:12:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a5b95ee app-crypt/swtpm: Require pkcs11 support from gnutls/certtool Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Christopher Byrne gmail.com> Closes: https://bugs.gentoo.org/798759 Signed-off-by: Sam James gentoo.org> app-crypt/swtpm/swtpm-0.6.0-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild b/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild new file mode 100644 index 00000000000..33fa7b5bc31 --- /dev/null +++ b/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit autotools python-single-r1 + +DESCRIPTION="Libtpms-based TPM emulator" +HOMEPAGE="https://github.com/stefanberger/swtpm" +SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="fuse +gnutls seccomp test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="fuse? ( + dev-libs/glib:2 + sys-fs/fuse:0 + ) + gnutls? ( + dev-libs/libtasn1:= + >=net-libs/gnutls-3.1.0[tools,pkcs11] + ) + seccomp? ( sys-libs/libseccomp ) + test? ( + net-misc/socat + dev-tcltk/expect + ) + acct-group/tss + acct-user/tss + dev-libs/openssl:0= + dev-libs/json-glib + dev-libs/libtpms + ${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}/${PN}-0.6.0-fix-localca-path.patch" + "${FILESDIR}/${PN}-0.5.0-build-sys-Remove-WError.patch" +) + +src_prepare() { + use test || eapply "${FILESDIR}/${PN}-0.5.0-disable-test-dependencies.patch" + default + eautoreconf +} + +src_configure() { + econf \ + --disable-static \ + --with-openssl \ + --without-selinux \ + $(use_with fuse cuse) \ + $(use_with gnutls) \ + $(use_with seccomp) +} + +src_install() { + default + fowners -R tss:root /var/lib/swtpm-localca + fperms 750 /var/lib/swtpm-localca + keepdir /var/lib/swtpm-localca + find "${D}" -name '*.la' -delete || die +}