1 |
commit: ee7efab79ed3224001e84e9c591d3a7a389d7d4c |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 28 03:43:35 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 3 14:53:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7efab7 |
7 |
|
8 |
app-crypt/swtpm: bump to 0.3.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
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.3.0.ebuild | 72 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 73 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest |
19 |
index c3415f424e0..596f1e10b4c 100644 |
20 |
--- a/app-crypt/swtpm/Manifest |
21 |
+++ b/app-crypt/swtpm/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST swtpm-0.2.0.tar.gz 297419 BLAKE2B 9045cfd127d2f7e8e2e202818a375b4f6398806a097ed0df73abb76426db3af65a0d27f5e7212ce099d796862d3a9b3d421e987cf159bdce8879fc764eb5e923 SHA512 bda54690c0438138ff7adcc212fb125d2bb62618b10305eeced776e014bb135ea1a1dd1271a99fb2c60bf7e418644ded029c3c09ec2c6c1258e5062122cacf19 |
24 |
+DIST swtpm-0.3.0.tar.gz 308472 BLAKE2B c6b93303c77cb3de0917b219b7e8e216864a11cd7c584d85409b457bc36db9b0515639ae972f8ef39ba60f52506075a2cc697519bd18da9fdb12031e716c9e6e SHA512 e1e62367966224b3fc6edb80a883c5e3d6a698f437032e0b4b71558ebd7e24e5b92e7d843ee15ca29edd96710bbac51cb435956ac535b10a5f2b2afd65e748a3 |
25 |
|
26 |
diff --git a/app-crypt/swtpm/swtpm-0.3.0.ebuild b/app-crypt/swtpm/swtpm-0.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..eeb7c5075a9 |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/swtpm/swtpm-0.3.0.ebuild |
31 |
@@ -0,0 +1,72 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6,7} ) |
38 |
+ |
39 |
+inherit autotools python-any-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 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="fuse gnutls libressl seccomp test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+COMMON_DEPEND=" |
51 |
+ fuse? ( |
52 |
+ dev-libs/glib:2 |
53 |
+ sys-fs/fuse:0 |
54 |
+ ) |
55 |
+ gnutls? ( |
56 |
+ dev-libs/libtasn1:= |
57 |
+ >=net-libs/gnutls-3.1.0[tools] |
58 |
+ ) |
59 |
+ !libressl? ( |
60 |
+ dev-libs/openssl:0= |
61 |
+ dev-libs/libtpms[-libressl] |
62 |
+ ) |
63 |
+ libressl? ( |
64 |
+ dev-libs/libressl:0= |
65 |
+ dev-libs/libtpms[libressl] |
66 |
+ ) |
67 |
+ seccomp? ( sys-libs/libseccomp ) |
68 |
+" |
69 |
+ |
70 |
+DEPEND="${COMMON_DEPEND} |
71 |
+ test? ( |
72 |
+ net-misc/socat |
73 |
+ ${PYTHON_DEPS} |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+RDEPEND="${COMMON_DEPEND} |
78 |
+ app-crypt/tpm-tools |
79 |
+ app-crypt/trousers |
80 |
+ dev-tcltk/expect" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch" |
84 |
+ eapply "${FILESDIR}/${PN}-fix-localca-path.patch" |
85 |
+ default |
86 |
+ eautoreconf |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ econf \ |
91 |
+ --with-openssl \ |
92 |
+ --without-selinux \ |
93 |
+ $(use_with fuse cuse) \ |
94 |
+ $(use_with gnutls) \ |
95 |
+ $(use_with seccomp) |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ fowners tss:tss /var/lib/swtpm-localca |
101 |
+ keepdir /var/lib/swtpm-localca |
102 |
+ find "${D}" -name '*.la' -delete || die |
103 |
+} |