You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/openssl-blacklist/openssl-blacklist-0.4.2.ebuild

32 lines
1.1 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/openssl-blacklist/openssl-blacklist-0.4.2.ebuild,v 1.1 2009/04/15 08:05:43 hanno Exp $
DESCRIPTION="Detection of weak ssl keys produced by certain debian versions between 2006 and 2008"
HOMEPAGE="https://launchpad.net/ubuntu/+source/openssl-blacklist/"
SRC_URI="mirror://debian/pool/main/o/${PN}/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd"
IUSE=""
DEPEND="dev-lang/python"
RDEPEND="${DEPEND}"
S="${WORKDIR}/trunk"
src_compile() {
einfo nothing to compile
}
src_install() {
dobin openssl-vulnkey || die "dobin failed"
doman openssl-vulnkey.1 || die "doman failed"
dodir /usr/share/openssl-blacklist/
for keysize in 512 1024 2048 4096; do \
cat "${S}/debian/blacklist.prefix" > "${D}/usr/share/openssl-blacklist/blacklist.RSA-$keysize"
cat "${S}"/blacklists/*/blacklist-$keysize.db \
| cut -d ' ' -f 5 | cut -b21- | sort \
>> "${D}/usr/share/openssl-blacklist/blacklist.RSA-$keysize"
done
}