Added userland only support, bug#170404, thanks to ebfe
authorAlon Bar-Lev <alonbl@gentoo.org>
Mon, 12 Mar 2007 18:41:10 +0000 (18:41 +0000)
committerAlon Bar-Lev <alonbl@gentoo.org>
Mon, 12 Mar 2007 18:41:10 +0000 (18:41 +0000)
Package-Manager: portage-2.1.2.2

net-wireless/aircrack-ng/ChangeLog
net-wireless/aircrack-ng/Manifest
net-wireless/aircrack-ng/aircrack-ng-0.7-r1.ebuild [new file with mode: 0644]
net-wireless/aircrack-ng/files/aircrack-ng-0.7-make.patch [new file with mode: 0644]
net-wireless/aircrack-ng/files/digest-aircrack-ng-0.7-r1 [new file with mode: 0644]

index 318046e62c33a9a2b2863e91efdf5f6bc4f2bafc..94ebdab7bfc9ebcb2ba6c5114892b0e74d6bf56c 100644 (file)
@@ -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)
 
index 224cc34a71b1e20830dffcf6d9f3c05220014689..5914b5f9311ca745c7cc46c6e6a17b20a3bb3995 100644 (file)
@@ -1,3 +1,7 @@
+AUX aircrack-ng-0.7-make.patch 1261 RMD160 e46aa33ac2e3b57caa8f7f14305983968578ac83 SHA1 cc7a9efc29975f8ab666e52eeee8dd7d01f4fdb9 SHA256 6317e46d78ef6780ec3e2fbe50b796256bea109da18f4519244d73495d9642d1
+MD5 c62a367c069d6ed958fae26027883921 files/aircrack-ng-0.7-make.patch 1261
+RMD160 e46aa33ac2e3b57caa8f7f14305983968578ac83 files/aircrack-ng-0.7-make.patch 1261
+SHA256 6317e46d78ef6780ec3e2fbe50b796256bea109da18f4519244d73495d9642d1 files/aircrack-ng-0.7-make.patch 1261
 AUX process-group-leader.c 369 RMD160 cc0d607e59f9e9746c0bf18aca36fcba8abd0ea1 SHA1 c27046eff317f2bbdbdaedc3438b66998b95dc71 SHA256 5b395d9fdc9ccb34a1a28a5084c6692a0c92bf15d126a84fc00fa9160f0eb4cd
 MD5 0d47d23b749e8355c8def83319b2e784 files/process-group-leader.c 369
 RMD160 cc0d607e59f9e9746c0bf18aca36fcba8abd0ea1 files/process-group-leader.c 369
@@ -8,14 +12,18 @@ EBUILD aircrack-ng-0.6.2.ebuild 1158 RMD160 2d081d0885ecfc93726c562be10fad85ea40
 MD5 feda7f571268cd66c38a15da8117b59a aircrack-ng-0.6.2.ebuild 1158
 RMD160 2d081d0885ecfc93726c562be10fad85ea4048fa aircrack-ng-0.6.2.ebuild 1158
 SHA256 1b9f8b7217fcde698844345e8ad1c5ca6c3988b7e1618f694a1a336d27b962b4 aircrack-ng-0.6.2.ebuild 1158
