mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
sysutils/osquery: Fix build on FreeBSD < 15
Reported by: pkg-fallout
This commit is contained in:
@@ -52,6 +52,12 @@ GH_TUPLE= ocochard:linenoise-ng:2c90f29:linenoiseng/libraries/cmake/source/linen
|
||||
|
||||
EXTRA_PATCHES= ${WRKDIR}/0c61e05a6-freebsd.patch:-p1
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OSVERSION} < 1500050
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-osquery_events_CMakeLists.txt
|
||||
.endif
|
||||
|
||||
CMAKE_OFF= OSQUERY_BUILD_TESTS \
|
||||
OSQUERY_BUILD_BPF \
|
||||
OSQUERY_BUILD_DPKG \
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
Drop freebsd/inotify.{cpp,h} on FreeBSD < 1500050 (no native sys/inotify.h).
|
||||
|
||||
--- osquery/events/CMakeLists.txt.orig
|
||||
+++ osquery/events/CMakeLists.txt
|
||||
@@ -59,7 +59,6 @@
|
||||
audit_flags.cpp
|
||||
file_events_flags.cpp
|
||||
freebsd/devd.cpp
|
||||
- freebsd/inotify.cpp
|
||||
freebsd/openbsm.cpp
|
||||
)
|
||||
|
||||
@@ -188,7 +187,6 @@
|
||||
elseif(DEFINED PLATFORM_FREEBSD)
|
||||
set(platform_public_header_files
|
||||
freebsd/devd.h
|
||||
- freebsd/inotify.h
|
||||
freebsd/openbsm.h
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user