2008-04-11 11:28:01 +02:00
|
|
|
args : with args;
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.packetstormsecurity.nl/UNIX/utilities/framework-3.1.tar.gz;
|
|
|
|
sha256 = "114znq9dfcyh9gcj57p3zsc0d0amlzhwidmg8qjcgxpjh28h1afx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [makeWrapper];
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
doInstall = FullDepEntry(''
|
|
|
|
ensureDir $out/share/msf
|
|
|
|
ensureDir $out/bin
|
|
|
|
|
|
|
|
cp -r * $out/share/msf
|
|
|
|
|
2008-04-11 12:40:30 +02:00
|
|
|
sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/share/msf/msf*
|
2008-04-11 11:28:01 +02:00
|
|
|
|
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 */
|
|
|
|
phaseNames = ["doInstall"];
|
|
|
|
|
|
|
|
name = "metasploit-framework" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Metasploit Framework - a collection of exploits";
|
|
|
|
homepage = "http://framework.metasploit.org/";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|