Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/sslscan/
Date: Sun, 13 Oct 2019 08:46:58
Message-Id: 1570956406.56421592e8fdca2cf6a1a0ddeefad9eb5a89fc7b.graaff@gentoo
1 commit: 56421592e8fdca2cf6a1a0ddeefad9eb5a89fc7b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 13 08:46:34 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 08:46:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56421592
7
8 net-analyzer/sslscan: always use static custom openssl
9
10 sslscan is intended to be built against an openssl fork that has known
11 security issues so that sslscan can scan for these issues. We also
12 allowed building against a local openssl or libressl, but these versions
13 are now diverging enough that sslscan won't build against them anymore.
14
15 Fixes: https://bugs.gentoo.org/697072
16 Package-Manager: Portage-2.3.76, Repoman-2.3.16
17 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
18
19 net-analyzer/sslscan/sslscan-1.11.13-r1.ebuild | 45 ++++++++++++++++++++++++++
20 1 file changed, 45 insertions(+)
21
22 diff --git a/net-analyzer/sslscan/sslscan-1.11.13-r1.ebuild b/net-analyzer/sslscan/sslscan-1.11.13-r1.ebuild
23 new file mode 100644
24 index 00000000000..dfa4053fb25
25 --- /dev/null
26 +++ b/net-analyzer/sslscan/sslscan-1.11.13-r1.ebuild
27 @@ -0,0 +1,45 @@
28 +# Copyright 1999-2019 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +# Upstream now builds against the openssl 1.0.x fork by PeterMosmans
34 +MOSMANS_OPENSSL_COMMIT=c9ba19c8b7fd131137373dbd1fccd6a8bb0628be
35 +
36 +inherit eutils toolchain-funcs
37 +
38 +DESCRIPTION="Fast SSL configuration scanner"
39 +HOMEPAGE="https://github.com/rbsec/sslscan"
40 +MY_FORK="rbsec"
41 +SRC_URI="https://github.com/${MY_FORK}/${PN}/archive/${PV}-${MY_FORK}.tar.gz -> ${P}-${MY_FORK}.tar.gz
42 + https://github.com/PeterMosmans/openssl/archive/${MOSMANS_OPENSSL_COMMIT}.tar.gz -> ${P}-${MY_FORK}-openssl.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE=""
48 +
49 +DEPEND=""
50 +RDEPEND="${DEPEND}"
51 +
52 +S="${WORKDIR}/${P}-${MY_FORK}"
53 +
54 +src_prepare() {
55 + ln -s ../openssl-${MOSMANS_OPENSSL_COMMIT} openssl || die
56 + touch .openssl_is_fresh || die
57 +
58 + sed -i -e '/openssl\/.git/,/fi/d' \
59 + -e '/openssl test/d' Makefile || die
60 +
61 + default
62 +}
63 +
64 +src_compile() {
65 + emake static
66 +}
67 +
68 +src_install() {
69 + DESTDIR="${D}" emake install
70 +
71 + dodoc Changelog README.md
72 +}