diff options
Diffstat (limited to 'net-wireless/aircrack-ng/aircrack-ng-1.0_beta2.ebuild')
-rw-r--r-- | net-wireless/aircrack-ng/aircrack-ng-1.0_beta2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.0_beta2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.0_beta2.ebuild new file mode 100644 index 0000000..4bb4ba8 --- /dev/null +++ b/net-wireless/aircrack-ng/aircrack-ng-1.0_beta2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2008 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.9.3.ebuild,v 1.1 2008/03/16 19:27:10 alonbl Exp $ + +inherit toolchain-funcs + +DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" +HOMEPAGE="http://www.aircrack-ng.org" +MY_P="${P/_/-}" +SRC_URI="http://download.aircrack-ng.org/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" +IUSE="wifi" + +DEPEND="wifi? ( net-libs/libpcap )" + +src_unpack() { + unpack ${A} + echo "${WORKDIR}///${MY_P}" + cd "${WORKDIR}/${MY_P}" || die + pwd +} + +src_compile() { + local target + use wifi || target="userland" + cd "${WORKDIR}/${MY_P}" || die + emake CC="$(tc-getCC)" ${target} || die "emake failed" +} + +src_install() { + local target + use wifi && target="install" || target="install_userland" + cd "${WORKDIR}/${MY_P}" || die + emake \ + prefix="${D}"/usr \ + docdir="${D}/usr/share/doc/${PF}" \ + mandir="${D}/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 -w test/password.lst test/wpa.cap || die 'cracking WPA key failed' +} |