homebrew-core/Formula/yaf.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

30 lines
1.1 KiB
Ruby

class Yaf < Formula
desc "Yet another flowmeter: processes packet data from pcap(3)"
homepage "https://tools.netsa.cert.org/yaf/"
url "https://tools.netsa.cert.org/releases/yaf-2.6.0.tar.gz"
sha256 "7562d0e81e398fe491b81cad0b96996d2ac21f649d28ecda7ca258480dab6bb8"
bottle do
sha1 "08cbd663f3673eef87f3c086ad149a289c24959b" => :yosemite
sha1 "3f44f3792eb169334cbc8bfacabf6883fdc79b83" => :mavericks
sha1 "75c573eef68f5e27bffcf04919974759ba73a471" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "libfixbuf"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
input = test_fixtures("test.pcap")
output = `#{bin}/yaf --in #{input} | #{bin}/yafscii`
expected = "2014-10-02 10:29:06.168 - 10:29:06.169 (0.001 sec) tcp 192.168.1.115:51613 => 192.168.1.118:80 71487608:98fc8ced S/APF:AS/APF (7/453 <-> 5/578) rtt 0 ms"
assert_equal expected, output.strip
end
end