diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-04-09 09:17:17 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-04-09 09:42:11 +0200 |
commit | c999d23c65e7ba35e07c79af661a57c9cd7ca5a6 (patch) | |
tree | bea29a7d5b01ce39ee251fe7eab14de607745f62 | |
parent | net-analyzer/sslscan: drop 2.0.11, 2.0.14 (diff) | |
download | gentoo-c999d23c65e7ba35e07c79af661a57c9cd7ca5a6.tar.gz gentoo-c999d23c65e7ba35e07c79af661a57c9cd7ca5a6.tar.bz2 gentoo-c999d23c65e7ba35e07c79af661a57c9cd7ca5a6.zip |
net-analyzer/sslscan: add 2.0.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | net-analyzer/sslscan/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/sslscan/sslscan-2.0.16.ebuild | 82 |
2 files changed, 84 insertions, 0 deletions
diff --git a/net-analyzer/sslscan/Manifest b/net-analyzer/sslscan/Manifest index de88a5c611ac..ad0f2828a2c1 100644 --- a/net-analyzer/sslscan/Manifest +++ b/net-analyzer/sslscan/Manifest @@ -1,4 +1,6 @@ DIST sslscan-2.0.13.tar.gz 111142 BLAKE2B 049791183ebf1e00d11868c0dd7b79eddcd27cbb1f915812938f46837c4b300844c26e0a0bee0a4bee4886f24f7b10e5bc77ddedc86893ae228658ab71d11bea SHA512 50455a4f4a999e63107e705a4bc703b94b30d4fa71b5126cdc08788eedeb02f4c7a204a385fa485f0c9d0fa368c7a48f96c492b91631fe8833b68f20d45b0fca DIST sslscan-2.0.15.tar.gz 111609 BLAKE2B fc24c00ba3b6aab3c5a05e2ce7fc61c31df76682ef85ae29ad029358b1a51dd4a2c861546eb2eef38eb1d3f5dfad1d77c03fe02ccff8e9f74aa0e09b39a84b72 SHA512 1076914ea86d45fc70bbb60861793acd5e1d64714a5cadca0297a5ad1ab7948a838de7b2d101c199088ee315b802b4342508d37bda94e6b1da47c2bf2289b353 +DIST sslscan-2.0.16.tar.gz 113523 BLAKE2B d5157daafa8d3e8863054daae151506cdb83417b7e63ad7a08f1c7204297f173989a6622305c4f9f19027b50d77cd920d11ad88d5b4dd90ea6bcc4216c3f685b SHA512 7fb7233fcb770ec0893d35244173a656d2316655aa85226c99d1fad5387dace77c5d0deb0d0a47a11c27012c9b6ebdfe90fd881b1d05a7d34eaf26ab2fbe7b96 DIST sslscan-OpenSSL_1_1_1n.tar.gz 10031245 BLAKE2B 8af659fc9eead7b91a7553c17570dabb17d15fb37a77e7eecfa2a9dffc9eb0a331dd3f11a193907d16e535594eb8c31707ae91d91db91e99c75d75bdd43a7774 SHA512 bfe45e4cbe082e45d165212caa8e660c8af68559675c42461aba5685a7baa7e16c9c0096557106706114176dc31142c760fe835022f796e4341eb08d1b20408d 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 diff --git a/net-analyzer/sslscan/sslscan-2.0.16.ebuild b/net-analyzer/sslscan/sslscan-2.0.16.ebuild new file mode 100644 index 000000000000..7c8b3b84696a --- /dev/null +++ b/net-analyzer/sslscan/sslscan-2.0.16.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_1_1_1t" + +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 +} |