From 08d37ef7f9ec4b73691755d7a22dfea7be634b2c Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Tue, 13 Feb 2024 17:22:07 +0100
Subject: syslog-ng: update to 4.6.0

---
 package/syslog-ng/Makefile                     | 13 +++++++++----
 package/syslog-ng/patches/patch-CMakeLists_txt | 10 ++++++++++
 2 files changed, 19 insertions(+), 4 deletions(-)
 create mode 100644 package/syslog-ng/patches/patch-CMakeLists_txt

(limited to 'package')

diff --git a/package/syslog-ng/Makefile b/package/syslog-ng/Makefile
index 81ac044f3..b2ce09edf 100644
--- a/package/syslog-ng/Makefile
+++ b/package/syslog-ng/Makefile
@@ -4,12 +4,13 @@
 include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		syslog-ng
-PKG_VERSION:=		3.14.1
+PKG_VERSION:=		4.6.0
 PKG_RELEASE:=		1
-PKG_HASH:=		235b1ac46fe4f3b06b3e945d000276f07deb8243be05d63c04aff06ab6123b64
+PKG_HASH:=		a5f8b089887767b5e87f523562fc3c6d5ef4dd320fc9b1f44953cb2d6bd50026
 PKG_DESCR:=		powerful syslog daemon
 PKG_SECTION:=		sys/misc
-PKG_BUILDDEP:=		cmake-host glib ivykis libressl json-c libnet flex
+PKG_BUILDDEP:=		cmake-host glib ivykis libressl json-c libnet 
+PKG_BUILDDEP+=		pcre flex
 PKG_DEPENDS:=		glib ivykis libressl json-c libnet
 PKG_URL:=		http://www.balabit.com/
 PKG_SITES:=		https://github.com/balabit/syslog-ng/archive/
@@ -26,7 +27,11 @@ CMAKE_FLAGS+=		-DSYSLOG_NG_ENABLE_SYSTEMD=OFF \
 			-DSYSLOG_NG_ENABLE_TCP_WRAPPER=OFF \
 			-DENABLE_CURL=OFF \
 			-DENABLE_JAVA=OFF \
-			-DENABLE_JAVA_MODULES=OFF
+			-DENABLE_PYTHON=OFF \
+			-DENABLE_JAVA_MODULES=OFF \
+			-DBUILD_TESTING=OFF \
+			-DENABLE_AFSNMP=OFF \
+			-DENABLE_EXAMPLE_MODULES=OFF
 
 syslog-ng-install:
 	${INSTALL_DIR} ${IDIR_SYSLOG_NG}/usr/sbin \
diff --git a/package/syslog-ng/patches/patch-CMakeLists_txt b/package/syslog-ng/patches/patch-CMakeLists_txt
new file mode 100644
index 000000000..a5cd89d57
--- /dev/null
+++ b/package/syslog-ng/patches/patch-CMakeLists_txt
@@ -0,0 +1,10 @@
+--- syslog-ng-syslog-ng-4.6.0.orig/CMakeLists.txt	2024-01-25 10:09:33.000000000 +0100
++++ syslog-ng-syslog-ng-4.6.0/CMakeLists.txt	2024-02-13 15:32:51.471547962 +0100
+@@ -474,7 +474,6 @@ add_subdirectory(syslog-ng)
+ add_subdirectory(syslog-ng-ctl)
+ add_subdirectory(persist-tool)
+ add_subdirectory(tests)
+-add_subdirectory(libtest)
+ 
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/syslog-ng-config.h.in ${CMAKE_CURRENT_BINARY_DIR}/syslog-ng-config.h)
+ 
-- 
cgit v1.2.3