+EBUILD aircrack-ng-0.7-r1.ebuild 1408 RMD160 ae252ce018475b728f12f99ba8e7ef665a283169 SHA1 c8f830aa699ac925d30329e242e2ca3752437006 SHA256 44e50d1162844bcae36e2b58ee659b7a695de4cf14e3058a52085036c972377f
+MD5 4bfbeb7acf9bde9980d5da254efa7f21 aircrack-ng-0.7-r1.ebuild 1408
+RMD160 ae252ce018475b728f12f99ba8e7ef665a283169 aircrack-ng-0.7-r1.ebuild 1408
+SHA256 44e50d1162844bcae36e2b58ee659b7a695de4cf14e3058a52085036c972377f aircrack-ng-0.7-r1.ebuild 1408
 EBUILD aircrack-ng-0.7.ebuild 1155 RMD160 83080ff963cd6ec31bc00bbbb72165d2e5a62acd SHA1 3a18f2c717b103975012389211cb3bd236fd79a0 SHA256 38c08eff3e06fb467f976e00506523478230a13307bf63e1e6668d9a7004ed95
 MD5 2e6e96ada8de6bd888f98dcdd380a7bf aircrack-ng-0.7.ebuild 1155
 RMD160 83080ff963cd6ec31bc00bbbb72165d2e5a62acd aircrack-ng-0.7.ebuild 1155
 SHA256 38c08eff3e06fb467f976e00506523478230a13307bf63e1e6668d9a7004ed95 aircrack-ng-0.7.ebuild 1155
-MISC ChangeLog 2630 RMD160 408d45cd905bb228b69b4ab0d8e5708fb36c8784 SHA1 c8344e288a2747099056097a738b42b497e471ea SHA256 4449f2fe3e07791838e58f46d6e4888c073a54ce1884aae9c39781932ef3a274
-MD5 746541fdd0429d23c627cffe5573c052 ChangeLog 2630
-RMD160 408d45cd905bb228b69b4ab0d8e5708fb36c8784 ChangeLog 2630
-SHA256 4449f2fe3e07791838e58f46d6e4888c073a54ce1884aae9c39781932ef3a274 ChangeLog 2630
+MISC ChangeLog 2837 RMD160 2a9e2106f9e96b71fd94df47826694d605138710 SHA1 f5b7dff4a21914fe9e4226540d02004043c68857 SHA256 be3e7f2a9789b640b7529071512a66f829b19e1b7deaa00b237e701bd2adb0bc
+MD5 ae925573551aee1ed5f8aa13c036ce81 ChangeLog 2837
+RMD160 2a9e2106f9e96b71fd94df47826694d605138710 ChangeLog 2837
+SHA256 be3e7f2a9789b640b7529071512a66f829b19e1b7deaa00b237e701bd2adb0bc ChangeLog 2837
 MISC metadata.xml 545 RMD160 74b28f94434b9af081b71806679b128b42cb8068 SHA1 b9b41decbf07297e72c3f682be1c13415df1f402 SHA256 af8903a9f2e95968febae6760b251c2145e3a26569f71ff64266ae2b4fcbbb2a
 MD5 fa1e307730dae389bd54c27130c69ec5 metadata.xml 545
 RMD160 74b28f94434b9af081b71806679b128b42cb8068 metadata.xml 545
@@ -26,3 +34,6 @@ SHA256 b81cab3a6592d55ddef24fa0cc5f3d691fe95859b63632b7640a31f90697eb7d files/di
 MD5 8d3179b71b0c57b3cfb122ce978fbc6c files/digest-aircrack-ng-0.7 247
 RMD160 469e602cbf5f66005fd7d159bbedc5781a820d69 files/digest-aircrack-ng-0.7 247
 SHA256 c8e3bdc87423c0f14a7a2701747ec72e78ca847f664c192f4a2310b8aa71412c files/digest-aircrack-ng-0.7 247
+MD5 8d3179b71b0c57b3cfb122ce978fbc6c files/digest-aircrack-ng-0.7-r1 247
+RMD160 469e602cbf5f66005fd7d159bbedc5781a820d69 files/digest-aircrack-ng-0.7-r1 247
+SHA256 c8e3bdc87423c0f14a7a2701747ec72e78ca847f664c192f4a2310b8aa71412c files/digest-aircrack-ng-0.7-r1 247
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 (file)
index 0000000..ef96de4
--- /dev/null
@@ -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 (file)
index 0000000..97c33cc
--- /dev/null
@@ -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 (file)
index 0000000..1087c74
--- /dev/null
@@ -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