2014-10-16 20:20:44 +00:00
|
|
|
require "formula"
|
2010-09-17 06:50:32 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hydra < Formula
|
2014-10-16 20:20:44 +00:00
|
|
|
homepage "https://www.thc.org/thc-hydra/"
|
2014-12-09 04:09:39 +00:00
|
|
|
url "https://www.thc.org/releases/hydra-8.1.tar.gz"
|
|
|
|
sha256 "e4bc2fd11f97a8d985a38a31785c86d38cc60383e47a8f4a5c436351e5135f19"
|
2014-10-16 20:20:44 +00:00
|
|
|
|
2014-12-10 21:04:34 +00:00
|
|
|
head "https://github.com/vanhauser-thc/thc-hydra.git"
|
2010-09-17 06:50:32 +00:00
|
|
|
|
2014-07-22 15:29:46 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-12-09 04:38:20 +00:00
|
|
|
sha1 "1e4448de82ef48e4dd8290b0ebec5fc84690437e" => :yosemite
|
|
|
|
sha1 "df94e14ed8bf4553590545da8a9ac1cdcb72fd8d" => :mavericks
|
|
|
|
sha1 "16c8738d0cdf625c6144c2c2939d3922e2f3b697" => :mountain_lion
|
2014-07-22 15:29:46 +00:00
|
|
|
end
|
|
|
|
|
2014-10-16 20:20:44 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on :mysql
|
|
|
|
depends_on "openssl"
|
2014-12-10 21:04:34 +00:00
|
|
|
depends_on "subversion" => :optional
|
2014-10-31 01:16:38 +00:00
|
|
|
depends_on "libidn" => :optional
|
|
|
|
depends_on "libssh" => :optional
|
|
|
|
depends_on "pcre" => :optional
|
|
|
|
depends_on "gtk+" => :optional
|
2014-10-12 01:28:40 +00:00
|
|
|
|
2010-09-17 06:50:32 +00:00
|
|
|
def install
|
2014-10-31 01:16:38 +00:00
|
|
|
# Having our gcc in the PATH first can cause issues. Monitor this.
|
|
|
|
# https://github.com/vanhauser-thc/thc-hydra/issues/22
|
2011-06-16 18:12:45 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2010-09-17 06:50:32 +00:00
|
|
|
bin.mkpath
|
2014-10-16 20:20:44 +00:00
|
|
|
system "make", "all", "install"
|
2012-08-30 04:50:42 +00:00
|
|
|
share.install prefix/"man" # Put man pages in correct place
|
2010-09-17 06:50:32 +00:00
|
|
|
end
|
|
|
|
end
|