diff options
author | Michael Palimaka <kensington@gentoo.org> | 2018-06-11 09:59:30 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2018-06-11 09:59:49 +1000 |
commit | 6cca0ba8cfaf4830b9af4e1216910d40192b6206 (patch) | |
tree | 4440c4f22089a9b7a02d396d42a0e54975520a56 /net-analyzer/testssl | |
parent | x11-misc/albert: version bump 0.14.21 (diff) | |
download | gentoo-6cca0ba8cfaf4830b9af4e1216910d40192b6206.tar.gz gentoo-6cca0ba8cfaf4830b9af4e1216910d40192b6206.tar.bz2 gentoo-6cca0ba8cfaf4830b9af4e1216910d40192b6206.zip |
net-analyzer/testssl: version bump 2.9.5_p5
Closes: https://bugs.gentoo.org/651242
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-analyzer/testssl')
-rw-r--r-- | net-analyzer/testssl/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/testssl/testssl-2.9.5_p5.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/net-analyzer/testssl/Manifest b/net-analyzer/testssl/Manifest index 38698e20a44b..ab5779b5664b 100644 --- a/net-analyzer/testssl/Manifest +++ b/net-analyzer/testssl/Manifest @@ -1 +1,2 @@ DIST testssl-2.9.5.tar.gz 8955393 BLAKE2B 32518ace02f410ca7b407b51dcdab8a53218e572bec5d9a3ba380152546aaf63d8068f60d6468fbcba84e948e15c5c5769ef1da8ce53aae32978373de098d4e6 SHA512 9b9cc9f4e5d85cb2bd3767f10d0342b65cd9662df2df4d21b838c8f6a904e8e91f0242e7be1a9e0d9532d13d210beacd1b9f189ba6f955f9c4d3a6bde675677c +DIST testssl-2.9.5_p5.tar.gz 8955523 BLAKE2B dcafb0931ddfb9d653acf79f72d2e30b2acc4a80246ecb3f26eaa35d4a69d5af65123005de34d09c563978593450895bf451b866182fd3ea38bdb121fb8e9385 SHA512 8a26989e1b8f45a2ac25efab500c89eeec2dbdbb9c0af715a61433ce0737ed69221df09a9554b6ae4415081a66ef4f6afd44c92405afefe4a810cb4375988700 diff --git a/net-analyzer/testssl/testssl-2.9.5_p5.ebuild b/net-analyzer/testssl/testssl-2.9.5_p5.ebuild new file mode 100644 index 000000000000..cdd8f511f518 --- /dev/null +++ b/net-analyzer/testssl/testssl-2.9.5_p5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN}.sh" +MY_PV="${PV/_p/-}" + +DESCRIPTION="Tool to check TLS/SSL cipher support" +HOMEPAGE="https://testssl.sh/" +SRC_URI="https://github.com/drwetter/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 bundled-openssl? ( openssl )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bundled-openssl" + +RDEPEND=" + app-shells/bash[net] + dev-libs/openssl:0 + net-dns/bind-tools + sys-apps/util-linux + sys-libs/ncurses:0 + sys-process/procps +" + +S=${WORKDIR}/${MY_PN}-${MY_PV} + +QA_PREBUILT="opt/${PN}/*" + +pkg_setup() { + use amd64 && BUNDLED_OPENSSL="openssl.Linux.x86_64" +} + +src_prepare() { + default + sed -i ${PN}.sh \ + -e 's|TESTSSL_INSTALL_DIR="${TESTSSL_INSTALL_DIR:-""}"|TESTSSL_INSTALL_DIR="/"|' \ + -e 's|$TESTSSL_INSTALL_DIR/etc/|&testssl/|g' || die +} + +src_install() { + dodoc CHANGELOG.stable-releases.txt CREDITS.md Readme.md + dodoc openssl-rfc.mappping.html + + dobin ${PN}.sh + + insinto /etc/${PN} + doins etc/* + + if use bundled-openssl; then + exeinto /opt/${PN} + use amd64 && doexe bin/${BUNDLED_OPENSSL} + fi +} + +pkg_postinst() { + if use bundled-openssl; then + einfo "A precompiled version of OpenSSL has been installed into /opt/${PN}," + einfo "configured to enable a wider range of features to allow better testing." + einfo "" + einfo "To use it, call ${PN} appropriately:" + einfo "${MY_PN} --openssl /opt/${PN}/${BUNDLED_OPENSSL} example.com" + fi +} |