40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require "formula"
|
|
|
|
class Ntopng < Formula
|
|
desc "Next generation version of the original ntop"
|
|
homepage "http://www.ntop.org/products/ntop/"
|
|
url "https://downloads.sourceforge.net/project/ntop/ntopng/ntopng-2.0.tar.gz"
|
|
sha1 "ef8ec9a31637445ab3797930d27b448071239348"
|
|
|
|
bottle do
|
|
sha256 "c3a9c8be354c9fd3cbed7f84a6b9585d2b2d9bd1111a44e68c37694ea85707ba" => :yosemite
|
|
sha256 "9fbf8cad7c28f36c59bb1db44464d2bece35566721b3f4c54c91deb473f76641" => :mavericks
|
|
sha256 "355c68400b80698448e8197316a015cb88563600cb8a619df20d0bef2e79b0ca" => :mountain_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
|