summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2007-03-12 18:41:10 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2007-03-12 18:41:10 +0000
commit1d092ba298c116274be6c64c4ca3e130578fc23e (patch)
tree67e5f12ff811b27ed3185982e1b0c52277c59ee4 /net-wireless
parentStable on sparc (diff)
downloadgentoo-2-1d092ba298c116274be6c64c4ca3e130578fc23e.tar.gz
gentoo-2-1d092ba298c116274be6c64c4ca3e130578fc23e.tar.bz2
gentoo-2-1d092ba298c116274be6c64c4ca3e130578fc23e.zip
Added userland only support, bug#170404, thanks to ebfe
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/aircrack-ng/ChangeLog8
-rw-r--r--net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild52
-rw-r--r--net-wireless/aircrack-ng/files/aircrack-ng-0.7-make.patch35
-rw-r--r--net-wireless/aircrack-ng/files/digest-aircrack-ng-0.7-r13
4 files changed, 97 insertions, 1 deletions
diff --git a/net-wireless/aircrack-ng/ChangeLog b/net-wireless/aircrack-ng/ChangeLog
index 318046e62c33..94ebdab7bfc9 100644
--- a/net-wireless/aircrack-ng/ChangeLog
+++ b/net-wireless/aircrack-ng/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/aircrack-ng
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/ChangeLog,v 1.14 2007/01/22 11:03:41 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/ChangeLog,v 1.15 2007/03/12 18:41:10 alonbl Exp $
+
+*aircrack-ng-0.7-r1 (12 Mar 2007)
+
+ 12 Mar 2007; Alon Bar-Lev <alonbl@gentoo.org>
+ +files/aircrack-ng-0.7-make.patch, +aircrack-ng-0.7-r1.ebuild:
+ Added userland only support, bug#170404, thanks to ebfe
*aircrack-ng-0.7 (22 Jan 2007)
diff --git a/net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild b/net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild
new file mode 100644
index 000000000000..ef96de4cfd76
--- /dev/null
+++ b/net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild,v 1.1 2007/03/12 18:41:10 alonbl Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
+HOMEPAGE="http://www.aircrack-ng.org"
+SRC_URI="http://download.aircrack-ng.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="wifi"
+
+DEPEND="wifi? ( net-libs/libpcap )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-make.patch"
+}
+
+src_compile() {
+ local target
+ use wifi || target="userland"
+ emake -e CC="$(tc-getCC)" ${target} || die "emake failed"
+}
+
+src_install() {
+ local target
+ use wifi && target="install" || target="install_userland"
+ emake \
+ prefix=/usr \
+ docdir="/usr/share/doc/${PF}" \
+ mandir="/usr/share/man/man1" \
+ destdir="${D}" \
+ ${target} \
+ doc \
+ || die "emake install failed"
+}
+
+src_test() {
+ #./makeivs wep.ivs 11111111111111111111111111 || die 'generating ivs file failed'
+ #./aircrack-ng wep.ivs || die 'cracking WEP key failed'
+
+ # Upstream uses signal in order to quit,
+ # So protect busybox with process group leader.
+ "$(tc-getCC)" -o process-group-leader "${FILESDIR}/process-group-leader.c"
+ ./process-group-leader ./aircrack-ng test/wpa.cap -w test/password.lst || die 'cracking WPA key failed'
+}
+
diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-0.7-make.patch b/net-wireless/aircrack-ng/files/aircrack-ng-0.7-make.patch
new file mode 100644
index 000000000000..97c33cc3c026
--- /dev/null
+++ b/net-wireless/aircrack-ng/files/aircrack-ng-0.7-make.patch
@@ -0,0 +1,35 @@
+--- ./Makefile 2007-01-20 00:41:07.000000000 +0100
++++ ./Makefile 2007-03-11 14:52:26.000000000 +0100
+@@ -27,7 +27,9 @@
+
+ default:all
+
+-all: aircrack-ng airdecap-ng packetforge-ng aireplay-ng airodump-ng airtun-ng ivstools kstats makeivs
++userland: $(BINFILES) $(TESTFILES)
++
++all: userland $(SBINFILES)
+
+ aircrack-ng-opt: src/aircrack-ng.c src/crypto.c src/sha1-mmx.S src/common.c
+ $(iCC) $(iCFLAGS) $(iOPTFLAGS) $(REVFLAGS) src/aircrack-ng.c src/crypto.c src/sha1-mmx.S src/common.c -o aircrack-ng-opt -lpthread
+@@ -69,15 +71,18 @@
+ strip: $(BINFILES) $(SBINFILES) $(TESTFILES)
+ strip $(BINFILES) $(SBINFILES) $(TESTFILES)
+
+-install: $(BINFILES) $(SBINFILES) $(TESTFILES) $(SCRIPTS)
++install_userland: userland
+ install -d $(destdir)$(bindir)
+ install -m 755 $(BINFILES) $(destdir)$(bindir)
+ install -m 755 $(TESTFILES) $(destdir)$(bindir)
++ install -d $(destdir)$(mandir)
++ install -m 644 ./manpages/* $(destdir)$(mandir)
++
++
++install: install_userland $(SBINFILES) $(SCRIPTS)
+ install -d $(destdir)$(sbindir)
+ install -m 755 $(SBINFILES) $(destdir)$(sbindir)
+ install -m 755 $(SCRIPTS) $(destdir)$(sbindir)
+- install -d $(destdir)$(mandir)
+- install -m 644 ./manpages/* $(destdir)$(mandir)
+
+ uninstall:
+ -rm -f $(destdir)$(bindir)/aircrack-ng
diff --git a/net-wireless/aircrack-ng/files/digest-aircrack-ng-0.7-r1 b/net-wireless/aircrack-ng/files/digest-aircrack-ng-0.7-r1
new file mode 100644
index 000000000000..1087c741de77
--- /dev/null
+++ b/net-wireless/aircrack-ng/files/digest-aircrack-ng-0.7-r1
@@ -0,0 +1,3 @@
+MD5 34c0447951d438d76fa32d08eab5da01 aircrack-ng-0.7.tar.gz 172998
+RMD160 a1828d93ab6433319176f7884ab4f607053018da aircrack-ng-0.7.tar.gz 172998
+SHA256 90cbd5030938ce1622a8e399c95088bf464bceb95adc290640d4610eb8522aeb aircrack-ng-0.7.tar.gz 172998