aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-11-16 19:04:54 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-11-16 19:06:55 +0000
commit003cac755cca2a771b230fcfa777572d0a7354dc (patch)
tree453aa2b1daa38b90afce4d37f3206f2071f7250c
parentb9ff52067fdb807a186b9e6ba4d6c7d09bd33111 (diff)
downloadports-003cac755cca2a771b230fcfa777572d0a7354dc.tar.gz
ports-003cac755cca2a771b230fcfa777572d0a7354dc.zip
security/wazuh-agent: Fix compile issues
- Add missing dependency PR: 267700 Reported by: mike _at_ sentex.net
-rw-r--r--security/wazuh-agent/Makefile2
-rw-r--r--security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt11
-rw-r--r--security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt11
-rw-r--r--security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt11
4 files changed, 35 insertions, 0 deletions
diff --git a/security/wazuh-agent/Makefile b/security/wazuh-agent/Makefile
index f1b29f55e56f..2b55dad6a1e8 100644
--- a/security/wazuh-agent/Makefile
+++ b/security/wazuh-agent/Makefile
@@ -1,6 +1,7 @@
PORTNAME= wazuh
DISTVERSION= 4.3.9
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://packages.wazuh.com/deps/17/libraries/sources/:wazuh_sources
PKGNAMESUFFIX= -agent
@@ -16,6 +17,7 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= cmake:devel/cmake-core
+LIB_DEPENDS= libnghttp2.so:www/libnghttp2
USES= cpe gmake perl5 readline shebangfix sqlite:3 uidfix
diff --git a/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt b/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt
new file mode 100644
index 000000000000..f042a27f6a88
--- /dev/null
+++ b/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/data_provider/CMakeLists.txt 2022-11-15 18:38:58.096561000 -0500
++++ src/data_provider/CMakeLists.txt 2022-11-15 18:39:14.271410000 -0500
+@@ -146,7 +146,7 @@
+ target_link_libraries(sysinfo cjson ${SRC_FOLDER}/external/libplist/bin/lib/libplist-2.0.a)
+ endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
+
+-target_link_libraries(sysinfo wazuhext)
++target_link_libraries(sysinfo nghttp2 wazuhext)
+
+
+ if(APPLE)
diff --git a/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt b/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt
new file mode 100644
index 000000000000..e26d226d0907
--- /dev/null
+++ b/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/shared_modules/dbsync/CMakeLists.txt 2022-11-15 18:47:00.075043000 -0500
++++ src/shared_modules/dbsync/CMakeLists.txt 2022-11-15 18:47:18.385940000 -0500
+@@ -72,7 +72,7 @@
+ endif(NOT CMAKE_SYSTEM_NAME STREQUAL "AIX")
+ endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
+
+-target_link_libraries(dbsync wazuhext)
++target_link_libraries(dbsync nghttp2 wazuhext)
+
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
+ if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
diff --git a/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt b/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt
new file mode 100644
index 000000000000..aac9d1e9aaf0
--- /dev/null
+++ b/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/shared_modules/rsync/CMakeLists.txt 2022-11-15 18:49:35.527593000 -0500
++++ src/shared_modules/rsync/CMakeLists.txt 2022-11-15 18:49:52.194493000 -0500
+@@ -74,7 +74,7 @@
+ endif(NOT CMAKE_SYSTEM_NAME STREQUAL "AIX")
+ endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
+
+-target_link_libraries(rsync dbsync wazuhext)
++target_link_libraries(rsync nghttp2 dbsync wazuhext)
+
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
+ if(CMAKE_SYSTEM_NAME STREQUAL "AIX")