homebrew-core/Formula/silk.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +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"
sha256 "935d089479f0b51d6408a6afc497ab51a69751cf2b473a652ecb3b16465e0f5a"
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