aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sngrep.rb
blob: 11fc5de2c3ff7379dd292e051c61dc6856a8f9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Sngrep < Formula
  homepage "https://github.com/irontec/sngrep"
  url "https://github.com/irontec/sngrep/archive/v0.2.2.tar.gz"
  sha1 "6d492ba418eafec563ff756dd6d612722c535676"

  bottle do
    cellar :any
    sha1 "2bc6823456c0c27280445367723632b82ae05c34" => :yosemite
    sha1 "f2ca4ac588eb6227cf038c7c9153cf37bd57e91a" => :mavericks
    sha1 "6d7830d3849f9428ce192dece2abe4dc4bc99784" => :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