summaryrefslogtreecommitdiff
blob: 6e8d610704bc683ca75d78d136413a58948fa698 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-utils/linux-wlan-ng-utils-0.2.2.ebuild,v 1.4 2006/04/02 12:03:28 betelgeuse Exp $

MY_P=${P/-utils/}
S=${WORKDIR}/${MY_P}

DESCRIPTION="Key generators from the linux-wlan-ng project."
HOMEPAGE="http://linux-wlan.org"
SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2"

LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

IUSE=""

DEPEND="dev-libs/openssl
		!<net-wireless/linux-wlan-ng-0.2.2"
RDEPEND="${DEPEND}"

KEYGENS="keygen lwepgen"

src_compile() {
	for keygen in ${KEYGENS}; do
		cd add-ons/${keygen}
		make ${keygen} || die "Failed to make ${keygen}"
		cd ${S}
	done
}

src_install() {
	for keygen in ${KEYGENS}; do
		cd add-ons/${keygen}
		dosbin ${keygen}
		cd ${S}
	done
}