blob: 4f0a12f4edae0b39d8ab79b73a987a5aeb78c52c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class FlowTools < Formula
homepage 'https://code.google.com/p/flow-tools/'
url 'https://flow-tools.googlecode.com/files/flow-tools-0.68.5.1.tar.bz2'
sha1 '4a843aada631650e3777a9b1eeb4ec46562cf0d0'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
# Generate test flow data with 1000 flows
system "#{bin}/flow-gen > test.flow"
# Test that the test flows work with some flow- programs
system "#{bin}/flow-cat < test.flow"
system "#{bin}/flow-header < test.flow"
system "#{bin}/flow-print < test.flow"
system "#{bin}/flow-stat < test.flow"
end
end
|