blob: 49906590693b6383e03690e5def5ef704b610f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# 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
}
|