1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-10 08:36:22 +02:00

Compare commits

...

7 Commits

Author SHA1 Message Date
Pavel Odintsov 6067295140 We merged this fix 2024-02-16 15:17:47 +00:00
Pavel Odintsov afab84d0c1 Added subfolder for formula folder on MacOS 2024-02-16 15:09:28 +00:00
Pavel Odintsov 110b1a0eee One more step to fix MacOS 2024-02-16 14:58:52 +00:00
Pavel Odintsov 99df70c2a7 Additional checks to debug macOS build issues 2024-02-16 14:54:12 +00:00
Pavel Odintsov 28bb373701 Run env first 2024-02-16 14:41:23 +00:00
Pavel Odintsov 90276b0026 Added env checking 2024-02-16 14:40:44 +00:00
Pavel Odintsov 06d11c3c69 Removed outdated arguments for Homebrew builds 2024-02-16 14:25:32 +00:00
2 changed files with 3 additions and 12 deletions

View File

@ -68,9 +68,10 @@ jobs:
# https://github.com/Homebrew/discussions/discussions/4136
HOMEBREW_NO_INSTALL_FROM_API: 1
steps:
- run: env
- checkout
- run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- run: cp src/packaging/homebrew/fastnetmon.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fastnetmon.rb
- run: cp src/packaging/homebrew/fastnetmon.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/f/fastnetmon.rb
- run: brew install --build-from-source --HEAD --verbose --debug fastnetmon
build_debian_upstream_package:
machine:

View File

@ -36,17 +36,8 @@ class Fastnetmon < Formula
fails_with gcc: "5"
# Fix build with newer `protobuf` using open PR.
# PR ref: https://github.com/pavel-odintsov/fastnetmon/pull/997
patch do
url "https://github.com/pavel-odintsov/fastnetmon/commit/fad8757b8986226024d549a6dfb40abbab01643e.patch?full_index=1"
sha256 "2da8dbdf9dc63df9f17067aef20d198123ce1338559d394f29461761e6b85f85"
end
def install
system "cmake", "-S", "src", "-B", "build",
"-DENABLE_CUSTOM_BOOST_BUILD=FALSE", # need to be removed in upstream as we do not need it
"-DDO_NOT_USE_SYSTEM_LIBRARIES_FOR_BUILD=FALSE", # need to be removed in upstream as we do not need it
"-DLINK_WITH_ABSL=TRUE",
"-DSET_ABSOLUTE_INSTALL_PATH=OFF",
*std_cmake_args
@ -59,8 +50,7 @@ class Fastnetmon < Formula
opt_sbin/"fastnetmon",
"--configuration_file",
etc/"fastnetmon.conf",
"--log_to_console",
"--disable_pid_logic", # need to be removed in upstream as we do not need it
"--log_to_console"
]
keep_alive false
working_dir HOMEBREW_PREFIX