47 lines
1.5 KiB
Ruby
47 lines
1.5 KiB
Ruby
class Zeek < Formula
|
|
desc "Network security monitor"
|
|
homepage "https://www.zeek.org"
|
|
url "https://github.com/zeek/zeek.git",
|
|
tag: "v3.2.0",
|
|
revision: "8e79c8dcd14b185726c5f7be9d31bb8e93686d46"
|
|
license "BSD-3-Clause"
|
|
head "https://github.com/zeek/zeek.git"
|
|
|
|
bottle do
|
|
sha256 "56cab87a741d4c883f5f4fcb024c38012137e11e2c1ba32ec17cb99077f22b89" => :catalina
|
|
sha256 "8b10362d4d4f3641f5af1a0dc2839501d3c2302fc619de2af1af067e0225ee88" => :mojave
|
|
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
|