1 |
commit: df8cca9852393b4c37c498adf684735564a4e538 |
2 |
Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jan 13 05:59:09 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 19 13:32:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df8cca98 |
7 |
|
8 |
app-crypt/swtpm: Add libressl support |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
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/swtpm-0.2.0-r1.ebuild | 72 +++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/swtpm/swtpm-0.2.0-r1.ebuild b/app-crypt/swtpm/swtpm-0.2.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..eeb7c5075a9 |
20 |
--- /dev/null |
21 |
+++ b/app-crypt/swtpm/swtpm-0.2.0-r1.ebuild |
22 |
@@ -0,0 +1,72 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7} ) |
29 |
+ |
30 |
+inherit autotools python-any-r1 |
31 |
+ |
32 |
+DESCRIPTION="Libtpms-based TPM emulator" |
33 |
+HOMEPAGE="https://github.com/stefanberger/swtpm" |
34 |
+SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+LICENSE="BSD" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="fuse gnutls libressl seccomp test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+ |
41 |
+COMMON_DEPEND=" |
42 |
+ fuse? ( |
43 |
+ dev-libs/glib:2 |
44 |
+ sys-fs/fuse:0 |
45 |
+ ) |
46 |
+ gnutls? ( |
47 |
+ dev-libs/libtasn1:= |
48 |
+ >=net-libs/gnutls-3.1.0[tools] |
49 |
+ ) |
50 |
+ !libressl? ( |
51 |
+ dev-libs/openssl:0= |
52 |
+ dev-libs/libtpms[-libressl] |
53 |
+ ) |
54 |
+ libressl? ( |
55 |
+ dev-libs/libressl:0= |
56 |
+ dev-libs/libtpms[libressl] |
57 |
+ ) |
58 |
+ seccomp? ( sys-libs/libseccomp ) |
59 |
+" |
60 |
+ |
61 |
+DEPEND="${COMMON_DEPEND} |
62 |
+ test? ( |
63 |
+ net-misc/socat |
64 |
+ ${PYTHON_DEPS} |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+RDEPEND="${COMMON_DEPEND} |
69 |
+ app-crypt/tpm-tools |
70 |
+ app-crypt/trousers |
71 |
+ dev-tcltk/expect" |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch" |
75 |
+ eapply "${FILESDIR}/${PN}-fix-localca-path.patch" |
76 |
+ default |
77 |
+ eautoreconf |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ econf \ |
82 |
+ --with-openssl \ |
83 |
+ --without-selinux \ |
84 |
+ $(use_with fuse cuse) \ |
85 |
+ $(use_with gnutls) \ |
86 |
+ $(use_with seccomp) |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ default |
91 |
+ fowners tss:tss /var/lib/swtpm-localca |
92 |
+ keepdir /var/lib/swtpm-localca |
93 |
+ find "${D}" -name '*.la' -delete || die |
94 |
+} |