blob: 00b04dcd2cc1a67ec977cca24cda179d245d690e (
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
  | 
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
  bottle do
    cellar :any
    sha1 "4aa51bb8ab2eeac0f7152924a46bd702d723f094" => :mavericks
    sha1 "0bec442d6c6d054ee9627c93516022930ea391c2" => :mountain_lion
    sha1 "66ab71dd56b6f2f539b5ca31ba9a93643d9d647d" => :lion
  end
  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
  |