mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Adding aircrack-ng.
svn path=/nixpkgs/trunk/; revision=13936
This commit is contained in:
parent
6aebc2b1a7
commit
2037ddccb0
17
pkgs/tools/networking/aircrack-ng/add-paths.patch
Normal file
17
pkgs/tools/networking/aircrack-ng/add-paths.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/src/osdep/linux.c b/src/osdep/linux.c
|
||||
index 9f3b1ef..ba7e584 100644
|
||||
--- a/src/osdep/linux.c
|
||||
+++ b/src/osdep/linux.c
|
||||
@@ -235,7 +235,11 @@ static char * wiToolsPath(const char * tool)
|
||||
"/bin",
|
||||
"/usr/bin",
|
||||
"/usr/local/bin",
|
||||
- "/tmp"
|
||||
+ "/tmp",
|
||||
+ "/var/run/current-system/sw/bin",
|
||||
+ "/var/run/current-system/sw/sbin",
|
||||
+ "/root/.nix-profile/bin",
|
||||
+ "/root/.nix-profile/sbin"
|
||||
};
|
||||
|
||||
nbelems = sizeof(paths) / sizeof(char *);
|
22
pkgs/tools/networking/aircrack-ng/default.nix
Normal file
22
pkgs/tools/networking/aircrack-ng/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{stdenv, fetchurl, libpcap, openssl, zlib}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "aircrack-ng-1.0-rc2";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://download.aircrack-ng.org/aircrack-ng-1.0-rc2.tar.gz;
|
||||
sha256 = "9d52f15f3fca52775ecb9cfc1f0aeb04c3c3bd3101665d5760d395f7d2a87d8b";
|
||||
};
|
||||
|
||||
buildInputs = [libpcap openssl zlib];
|
||||
|
||||
patches = [ ./add-paths.patch ];
|
||||
|
||||
postPatch = "sed -e 's@^prefix.*@prefix = '$out@ -i common.mak";
|
||||
|
||||
meta = {
|
||||
description = "Wireless encryption crackign tools";
|
||||
homepage = http://www.aircrack-ng.org/;
|
||||
license = "GPL2+";
|
||||
};
|
||||
}
|
|
@ -482,6 +482,10 @@ let
|
|||
inherit fetchurl stdenv fuse;
|
||||
};
|
||||
|
||||
aircrackng = import ../tools/networking/aircrack-ng {
|
||||
inherit fetchurl stdenv libpcap openssl zlib;
|
||||
};
|
||||
|
||||
amule = import ../tools/networking/p2p/amule {
|
||||
inherit fetchurl stdenv zlib perl cryptopp gettext libupnp makeWrapper;
|
||||
wxGTK = wxGTK28;
|
||||
|
|
Loading…
Reference in a new issue