2015-09-15 06:27:19 +02:00
|
|
|
args @ { makeWrapper, ... }: with args;
|
2008-04-11 11:28:01 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.packetstormsecurity.nl/UNIX/utilities/framework-3.1.tar.gz;
|
|
|
|
sha256 = "114znq9dfcyh9gcj57p3zsc0d0amlzhwidmg8qjcgxpjh28h1afx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [makeWrapper];
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
doInstall = fullDepEntry(''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/msf
|
|
|
|
mkdir -p $out/bin
|
2008-04-11 11:28:01 +02:00
|
|
|
|
|
|
|
cp -r * $out/share/msf
|
|
|
|
|
2008-04-11 12:40:30 +02:00
|
|
|
for i in $out/share/msf/msf*; do
|
|
|
|
makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib
|
2008-04-11 11:28:01 +02:00
|
|
|
done
|
|
|
|
'') ["minInit" "defEnsureDir" "doUnpack" "addInputs"];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2008-06-12 09:17:37 +02:00
|
|
|
phaseNames = ["doInstall" (doPatchShebangs "$out/share/msf")];
|
2015-09-15 06:27:19 +02:00
|
|
|
|
2009-11-18 10:39:59 +01:00
|
|
|
name = "metasploit-framework-3.1";
|
2008-04-11 11:28:01 +02:00
|
|
|
meta = {
|
|
|
|
description = "Metasploit Framework - a collection of exploits";
|
|
|
|
homepage = "http://framework.metasploit.org/";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|