blob: 294d4761c6eb64ca1ee3e010b3c3182abeb19034 (
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
26
27
28
29
30
31
32
33
34
 | class Iperf3 < Formula
  homepage "https://github.com/esnet/iperf"
  stable do
    url "https://github.com/esnet/iperf/archive/3.0.11.tar.gz"
    sha256 "c774b807ea4db20e07558c47951df186b6fb1dd0cdef4282c078853ad87cc712"
  end
  head do
    url "https://github.com/esnet/iperf.git"
    depends_on "libtool" => :build
    depends_on "automake" => :build
    depends_on "autoconf" => :build
  end
  bottle do
    cellar :any
    sha1 "ae7e7fedcd9eca4b6e6696d49178126918fae84e" => :yosemite
    sha1 "34430a2a0bd66ac4bb06fa2dbecabcfff95cf532" => :mavericks
    sha1 "cf2950226718253c8c647f416c0c1f2df6fddd11" => :mountain_lion
  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
 |