2009-12-01 01:52:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ngrep < Formula
|
2009-12-01 01:52:49 +00:00
|
|
|
homepage 'http://ngrep.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/ngrep/ngrep/1.45/ngrep-1.45.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'f26090a6ac607db66df99c6fa9aef74968f3330f'
|
2009-12-01 01:52:49 +00:00
|
|
|
|
2014-03-11 22:42:58 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "4954b0c218b60337906b83e39fed7e80252e1890" => :mavericks
|
|
|
|
sha1 "3fa3364523d8027c7222e10f66d6509b6d05bf29" => :mountain_lion
|
|
|
|
sha1 "83a26db0ace21d12c72bb1fbb3a8435c726ff9b7" => :lion
|
|
|
|
end
|
|
|
|
|
2009-12-01 01:52:49 +00:00
|
|
|
def install
|
2013-01-29 03:49:58 +00:00
|
|
|
system "./configure", "--disable-debug",
|
2009-12-01 01:52:49 +00:00
|
|
|
"--disable-dependency-tracking",
|
2014-03-11 22:32:06 +00:00
|
|
|
"--enable-ipv6",
|
2013-01-29 03:49:58 +00:00
|
|
|
"--prefix=#{prefix}",
|
2009-12-01 01:52:49 +00:00
|
|
|
# this line required to make configure succeed
|
|
|
|
"--with-pcap-includes=/usr/include"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|