Page MenuHomeFreeBSD

D57059.diff
No OneTemporary

D57059.diff

diff --git a/sysutils/osquery/Makefile b/sysutils/osquery/Makefile
--- a/sysutils/osquery/Makefile
+++ b/sysutils/osquery/Makefile
@@ -1,5 +1,6 @@
PORTNAME= osquery
DISTVERSION= 5.23.0
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES+= https://github.com/ocochard/osquery/commit/:patches
DISTFILES+= 0c61e05a6.patch:patches
@@ -26,47 +27,53 @@
ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= osquery upstream only tests on x86_64 and aarch64
-BUILD_DEPENDS= bash:shells/bash \
+BUILD_DEPENDS= ${LOCALBASE}/include/gtest/gtest_prod.h:devel/googletest \
${LOCALBASE}/include/rapidjson/document.h:devel/rapidjson \
- ${LOCALBASE}/include/gtest/gtest_prod.h:devel/googletest
+ bash:shells/bash
LIB_DEPENDS= libaugeas.so:textproc/augeas \
- libxml2.so:textproc/libxml2 \
- liblz4.so:archivers/liblz4 \
libboost_filesystem.so:devel/boost-libs \
libgflags.so:devel/gflags \
libglog.so:devel/glog \
+ liblz4.so:archivers/liblz4 \
librocksdb.so:databases/rocksdb \
- libtsk.so:sysutils/sleuthkit \
libthrift.so:devel/thrift-cpp \
+ libtsk.so:sysutils/sleuthkit \
+ libxml2.so:textproc/libxml2 \
libyara.so:security/yara \
libzstd.so:archivers/zstd
-USES= cmake compiler:c++17-lang localbase:ldflags \
- pkgconfig python:build,3.7+ sqlite ssl
-USE_RC_SUBR= osqueryd
+USES= cmake compiler:c++17-lang localbase:ldflags pkgconfig \
+ python:build,3.7+ sqlite ssl
USE_GITHUB= yes
GH_ACCOUNT= osquery
GH_TAGNAME= ${DISTVERSION}
GH_TUPLE= ocochard:linenoise-ng:2c90f29:linenoiseng/libraries/cmake/source/linenoise-ng/src
-EXTRA_PATCHES= ${WRKDIR}/0c61e05a6-freebsd.patch:-p1
-
-CMAKE_OFF= OSQUERY_BUILD_TESTS \
- OSQUERY_BUILD_BPF \
- OSQUERY_BUILD_DPKG \
- OSQUERY_BUILD_ETW \
- OSQUERY_BUILD_AWS
+USE_RC_SUBR= osqueryd
CMAKE_ARGS= -DOSQUERY_TOOLCHAIN_SYSROOT= \
-DOSQUERY_VERSION=${DISTVERSION}
+CMAKE_OFF= OSQUERY_BUILD_AWS OSQUERY_BUILD_BPF OSQUERY_BUILD_DPKG \
+ OSQUERY_BUILD_ETW OSQUERY_BUILD_TESTS
+
+EXTRA_PATCHES= ${WRKDIR}/0c61e05a6-freebsd.patch:-p1
PLIST_FILES= bin/osqueryd \
bin/osqueryi
+.include <bsd.port.pre.mk>
+
+# sys/inotify.h was added to FreeBSD base in 15.0; on earlier releases use
+# the libinotify-kqueue shim from devel/libinotify.
+.if ${OSVERSION} < 1500000
+LIB_DEPENDS+= libinotify.so:devel/libinotify
+LDFLAGS+= -linotify
+.endif
+
post-extract:
@${SED} \
-e '/^diff --git a\/libraries\/cmake\/source\/linenoise-ng\/src/,/^diff --git/{/^diff --git a\/libraries\/cmake\/source\/linenoise-ng\/src/d; /^diff --git/!d;}' \
${DISTDIR}/0c61e05a6.patch > ${WRKDIR}/0c61e05a6-freebsd.patch
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 27, 7:34 PM (5 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37412901
Default Alt Text
D57059.diff (2 KB)

Event Timeline