blob: 3e8113f533dd147a1a8f4fb953f83616a2dfff4e (
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
49
50
51
52
53
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepdecrypt/wepdecrypt-0.7.ebuild,v 1.4 2006/05/25 13:23:30 dragonheart Exp $
inherit eutils
MY_P="WepDecrypt-${PV}"
DESCRIPTION="Enhanced version of WepAttack a tool for breaking 802.11 WEP keys"
HOMEPAGE="http://wepdecrypt.sourceforge.net/"
SRC_URI="mirror://sourceforge/wepdecrypt/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
#Please don't add ppc as wepdecrypt doesn't work under ppc
KEYWORDS="~ppc ~x86"
IUSE="X"
RDEPEND="X? ( >=x11-libs/fltk-1.1.6 )
sys-libs/zlib
net-libs/libpcap
dev-libs/openssl"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}-makefile.patch
}
src_compile() {
local conf
if ! use X
then
conf=--disable-gui
fi
econf ${conf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
dobin src/wepdecrypt run/wepdecrypt_{inc,word} || die
if use X; then
dobin src/gwepdecrypt || die
fi
insinto /etc
doins conf/wepdecrypt.conf
doman doc/wepdecrypt.1.gz
dodoc CHANGELOG README doc/manual.html doc/manual.txt
}
|