summaryrefslogtreecommitdiff
blob: 279bb1495f1c59c68fba2f101c498bc93d1341b6 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/openvpn-blacklist/openvpn-blacklist-0.4.ebuild,v 1.1 2009/06/28 11:04:10 hanno Exp $

DESCRIPTION="Detection of weak openvpn keys produced by certain debian versions between 2006 and 2008"
HOMEPAGE="http://packages.debian.org/sid/openvpn-blacklist"
SRC_URI="mirror://debian/pool/main/o/${PN}/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-lang/python"
S="${WORKDIR}/${P}"

src_compile() {
	einfo nothing to compile
}

src_install() {
	dobin openvpn-vulnkey || die "dobin failed"
	doman openvpn-vulnkey.1 || die "doman failed"
	dodir /usr/share/openvpn-blacklist/
	cat "${S}/debian/blacklist.prefix" > "${D}/usr/share/openssl-blacklist/blacklist.RSA-2048"
	cat "${S}/blacklist.RSA-2048" | cut -d ' ' -f 2 | cut -b13- | sort \
		>> "${D}/usr/share/openvpn-blacklist/blacklist.RSA-2048"
}