aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/metasploit.rb
blob: 2660d402f76fbfe40b4335440273225a8981f70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class Metasploit < Formula
  url "http://updates.metasploit.com/data/releases/framework-4.1.0.tar.bz2"
  homepage 'http://www.metasploit.com/framework/'
  sha1 'f978b82d0b5d65e2958006aa9a6fca01573b9539'

  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