2011-10-31 02:28:19 +00:00
|
|
|
class Bro < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Network security monitor"
|
2014-10-25 18:00:27 +00:00
|
|
|
homepage "https://www.bro.org"
|
2015-10-15 08:54:18 +00:00
|
|
|
url "https://www.bro.org/downloads/release/bro-2.4.1.tar.gz"
|
|
|
|
sha256 "d8b99673a5024630f6bae820c4f8c3ca9029f1167f9e5729c914c66e1fc7c8f6"
|
2014-10-25 18:00:27 +00:00
|
|
|
head "https://github.com/bro/bro.git"
|
|
|
|
|
2014-06-17 13:31:25 +00:00
|
|
|
bottle do
|
2015-10-15 13:23:57 +00:00
|
|
|
sha256 "76bdc073c60c45112a9991eb38e21135f65270ba743e0c276cb7b6a8d2777c37" => :el_capitan
|
|
|
|
sha256 "0f83cada57fe774994035b1123adc8ddfbe3284f27cca3d4edc297bc4d179bdd" => :yosemite
|
|
|
|
sha256 "76f36a6ee0f9312c4111dda7c7fcce7c19dba514aef55f4fd6f593e50a157f5c" => :mavericks
|
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 "openssl"
|
2015-08-26 00:29:13 +00:00
|
|
|
depends_on "geoip" => :recommended
|
2011-10-31 02:28:19 +00:00
|
|
|
|
2016-01-02 20:34:33 +00:00
|
|
|
conflicts_with "brotli", :because => "Both install a `bro` binary"
|
|
|
|
|
2011-10-31 02:28:19 +00:00
|
|
|
def install
|
2015-10-15 08:54:18 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-openssl=#{Formula["openssl"].opt_prefix}",
|
|
|
|
"--localstatedir=#{var}",
|
|
|
|
"--conf-files-dir=#{etc}"
|
2014-10-25 18:00:27 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/bro", "--version"
|
2011-10-31 02:28:19 +00:00
|
|
|
end
|
|
|
|
end
|