2018-01-04 02:30:15 +01:00
|
|
|
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
|
|
|
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper }:
|
2009-02-01 22:21:12 +01:00
|
|
|
|
2011-02-14 23:40:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-02 03:03:22 +01:00
|
|
|
name = "aircrack-ng-1.2-rc4";
|
2009-02-01 22:21:12 +01:00
|
|
|
|
2013-06-02 19:54:20 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.aircrack-ng.org/${name}.tar.gz";
|
2017-02-02 03:03:22 +01:00
|
|
|
sha256 = "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr";
|
2009-02-01 22:21:12 +01:00
|
|
|
};
|
|
|
|
|
2018-01-04 02:30:15 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
|
2009-02-01 22:21:12 +01:00
|
|
|
|
2009-02-02 22:57:18 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
|
|
|
|
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c
|
2018-01-04 02:30:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/airmon-ng --prefix PATH : ${stdenv.lib.makeBinPath [
|
|
|
|
ethtool iw pciutils
|
|
|
|
]}
|
|
|
|
'';
|
2009-02-01 22:21:12 +01:00
|
|
|
|
2013-06-02 20:37:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-14 02:48:15 +01:00
|
|
|
description = "Wireless encryption cracking tools";
|
2009-02-01 22:21:12 +01:00
|
|
|
homepage = http://www.aircrack-ng.org/;
|
2016-01-14 02:48:15 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2018-01-16 22:59:13 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar viric garbas chaoflow ];
|
2013-06-03 00:31:33 +02:00
|
|
|
platforms = platforms.linux;
|
2009-02-01 22:21:12 +01:00
|
|
|
};
|
|
|
|
}
|