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
|
2016-01-03 01:01:55 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "a48cb079b41fe45aad9e4acf3f9d6ef774569cfa14b970a9e205c40882147848" => :el_capitan
|
|
|
|
sha256 "fb0a8b536d58745f837a3e5731e6c34c09dd4542ca33c523860c3c9aea6dea84" => :yosemite
|
|
|
|
sha256 "e0aab7ebf5af8aea92fadc1df19f2ad6d65a2a1a91f62ecd4a2c2146466b989c" => :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
|