diff options
| author | Adam Vandenberg | 2011-06-05 12:52:32 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-05 12:52:32 -0700 |
| commit | 48e063d70cedf8a7ed587653aa04b024f13613fc (patch) | |
| tree | 9bbc2d2c46d98680d7748d6c666ff6fc03baef47 /Library/Formula | |
| parent | 0fa4e325cd87eb795e2ef92a1b953bffc4bdc419 (diff) | |
| download | homebrew-48e063d70cedf8a7ed587653aa04b024f13613fc.tar.bz2 | |
Metasploit: allow in-place updates
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/metasploit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/metasploit.rb b/Library/Formula/metasploit.rb index 4f72eb51a..589b8c659 100644 --- a/Library/Formula/metasploit.rb +++ b/Library/Formula/metasploit.rb @@ -7,9 +7,21 @@ class Metasploit < Formula 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["msf*",'data','external','lib','modules','plugins','scripts','test','tools'] bin.mkpath Dir["#{libexec}/msf*"].each {|f| ln_s f, bin} end + + def caveats; <<-EOS.undent + Metasploit can be updated in-place by doing: + cd `brew --prefix metasploit`/libexec/ + svn up + EOS + end end |
