7a4dabfc1a
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
39 lines
1.5 KiB
Ruby
39 lines
1.5 KiB
Ruby
class Theharvester < Formula
|
|
desc "Gather materials from public sources (for pen testers)"
|
|
homepage "http://www.edge-security.com/theharvester.php"
|
|
url "https://github.com/laramies/theHarvester/archive/2.7.tar.gz"
|
|
sha256 "dc0ff455ac5c41d53709cfc1de65dac7e96d2d9c33f9706789cca106d5a5ee76"
|
|
head "https://github.com/laramies/theHarvester.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "eb8efb01299ff3a4581e733ec1b7d7d27c42d88d10e2b31cf78f109cb61c4031" => :el_capitan
|
|
sha256 "a3712887bea4ea3586d39672cb0b194588694de050aa7f1bd762df5cba463fba" => :yosemite
|
|
sha256 "56c3d5b41a821be12fc6f27ac8beb266984f0c245495c9970614ed776107633f" => :mavericks
|
|
end
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
resource "requests" do
|
|
url "https://pypi.python.org/packages/49/6f/183063f01aae1e025cf0130772b55848750a2f3a89bfa11b385b35d7329d/requests-2.10.0.tar.gz"
|
|
sha256 "63f1815788157130cee16a933b2ee184038e975f0017306d723ac326b5525b54"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
|
resources.each do |r|
|
|
r.stage do
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
end
|
|
end
|
|
|
|
libexec.install Dir["*"]
|
|
(libexec/"theHarvester.py").chmod 0755
|
|
(bin/"theharvester").write_env_script("#{libexec}/theHarvester.py", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/theharvester -d brew.sh -l 1 -b pgp 2>&1")
|
|
assert_match "security@brew.sh", output
|
|
end
|
|
end
|