aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ntopng.rb
blob: 7ce2ddf14ce2c6cfc25ed6a7742f210a54a74f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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