blob: 63e5265a83b700c9471d77318dc7f1f7fe63ba81 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 | class Silk < Formula
  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
 |