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
commit37a25e0c67f354d1b7145e1d7f3f6be6e1f9560b (patch)
tree6f9b5c83393ba91cfbf1006e9aac2088154f5e3b /net-wireless
parentNew ebuild. See Bug #152283 (diff)
downloadhistorical-37a25e0c67f354d1b7145e1d7f3f6be6e1f9560b.tar.gz
historical-37a25e0c67f354d1b7145e1d7f3f6be6e1f9560b.tar.bz2
historical-37a25e0c67f354d1b7145e1d7f3f6be6e1f9560b.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.
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/wepattack/ChangeLog13
-rw-r--r--net-wireless/wepattack/files/digest-wepattack-0.1.3-r33
-rw-r--r--net-wireless/wepattack/files/wepattack-0.1.3-missed-string.h-warnings-fix.diff22
-rw-r--r--net-wireless/wepattack/metadata.xml6
-rw-r--r--net-wireless/wepattack/wepattack-0.1.3-r1.ebuild4
-rw-r--r--net-wireless/wepattack/wepattack-0.1.3-r3.ebuild57
6 files changed, 102 insertions, 3 deletions
diff --git a/net-wireless/wepattack/ChangeLog b/net-wireless/wepattack/ChangeLog
index 50189f933ea1..1e48a39d90cc 100644
--- a/net-wireless/wepattack/ChangeLog
+++ b/net-wireless/wepattack/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for net-wireless/wepattack
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepattack/ChangeLog,v 1.11 2006/09/08 19:08:06 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepattack/ChangeLog,v 1.12 2006/11/06 07:12:52 pva Exp $
+
+*wepattack-0.1.3-r3 (06 Nov 2006)
+
+ 06 Nov 2006; Peter Volkov <pva@gentoo.org>
+ +files/wepattack-0.1.3-missed-string.h-warnings-fix.diff, metadata.xml,
+ wepattack-0.1.3-r1.ebuild, -wepattack-0.1.3-r2.ebuild,
+ +wepattack-0.1.3-r3.ebuild:
+ 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.
08 Sep 2006; Peter Volkov <pva@gentoo.org> wepattack-0.1.3-r2.ebuild:
Fixed compilation problem reported in bug #144832 by Samuel Tardieu. Also
diff --git a/net-wireless/wepattack/files/digest-wepattack-0.1.3-r3 b/net-wireless/wepattack/files/digest-wepattack-0.1.3-r3
new file mode 100644
index 000000000000..063ad0df2927
--- /dev/null
+++ b/net-wireless/wepattack/files/digest-wepattack-0.1.3-r3
@@ -0,0 +1,3 @@
+MD5 be5a77902c992096dd95069bdade343b WepAttack-0.1.3.tar.gz 25063
+RMD160 a9d2f7ad1df9b0c708a5551bf064e17e8bbd1b15 WepAttack-0.1.3.tar.gz 25063
+SHA256 4a251df5b68eb2724491470cddda699e8fabdfce3c4778a722fb9299e4dc21a2 WepAttack-0.1.3.tar.gz 25063
diff --git a/net-wireless/wepattack/files/wepattack-0.1.3-missed-string.h-warnings-fix.diff b/net-wireless/wepattack/files/wepattack-0.1.3-missed-string.h-warnings-fix.diff
new file mode 100644
index 000000000000..a5e1cf754151
--- /dev/null
+++ b/net-wireless/wepattack/files/wepattack-0.1.3-missed-string.h-warnings-fix.diff
@@ -0,0 +1,22 @@
+diff -Naur WepAttack-0.1.3.orig/src/modes.c WepAttack-0.1.3/src/modes.c
+--- WepAttack-0.1.3.orig/src/modes.c 2002-10-24 17:15:19.000000000 +0400
++++ WepAttack-0.1.3/src/modes.c 2006-11-06 09:59:46.000000000 +0300
+@@ -20,6 +20,7 @@
+
+ #include <sys/types.h>
+ #include <stdio.h>
++#include <string.h>
+ #include "modes.h"
+ #include "rc4.h"
+ #include "wlan/wlan_compat.h"
+diff -Naur WepAttack-0.1.3.orig/src/wepattack.c WepAttack-0.1.3/src/wepattack.c
+--- WepAttack-0.1.3.orig/src/wepattack.c 2006-11-06 09:58:33.000000000 +0300
++++ WepAttack-0.1.3/src/wepattack.c 2006-11-06 09:59:36.000000000 +0300
+@@ -32,6 +32,7 @@
+ #include <zlib.h>
+ #include <math.h>
+ #include <signal.h>
++#include <string.h>
+ #include "wepattack.h"
+ #include "wepfilter.h"
+ #include "log.h"
diff --git a/net-wireless/wepattack/metadata.xml b/net-wireless/wepattack/metadata.xml
index 03aa50bab7e3..df8c0be57df6 100644
--- a/net-wireless/wepattack/metadata.xml
+++ b/net-wireless/wepattack/metadata.xml
@@ -2,4 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>netmon</herd>
+ <longdescription lang="en">
+ WepAttack is a WLAN open source Linux tool for breaking 802.11 WEP keys.
+ This tool is based on an active dictionary attack that tests millions of
+ words to find the right key. Only one packet is required to start an
+ attack.
+ </longdescription>
</pkgmetadata>
diff --git a/net-wireless/wepattack/wepattack-0.1.3-r1.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r1.ebuild
index 67e4052f1298..76472076979f 100644
--- a/net-wireless/wepattack/wepattack-0.1.3-r1.ebuild
+++ b/net-wireless/wepattack/wepattack-0.1.3-r1.ebuild
@@ -1,6 +1,6 @@
# 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-r1.ebuild,v 1.5 2006/02/20 22:48:50 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wepattack/wepattack-0.1.3-r1.ebuild,v 1.6 2006/11/06 07:12:52 pva Exp $
inherit eutils
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/wepattack/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ~amd64"
+KEYWORDS="x86"
IUSE=""
DEPEND="sys-libs/zlib
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
+}