diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/iperf3.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/iperf3.rb b/Library/Formula/iperf3.rb new file mode 100644 index 000000000..3e32234e0 --- /dev/null +++ b/Library/Formula/iperf3.rb @@ -0,0 +1,21 @@ +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 + + 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 |
