aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/metasploit.rb
blob: 2b687b97e465f234bf6c8ec3533ba2d08271b6a1 (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
require 'formula'

class Metasploit < Formula
  homepage 'http://www.metasploit.com/framework/'
  url 'http://downloads.metasploit.com/data/releases/framework-4.5.0.tar.bz2'
  sha1 '13c3e4ef5265ecb5b6303d39ca1347982b782886'

  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['.svn','armitage','HACKING',"msf*",'data','documentation','external','lib','modules','plugins','scripts','test','tools']
    bin.install_symlink Dir["#{libexec}/msf*","#{libexec}/armitage"]
  end

  def caveats; <<-EOS.undent
    Metasploit can be updated in-place by doing:
      cd `brew --prefix metasploit`/libexec/
      svn up
    EOS
  end
end