2012-08-09 15:33:10 +00:00
|
|
|
class Darkstat < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Network traffic analyzer"
|
2015-04-20 18:57:43 +00:00
|
|
|
homepage "https://unix4lyfe.org/darkstat/"
|
2015-08-17 18:18:21 +00:00
|
|
|
url "https://unix4lyfe.org/darkstat/darkstat-3.0.719.tar.bz2"
|
|
|
|
sha256 "aeaf909585f7f43dc032a75328fdb62114e58405b06a92a13c0d3653236dedd7"
|
2015-04-20 18:57:43 +00:00
|
|
|
|
2015-04-21 01:56:38 +00:00
|
|
|
bottle do
|
2016-02-23 21:56:19 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "8cfff973e95ff4c31248690df0ae28e05ddbef97f926ed4f075b919274c59116" => :el_capitan
|
2015-08-17 18:51:06 +00:00
|
|
|
sha256 "290629ecfb0a650104bd6560bb352af9b54e2d0c1e1e0de0d7113dab13167133" => :yosemite
|
|
|
|
sha256 "c613e70eb9f84aa7acaef6f1791495762537ab0fe12368ddec009a66fb91d3f8" => :mavericks
|
|
|
|
sha256 "fba985f30c240602c9b5ebccda87fcea7c52caba69c4c8cc5375e090a773ce19" => :mountain_lion
|
2015-04-21 01:56:38 +00:00
|
|
|
end
|
|
|
|
|
2015-08-17 18:18:21 +00:00
|
|
|
head do
|
|
|
|
url "https://www.unix4lyfe.org/git/darkstat", :using => :git
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
2015-04-20 18:57:43 +00:00
|
|
|
end
|
2012-08-09 15:33:10 +00:00
|
|
|
|
|
|
|
def install
|
2015-08-17 18:18:21 +00:00
|
|
|
system "autoreconf", "-iv" if build.head?
|
2012-08-09 15:33:10 +00:00
|
|
|
system "./configure", "--disable-debug", "--prefix=#{prefix}"
|
2015-04-20 18:57:43 +00:00
|
|
|
system "make", "install"
|
2012-08-09 15:33:10 +00:00
|
|
|
end
|
|
|
|
|
2013-03-25 18:34:46 +00:00
|
|
|
test do
|
2015-04-20 18:57:43 +00:00
|
|
|
system sbin/"darkstat", "--verbose", "-r", test_fixtures("test.pcap")
|
2012-08-09 15:33:10 +00:00
|
|
|
end
|
|
|
|
end
|