homebrew-core/Formula/sngrep.rb
2015-11-19 17:03:53 +01:00

31 lines
1.1 KiB
Ruby

class Sngrep < Formula
desc "Command-line tool for displaying SIP calls message flows"
homepage "https://github.com/irontec/sngrep"
url "https://github.com/irontec/sngrep/archive/v0.2.2.tar.gz"
sha256 "06e3478dfc1d85ba54dd3aabbfb61690ce85fde8cb8153f5ed871f4f5f31fb8f"
bottle do
cellar :any
sha256 "23b07b96e2aba627f3929c6d92ff9b1390e1a4fda71b56841d329c955b6d8407" => :yosemite
sha256 "73b228cd5e6cf2d8d2114375d4399b0b6cc847d1c07e00a146706c99e4cc73bc" => :mavericks
sha256 "d1527802672ba74c6aa5872fb6a9077b6b6f56f08f512f2de1678c317e0d39a3" => :mountain_lion
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "openssl"
def install
system "./bootstrap.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--with-openssl=#{Formula["openssl"].opt_prefix}"
system "make", "install"
end
test do
pipe_output "#{bin}/sngrep -I #{test_fixtures("test.pcap")}", "Q"
end
end