aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ngrep.rb
blob: 0f3d4b48c52f67aa968583032880fe6ac4e15c73 (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
require 'formula'

class Ngrep < Formula
  homepage 'http://ngrep.sourceforge.net/'
  url 'https://downloads.sourceforge.net/project/ngrep/ngrep/1.45/ngrep-1.45.tar.bz2'
  sha1 'f26090a6ac607db66df99c6fa9aef74968f3330f'

  bottle do
    cellar :any
    sha1 "4954b0c218b60337906b83e39fed7e80252e1890" => :mavericks
    sha1 "3fa3364523d8027c7222e10f66d6509b6d05bf29" => :mountain_lion
    sha1 "83a26db0ace21d12c72bb1fbb3a8435c726ff9b7" => :lion
  end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--enable-ipv6",
                          "--prefix=#{prefix}",
                          # this line required to make configure succeed
                          "--with-pcap-includes=/usr/include",
                          # this line required to avoid segfaults
                          # see https://github.com/jpr5/ngrep/commit/e29fc29
                          # https://github.com/Homebrew/homebrew/issues/27171
                          "--disable-pcap-restart"
    system "make install"
  end
end