class Zeek < Formula desc "Network security monitor" homepage "https://www.zeek.org" url "https://github.com/zeek/zeek.git", tag: "v3.2.1", revision: "dfec4065b57348b96116650d9dc3b5f6c6e093a0" license "BSD-3-Clause" head "https://github.com/zeek/zeek.git" bottle do sha256 "fc62c4d086653aea721efb4fdd343bac99b2f749b2e821abf1252fcee979cc30" => :catalina sha256 "ed9759bad2d01efe038ac72acbd301f3ea272b7c18eb4b2ebd442501abaabb0e" => :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