2012-06-03 07:59:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sflowtool < Formula
|
|
|
|
homepage 'http://www.inmon.com/technology/sflowTools.php'
|
|
|
|
url 'http://www.inmon.com/bin/sflowtool-3.27.tar.gz'
|
|
|
|
sha1 '5205ef2df9cc0b1253765a27ea200446c4525642'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make check"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-26 15:57:06 +00:00
|
|
|
test do
|
|
|
|
require 'open3'
|
|
|
|
Open3.popen3("#{bin}/sflowtool", "-h") do |_, _, stderr|
|
|
|
|
/sflowtool version: #{Regexp.escape(version)}/ === stderr.read
|
|
|
|
end
|
2012-06-03 07:59:34 +00:00
|
|
|
end
|
|
|
|
end
|