2013-05-15 20:53:17 +00:00
|
|
|
class FlowTools < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Collect, send, process, and generate NetFlow data reports"
|
2015-05-17 10:29:40 +00:00
|
|
|
homepage "https://code.google.com/p/flow-tools/"
|
|
|
|
url "https://flow-tools.googlecode.com/files/flow-tools-0.68.5.1.tar.bz2"
|
|
|
|
sha256 "80bbd3791b59198f0d20184761d96ba500386b0a71ea613c214a50aa017a1f67"
|
2013-05-15 20:53:17 +00:00
|
|
|
|
2015-05-24 18:17:59 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "0d3814f50d6bc8d06c808176bc0b6f725f429b231a21eabe49fadf6729a7d27b" => :yosemite
|
|
|
|
sha256 "dc15779397a7f60c67b20c314b4513133c0883a5eafb3e972e744b8a70ca1060" => :mavericks
|
|
|
|
sha256 "9a101e543b0fc763624f15bf373e60908645dab3ba2360e477eae403cd578e0a" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-05-15 20:53:17 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# Generate test flow data with 1000 flows
|
2015-05-17 10:29:40 +00:00
|
|
|
data = shell_output("#{bin}/flow-gen")
|
2013-05-15 20:53:17 +00:00
|
|
|
# Test that the test flows work with some flow- programs
|
2015-05-17 10:29:40 +00:00
|
|
|
pipe_output("#{bin}/flow-cat", data, 0)
|
|
|
|
pipe_output("#{bin}/flow-print", data, 0)
|
|
|
|
pipe_output("#{bin}/flow-stat", data, 0)
|
2013-05-15 20:53:17 +00:00
|
|
|
end
|
|
|
|
end
|