homebrew-core/Formula/ntopng.rb

40 lines
1006 B
Ruby

require "formula"
class Ntopng < Formula
homepage "http://www.ntop.org/products/ntop/"
url "https://downloads.sourceforge.net/project/ntop/ntopng/ntopng-1.2.1.tgz"
sha1 "e90a8cc045fb4d65d57d029908a9b029d801490c"
bottle do
sha1 "9746b5fe9c4635a927ea494707ae7848b0183d2e" => :mavericks
sha1 "521a62da3a4d1168bf5212297b9aeb7b597b69a4" => :mountain_lion
sha1 "a7ff0f827998936719f6c4e04060f73939f7bc48" => :lion
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "libtool" => :build
depends_on "json-glib" => :build
depends_on "wget" => :build
depends_on "zeromq" => :build
depends_on "gnutls" => :build
depends_on "json-c"
depends_on "rrdtool"
depends_on "luajit"
depends_on "geoip"
depends_on "redis"
def install
system "./autogen.sh"
system "./configure","--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/ntopng", "-h"
end
end