1
0
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:
Olivier Cochard
2026-05-19 21:47:17 +02:00
parent c70717c9d1
commit 05556706d2
2 changed files with 26 additions and 0 deletions
+6
View File
@@ -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
)