diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild')
-rw-r--r-- | app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild b/app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild new file mode 100644 index 000000000000..29b6d9c9fcf6 --- /dev/null +++ b/app-crypt/openssl-blacklist/openssl-blacklist-0.5.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit eutils versionator python-single-r1 + +MY_PV=$(get_version_component_range 1-2) +MY_P="${PN}-${MY_PV}" +DEB_P="${PN}_${MY_PV}" +DEB_PVER=$(get_version_component_range 3) +DEB_PATCH="${DEB_P}-${DEB_PVER}.diff" + +DESCRIPTION="Detection of weak ssl keys produced by certain debian versions in 2006-2008" +HOMEPAGE="https://launchpad.net/ubuntu/+source/openssl-blacklist/" +SRC_URI="mirror://debian/pool/main/o/${PN}/${DEB_P}.orig.tar.gz + mirror://debian/pool/main/o/${PN}/${DEB_PATCH}.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa x86 ~x86-fbsd" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="" +RDEPEND="${DEPEND} + ${PYTHON_DEPS}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + EPATCH_OPTS="-p1" epatch "${WORKDIR}"/${DEB_PATCH} +} + +src_install() { + dobin openssl-vulnkey + doman openssl-vulnkey.1 + insinto /usr/share/openssl-blacklist + + # ripped from debian/rules "install" target + local keysize + for keysize in 512 1024 2048 4096 ; do + ( + cat debian/blacklist.prefix + cat blacklists/{be32,le32,le64}/blacklist-${keysize}.db \ + | cut -d ' ' -f 5 | cut -b21- | sort + ) > blacklist.RSA-${keysize} + doins blacklist.RSA-${keysize} + done + + python_fix_shebang "${ED}/usr/bin/openssl-vulnkey" +} |