diff options
author | Michael Palimaka <kensington@gentoo.org> | 2017-09-24 15:39:15 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2017-09-24 15:40:07 +1000 |
commit | 2bfe6290fba994fb6af62583a17a9d57ed52c05c (patch) | |
tree | 899693730aa9704796e429cb415d13288a8de2ed /net-analyzer/testssl | |
parent | media-libs/fontconfig: Removed old. (diff) | |
download | gentoo-2bfe6290fba994fb6af62583a17a9d57ed52c05c.tar.gz gentoo-2bfe6290fba994fb6af62583a17a9d57ed52c05c.tar.bz2 gentoo-2bfe6290fba994fb6af62583a17a9d57ed52c05c.zip |
net-analyzer/testssl: version bump 2.9.5
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/testssl')
-rw-r--r-- | net-analyzer/testssl/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/testssl/testssl-2.9.5.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/net-analyzer/testssl/Manifest b/net-analyzer/testssl/Manifest index f5525c87c34d..bc178fabba72 100644 --- a/net-analyzer/testssl/Manifest +++ b/net-analyzer/testssl/Manifest @@ -1 +1,2 @@ DIST testssl-2.8.tar.gz 8529038 SHA256 2e4588bfcd5f4e6b30b2e250d51b39e4209131a5366f1e75354aaa4a5ee6a22d SHA512 9c30a0640c4c516bb6fd776d6d7d76af4f86be51ec2c282fad01b8ac14161d29732caf08ed64a0a93ad53c3afabe6641f423bc73f0323bd9526a4283fccad584 WHIRLPOOL 04564912e3e0ed3afac283da994edc032bc3b23c2c003ea02f531da25555dbb758f76e8ab04be38c6af8df340f7400545072f33dbb074586144bc2258d0de5e0 +DIST testssl-2.9.5.tar.gz 8955393 SHA256 3cd2d14b9b324545ff91d63e4261113f6ff0c6e32232cf49438b9fd2f3c8de3e SHA512 9b9cc9f4e5d85cb2bd3767f10d0342b65cd9662df2df4d21b838c8f6a904e8e91f0242e7be1a9e0d9532d13d210beacd1b9f189ba6f955f9c4d3a6bde675677c WHIRLPOOL faa158a05c8523df1e4142bf1838f4049d7ed9c9a2afbe2a97e190f19c5ab2efce878fb92e50665657e8cbf6a1abdfb2958b0ad142e2bc86e30a8bb672146968 diff --git a/net-analyzer/testssl/testssl-2.9.5.ebuild b/net-analyzer/testssl/testssl-2.9.5.ebuild new file mode 100644 index 000000000000..c6ac1f8ddd28 --- /dev/null +++ b/net-analyzer/testssl/testssl-2.9.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="${PN}.sh" + +DESCRIPTION="Tool to check TLS/SSL cipher support" +HOMEPAGE="https://testssl.sh/" +SRC_URI="https://github.com/drwetter/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 bundled-openssl? ( openssl )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bundled-openssl" + +RDEPEND=" + dev-libs/openssl:0 + net-dns/bind-tools + sys-apps/util-linux + sys-libs/ncurses:0 + sys-process/procps +" + +S=${WORKDIR}/${MY_PN}-${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 +} |