homebrew-core/Formula/sflowtool.rb
2017-09-21 08:36:41 +02:00

32 lines
1.2 KiB
Ruby

class Sflowtool < Formula
desc "Utilities and scripts for analyzing sFlow data"
homepage "http://www.inmon.com/technology/sflowTools.php"
url "https://github.com/sflow/sflowtool/releases/download/v3.41/sflowtool-3.41.tar.gz"
sha256 "0e807f182db5ca5b37d0fb55b77e970b1d51fee0cd8cb845646211befb35ca24"
bottle do
cellar :any_skip_relocation
sha256 "b797a335bf9b9910fd4da5a8d54c5dca233527cbc9cf6f72e9c1205a0bef5a57" => :high_sierra
sha256 "359f80ea054dbb35c8878ac61aa0f18478e03e8e8c9a2a08d8f4fe8b86257469" => :sierra
sha256 "683d0468235a5d78035c4fc4b4db19d503d4042adec9c38fa1b7e9c1233354e8" => :el_capitan
sha256 "8957c4da2c6a3f9f17bd8a58b5472db7dcb4f4402467b3fba4f8beda76e4eff9" => :yosemite
end
resource "scripts" do
url "http://www.inmon.com/bin/sflowutils.tar.gz"
sha256 "45f6a0f96bdb6a1780694b9a4ef9bbd2fd719b9f7f3355c6af1427631b311d56"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "check"
system "make", "install"
(prefix/"contrib").install resource("scripts")
end
test do
assert_match version.to_s, shell_output("#{bin}/sflowtool -h 2>&1")
end
end