summaryrefslogtreecommitdiff
blob: cdfe9870cda572be393c83ca36de8f4f3f93b1e6 (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
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh-blacklist/openssh-blacklist-0.4.1.ebuild,v 1.5 2010/12/04 12:50:29 phajdan.jr Exp $

inherit toolchain-funcs

DESCRIPTION="Source files of vuln Debian keys"
HOMEPAGE="http://packages.qa.debian.org/o/openssh-blacklist.html"
SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 hppa x86"
IUSE=""

DEPEND=""

maint_pkg_create() {
	wget http://cvsweb.openwall.com/cgi/cvsweb.cgi/~checkout~/Owl/packages/openssh/blacklist-encode.c -O "${FILESDIR}"/blacklist-encode.c
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	cp "${FILESDIR}"/blacklist-encode.c . || die
}

src_compile() {
	emake \
		CC="$(tc-getBUILD_CC)" \
		CFLAGS="${BUILD_CFLAGS}" \
		CPPFLAGS="${BUILD_CPPFLAGS}" \
		LDFLAGS="${BUILD_LDFLAGS}" \
		blacklist-encode || die
	cat [DR]SA-* | ./blacklist-encode 6 > blacklist
}

src_install() {
	insinto /etc/ssh
	doins blacklist || die
}