homebrew-core/Formula/metasploit.rb

28 lines
851 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Metasploit < Formula
url "http://updates.metasploit.com/data/releases/framework-3.7.1.tar.bz2"
homepage 'http://www.metasploit.com/framework/'
sha1 '9a104bcacc8ecf683f5df16613da19076c81413c'
head "https://www.metasploit.com/svn/framework3/trunk/", :using => :svn
2011-06-05 19:52:32 +00:00
# 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["msf*",'data','external','lib','modules','plugins','scripts','test','tools']
bin.mkpath
Dir["#{libexec}/msf*"].each {|f| ln_s f, bin}
end
2011-06-05 19:52:32 +00:00
def caveats; <<-EOS.undent
Metasploit can be updated in-place by doing:
cd `brew --prefix metasploit`/libexec/
svn up
EOS
end
end