mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
testssl-3.2.0.ebuild
This commit is contained in:
parent
cdd861ca89
commit
bdc6274361
2 changed files with 78 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
DIST testssl-3.0.8.tar.gz 9372229 BLAKE2B cf463236fb0812c2bc5fd5673d0d2d395fc405697817827ee8c660c96d789601a090b57febd48400e33fd9f28b23d42d432734b176b23a8e8ddf710c9b275485 SHA512 4634bc5dc57ad8910ca097b22d86511a26e855fb4dc7bef9550a795cb1f53a959b8472008756b40a670d7433ad56236b5a36fe0c88c15de99fdf586e9919b080
|
DIST testssl-3.0.8.tar.gz 9372229 BLAKE2B cf463236fb0812c2bc5fd5673d0d2d395fc405697817827ee8c660c96d789601a090b57febd48400e33fd9f28b23d42d432734b176b23a8e8ddf710c9b275485 SHA512 4634bc5dc57ad8910ca097b22d86511a26e855fb4dc7bef9550a795cb1f53a959b8472008756b40a670d7433ad56236b5a36fe0c88c15de99fdf586e9919b080
|
||||||
DIST testssl-3.0.9.tar.gz 9381651 BLAKE2B 424569411022b68f105a20ad5b60db7c8994d1170482612ae7aed741230bd3fca43cd853dfb00660d5ba7cfdc717fa887a2fe9b6c59bbcef881f8f6473ccad3e SHA512 006180d175492f1cba6d056a92a57247725d4b68cddbebeea80a5d339d542f5103ddc8226f3a554775cb83bbef836a5d5bfc1bcf4fba7b18b9541473122ff720
|
DIST testssl-3.0.9.tar.gz 9381651 BLAKE2B 424569411022b68f105a20ad5b60db7c8994d1170482612ae7aed741230bd3fca43cd853dfb00660d5ba7cfdc717fa887a2fe9b6c59bbcef881f8f6473ccad3e SHA512 006180d175492f1cba6d056a92a57247725d4b68cddbebeea80a5d339d542f5103ddc8226f3a554775cb83bbef836a5d5bfc1bcf4fba7b18b9541473122ff720
|
||||||
|
DIST testssl-3.2.0.tar.gz 6976478 BLAKE2B 96723724ba616dbf0e16465379e8c3c2f7ebe68102a8da6c7449c92d12bdb13b38b4cb35b023ce674f35d12eece42790e945b26238362782feab2a0d16736a47 SHA512 e1667e5273f58fac8f3a11a0a866ccc80c84e23d7508bbf9ab55b7a599326a68d385f65032600fcff0951eee4acd71df9813b093d76c1800e220b3bdd34a3ccb
|
||||||
DIST testssl-3.2_rc4.gh.tar.gz 9541270 BLAKE2B 6b20b6ad5f28f7c315c98092b9f6b258478a19f5324a1db344c0dafb20233fefee211604f9d81be3c52e672c4a73e9f6ac8ef3dc09f7e31a9b54e5aabef3afc0 SHA512 079dd361aaa5bf14f2a80d77b3ffb675c27b05a974ae0af2848ee5c49c9b0e31f62cccada540a740e3ae13b6d018636f681c106bc6c53b7ccd2aee3844374ae6
|
DIST testssl-3.2_rc4.gh.tar.gz 9541270 BLAKE2B 6b20b6ad5f28f7c315c98092b9f6b258478a19f5324a1db344c0dafb20233fefee211604f9d81be3c52e672c4a73e9f6ac8ef3dc09f7e31a9b54e5aabef3afc0 SHA512 079dd361aaa5bf14f2a80d77b3ffb675c27b05a974ae0af2848ee5c49c9b0e31f62cccada540a740e3ae13b6d018636f681c106bc6c53b7ccd2aee3844374ae6
|
||||||
|
|
|
||||||
77
net-analyzer/testssl/testssl-3.2.0.ebuild
Normal file
77
net-analyzer/testssl/testssl-3.2.0.ebuild
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Tool to check TLS/SSL cipher support"
|
||||||
|
HOMEPAGE="https://testssl.sh/"
|
||||||
|
SRC_URI="https://github.com/drwetter/testssl.sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/testssl.sh-${PV}"
|
||||||
|
|
||||||
|
LICENSE="GPL-2 bundled-openssl? ( openssl )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~arm64 x86"
|
||||||
|
IUSE="+bundled-openssl kerberos"
|
||||||
|
REQUIRED_USE="bundled-openssl? ( || ( amd64 x86 ) )"
|
||||||
|
|
||||||
|
# openssl-bad provides 197 ciphers
|
||||||
|
# bundled-openssl has 183 ciphers
|
||||||
|
# openssl (gentoo) 80 ciphers only
|
||||||
|
RDEPEND="
|
||||||
|
app-shells/bash[net]
|
||||||
|
net-dns/bind-tools
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-libs/ncurses:0
|
||||||
|
sys-process/procps
|
||||||
|
bundled-openssl? (
|
||||||
|
kerberos? (
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/krb5
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!bundled-openssl? ( dev-libs/openssl-bad )"
|
||||||
|
|
||||||
|
QA_PREBUILT="opt/${PN}/*"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use amd64; then
|
||||||
|
if use kerberos; then
|
||||||
|
BUNDLED_OPENSSL="openssl.Linux.x86_64.krb"
|
||||||
|
else
|
||||||
|
BUNDLED_OPENSSL="openssl.Linux.x86_64"
|
||||||
|
fi
|
||||||
|
elif use x86; then
|
||||||
|
BUNDLED_OPENSSL="openssl.Linux.i686"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
#Gentoo hack find_openssl_binary(), we do it better
|
||||||
|
if use bundled-openssl; then
|
||||||
|
sed -i ${PN}.sh \
|
||||||
|
-e "s|OPENSSL=\"\$1/openssl\"|OPENSSL=\"/opt/${PN}/${BUNDLED_OPENSSL}\"|" || die
|
||||||
|
else
|
||||||
|
sed -i ${PN}.sh \
|
||||||
|
-e 's|OPENSSL="$1/openssl"|OPENSSL="$1/openssl-bad"|' || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodoc CHANGELOG.md CREDITS.md Readme.md
|
||||||
|
dodoc openssl-iana.mapping.html
|
||||||
|
|
||||||
|
dobin ${PN}.sh
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
doins etc/*
|
||||||
|
|
||||||
|
if use bundled-openssl; then
|
||||||
|
exeinto /opt/${PN}
|
||||||
|
use amd64 && doexe bin/${BUNDLED_OPENSSL}
|
||||||
|
fi
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue