From f0897120d33fe2f033c4e5ae34c2b83b5f72dfaf Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 24 Jul 2024 23:41:29 -0400 Subject: [PATCH] ntopng: declare indirect deps with linkage Signed-off-by: Rui Chen --- Formula/n/ntopng.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Formula/n/ntopng.rb b/Formula/n/ntopng.rb index 6af0164dbe2a8..81d9c03aec74f 100644 --- a/Formula/n/ntopng.rb +++ b/Formula/n/ntopng.rb @@ -36,6 +36,7 @@ class Ntopng < Formula depends_on "libtool" => :build depends_on "lua" => :build depends_on "pkg-config" => :build + depends_on "json-c" depends_on "libmaxminddb" depends_on "libsodium" @@ -43,11 +44,21 @@ class Ntopng < Formula depends_on "openssl@3" depends_on "redis" depends_on "rrdtool" + depends_on "sqlite" depends_on "zeromq" + depends_on "zlib" uses_from_macos "curl" + uses_from_macos "expat" uses_from_macos "libpcap" - uses_from_macos "sqlite" + + on_macos do + depends_on "zstd" + end + + on_linux do + depends_on "libcap" + end fails_with gcc: "5"