homebrew-core/Formula/ndpi.rb

31 lines
968 B
Ruby
Raw Normal View History

2014-08-13 18:31:30 +00:00
class Ndpi < Formula
desc "Deep Packet Inspection (DPI) library"
2014-08-13 18:31:30 +00:00
homepage "http://www.ntop.org/products/ndpi/"
url "https://downloads.sourceforge.net/project/ntop/nDPI/nDPI-1.7.tar.gz"
sha256 "714b745103a072462130b0e14cf31b2eb5270f580b7c839da5cf5ea75150262d"
2014-09-10 13:34:00 +00:00
2015-06-02 00:37:41 +00:00
bottle do
cellar :any
2015-08-18 10:22:38 +00:00
sha256 "34c0269039a0079820eeed862daa28158d9291f73f640a9415da60746d69a662" => :yosemite
sha256 "a2af4dc62c24313593b3a20e45ca9d2d49f8efc0ea5e52fd064001ea441b93e4" => :mavericks
sha256 "1bb200268a4d9df9bbe5d33bc773ee3bcf4b5d4fa00c76a040f16318438c284f" => :mountain_lion
2015-06-02 00:37:41 +00:00
end
2014-08-13 18:31:30 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "libtool" => :build
depends_on "json-c"
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
2014-08-13 18:31:30 +00:00
system "make"
system "make", "install"
end
test do
system "#{bin}/ndpiReader", "-i", test_fixtures("test.pcap")
2014-08-13 18:31:30 +00:00
end
end