homebrew-core/Formula/dnsprobe.rb

28 lines
958 B
Ruby

class Dnsprobe < Formula
desc "DNS query and resolution tool"
homepage "https://github.com/projectdiscovery/dnsprobe"
url "https://github.com/projectdiscovery/dnsprobe/archive/v1.0.3.tar.gz"
sha256 "ab57f348177594018cc5b5b5e808710c88e597888c6d504cb10554d60627eae1"
license "MIT"
head "https://github.com/projectdiscovery/dnsprobe.git"
bottle do
cellar :any_skip_relocation
sha256 "e2980ba58e116e7c9029c9255451dd97b65da09a885373afe86c9e860d493650" => :catalina
sha256 "3cf8604d9869f22c722dfa8f0742f12124ba84a160579f0e7964ff7e697631f0" => :mojave
sha256 "f6c2b6edb0f8c482488b325400f1d712687a369c8b8fd7fb9e0d0cba1def2273" => :high_sierra
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args
end
test do
(testpath/"domains.txt").write "docs.brew.sh"
assert_match "docs.brew.sh homebrew.github.io.",
shell_output("#{bin}/dnsprobe -l domains.txt -r CNAME")
end
end