35 lines
1.3 KiB
Ruby
35 lines
1.3 KiB
Ruby
class Ncrack < Formula
|
|
desc "Network authentication cracking tool"
|
|
homepage "https://nmap.org/ncrack/"
|
|
url "https://github.com/nmap/ncrack/archive/0.7.tar.gz"
|
|
sha256 "f3f971cd677c4a0c0668cb369002c581d305050b3b0411e18dd3cb9cc270d14a"
|
|
license "GPL-2.0-only"
|
|
head "https://github.com/nmap/ncrack.git"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 arm64_big_sur: "b684949d21ace4bb1f67030b74e5daeb3db83601e4a2e4221e24fabcca0b489a"
|
|
sha256 big_sur: "025bbf5951382b56c8a6a16b558eed06e13eccc3885eff0080e4c32907176a08"
|
|
sha256 catalina: "4cde5b8ed210e4b5f2ef644507d4838b367012f3159f649ebe81a375fed66029"
|
|
sha256 mojave: "907bcfd20459589aa0e7ae766897d38613338e9c1f57244d2610bf8a1b3b1e59"
|
|
end
|
|
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
# Work around configure issues with Xcode 12 (at least in the opensshlib component)
|
|
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--with-openssl=#{Formula["openssl@1.1"].opt_prefix}",
|
|
"--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_f.to_s, shell_output(bin/"ncrack --version")
|
|
end
|
|
end
|