Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/swtpm/
Date: Tue, 29 Jun 2021 04:40:09
Message-Id: 1624939923.5a5b95ee155f9244cbfd0c5916becbe17e52c620.sam@gentoo
1 commit: 5a5b95ee155f9244cbfd0c5916becbe17e52c620
2 Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 27 18:22:36 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 29 04:12:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a5b95ee
7
8 app-crypt/swtpm: Require pkcs11 support from gnutls/certtool
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
12 Closes: https://bugs.gentoo.org/798759
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 app-crypt/swtpm/swtpm-0.6.0-r1.ebuild | 69 +++++++++++++++++++++++++++++++++++
16 1 file changed, 69 insertions(+)
17
18 diff --git a/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild b/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild
19 new file mode 100644
20 index 00000000000..33fa7b5bc31
21 --- /dev/null
22 +++ b/app-crypt/swtpm/swtpm-0.6.0-r1.ebuild
23 @@ -0,0 +1,69 @@
24 +# Copyright 1999-2021 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python3_{7,8,9} )
30 +
31 +inherit autotools python-single-r1
32 +
33 +DESCRIPTION="Libtpms-based TPM emulator"
34 +HOMEPAGE="https://github.com/stefanberger/swtpm"
35 +SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="BSD"
38 +SLOT="0"
39 +KEYWORDS="~amd64"
40 +IUSE="fuse +gnutls seccomp test"
41 +RESTRICT="!test? ( test )"
42 +
43 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
44 +
45 +RDEPEND="fuse? (
46 + dev-libs/glib:2
47 + sys-fs/fuse:0
48 + )
49 + gnutls? (
50 + dev-libs/libtasn1:=
51 + >=net-libs/gnutls-3.1.0[tools,pkcs11]
52 + )
53 + seccomp? ( sys-libs/libseccomp )
54 + test? (
55 + net-misc/socat
56 + dev-tcltk/expect
57 + )
58 + acct-group/tss
59 + acct-user/tss
60 + dev-libs/openssl:0=
61 + dev-libs/json-glib
62 + dev-libs/libtpms
63 + ${PYTHON_DEPS}"
64 +
65 +PATCHES=(
66 + "${FILESDIR}/${PN}-0.6.0-fix-localca-path.patch"
67 + "${FILESDIR}/${PN}-0.5.0-build-sys-Remove-WError.patch"
68 +)
69 +
70 +src_prepare() {
71 + use test || eapply "${FILESDIR}/${PN}-0.5.0-disable-test-dependencies.patch"
72 + default
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + econf \
78 + --disable-static \
79 + --with-openssl \
80 + --without-selinux \
81 + $(use_with fuse cuse) \
82 + $(use_with gnutls) \
83 + $(use_with seccomp)
84 +}
85 +
86 +src_install() {
87 + default
88 + fowners -R tss:root /var/lib/swtpm-localca
89 + fperms 750 /var/lib/swtpm-localca
90 + keepdir /var/lib/swtpm-localca
91 + find "${D}" -name '*.la' -delete || die
92 +}