1 |
commit: 4976a5b493b6feb24f2779d47e91c35c7a69ac34 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Apr 29 16:31:48 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 21:31:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4976a5b4 |
7 |
|
8 |
app-crypt/swtpm: add 0.7.3 |
9 |
|
10 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
app-crypt/swtpm/Manifest | 1 + |
14 |
app-crypt/swtpm/swtpm-0.7.3.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest |
18 |
index f524ff510e56..61a540486411 100644 |
19 |
--- a/app-crypt/swtpm/Manifest |
20 |
+++ b/app-crypt/swtpm/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST swtpm-0.7.2.tar.gz 353941 BLAKE2B e4d69919b5d255cff5eb9cda4c98e84e9fd53290360312742f95d63444ad5279fc7808e7f2e040cc2c87475c409b3c0f22e54ca301e8cb18bee71290f661ecc8 SHA512 91a8f9371a13f5f6bb329ef4bd7638fb9abe5ec84631b1d22e7eb9abcb91b7f3cccfdf147f65d54c03bf4d8a141b6b5fb6385d90f78d35096bd3b8ce140d39cb |
23 |
+DIST swtpm-0.7.3.tar.gz 354088 BLAKE2B 687e3161cbc08be68427648187ba2fb05749bcaaf9929b951eea4884bd4210c6105a2494f5e7d51915e5be1b700b13889cd83c96d22e00d621ea9336221ee67b SHA512 7f4cdf7ca2539f28e3a78e2a081b24983f3305905c7cafcac0957b14f5c06c8ee9485a0adaf3710561091f9ee85e00822fe1ff874389808218c1e17f938c45d9 |
24 |
|
25 |
diff --git a/app-crypt/swtpm/swtpm-0.7.3.ebuild b/app-crypt/swtpm/swtpm-0.7.3.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..d0ec3be7f7be |
28 |
--- /dev/null |
29 |
+++ b/app-crypt/swtpm/swtpm-0.7.3.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8,9,10} ) |
37 |
+ |
38 |
+inherit autotools python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="Libtpms-based TPM emulator" |
41 |
+HOMEPAGE="https://github.com/stefanberger/swtpm" |
42 |
+SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
47 |
+IUSE="fuse +gnutls seccomp test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND="fuse? ( |
51 |
+ dev-libs/glib:2 |
52 |
+ sys-fs/fuse:0 |
53 |
+ ) |
54 |
+ gnutls? ( |
55 |
+ dev-libs/libtasn1:= |
56 |
+ >=net-libs/gnutls-3.1.0:=[tools,pkcs11] |
57 |
+ ) |
58 |
+ seccomp? ( sys-libs/libseccomp ) |
59 |
+ acct-group/tss |
60 |
+ acct-user/tss |
61 |
+ dev-libs/openssl:0= |
62 |
+ dev-libs/json-glib |
63 |
+ dev-libs/libtpms" |
64 |
+ |
65 |
+DEPEND="${RDEPEND} |
66 |
+ test? ( |
67 |
+ net-misc/socat |
68 |
+ dev-tcltk/expect |
69 |
+ )" |
70 |
+ |
71 |
+BDEPEND="${PYTHON_DEPS}" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-0.6.0-fix-localca-path.patch" |
75 |
+ "${FILESDIR}/${PN}-0.5.0-build-sys-Remove-WError.patch" |
76 |
+ "${FILESDIR}/${PN}-0.7.2-Conditionalize-test-dependencies.patch" |
77 |
+) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ eautoreconf |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ econf \ |
86 |
+ --with-openssl \ |
87 |
+ --without-selinux \ |
88 |
+ $(use_with fuse cuse) \ |
89 |
+ $(use_with gnutls) \ |
90 |
+ $(use_with seccomp) \ |
91 |
+ $(use_enable test) |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ default |
96 |
+ fowners -R tss:root /var/lib/swtpm-localca |
97 |
+ fperms 750 /var/lib/swtpm-localca |
98 |
+ keepdir /var/lib/swtpm-localca |
99 |
+ find "${D}" -name '*.la' -delete || die |
100 |
+} |