1 |
commit: 2203c4b7b7a34401d14edbb79ea75d3acf97c7c0 |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Apr 7 15:13:10 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 07:41:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2203c4b7 |
7 |
|
8 |
app-crypt/swtpm: Bump to 0.3.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, 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.1.ebuild | 76 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 77 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest |
19 |
index 2a0b8aca57b..f874a6630a5 100644 |
20 |
--- a/app-crypt/swtpm/Manifest |
21 |
+++ b/app-crypt/swtpm/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST swtpm-0.3.0.tar.gz 308472 BLAKE2B c6b93303c77cb3de0917b219b7e8e216864a11cd7c584d85409b457bc36db9b0515639ae972f8ef39ba60f52506075a2cc697519bd18da9fdb12031e716c9e6e SHA512 e1e62367966224b3fc6edb80a883c5e3d6a698f437032e0b4b71558ebd7e24e5b92e7d843ee15ca29edd96710bbac51cb435956ac535b10a5f2b2afd65e748a3 |
24 |
+DIST swtpm-0.3.1.tar.gz 308576 BLAKE2B 96c44654b92d453d91594aed6fdd4cb56853973c1215bfb131e750d38a3ed1e64e3283647e54ad9ad84747406f53d7ac4f221fc5b319d7fa80bab758fed04062 SHA512 4b3e58048336ee82a87d17905a7d0dc5fbe13160ebb8f072b91410e782dae7fafc72e572a2f6aa2b1d9f4377074c01afd30505b9e71d92b8d7066365811d3e3f |
25 |
|
26 |
diff --git a/app-crypt/swtpm/swtpm-0.3.1.ebuild b/app-crypt/swtpm/swtpm-0.3.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..20d0ca3946c |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/swtpm/swtpm-0.3.1.ebuild |
31 |
@@ -0,0 +1,76 @@ |
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 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="fuse gnutls libressl seccomp test" |
49 |
+ |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ fuse? ( |
54 |
+ dev-libs/glib:2 |
55 |
+ sys-fs/fuse:0 |
56 |
+ ) |
57 |
+ gnutls? ( |
58 |
+ dev-libs/libtasn1:= |
59 |
+ >=net-libs/gnutls-3.1.0[tools] |
60 |
+ ) |
61 |
+ !libressl? ( |
62 |
+ dev-libs/openssl:0= |
63 |
+ dev-libs/libtpms[-libressl] |
64 |
+ ) |
65 |
+ libressl? ( |
66 |
+ dev-libs/libressl:0= |
67 |
+ dev-libs/libtpms[libressl] |
68 |
+ ) |
69 |
+ seccomp? ( sys-libs/libseccomp ) |
70 |
+" |
71 |
+ |
72 |
+DEPEND="${COMMON_DEPEND} |
73 |
+ test? ( |
74 |
+ net-misc/socat |
75 |
+ ${PYTHON_DEPS} |
76 |
+ ) |
77 |
+" |
78 |
+ |
79 |
+RDEPEND="${COMMON_DEPEND} |
80 |
+ acct-group/tss |
81 |
+ acct-user/tss |
82 |
+ app-crypt/tpm-tools |
83 |
+ app-crypt/trousers |
84 |
+ dev-tcltk/expect" |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch" |
88 |
+ eapply "${FILESDIR}/${PN}-fix-localca-path.patch" |
89 |
+ default |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ econf \ |
95 |
+ --with-openssl \ |
96 |
+ --without-selinux \ |
97 |
+ $(use_with fuse cuse) \ |
98 |
+ $(use_with gnutls) \ |
99 |
+ $(use_with seccomp) |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ default |
104 |
+ fowners tss:tss /var/lib/swtpm-localca |
105 |
+ keepdir /var/lib/swtpm-localca |
106 |
+ find "${D}" -name '*.la' -delete || die |
107 |
+} |