60 lines
1.6 KiB
Ruby
60 lines
1.6 KiB
Ruby
class Ntopng < Formula
|
|
desc "Next generation version of the original ntop"
|
|
homepage "https://www.ntop.org/products/traffic-analysis/ntop/"
|
|
|
|
stable do
|
|
url "https://github.com/ntop/ntopng/archive/3.8.1.tar.gz"
|
|
sha256 "1dbd6600d3f86c0553f38a98439837ef6cc39bf0cec2511fe755ab6939651378"
|
|
|
|
resource "nDPI" do
|
|
url "https://github.com/ntop/nDPI/archive/3.0.tar.gz"
|
|
sha256 "69fb8003f00e9b9be3d06925398e15a83ac517cd155b6768f5f0e9342471c164"
|
|
end
|
|
end
|
|
|
|
bottle do
|
|
sha256 "8873e29f3d1884c8ef73a4908a942c66b5f12eb4587843742831fd41cb45d33b" => :catalina
|
|
sha256 "f046d1443aa95c5cd34dc6666560211bea5456b7adeba71559997baa4d809822" => :mojave
|
|
sha256 "b70730c924903d018a4c870c4813d36c6bac0cad0e5f439b6c8aaf4202083cf1" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/ntop/ntopng.git", :branch => "dev"
|
|
|
|
resource "nDPI" do
|
|
url "https://github.com/ntop/nDPI.git", :branch => "dev"
|
|
end
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "gnutls" => :build
|
|
depends_on "json-glib" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "zeromq" => :build
|
|
depends_on "geoip"
|
|
depends_on "json-c"
|
|
depends_on "libmaxminddb"
|
|
depends_on "lua"
|
|
depends_on "mysql-client"
|
|
depends_on "redis"
|
|
depends_on "rrdtool"
|
|
|
|
def install
|
|
resource("nDPI").stage do
|
|
system "./autogen.sh"
|
|
system "make"
|
|
(buildpath/"nDPI").install Dir["*"]
|
|
end
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/ntopng", "-V"
|
|
end
|
|
end
|