You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
10 years ago
|
EAPI=5
|
||
13 years ago
|
inherit eutils toolchain-funcs
|
||
|
|
||
|
MY_P="WepAttack-${PV}"
|
||
|
DESCRIPTION="WLAN tool for breaking 802.11 WEP keys"
|
||
|
HOMEPAGE="http://wepattack.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/wepattack/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86"
|
||
|
IUSE="john"
|
||
|
|
||
10 years ago
|
DEPEND="
|
||
5 years ago
|
dev-libs/openssl:0=
|
||
13 years ago
|
net-libs/libpcap
|
||
10 years ago
|
sys-libs/zlib
|
||
|
"
|
||
13 years ago
|
|
||
|
RDEPEND="${DEPEND}
|
||
6 years ago
|
john? ( || ( app-crypt/johntheripper app-crypt/johntheripper-jumbo ) )"
|
||
13 years ago
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
10 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${P}-filter-mac-address.patch
|
||
|
epatch "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch
|
||
13 years ago
|
chmod +x src/wlan
|
||
|
sed -i \
|
||
|
-e "/^CFLAGS=/s:=:=${CFLAGS} :" \
|
||
|
-e 's:-fno-for-scope::g' \
|
||
|
-e "/^CC=/s:gcc:$(tc-getCC):" \
|
||
|
-e "/^LD=/s:gcc:$(tc-getCC):" \
|
||
|
-e 's:log.o\\:log.o \\:' \
|
||
10 years ago
|
src/Makefile || die
|
||
13 years ago
|
sed -i \
|
||
|
-e "s/wordfile:/-wordlist=/" \
|
||
10 years ago
|
run/wepattack_word || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
10 years ago
|
emake -C src
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
10 years ago
|
dobin src/wepattack
|
||
13 years ago
|
if use john; then
|
||
10 years ago
|
dosbin run/wepattack_{inc,word}
|
||
13 years ago
|
insinto /etc
|
||
|
doins "${FILESDIR}"/wepattack.conf
|
||
|
fi
|
||
|
dodoc README
|
||
|
}
|