48 lines
1.6 KiB
Ruby
48 lines
1.6 KiB
Ruby
class Zeek < Formula
|
|
desc "Network security monitor"
|
|
homepage "https://www.zeek.org"
|
|
url "https://github.com/zeek/zeek.git",
|
|
tag: "v3.2.4",
|
|
revision: "66d54d950a5f39c7b8a9d87bc2b0ac9c06b6804a"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/zeek/zeek.git"
|
|
|
|
bottle do
|
|
sha256 big_sur: "bbd8dcd28f12d4cc093650f74f8d750ec43c9ad040b200caa6ff7547d7243bc2"
|
|
sha256 catalina: "fa36301750876a953f87ea749b8b03b5599cb7bf4be6ece708ab9c22ee774d17"
|
|
sha256 mojave: "94afcabc7e6360549d201fa5f27d666950b8f8e15e86dcf0083b3d3ebc44c7c9"
|
|
end
|
|
|
|
depends_on "bison" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "swig" => :build
|
|
depends_on "caf"
|
|
depends_on "geoip"
|
|
depends_on macos: :mojave
|
|
depends_on "openssl@1.1"
|
|
|
|
uses_from_macos "flex"
|
|
uses_from_macos "libpcap"
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args,
|
|
"-DDISABLE_PYTHON_BINDINGS=on",
|
|
"-DBROKER_DISABLE_TESTS=on",
|
|
"-DBUILD_SHARED_LIBS=on",
|
|
"-DINSTALL_AUX_TOOLS=on",
|
|
"-DINSTALL_ZEEKCTL=on",
|
|
"-DCAF_ROOT_DIR=#{Formula["caf"].opt_prefix}",
|
|
"-DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix}",
|
|
"-DZEEK_ETC_INSTALL_DIR=#{etc}",
|
|
"-DZEEK_LOCAL_STATE_DIR=#{var}"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match "version #{version}", shell_output("#{bin}/zeek --version")
|
|
assert_match "ARP Parsing", shell_output("#{bin}/zeek --print-plugins")
|
|
end
|
|
end
|