bettercap 1.6.2 (new formula)
Closes #17530. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
2dc3f83a88
commit
2e29fa3abb
1 changed files with 31 additions and 0 deletions
31
Formula/bettercap.rb
Normal file
31
Formula/bettercap.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
class Bettercap < Formula
|
||||
desc "Complete, modular, portable and easily extensible MITM framework"
|
||||
homepage "https://www.bettercap.org/"
|
||||
url "https://github.com/evilsocket/bettercap/archive/v1.6.2.tar.gz"
|
||||
sha256 "1b364d7e31be5fa7b5f93eefe76763ad7bd4ac0b7b6bb4af05483157580a9cb9"
|
||||
|
||||
depends_on "openssl"
|
||||
depends_on :ruby => "2.2.2"
|
||||
|
||||
def install
|
||||
ENV["GEM_HOME"] = libexec
|
||||
ENV["BUNDLE_PATH"] = libexec
|
||||
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl"].opt_include}"
|
||||
system "gem", "install", "bundler"
|
||||
system libexec/"bin/bundle", "install"
|
||||
system "gem", "build", "bettercap.gemspec"
|
||||
system "gem", "install", "bettercap-#{version}.gem"
|
||||
bin.install libexec/"bin/bettercap"
|
||||
bin.env_script_all_files(libexec/"bin", :GEM_HOME => ENV["GEM_HOME"])
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
bettercap requires root privileges so you will need to run `sudo bettercap`.
|
||||
You should be certain that you trust any software you grant root privileges.
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "This software must run as root.", pipe_output("#{bin}/bettercap --version 2>&1")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue