1 |
commit: 511ae892e46b82189e199a76f0f505ffd6e9f73d |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 3 14:51:03 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 3 14:51:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=511ae892 |
7 |
|
8 |
app-crypt/tpm-tools: add libressl support |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-crypt/tpm-tools/tpm-tools-1.3.8-r1.ebuild | 53 +++++++++++++++++++++++++++ |
13 |
1 file changed, 53 insertions(+) |
14 |
|
15 |
diff --git a/app-crypt/tpm-tools/tpm-tools-1.3.8-r1.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..96502e1 |
18 |
--- /dev/null |
19 |
+++ b/app-crypt/tpm-tools/tpm-tools-1.3.8-r1.ebuild |
20 |
@@ -0,0 +1,53 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit autotools eutils flag-o-matic |
27 |
+ |
28 |
+DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules" |
29 |
+HOMEPAGE="http://trousers.sourceforge.net" |
30 |
+SRC_URI="mirror://sourceforge/trousers/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="CPL-1.0" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~s390 ~sh ~x86" |
35 |
+IUSE="libressl nls pkcs11 debug" |
36 |
+ |
37 |
+COMMON_DEPEND=" |
38 |
+ >=app-crypt/trousers-0.3.0 |
39 |
+ !libressl? ( dev-libs/openssl:0= ) |
40 |
+ libressl? ( dev-libs/libressl:0= ) |
41 |
+ pkcs11? ( dev-libs/opencryptoki ) |
42 |
+ " |
43 |
+RDEPEND="${COMMON_DEPEND} |
44 |
+ nls? ( virtual/libintl )" |
45 |
+DEPEND="${COMMON_DEPEND} |
46 |
+ nls? ( sys-devel/gettext )" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ sed -i -r \ |
50 |
+ -e '/CFLAGS/s/ -(Werror|m64)//' \ |
51 |
+ configure.in || die |
52 |
+ epatch "${FILESDIR}/${P}-gold.patch" |
53 |
+ epatch "${FILESDIR}/${P}-build.patch" |
54 |
+ |
55 |
+ eautoreconf |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local myconf |
60 |
+ # don't use --enable-pkcs11-support, configure is a mess. |
61 |
+ use pkcs11 || myconf+=" --disable-pkcs11-support" |
62 |
+ |
63 |
+ append-cppflags $(usex debug -DDEBUG -DNDEBUG) |
64 |
+ |
65 |
+ econf \ |
66 |
+ $(use_enable nls) \ |
67 |
+ ${myconf} |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ default |
72 |
+ rm -f "${ED}"/usr/lib*/libtpm_unseal.la |
73 |
+} |