1 |
commit: 48854e4ef518a52cca869d5be0e9801f61483ca6 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 17 03:06:02 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 17 03:06:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48854e4e |
7 |
|
8 |
net-analyzer/testssl: version bump 2.8 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
net-analyzer/testssl/Manifest | 1 + |
13 |
net-analyzer/testssl/testssl-2.8.ebuild | 61 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/testssl/Manifest b/net-analyzer/testssl/Manifest |
17 |
index 23bcd107281..2b6e2367a6f 100644 |
18 |
--- a/net-analyzer/testssl/Manifest |
19 |
+++ b/net-analyzer/testssl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST testssl-2.6.tar.gz 12296414 SHA256 286b3285f096a5d249de1507eee88b14848514696bc5bbc4faceffa46b563ebd SHA512 c09ef82a8062cac484df956ea68d459dcedaa9e96301f5d5108323eb482dd4ef226e6a41446eb230cdb459404357e3fb3ec02a386697e335a58a2b14db327780 WHIRLPOOL 290c4202358ac647ca7ed2ce0d17cf5ace6c533f7c79cee066d599193f9e77cfdd1e440e7670c5216fec9b1f882986dcf26f5cad638384b8b7a278fbcbe5eace |
22 |
+DIST testssl-2.8.tar.gz 8529038 SHA256 2e4588bfcd5f4e6b30b2e250d51b39e4209131a5366f1e75354aaa4a5ee6a22d SHA512 9c30a0640c4c516bb6fd776d6d7d76af4f86be51ec2c282fad01b8ac14161d29732caf08ed64a0a93ad53c3afabe6641f423bc73f0323bd9526a4283fccad584 WHIRLPOOL 04564912e3e0ed3afac283da994edc032bc3b23c2c003ea02f531da25555dbb758f76e8ab04be38c6af8df340f7400545072f33dbb074586144bc2258d0de5e0 |
23 |
|
24 |
diff --git a/net-analyzer/testssl/testssl-2.8.ebuild b/net-analyzer/testssl/testssl-2.8.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..ebfed00b9c5 |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/testssl/testssl-2.8.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+MY_PN="${PN}.sh" |
36 |
+ |
37 |
+DESCRIPTION="Tool to check TLS/SSL cipher support" |
38 |
+HOMEPAGE="https://testssl.sh/" |
39 |
+SRC_URI="https://github.com/drwetter/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-2 bundled-openssl? ( openssl )" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="bundled-openssl" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ dev-libs/openssl:0 |
48 |
+ net-dns/bind-tools |
49 |
+ sys-apps/util-linux |
50 |
+ sys-libs/ncurses:0 |
51 |
+ sys-process/procps |
52 |
+" |
53 |
+ |
54 |
+S=${WORKDIR}/${MY_PN}-${PV} |
55 |
+ |
56 |
+QA_PREBUILT="opt/${PN}/*" |
57 |
+ |
58 |
+pkg_setup() { |
59 |
+ use amd64 && BUNDLED_OPENSSL="openssl.Linux.x86_64" |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ sed -i -e "s|MAPPING_FILE_RFC=\"\"|MAPPING_FILE_RFC=\"/usr/share/${PN}/mapping-rfc.txt\"|" ${PN}.sh || die |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ dodoc CHANGELOG.stable-releases.txt CREDITS.md Readme.md |
69 |
+ dodoc openssl-rfc.mappping.html |
70 |
+ |
71 |
+ dobin ${PN}.sh |
72 |
+ |
73 |
+ insinto /usr/share/${PN} |
74 |
+ doins etc/mapping-rfc.txt |
75 |
+ |
76 |
+ if use bundled-openssl; then |
77 |
+ exeinto /opt/${PN} |
78 |
+ use amd64 && doexe bin/${BUNDLED_OPENSSL} |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ if use bundled-openssl; then |
84 |
+ einfo "A precompiled version of OpenSSL has been installed into /opt/${PN}," |
85 |
+ einfo "configured to enable a wider range of features to allow better testing." |
86 |
+ einfo "" |
87 |
+ einfo "To use it, call ${PN} appropriately:" |
88 |
+ einfo "${MY_PN} --openssl /opt/${PN}/${BUNDLED_OPENSSL} example.com" |
89 |
+ fi |
90 |
+} |