From a166d7c608ada5e864dbcfa77b785def59453049 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 5 Jun 2011 12:52:32 -0700 Subject: [PATCH] Metasploit: allow in-place updates --- Formula/metasploit.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Formula/metasploit.rb b/Formula/metasploit.rb index 4f72eb51a6..589b8c659b 100644 --- a/Formula/metasploit.rb +++ b/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