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"
|
2016-11-18 10:31:21 +00:00
|
|
|
url "https://www.bro.org/downloads/bro-2.5.tar.gz"
|
|
|
|
sha256 "1502a290d3663fa67a44ff6c1c8e8e9434b8ae5e76be5c2a02b06a0e391dc080"
|
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
|
2016-11-18 10:48:01 +00:00
|
|
|
sha256 "a6b66a970ca73b318aa935bf20a3e6e1dcaf68d23968e51dea8fc560ea010731" => :sierra
|
|
|
|
sha256 "6612eae519dab37befbd544b11d95e39bdbf69bbb0a2fb2b056448405b438d8c" => :el_capitan
|
|
|
|
sha256 "4d0e48df72688a2b1e21808da0a51f6d309e62b7119e9a5f69cabf399fa04b1e" => :yosemite
|
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-09-24 15:45:48 +00:00
|
|
|
conflicts_with "brotli", :because => "Both install a `bro` binary"
|
2016-01-02 20:34:33 +00:00
|
|
|
|
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
|