homebrew-core/Formula/dnstop.rb

43 lines
2.2 KiB
Ruby

class Dnstop < Formula
desc "Console tool to analyze DNS traffic"
homepage "http://dns.measurement-factory.com/tools/dnstop/index.html"
url "http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20140915.tar.gz"
sha256 "b4b03d02005b16e98d923fa79957ea947e3aa6638bb267403102d12290d0c57a"
license "BSD-3-Clause"
livecheck do
url "http://dns.measurement-factory.com/tools/dnstop/src/"
regex(/href=.*?dnstop[._-]v?(\d+(?:\.\d+)*)\.t/i)
end
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "a172c0678ce76e45a73491379633aeb893dad579cbbf89047bf2c1c972332327"
sha256 cellar: :any_skip_relocation, arm64_monterey: "7e991cd5c68fcbefb7c45ac7b977b3f9e51a719cae0dbead9aa7172dbfebeb3f"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9fba6f2f539b25ef2e918c9600a3027a72188984cad8748f2edd55c59712c414"
sha256 cellar: :any_skip_relocation, ventura: "4411393ab2b699d8ecc96e791daf89c1fff67e7c10f2d48d19a8f7550da67ec7"
sha256 cellar: :any_skip_relocation, monterey: "717e890e2098e17066d717cdf2c38776838326b4d1f0dfeee6b4e55dbedd607f"
sha256 cellar: :any_skip_relocation, big_sur: "c07eca212e72ce354b9e29575efa61f607a9ba43dc07072247f925d331ce7763"
sha256 cellar: :any_skip_relocation, catalina: "61522feaa64c92d28044e88366555a6f816366671728d71e286960b83a176417"
sha256 cellar: :any_skip_relocation, mojave: "fc741283d3b21ab68de0972c733b38ac01c363a0588254c41ad19f5591f32bda"
sha256 cellar: :any_skip_relocation, high_sierra: "4d6b9a2f15e3165ccf63b67752cd4f0d21b128f64b5f22beb2c2b0657e082709"
sha256 cellar: :any_skip_relocation, sierra: "dc995c2857fdd5093ae753844ce5c45ed00bae59184528a184e0313b25882802"
sha256 cellar: :any_skip_relocation, el_capitan: "1d5b1ad056475ce9a27f40b48cbbf58421e4eb66fd134ac318413de2d025db66"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6d8b4de6f9441442ff6c59476101ebf5fbcf6073882c971556fa566afda211bd"
end
uses_from_macos "libpcap"
uses_from_macos "ncurses"
def install
system "./configure", "--prefix=#{prefix}"
system "make"
bin.install "dnstop"
man8.install "dnstop.8"
end
test do
system "#{bin}/dnstop", "-v"
end
end