homebrew-core/Formula/silk.rb
2015-06-05 14:47:57 +01:00

35 lines
1.1 KiB
Ruby

class Silk < Formula
desc "Collection of traffic analysis tools"
homepage "https://tools.netsa.cert.org/silk/"
url "https://tools.netsa.cert.org/releases/silk-3.10.0.tar.gz"
sha1 "ba139c0685456208cb51b74be627894558cf0126"
bottle do
sha1 "ce6ca0370886314428887737416c5df315db0148" => :yosemite
sha1 "e2edff04e899095205c595912cb41c640e9b3071" => :mavericks
sha1 "5bc85db293f56e772732625744a3636c9f206b72" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "libfixbuf"
depends_on "yaf"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-ipv6",
"--enable-data-rootdir=#{var}/silk"
system "make"
system "make", "install"
(var+"silk").mkpath
end
test do
input = test_fixtures("test.pcap")
output = shell_output("yaf --in #{input} | #{bin}/rwipfix2silk | #{bin}/rwcount --no-titles --no-column")
assert_equal "2014/10/02T10:29:00|2.00|1031.00|12.00|", output.strip
end
end