diff options
Diffstat (limited to 'net-analyzer/sslscan')
-rw-r--r-- | net-analyzer/sslscan/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/sslscan/sslscan-2.1.0.ebuild | 82 |
2 files changed, 85 insertions, 0 deletions
diff --git a/net-analyzer/sslscan/Manifest b/net-analyzer/sslscan/Manifest index 298e3eb8e703..b9b601ca4c5c 100644 --- a/net-analyzer/sslscan/Manifest +++ b/net-analyzer/sslscan/Manifest @@ -1,8 +1,11 @@ AUX gentoo.config-1.0.2 5253 BLAKE2B 2a167c760399401cd595e6b85ee8c29f8e4d3e4a44e7b6b7e42320ec9f88b1a61bcd4387815bd6f73dea71c9b39603c1809e4f1537d5de553ec77996429c0516 SHA512 59479e5af84e1f991ba8abeac42276a08a5c9f61fa0c79af96cd7c94fddb72de82ba56f31babf9b3bef5de26431ebb2b98bc1c58715b20baea350e16360108a3 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-2.1.0.tar.gz 113646 BLAKE2B b37fdf7374c7f5742b219e69fd949d79d5f92caf81e887a215b35a0d1f4eddf88c74486c378330846b86a6c27cc29406bc87a1832378d92c1f2dc17c4ab291ee SHA512 9e38855d27384b133f0fe27e2107221f0a1b3b197641f5e88bed7fa12b35ddb6eff68b5f406b02071c6fc0b7ef2a41058b40308b438ad010b448f2e0ca2b282d 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 EBUILD sslscan-2.0.15.ebuild 2054 BLAKE2B bdf74a3042bc4ca4aeae333fcf4b1d59ee4729a5a146841178fb519128be81e6df86cf02c006bfc9e09ff4b983c4aa42ef7f3d4880bad37194672f2de44f177f SHA512 c62cdf0d11f3fb1891dccb66cf4196add37c7a796a85959b4f424d28e66c2c1bb54c4532f27aeb13de8469e05449f6b75b235dd0d79f1139bd863313561d33f8 EBUILD sslscan-2.0.16.ebuild 2054 BLAKE2B 2ff72bff41119d86b0284fd231da12a494d66943c0852d2ba067469651eb5bf0ff06b237626cfa5a6cb1b5f73ebec73969da34b3fc5b5b482ffeefc7333c6ec0 SHA512 61164978ed7bc10fd12cd97e261a88724020d34ff23724714ed70742f771b170557fe6110de372c87520d546d75d45b6217023e3c1a21489a0790e06877127c1 +EBUILD sslscan-2.1.0.ebuild 2056 BLAKE2B 008c0fad2f5a64b39c52d7d9e8554c15f89a0f79c02da79d3a73c200530ea0a2aa6b2197ae4f7c5833e842dbad9b98944b8e9ff9e08688fec80636f63c68a58c SHA512 859e034f41b9b19008939e27e3b0abc541dad03a69ddd3cb77f883d7b37f39345654c92eed714a6028cc0b45182fbc7b09c32096bdcf3ca0f0c37f86bc0ed733 MISC metadata.xml 296 BLAKE2B b16b4e5a187d36ca8495bd63c691f67ae420fcc4cc742cdd8e477534edbe36414cef5eaa60eca31bdb62b9fbd7a6922754ea0d3d2adeb6d0d4181fefcbe3cb81 SHA512 650f60a88d140869a64a7287d094832e0e553f5d0093d248c3b94f9f3565bed26784ba2e6629128b602c3fcb56496fc4a92d1cd5148acf3b00b72aae22f16780 diff --git a/net-analyzer/sslscan/sslscan-2.1.0.ebuild b/net-analyzer/sslscan/sslscan-2.1.0.ebuild new file mode 100644 index 000000000000..652522f549b0 --- /dev/null +++ b/net-analyzer/sslscan/sslscan-2.1.0.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.10" + +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 +} |