75ff5e0641
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
26 lines
899 B
Ruby
26 lines
899 B
Ruby
require 'formula'
|
|
|
|
class Metasploit < Formula
|
|
homepage 'http://www.metasploit.com/framework/'
|
|
url "http://updates.metasploit.com/data/releases/framework-4.2.0.tar.bz2"
|
|
sha1 'f5ddc56a1f6dd4885edc6849428bf33179c66653'
|
|
|
|
head "https://www.metasploit.com/svn/framework3/trunk/", :using => :svn
|
|
|
|
# Metasploit's tarball comes with a full .svn checkout.
|
|
# Don't clean these folders, so users can "svn up" to update
|
|
# metasploit in-place, which apparently is standard for this project.
|
|
skip_clean :all
|
|
|
|
def install
|
|
libexec.install Dir['.svn','armitage','HACKING',"msf*",'data','documentation','external','lib','modules','plugins','scripts','test','tools']
|
|
bin.install_symlink Dir["#{libexec}/msf*","#{libexec}/armitage"]
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Metasploit can be updated in-place by doing:
|
|
cd `brew --prefix metasploit`/libexec/
|
|
svn up
|
|
EOS
|
|
end
|
|
end
|