aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bwctl.rb
blob: 0bc0cacb911c8b435040f33a6d6013ee083d05cc (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
require "formula"

class Bwctl < Formula
  homepage "http://software.internet2.edu/bwctl/"
  url "http://software.internet2.edu/sources/bwctl/bwctl-1.5.2-10.tar.gz"
  sha1 "5dcc7a1d671ac8e061f859a430d56ae2551f507e"

  bottle do
    cellar :any
    sha1 "b44fbe6a0a4cb82f9d5f9af6062006bbe22d163c" => :yosemite
    sha1 "318f7c3022df966510467489102ea2f3fa6ea728" => :mavericks
    sha1 "d18b048baeb365d22717b2b831c164eb1c8ba125" => :mountain_lion
  end

  depends_on "i2util"
  depends_on "iperf3" => :optional
  depends_on "thrulay" => :optional

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make", "install"
  end

  test do
    system "#{bin}/bwctl", "-V"
  end
end