2013-12-05 02:25:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Iperf3 < Formula
|
|
|
|
homepage 'https://github.com/esnet/iperf'
|
|
|
|
url 'https://github.com/esnet/iperf/archive/3.0.2.tar.gz'
|
|
|
|
sha1 '3dacb887d4ba1b90c9fbb3ec2ae69389d40c01c8'
|
|
|
|
head 'https://code.google.com/p/iperf/', :using => :hg
|
|
|
|
|
2014-03-26 17:10:53 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "4aa51bb8ab2eeac0f7152924a46bd702d723f094" => :mavericks
|
|
|
|
sha1 "0bec442d6c6d054ee9627c93516022930ea391c2" => :mountain_lion
|
|
|
|
sha1 "66ab71dd56b6f2f539b5ca31ba9a93643d9d647d" => :lion
|
|
|
|
end
|
|
|
|
|
2013-12-05 02:25:32 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "clean" # there are pre-compiled files in the tarball
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/iperf3", "--version"
|
|
|
|
end
|
|
|
|
end
|