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-06-21 19:32:44 +00:00
|
|
|
url "https://github.com/esnet/iperf/archive/3.0.5.tar.gz"
|
|
|
|
sha1 "4ebc5bf6456527cdf6d902f8cd810169bc00711b"
|
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-06-21 19:58:29 +00:00
|
|
|
sha1 "d74a919035e5ae4e205fa9a5bcb7d781691b1503" => :mavericks
|
|
|
|
sha1 "9eb1365ce719e41e3cd0eb705714e2205f815a3b" => :mountain_lion
|
|
|
|
sha1 "cf03918180e743e894ba5e24a5a35de8f91be863" => :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
|