2013-12-05 02:25:32 +00:00
|
|
|
class Iperf3 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Update of iperf: measures TCP, UDP, and SCTP bandwidth"
|
2014-05-19 02:16:30 +00:00
|
|
|
homepage "https://github.com/esnet/iperf"
|
2014-10-17 04:45:34 +00:00
|
|
|
|
|
|
|
stable do
|
2015-01-11 17:43:35 +00:00
|
|
|
url "https://github.com/esnet/iperf/archive/3.0.11.tar.gz"
|
|
|
|
sha256 "c774b807ea4db20e07558c47951df186b6fb1dd0cdef4282c078853ad87cc712"
|
2014-10-17 04:45:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
head do
|
|
|
|
url "https://github.com/esnet/iperf.git"
|
|
|
|
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
2013-12-05 02:25:32 +00:00
|
|
|
|
2014-03-26 17:10:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-23 12:10:38 +00:00
|
|
|
sha256 "451060a5b7811824a29b1814dfb33fdcf89836cc277f9eff675510d6fd9bc458" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "023bc1d684749db3cc8a2584d1c92c15c691b5afed13eb4ae94c98c25cefe6a1" => :yosemite
|
|
|
|
sha256 "8a461d45d6e5a9bca5778f174cd48445c3bf5659ceb017e6bc82ba0fb289a15c" => :mavericks
|
|
|
|
sha256 "391b1e77cf0805e7fab56c14a6fa5e8aa832ad43da77f320e5150c4b69547f5c" => :mountain_lion
|
2014-03-26 17:10:53 +00:00
|
|
|
end
|
|
|
|
|
2013-12-05 02:25:32 +00:00
|
|
|
def install
|
2014-10-17 04:45:34 +00:00
|
|
|
system "./bootstrap.sh" if build.head?
|
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
|