mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-05-10 08:36:22 +02:00
Compare commits
7 Commits
b35bc957a2
...
6067295140
Author | SHA1 | Date | |
---|---|---|---|
Pavel Odintsov | 6067295140 | ||
Pavel Odintsov | afab84d0c1 | ||
Pavel Odintsov | 110b1a0eee | ||
Pavel Odintsov | 99df70c2a7 | ||
Pavel Odintsov | 28bb373701 | ||
Pavel Odintsov | 90276b0026 | ||
Pavel Odintsov | 06d11c3c69 |
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue