Initial import from SVN
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
=== HOMEBREW PACKAGE ===
|
||||
|
||||
NB: Work in progress
|
||||
|
||||
- SUBMIT FORMULA
|
||||
cp ndpi.rb /usr/local/Library/Formula/
|
||||
|
||||
- INSTALL FORMULA
|
||||
#check the formula
|
||||
brew audit ndpi
|
||||
brew install -vd ndpi
|
||||
@@ -0,0 +1,23 @@
|
||||
require "formula"
|
||||
|
||||
class Ndpi < Formula
|
||||
homepage "http://www.ntop.org/products/ndpi/"
|
||||
url "https://downloads.sourceforge.net/project/ntop/nDPI/libndpi-1.5.1.tar.gz"
|
||||
sha1 "0a6ed585545ab6611f3f0ac9efd9eb36bb5481dd"
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libtool" => :build
|
||||
depends_on "json-c"
|
||||
|
||||
def install
|
||||
system "./configure","--prefix=#{prefix}"
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/ndpiReader","-h"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user