diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-11-16 07:57:40 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-11-16 07:57:40 +0100 |
commit | cc4d36d14e76359fa8f7719c1d3dce87eac861a6 (patch) | |
tree | d58686b335f9d828856c0c1f0b8466b9717c2334 /net-analyzer/sslscan | |
parent | dev-util/jenkins-bin: drop 2.414.2, 2.424 (diff) | |
download | gentoo-cc4d36d14e76359fa8f7719c1d3dce87eac861a6.tar.gz gentoo-cc4d36d14e76359fa8f7719c1d3dce87eac861a6.tar.bz2 gentoo-cc4d36d14e76359fa8f7719c1d3dce87eac861a6.zip |
net-analyzer/sslscan: add 2.1.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'net-analyzer/sslscan')
-rw-r--r-- | net-analyzer/sslscan/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/sslscan/sslscan-2.1.2.ebuild | 82 |
2 files changed, 84 insertions, 0 deletions
diff --git a/net-analyzer/sslscan/Manifest b/net-analyzer/sslscan/Manifest index 90b432a57377..14a1172b14ca 100644 --- a/net-analyzer/sslscan/Manifest +++ b/net-analyzer/sslscan/Manifest @@ -2,7 +2,9 @@ DIST sslscan-2.0.15.tar.gz 111609 BLAKE2B fc24c00ba3b6aab3c5a05e2ce7fc61c31df766 DIST sslscan-2.0.16.tar.gz 113523 BLAKE2B d5157daafa8d3e8863054daae151506cdb83417b7e63ad7a08f1c7204297f173989a6622305c4f9f19027b50d77cd920d11ad88d5b4dd90ea6bcc4216c3f685b SHA512 7fb7233fcb770ec0893d35244173a656d2316655aa85226c99d1fad5387dace77c5d0deb0d0a47a11c27012c9b6ebdfe90fd881b1d05a7d34eaf26ab2fbe7b96 DIST sslscan-2.1.0.tar.gz 113646 BLAKE2B b37fdf7374c7f5742b219e69fd949d79d5f92caf81e887a215b35a0d1f4eddf88c74486c378330846b86a6c27cc29406bc87a1832378d92c1f2dc17c4ab291ee SHA512 9e38855d27384b133f0fe27e2107221f0a1b3b197641f5e88bed7fa12b35ddb6eff68b5f406b02071c6fc0b7ef2a41058b40308b438ad010b448f2e0ca2b282d DIST sslscan-2.1.1.tar.gz 113738 BLAKE2B c31a16e7a174f8c7c476ea525846963cfeff590d92063a7b0c4f2cfd95129517f32d4450e1d839dea648f9f8990fef715692caf331186b0f3cfafe8372927076 SHA512 5178119d67d41cc72afb7d7ae294d7eb8e68b75932038c09bf07936f53807b06bc27b036b105e655be40f025f3afd20c9c4c0d0b2bd28cfa8e6234c5cee53c3d +DIST sslscan-2.1.2.tar.gz 113842 BLAKE2B b4c297b9b8619f559bae28debaeab5fae89ba60823b0bd2d043436e73bbafd3ce688e505678bb4d0182c78caa0f4c086f71e40e900e40d4bea93649f4ab8baca SHA512 2d76c1908b64dc291e8e6688746544386823a2e53d61e13a3ea3109d6ccb4f7dc0199b4c4d8a2ac6d420cf85183d9c9ca42051e351531c54eb138ede01a13277 DIST sslscan-OpenSSL_1_1_1p.tar.gz 10039630 BLAKE2B 52f4750e66fec5b9eda7e0110b2bf6c5ec514444c51b4ab4bdee194e76a3ac97806dbb47b38ad427575c960d2598505e4380cbd2a598c07c306695fb2ae1d8e2 SHA512 5722b2de033301cb283c21b88a113cd8bff08808de31c8e663c9f93466b3ce04e589f6ad20dfbbc5e1d07ed90aa9fe60d1a35882aa31e2215a8cecae0e4bb39f DIST sslscan-OpenSSL_1_1_1t.tar.gz 10061233 BLAKE2B aef89c338644230305bcc75dbc13d6799a04ed8c712b6aed07a782703031e977c3e300924f26e5854d0b89ecf39d2d516a50838167754e8f63322fba51de9478 SHA512 f28a323fd78be0b16ae6db9a8f163e64c74410e12ddd1a9836dfdda34c264112184f4e22583c84b6fa56716e5aaac9cb860cb183bd3d0cb064091eea1e21815e DIST sslscan-openssl-3.0.10.tar.gz 15341392 BLAKE2B 9b804d0b2c26539469abaa840eb9cf95883b742aa3dbe8f5de758ee0d73dec7c511fb8fa9b0bdc43fab14c980a400e3258686439638607916cd24bdf560be403 SHA512 5c20269f9666eae0111252378baf196d74ae14a68b19cac49703d73fa564f7ae7aaf06209f5a3d7dc48c014ddb2e760bdf765141c14adde63edee552a8de015e DIST sslscan-openssl-3.0.11.tar.gz 15347070 BLAKE2B e9b0d6c53b66fc66b1dfe46b042adb9bad770fa60555eea65748ef59bd7231ea8882f16ddff7e5ebdd1c164a83264a5d7da37a4f0207a3bd88045cabcebe0ea8 SHA512 4dd485720a335879bd52d0045edf65fd8397b6f6b6afb3e2c756230937304975b3bd95f67933cadde175cae81d420a692fcf7e96b9f9d2b059ea387a8d9ac305 +DIST sslscan-openssl-3.0.12.tar.gz 15352880 BLAKE2B 55a321609e97636173421e738bfb745b6e9a912744fba6d83bfecba199f8684b5625b8547e29305dacda91735cd329fc4c3f5c1f0f919d362a81995073781796 SHA512 8eb6141c1f3d43aa7dd5a5570c99302910feae0d25ab872c58432e5d11d3e330a069715fd4a0cd03234f3fb3e5e9fba38ef59977f7ecf162a2b048476dbb14c6 diff --git a/net-analyzer/sslscan/sslscan-2.1.2.ebuild b/net-analyzer/sslscan/sslscan-2.1.2.ebuild new file mode 100644 index 000000000000..759812d3a4e2 --- /dev/null +++ b/net-analyzer/sslscan/sslscan-2.1.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +# sslscan builds against a static openssl library to allow weak ciphers +# to be enabled so that they can be tested. +OPENSSL_RELEASE_TAG="openssl-3.0.12" + +DESCRIPTION="Fast SSL configuration scanner" +HOMEPAGE="https://github.com/rbsec/sslscan" +SRC_URI="https://github.com/rbsec/sslscan/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/openssl/openssl/archive/${OPENSSL_RELEASE_TAG}.tar.gz -> ${PN}-${OPENSSL_RELEASE_TAG}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +# Requires a docker environment +RESTRICT="test" + +# S="${WORKDIR}/${P}-${MY_FORK}" + +src_prepare() { + ln -s ../openssl-${OPENSSL_RELEASE_TAG} openssl || die + touch .openssl_is_fresh || die + sed -i -e '/openssl\/.git/,/fi/d' \ + -e '/openssl test/d' Makefile || die + + # Copied from dev-libs/openssl + # allow openssl to be cross-compiled + cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die + chmod a+rx gentoo.config || die + + default +} + +src_configure() { + # Copied from dev-libs/openssl + unset APPS #197996 + unset SCRIPTS #312551 + unset CROSS_COMPILE #311473 + + tc-export CC AR RANLIB RC + + local sslout=$(./gentoo.config) + einfo "Use configuration ${sslout:-(openssl knows best)}" + local config="Configure" + [[ -z ${sslout} ]] && config="config" + + # Clean out hardcoded flags that openssl uses + local DEFAULT_CFLAGS=$(grep ^CFLAGS= Makefile | LC_ALL=C sed \ + -e 's:^CFLAGS=::' \ + -e 's:\(^\| \)-fomit-frame-pointer::g' \ + -e 's:\(^\| \)-O[^ ]*::g' \ + -e 's:\(^\| \)-march=[^ ]*::g' \ + -e 's:\(^\| \)-mcpu=[^ ]*::g' \ + -e 's:\(^\| \)-m[^ ]*::g' \ + -e 's:^ *::' \ + -e 's: *$::' \ + -e 's: \+: :g' \ + -e 's:\\:\\\\:g' + ) + + # Now insert clean default flags with user flags + sed -i \ + -e "/^CFLAGS=/s|=.*|=${DEFAULT_CFLAGS} ${CFLAGS}|" \ + -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" \ + Makefile || die +} + +src_compile() { + emake static +} + +src_install() { + DESTDIR="${D}" emake install + + dodoc Changelog README.md +} |