aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/iperf3.rb
blob: 7aad7311e066a0f5992deb26adafbbaba54e7f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require "formula"

class Iperf3 < Formula
  homepage "https://github.com/esnet/iperf"
  url "https://github.com/esnet/iperf/archive/3.0.6.tar.gz"
  sha1 "b60f71cc64a0178a31be1188fd6e31622b70e015"
  head "https://code.google.com/p/iperf/", :using => :hg

  bottle do
    cellar :any
    sha1 "d221831fa53d4af1769e520547172d9c4fa9001f" => :mavericks
    sha1 "3c00b2fecdd5e91d3787b0cc93272ab0f2b082d3" => :mountain_lion
    sha1 "4404c405c492cb18eaa4d7c8f02b3710f80c441c" => :lion
  end

  def install
    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