From dceffbc5be09153a0bd5a91113f96011fd4a01dd Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Wed, 7 Nov 2018 17:53:15 +1100 Subject: [PATCH] theharvester 3.0.1 Closes #33880. Signed-off-by: FX Coudert --- Formula/theharvester.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Formula/theharvester.rb b/Formula/theharvester.rb index 4475046f56..d68ebe3fd0 100644 --- a/Formula/theharvester.rb +++ b/Formula/theharvester.rb @@ -1,8 +1,8 @@ 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" + url "https://github.com/laramies/theHarvester/archive/v3.0.1.tar.gz" + sha256 "0e19a2f18459c9902792648b5fd65449c8702e61094fbb34edeed02bb8899af4" head "https://github.com/laramies/theHarvester.git" bottle do @@ -15,7 +15,7 @@ class Theharvester < Formula sha256 "56c3d5b41a821be12fc6f27ac8beb266984f0c245495c9970614ed776107633f" => :mavericks end - depends_on "python@2" + depends_on "python" resource "requests" do url "https://files.pythonhosted.org/packages/49/6f/183063f01aae1e025cf0130772b55848750a2f3a89bfa11b385b35d7329d/requests-2.10.0.tar.gz" @@ -23,10 +23,13 @@ class Theharvester < Formula end def install - ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" + xy = Language::Python.major_minor_version "python3" + ENV["PYTHONPATH"] = libexec/"lib/python#{xy}/site-packages" + ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages" + resources.each do |r| r.stage do - system "python", *Language::Python.setup_install_args(libexec/"vendor") + system "python3", *Language::Python.setup_install_args(libexec/"vendor") end end @@ -36,7 +39,7 @@ class Theharvester < Formula end test do - output = shell_output("#{bin}/theharvester -d brew.sh -l 1 -b all 2>&1") + output = shell_output("#{bin}/theharvester -d brew.sh -l 1 -b pgp 2>&1") assert_match "security@brew.sh", output end end