1 |
commit: 6cca0ba8cfaf4830b9af4e1216910d40192b6206 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 10 23:59:30 2018 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 10 23:59:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cca0ba8 |
7 |
|
8 |
net-analyzer/testssl: version bump 2.9.5_p5 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/651242 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
net-analyzer/testssl/Manifest | 1 + |
14 |
net-analyzer/testssl/testssl-2.9.5_p5.ebuild | 65 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/testssl/Manifest b/net-analyzer/testssl/Manifest |
18 |
index 38698e20a44..ab5779b5664 100644 |
19 |
--- a/net-analyzer/testssl/Manifest |
20 |
+++ b/net-analyzer/testssl/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST testssl-2.9.5.tar.gz 8955393 BLAKE2B 32518ace02f410ca7b407b51dcdab8a53218e572bec5d9a3ba380152546aaf63d8068f60d6468fbcba84e948e15c5c5769ef1da8ce53aae32978373de098d4e6 SHA512 9b9cc9f4e5d85cb2bd3767f10d0342b65cd9662df2df4d21b838c8f6a904e8e91f0242e7be1a9e0d9532d13d210beacd1b9f189ba6f955f9c4d3a6bde675677c |
23 |
+DIST testssl-2.9.5_p5.tar.gz 8955523 BLAKE2B dcafb0931ddfb9d653acf79f72d2e30b2acc4a80246ecb3f26eaa35d4a69d5af65123005de34d09c563978593450895bf451b866182fd3ea38bdb121fb8e9385 SHA512 8a26989e1b8f45a2ac25efab500c89eeec2dbdbb9c0af715a61433ce0737ed69221df09a9554b6ae4415081a66ef4f6afd44c92405afefe4a810cb4375988700 |
24 |
|
25 |
diff --git a/net-analyzer/testssl/testssl-2.9.5_p5.ebuild b/net-analyzer/testssl/testssl-2.9.5_p5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..cdd8f511f51 |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/testssl/testssl-2.9.5_p5.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+MY_PN="${PN}.sh" |
37 |
+MY_PV="${PV/_p/-}" |
38 |
+ |
39 |
+DESCRIPTION="Tool to check TLS/SSL cipher support" |
40 |
+HOMEPAGE="https://testssl.sh/" |
41 |
+SRC_URI="https://github.com/drwetter/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2 bundled-openssl? ( openssl )" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+IUSE="bundled-openssl" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ app-shells/bash[net] |
50 |
+ dev-libs/openssl:0 |
51 |
+ net-dns/bind-tools |
52 |
+ sys-apps/util-linux |
53 |
+ sys-libs/ncurses:0 |
54 |
+ sys-process/procps |
55 |
+" |
56 |
+ |
57 |
+S=${WORKDIR}/${MY_PN}-${MY_PV} |
58 |
+ |
59 |
+QA_PREBUILT="opt/${PN}/*" |
60 |
+ |
61 |
+pkg_setup() { |
62 |
+ use amd64 && BUNDLED_OPENSSL="openssl.Linux.x86_64" |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ sed -i ${PN}.sh \ |
68 |
+ -e 's|TESTSSL_INSTALL_DIR="${TESTSSL_INSTALL_DIR:-""}"|TESTSSL_INSTALL_DIR="/"|' \ |
69 |
+ -e 's|$TESTSSL_INSTALL_DIR/etc/|&testssl/|g' || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ dodoc CHANGELOG.stable-releases.txt CREDITS.md Readme.md |
74 |
+ dodoc openssl-rfc.mappping.html |
75 |
+ |
76 |
+ dobin ${PN}.sh |
77 |
+ |
78 |
+ insinto /etc/${PN} |
79 |
+ doins etc/* |
80 |
+ |
81 |
+ if use bundled-openssl; then |
82 |
+ exeinto /opt/${PN} |
83 |
+ use amd64 && doexe bin/${BUNDLED_OPENSSL} |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ if use bundled-openssl; then |
89 |
+ einfo "A precompiled version of OpenSSL has been installed into /opt/${PN}," |
90 |
+ einfo "configured to enable a wider range of features to allow better testing." |
91 |
+ einfo "" |
92 |
+ einfo "To use it, call ${PN} appropriately:" |
93 |
+ einfo "${MY_PN} --openssl /opt/${PN}/${BUNDLED_OPENSSL} example.com" |
94 |
+ fi |
95 |
+} |