homebrew-core/Formula/zeek.rb

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.2",
revision: "66c2a4e44c9bb34fa26a3c5ac8a6369be7b29d73"
license "BSD-3-Clause"
head "https://github.com/zeek/zeek.git"
bottle do
sha256 "10ba7c86b36c330f8c529b332916461d832592568f0c073a1dce8f82c2a5bf1f" => :catalina
sha256 "fd9acc03e879d5df15c24d9ed6b0a843eb227df7ace6dd979b9abd56d71289d3" => :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