summaryrefslogtreecommitdiff
blob: 3db4638d8a1bc7eb4569b4685b52551c00995c81 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils toolchain-funcs

MY_P="${PN}${PV/./-v}"
DESCRIPTION="Tool to bruteforce the SSID"
HOMEPAGE="http://homepages.tu-darmstadt.de/~p_larbig/wlan"
SRC_URI="${HOMEPAGE}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="net-wireless/aircrack-ng"
S="${WORKDIR}/${MY_P}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${PV}-Makefile.patch
}

src_compile() {
	emake CC=$(tc-getCC) || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || \
		die "installation of ${PN} failed"

	insinto /usr/share/${PN}
	doins -r useful_files || die "no helpers"

	dohtml docs/* || die "no html docs"
	dodoc AUTHORS CHANGELOG TODO || die "nothing to read"
}