yaf 2.6.0
Closes Homebrew/homebrew#35600. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
fce01ab858
commit
05c15482f7
1 changed files with 15 additions and 10 deletions
|
@ -1,18 +1,23 @@
|
|||
require 'formula'
|
||||
|
||||
class Yaf < Formula
|
||||
homepage 'http://tools.netsa.cert.org/yaf/'
|
||||
url 'http://tools.netsa.cert.org/releases/yaf-2.4.0.tar.gz'
|
||||
sha1 '0c5efb5543e61d0acd91b7e2b028d8f6d3497ae8'
|
||||
homepage "https://tools.netsa.cert.org/yaf/"
|
||||
url "https://tools.netsa.cert.org/releases/yaf-2.6.0.tar.gz"
|
||||
sha1 "ac1ac70a8d1ed8b8dbbfd5ec803880a74fa2894b"
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'glib'
|
||||
depends_on 'libfixbuf'
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "glib"
|
||||
depends_on "libfixbuf"
|
||||
|
||||
def install
|
||||
system './configure', "--disable-dependency-tracking",
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make"
|
||||
system "make install"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue