Metasploit: allow in-place updates
parent
3c3044e3f1
commit
a166d7c608
|
@ -7,9 +7,21 @@ class Metasploit < Formula
|
||||||
|
|
||||||
head "https://www.metasploit.com/svn/framework3/trunk/", :using => :svn
|
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
|
def install
|
||||||
libexec.install Dir["msf*",'data','external','lib','modules','plugins','scripts','test','tools']
|
libexec.install Dir["msf*",'data','external','lib','modules','plugins','scripts','test','tools']
|
||||||
bin.mkpath
|
bin.mkpath
|
||||||
Dir["#{libexec}/msf*"].each {|f| ln_s f, bin}
|
Dir["#{libexec}/msf*"].each {|f| ln_s f, bin}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def caveats; <<-EOS.undent
|
||||||
|
Metasploit can be updated in-place by doing:
|
||||||
|
cd `brew --prefix metasploit`/libexec/
|
||||||
|
svn up
|
||||||
|
EOS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue