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/"
|
|
|
|
url "https://unix4lyfe.org/darkstat/darkstat-3.0.718.tar.bz2"
|
|
|
|
sha256 "682f3e53f4e89ea6ad08236b4225a5e0859428299765d8d995374cd7fa22adff"
|
|
|
|
|
2015-04-21 01:56:38 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "149200f26467aa269ddea52f85a59af1439a73f923f7282ec2b5e7185116bfe3" => :yosemite
|
|
|
|
sha256 "d82fe76abca04e5928ea0923e8a4927262091ed40f86cf0f2822cb7ac72ced0d" => :mavericks
|
|
|
|
sha256 "a1532b5219ce54e9a6609f3b717fa83b23de163d033553d7d784573143385138" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-20 18:57:43 +00:00
|
|
|
devel do
|
|
|
|
url "https://unix4lyfe.org/darkstat/darkstat-3.0.719rc1.tar.bz2"
|
|
|
|
sha256 "827e91aa9261d3f6783cf3f8affa80590800cc5740dcac5f42c88e2bc781390b"
|
|
|
|
end
|
2012-08-09 15:33:10 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
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
|