2014-10-25 18:00:27 +00:00
|
|
|
require "formula"
|
2011-10-31 02:28:19 +00:00
|
|
|
|
|
|
|
class Bro < Formula
|
2014-10-25 18:00:27 +00:00
|
|
|
homepage "https://www.bro.org"
|
|
|
|
head "https://github.com/bro/bro.git"
|
|
|
|
|
|
|
|
stable do
|
2015-01-26 17:53:31 +00:00
|
|
|
url "https://www.bro.org/downloads/release/bro-2.3.2.tar.gz"
|
|
|
|
sha256 "2fe5fbda0a86b5a594116d567fd9a4c2458d30f1c6670ba8e1fac0bc8848c69b"
|
2014-10-25 18:00:27 +00:00
|
|
|
|
|
|
|
end
|
2011-10-31 02:28:19 +00:00
|
|
|
|
2014-06-17 13:31:25 +00:00
|
|
|
bottle do
|
2015-01-26 18:11:09 +00:00
|
|
|
sha1 "2aa244b83b9aeac9a63624defabc59b9c9f3ce48" => :yosemite
|
|
|
|
sha1 "00140842870f97f164de968471e366882774d84e" => :mavericks
|
|
|
|
sha1 "2710acd445167b1fece844f15367db3ce55036bb" => :mountain_lion
|
2014-06-17 13:31:25 +00:00
|
|
|
end
|
|
|
|
|
2014-10-25 18:00:27 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "swig" => :build
|
|
|
|
depends_on "geoip" => :recommended
|
|
|
|
depends_on "openssl"
|
2011-10-31 02:28:19 +00:00
|
|
|
|
|
|
|
def install
|
2014-10-25 18:00:27 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--with-openssl=#{Formula["openssl"].opt_prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/bro", "--version"
|
2011-10-31 02:28:19 +00:00
|
|
|
end
|
|
|
|
end
|