1 |
commit: b9e4b6ccb7e424d708f67be1512cdb3df88ebccf |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 6 10:52:53 2018 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 6 10:54:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9e4b6cc |
7 |
|
8 |
net-analyzer/testssl: use bundled openssl by default when enabled |
9 |
|
10 |
Closes: https://bugs.gentoo.org/664084 |
11 |
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
13 |
|
14 |
net-analyzer/testssl/testssl-2.9.5_p5-r1.ebuild | 60 +++++++++++++++++++++++++ |
15 |
1 file changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/testssl/testssl-2.9.5_p5-r1.ebuild b/net-analyzer/testssl/testssl-2.9.5_p5-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..41bdd598f1b |
20 |
--- /dev/null |
21 |
+++ b/net-analyzer/testssl/testssl-2.9.5_p5-r1.ebuild |
22 |
@@ -0,0 +1,60 @@ |
23 |
+# Copyright 1999-2018 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+MY_PN="${PN}.sh" |
29 |
+MY_PV="${PV/_p/-}" |
30 |
+ |
31 |
+DESCRIPTION="Tool to check TLS/SSL cipher support" |
32 |
+HOMEPAGE="https://testssl.sh/" |
33 |
+SRC_URI="https://github.com/drwetter/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-2 bundled-openssl? ( openssl )" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="bundled-openssl" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ app-shells/bash[net] |
42 |
+ net-dns/bind-tools |
43 |
+ sys-apps/util-linux |
44 |
+ sys-libs/ncurses:0 |
45 |
+ sys-process/procps |
46 |
+ !bundled-openssl? ( dev-libs/openssl:0 ) |
47 |
+" |
48 |
+ |
49 |
+S=${WORKDIR}/${MY_PN}-${MY_PV} |
50 |
+ |
51 |
+QA_PREBUILT="opt/${PN}/*" |
52 |
+ |
53 |
+pkg_setup() { |
54 |
+ use amd64 && BUNDLED_OPENSSL="openssl.Linux.x86_64" |
55 |
+} |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ sed -i ${PN}.sh \ |
60 |
+ -e 's|TESTSSL_INSTALL_DIR="${TESTSSL_INSTALL_DIR:-""}"|TESTSSL_INSTALL_DIR="/"|' \ |
61 |
+ -e 's|$TESTSSL_INSTALL_DIR/etc/|&testssl/|g' || die |
62 |
+ |
63 |
+ if use bundled-openssl; then |
64 |
+ sed -i ${PN}.sh \ |
65 |
+ -e "/find_openssl_binary()/a OPENSSL=\"/opt/${PN}/${BUNDLED_OPENSSL}\"" || die |
66 |
+ fi |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ dodoc CHANGELOG.stable-releases.txt CREDITS.md Readme.md |
71 |
+ dodoc openssl-rfc.mappping.html |
72 |
+ |
73 |
+ dobin ${PN}.sh |
74 |
+ |
75 |
+ insinto /etc/${PN} |
76 |
+ doins etc/* |
77 |
+ |
78 |
+ if use bundled-openssl; then |
79 |
+ exeinto /opt/${PN} |
80 |
+ use amd64 && doexe bin/${BUNDLED_OPENSSL} |
81 |
+ fi |
82 |
+} |