summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2006-11-06 07:12:52 +0000
committerPeter Volkov <pva@gentoo.org>2006-11-06 07:12:52 +0000
commit4bb31c260fc0570a0a04ef794db4d8fe2744d760 (patch)
tree1886c85707fd629dbe63b8b1285865fccc83d074 /net-wireless/wepattack/wepattack-0.1.3-r3.ebuild
parentNew ebuild. See Bug #152283 (diff)
downloadgentoo-2-4bb31c260fc0570a0a04ef794db4d8fe2744d760.tar.gz
gentoo-2-4bb31c260fc0570a0a04ef794db4d8fe2744d760.tar.bz2
gentoo-2-4bb31c260fc0570a0a04ef794db4d8fe2744d760.zip
Use gcc instead of ld for linking and this fixes issue reported by Markus Meier, Michael Weyershäuser and Dustin J. Mitchell in bug #151363. Thank you! Removed broken version. Removed ~amd64 from 0.1.3-r1. Added longdescription in metadata.xml.
(Portage version: 2.1.1)
Diffstat (limited to 'net-wireless/wepattack/wepattack-0.1.3-r3.ebuild')
-rw-r--r--net-wireless/wepattack/wepattack-0.1.3-r3.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-wireless/wepattack/wepattack-0.1.3-r3.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r3.ebuild
new file mode 100644
index 000000000000..0c8f11c6d483
--- /dev/null
+++ b/net-wireless/wepattack/wepattack-0.1.3-r3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepattack/wepattack-0.1.3-r3.ebuild,v 1.1 2006/11/06 07:12:52 pva Exp $
+
+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="~x86 ~amd64"
+IUSE="john"
+
+DEPEND="sys-libs/zlib
+ net-libs/libpcap
+ dev-libs/openssl"
+
+RDEPEND="${DEPEND}
+ john? ( app-crypt/johntheripper )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-filter-mac-address.patch
+ epatch "${FILESDIR}"/${P}-missed-string.h-warnings-fix.diff
+ 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 \\:' \
+ src/Makefile || die "sed Makefile failed"
+ sed -i \
+ -e "s/wordfile:/-wordlist=/" \
+ run/wepattack_word || die "sed wepattack_world faild"
+}
+
+src_compile() {
+ cd src
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin src/wepattack || die "dobin failed"
+ if use john; then
+ dosbin run/wepattack_{inc,word} || die "dosbin failed"
+ insinto /etc
+ doins "${FILESDIR}"/wepattack.conf
+ fi
+ dodoc README
+}