1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 09:12:14 +01:00

Sync Homebrew formula

This commit is contained in:
Pavel Odintsov 2023-07-11 18:05:57 +01:00
parent 94d75c3db4
commit 6cb765b3c3

@ -1,29 +1,31 @@
class Fastnetmon < Formula
desc "DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support"
homepage "https://github.com/pavel-odintsov/fastnetmon/"
# TODO: Check if we can use unversioned `grpc` at version bump
license "GPL-2.0-only"
head "https://github.com/pavel-odintsov/fastnetmon.git"
revision 3
bottle do
sha256 cellar: :any, arm64_ventura: "dec1a78e6dde2bbd9f86db7c71af6bc20204344a73309600dad02a19a9c04e27"
sha256 cellar: :any, arm64_monterey: "369bc03e7536620d462c81dbcd252ee59868d4fac3d1c9e0756ce51d9c5ddf28"
sha256 cellar: :any, arm64_big_sur: "f6e47615be89812ef189e10c90e775e3702d7f0b8392fa50e5e08f868e99de6c"
sha256 cellar: :any, ventura: "2a6d299ed92a78eae6f4cfa010ccd1d5c0f1a179f9036bae3d724e6ce60e1eb3"
sha256 cellar: :any, monterey: "4f1986994bd9c1c950cb3b04e41c6a94cd7f6ff7abe5db2bdf7751c0ec591aad"
sha256 cellar: :any, big_sur: "631635075f6ae2fcfdc9cccd5ad73bda5ed22616fe1f2d412bb0cd9410add200"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4eecbde2f55c9e3df9f834cd4c75d50768c46d2d18a28e69e5216da178a80267"
sha256 cellar: :any, arm64_ventura: "81c83f3712b5a056ed190b0639225066fcf08b4c84e219df309f43e71f24f734"
sha256 cellar: :any, arm64_monterey: "fe4f2d1805139c1e7c0d2b5b4431870d55972ebd0412ae05e9b8f5ee12208ccc"
sha256 cellar: :any, arm64_big_sur: "17800806bc4e52dbf11d661059495d5cfd7850ad1ad950eaed52b089cfcb3b84"
sha256 cellar: :any, ventura: "1a108e5de92055568e1fe092a779bec815f08da43345e4db6a574e38e49ecdc8"
sha256 cellar: :any, monterey: "393c75e0894d4804d5f8d08896e1022c6992a5d24679dc4aa6a5a45577e8246e"
sha256 cellar: :any, big_sur: "c085f7a2d3a8d6e91d697de4afdc5268694448a8d7b05642f1b13815cdadbeb0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f028e8ae77dec6ae789aa1ee6598cb38aa4cfa28f970f8287d6ed7eaab0c50c4"
end
depends_on "cmake" => :build
depends_on "abseil"
depends_on "boost"
depends_on "capnp"
depends_on "grpc"
depends_on "grpc@1.54"
depends_on "hiredis"
depends_on "log4cpp"
depends_on macos: :big_sur # We need C++ 20 available for build which is available from Big Sur
depends_on "mongo-c-driver"
depends_on "openssl@1.1"
depends_on "openssl@3"
uses_from_macos "ncurses"
on_linux do
@ -51,6 +53,7 @@ class Fastnetmon < Formula
"--configuration_file",
etc/"fastnetmon.conf",
"--log_to_console",
"--disable_pid_logic",
]
keep_alive false
working_dir HOMEBREW_PREFIX
@ -61,15 +64,16 @@ class Fastnetmon < Formula
test do
cp etc/"fastnetmon.conf", testpath
inreplace testpath/"fastnetmon.conf", "/tmp/fastnetmon.dat", testpath/"fastnetmon.dat"
inreplace testpath/"fastnetmon.conf", "/tmp/fastnetmon.dat", (testpath/"fastnetmon.dat").to_s
inreplace testpath/"fastnetmon.conf", "/tmp/fastnetmon_ipv6.dat", testpath/"fastnetmon_ipv6.dat"
inreplace testpath/"fastnetmon.conf", "/tmp/fastnetmon_ipv6.dat", (testpath/"fastnetmon_ipv6.dat").to_s
fastnetmon_pid = fork do
exec opt_sbin/"fastnetmon",
"--configuration_file",
testpath/"fastnetmon.conf",
"--log_to_console"
"--log_to_console",
"--disable_pid_logic"
end
sleep 15