blob: e3dff9ce8e347cbe631002d84e3f60fc3450b25b (
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
42
43
44
45
46
47
48
|
# Copyright 1999-2010 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.7 2010/06/29 15:29:45 ssuominen Exp $
inherit eutils toolchain-funcs
MY_P=${P/-utils/}
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}"
S=${WORKDIR}/${MY_P}
KEYGENS="keygen lwepgen"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-asneeded.patch
}
src_compile() {
tc-export CC
for keygen in ${KEYGENS}; do
cd add-ons/${keygen}
emake ${keygen} || die
cd "${S}"
done
}
src_install() {
for keygen in ${KEYGENS}; do
cd add-ons/${keygen}
dosbin ${keygen} || die
cd "${S}"
done
}
|