diff --git a/security/wazuh-agent/Makefile b/security/wazuh-agent/Makefile index f1b29f55e56f..d4b45eaa6a64 100644 --- a/security/wazuh-agent/Makefile +++ b/security/wazuh-agent/Makefile @@ -16,6 +16,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")