ntopng: fix HEAD

Closes Homebrew/homebrew#43383.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Drew Sh 2015-08-29 11:31:26 -07:00 committed by Alex Dunn
parent e43b70b5e8
commit 2ea72a2c86

View file

@ -3,7 +3,6 @@ class Ntopng < Formula
homepage "http://www.ntop.org/products/ntop/"
url "https://downloads.sourceforge.net/project/ntop/ntopng/ntopng-2.0.tar.gz"
sha256 "3cbfd6de1bc44d65f7c7f0de282d122d11f493f1261ba137c3b5b202e08e0251"
head "https://github.com/ntop/ntopng.git"
bottle do
sha256 "c3a9c8be354c9fd3cbed7f84a6b9585d2b2d9bd1111a44e68c37694ea85707ba" => :yosemite
@ -11,6 +10,14 @@ class Ntopng < Formula
sha256 "355c68400b80698448e8197316a015cb88563600cb8a619df20d0bef2e79b0ca" => :mountain_lion
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 "pkg-config" => :build
@ -27,6 +34,13 @@ class Ntopng < Formula
depends_on "redis"
def install
if build.head?
resource("nDPI").stage do
system "./autogen.sh"
system "make"
(buildpath/"nDPI").install Dir["*"]
end
end
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make"