commit:     57902fa3268b3df24ed58ad3d11446108a2cd9e0
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Thu Jul 31 15:43:01 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 00:24:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57902fa3

net-analyzer/testssl: add 3.2.2

Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/43268
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/testssl/Manifest             |  1 +
 net-analyzer/testssl/testssl-3.2.2.ebuild | 79 +++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/net-analyzer/testssl/Manifest b/net-analyzer/testssl/Manifest
index 5d06dda04a08..b6db18785ef2 100644
--- a/net-analyzer/testssl/Manifest
+++ b/net-analyzer/testssl/Manifest
@@ -1 +1,2 @@
 DIST testssl-3.0.10.tar.gz 9478153 BLAKE2B 
4e026aa25733e8e5a9ba7de7b5c28e8c9916a48582c7ca677b32a00ca21dc3f42825ee20efafd47d52d02dbf006d68c23b8272a4189e36f98e3e5664b07911c0
 SHA512 
900d8fac3b0b4c92e53805e9e137cdc143a5ec335ead38963cbce4aa538123e39ee5fd45d3ca3fc6316011f3c9fa9f39c0ceb2908f3ca0137663c05c4f42d040
+DIST testssl-3.2.2.tar.gz 6985625 BLAKE2B 
00657a696d99be8a9ccea13920b169c906b1df037e910b1e1f0a3079c3993e33bc91c9eea1702bf0afa435cadb918ed848390dca6ece2ffd5695efd85ea251be
 SHA512 
17c25d6af08c10c1c49ff3ae6487a10e9a49273e9e100e7f2da71f369392d9be27cf6f624cd55f85c7dfb95d8900b970e62ebf195b0e8bd3ba2b2aad2e484143

diff --git a/net-analyzer/testssl/testssl-3.2.2.ebuild 
b/net-analyzer/testssl/testssl-3.2.2.ebuild
new file mode 100644
index 000000000000..138b19335120
--- /dev/null
+++ b/net-analyzer/testssl/testssl-3.2.2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/${PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+S=${WORKDIR}/${MY_PN}-${MY_PV}
+
+LICENSE="GPL-2 bundled-openssl? ( openssl )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="bundled-openssl kerberos"
+
+RDEPEND="
+       app-alternatives/awk
+       >=app-shells/bash-3.2[net]
+       sys-apps/coreutils
+       sys-apps/grep
+       sys-apps/util-linux
+       sys-libs/ncurses
+       sys-process/procps
+       || (
+               net-dns/bind
+               net-libs/ldns
+       )
+       bundled-openssl? (
+               kerberos? (
+                       sys-libs/zlib
+                       virtual/krb5
+               )
+       )
+       !bundled-openssl? ( dev-libs/openssl:0 )
+"
+
+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
+
+       if use bundled-openssl; then
+               sed -i ${PN}.sh \
+                       -e "/find_openssl_binary()/a 
OPENSSL=\"/opt/${PN}/${BUNDLED_OPENSSL}\"" || 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
+}

Reply via email to