homebrew-core/Formula/darkstat.rb

30 lines
969 B
Ruby
Raw Normal View History

class Darkstat < Formula
desc "Network traffic analyzer"
homepage "https://unix4lyfe.org/darkstat/"
url "https://unix4lyfe.org/darkstat/darkstat-3.0.719.tar.bz2"
sha256 "aeaf909585f7f43dc032a75328fdb62114e58405b06a92a13c0d3653236dedd7"
2015-04-21 01:56:38 +00:00
bottle do
cellar :any
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
head do
url "https://www.unix4lyfe.org/git/darkstat", :using => :git
depends_on "automake" => :build
depends_on "autoconf" => :build
end
def install
system "autoreconf", "-iv" if build.head?
system "./configure", "--disable-debug", "--prefix=#{prefix}"
system "make", "install"
end
2013-03-25 18:34:46 +00:00
test do
system sbin/"darkstat", "--verbose", "-r", test_fixtures("test.pcap")
end
end