2014-05-19 02:16:30 +00:00
|
|
|
require "formula"
|
2013-12-05 02:25:32 +00:00
|
|
|
|
|
|
|
class Iperf3 < Formula
|
2014-05-19 02:16:30 +00:00
|
|
|
homepage "https://github.com/esnet/iperf"
|
2014-09-23 14:22:16 +00:00
|
|
|
url "https://github.com/esnet/iperf/archive/3.0.7.tar.gz"
|
|
|
|
sha1 "267e020707c983b9649bb6cb76e3c1e7956ebfd4"
|
2014-05-19 02:16:30 +00:00
|
|
|
head "https://code.google.com/p/iperf/", :using => :hg
|
2013-12-05 02:25:32 +00:00
|
|
|
|
2014-03-26 17:10:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-09-23 14:32:25 +00:00
|
|
|
sha1 "dbd0890d355e528d53a52c38024a6c8861eeecc2" => :mavericks
|
|
|
|
sha1 "ec393d66a48e9b0a6707ca856779866d98e5ee00" => :mountain_lion
|
|
|
|
sha1 "e3c88cf2a3d8345f5755bc5a7ebaca5c48c0f712" => :lion
|
2014-03-26 17:10:53 +00:00
|
|
|
end
|
|
|
|
|
2013-12-05 02:25:32 +00:00
|
|
|
def install
|
2014-05-31 23:12:45 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2013-12-05 02:25:32 +00:00
|
|
|
system "make", "clean" # there are pre-compiled files in the tarball
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/iperf3", "--version"
|
|
|
|
end
|
|
|
|
end
|