homebrew-core/Formula/iperf3.rb
2016-11-01 11:22:19 +01:00

32 lines
1,016 B
Ruby

class Iperf3 < Formula
desc "Update of iperf: measures TCP, UDP, and SCTP bandwidth"
homepage "https://github.com/esnet/iperf"
url "https://github.com/esnet/iperf/archive/3.1.4.tar.gz"
sha256 "8d88aa8d1e197084a84994cc1caf2c3eff69e60ce4badc0addeb35d02ec57109"
bottle do
cellar :any
sha256 "bfbbbdb58bed35c90063db8ee3ec390261a7a24546fe1a82f44b0e07b7f5aaba" => :sierra
sha256 "f78cce8785510271a83c90905cd952c996ea8da966ad075cd532902084b23f3a" => :el_capitan
sha256 "98c9ff971ea4c2533db35ba9bcc2be05fd0f51bb874602cc9e5e79944a273172" => :yosemite
end
head do
url "https://github.com/esnet/iperf.git"
depends_on "libtool" => :build
depends_on "automake" => :build
depends_on "autoconf" => :build
end
def install
system "./bootstrap.sh" if build.head?
system "./configure", "--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