1 |
commit: 727e2f5a77441c1e2186555e0989bfeec5623360 |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Dec 26 22:36:30 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 13:09:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=727e2f5a |
7 |
|
8 |
app-crypt/swtpm: Bump to 0.5.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-crypt/swtpm/Manifest | 1 + |
15 |
app-crypt/swtpm/swtpm-0.5.2.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 93 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest |
19 |
index f4465c11d3c..d2aba521342 100644 |
20 |
--- a/app-crypt/swtpm/Manifest |
21 |
+++ b/app-crypt/swtpm/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST swtpm-0.5.1.tar.gz 309464 BLAKE2B 630a9add9a17e016f0158666bd3f4eafa773b7a2645820346d5f2847023310f8df4c2491184c5f5d02a83aa2bb53f8c266e5f2a6b07ab92502f08c7f1fa697ea SHA512 8a034b1da916797b9869a4ff478a4c7093b1343ce2556054d2228214520f0e2a63a1d69709bf2cc62fe45710dd9a41c0eee488af9396e8baf8099e697593638c |
24 |
+DIST swtpm-0.5.2.tar.gz 309436 BLAKE2B 0518e59b052c9224d5db1c2720f74ff15717468f73b1665e67c017581dd2b52d7a4cf28f94a932eb6068de3bc50f2e5710b8c447e4a08e6b4a31019db542d910 SHA512 4554f1b7a534829f9fbef4a09e190f1d5e91692d270f4f668bd6ef79799a4186a38db172e37a18be9f203466e2d7c9cdf3a350c0020d25ff6126128085ebe3a3 |
25 |
|
26 |
diff --git a/app-crypt/swtpm/swtpm-0.5.2.ebuild b/app-crypt/swtpm/swtpm-0.5.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7cf67bd70df |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/swtpm/swtpm-0.5.2.ebuild |
31 |
@@ -0,0 +1,92 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
38 |
+ |
39 |
+inherit autotools distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Libtpms-based TPM emulator" |
42 |
+HOMEPAGE="https://github.com/stefanberger/swtpm" |
43 |
+SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="fuse gnutls libressl seccomp test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+COMMON_DEPEND=" |
52 |
+ fuse? ( |
53 |
+ dev-libs/glib:2 |
54 |
+ sys-fs/fuse:0 |
55 |
+ ) |
56 |
+ gnutls? ( |
57 |
+ dev-libs/libtasn1:= |
58 |
+ >=net-libs/gnutls-3.1.0[tools] |
59 |
+ ) |
60 |
+ !libressl? ( |
61 |
+ dev-libs/openssl:0= |
62 |
+ dev-libs/libtpms[-libressl] |
63 |
+ ) |
64 |
+ libressl? ( |
65 |
+ dev-libs/libressl:0= |
66 |
+ dev-libs/libtpms[libressl] |
67 |
+ ) |
68 |
+ seccomp? ( sys-libs/libseccomp ) |
69 |
+" |
70 |
+ |
71 |
+DEPEND="${COMMON_DEPEND} |
72 |
+ test? ( |
73 |
+ net-misc/socat |
74 |
+ dev-tcltk/expect |
75 |
+ ) |
76 |
+" |
77 |
+ |
78 |
+RDEPEND="${COMMON_DEPEND} |
79 |
+ acct-group/tss |
80 |
+ acct-user/tss |
81 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
82 |
+" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}/${PN}-0.5.0-fix-localca-path.patch" |
86 |
+ "${FILESDIR}/${PN}-0.5.0-build-sys-Remove-WError.patch" |
87 |
+) |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ use test || eapply "${FILESDIR}/${PN}-0.5.0-disable-test-dependencies.patch" |
91 |
+ python_setup |
92 |
+ default |
93 |
+ eautoreconf |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ econf \ |
98 |
+ --disable-static \ |
99 |
+ --with-openssl \ |
100 |
+ --without-selinux \ |
101 |
+ $(use_with fuse cuse) \ |
102 |
+ $(use_with gnutls) \ |
103 |
+ $(use_with seccomp) |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ # We want the default src_compile, not the version distutils-r1 exports |
108 |
+ default |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ default |
113 |
+ python_foreach_impl python_optimize |
114 |
+ fowners -R tss:root /var/lib/swtpm-localca |
115 |
+ fperms 750 /var/lib/swtpm-localca |
116 |
+ keepdir /var/lib/swtpm-localca |
117 |
+ find "${D}" -name '*.la' -delete || die |
118 |
+} |
119 |
+ |
120 |
+src_test() { |
121 |
+ # We want the default src_test, not the version distutils-r1 exports |
122 |
+ default |
123 |
+} |