[syslog-ng/epel7] - update to 3.5.4.1

Peter Czanik czanik at fedoraproject.org
Wed Jul 16 11:33:38 UTC 2014


commit 29cd63341ebbb43ebbc389af84831118e28c7e8c
Author: Peter Czanik <pczanik at fang.fa.gau.hu>
Date:   Wed Jul 16 13:25:51 2014 +0200

    - update to 3.5.4.1
    
    Signed-off-by: Peter Czanik <pczanik at fang.fa.gau.hu>

 .gitignore                              |    1 +
 sources                                 |    2 +-
 syslog-ng-3.4.3-syslog-ng.service.patch |   12 -----
 syslog-ng-3.5.0-syslog-ng.service.patch |   12 +++++
 syslog-ng.conf                          |    6 +-
 syslog-ng.spec                          |   82 ++++++++++++++----------------
 6 files changed, 55 insertions(+), 60 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 046eb6b..19d1e2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ syslog-ng_3.1.1.tar.gz
 /syslog-ng_3.4.5.tar.gz
 /syslog-ng_3.4.6.tar.gz
 /syslog-ng_3.4.7.tar.gz
+/syslog-ng_3.5.4.1.tar.gz
diff --git a/sources b/sources
index 12dba64..8eab252 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-eed6df3a8728bbc4c607c3b44aeaa405  syslog-ng_3.4.7.tar.gz
+ff3bf223ebafbaa92b69a2d5b729f368  syslog-ng_3.5.4.1.tar.gz
diff --git a/syslog-ng-3.5.0-syslog-ng.service.patch b/syslog-ng-3.5.0-syslog-ng.service.patch
new file mode 100644
index 0000000..3aa641f
--- /dev/null
+++ b/syslog-ng-3.5.0-syslog-ng.service.patch
@@ -0,0 +1,12 @@
+diff -ruN syslog-ng-3.5.0beta3/contrib/systemd/syslog-ng.service syslog-ng-3.5.0beta3-modified/contrib/systemd/syslog-ng.service
+--- syslog-ng-3.5.0beta3/contrib/systemd/syslog-ng.service	2013-09-17 16:43:11.000000000 +0100
++++ syslog-ng-3.5.0beta3-modified/contrib/systemd/syslog-ng.service	2013-10-17 15:56:13.085757469 +0100
+@@ -5,7 +5,7 @@
+ [Service]
+ Type=notify
+ Sockets=syslog.socket
+-ExecStart=/usr/sbin/syslog-ng -F
++ExecStart=/usr/sbin/syslog-ng -F -p /var/run/syslogd.pid
+ ExecReload=/bin/kill -HUP $MAINPID
+ StandardOutput=null
+ Restart=on-failure
diff --git a/syslog-ng.conf b/syslog-ng.conf
index 2ce866e..5919f9a 100644
--- a/syslog-ng.conf
+++ b/syslog-ng.conf
@@ -1,4 +1,5 @@
- at version:3.3
+ at version:3.5
+ at include "scl.conf"
 
 # syslog-ng configuration file.
 #
@@ -22,8 +23,7 @@ options {
 };
 
 source s_sys {
-    file ("/proc/kmsg" program_override("kernel") flags(kernel));
-    unix-dgram ("/dev/log");
+    system();
     internal();
     # udp(ip(0.0.0.0) port(514));
 };
diff --git a/syslog-ng.spec b/syslog-ng.spec
index cc54244..da31f08 100644
--- a/syslog-ng.spec
+++ b/syslog-ng.spec
@@ -2,19 +2,18 @@
 %global ivykis_ver 0.36.1
 
 Name: syslog-ng
-Version: 3.4.7
+Version: 3.5.4.1
 Release: 1%{?dist}
 Summary: Next-generation syslog server
 
 Group: System Environment/Daemons
 License: GPLv2+
-Url: http://www.balabit.com/network-security/syslog-ng
+URL: http://www.balabit.com/network-security/syslog-ng
 Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
-
 Source1: syslog-ng.conf
 Source2: syslog-ng.logrotate
 
-Patch0: syslog-ng-3.4.3-syslog-ng.service.patch
+Patch0: syslog-ng-3.5.0-syslog-ng.service.patch
 Patch1: syslog-ng-3.4.0beta1-tests-functional-control.py.patch
 Patch2: syslog-ng-3.3.6-tests-functional-sql-test.patch
 
@@ -25,24 +24,16 @@ BuildRequires: bison, flex
 BuildRequires: eventlog-devel >= %{evtlog_ver}
 BuildRequires: glib2-devel >= 2.10.1
 BuildRequires: ivykis-devel >= %{ivykis_ver}
-BuildRequires: json-c-devel
-#BuildRequires: json-glib-devel
 BuildRequires: libcap-devel
-BuildRequires: libdbi-devel
-BuildRequires: libnet-devel
 BuildRequires: openssl-devel
 BuildRequires: pcre-devel >= 6.1
 BuildRequires: tcp_wrappers-devel
 BuildRequires: libuuid-devel
-BuildRequires: libesmtp-devel
-BuildRequires: libmongo-client-devel
-BuildRequires: GeoIP-devel
-#BuildRequires: librabbitmq-devel
+BuildRequires: systemd-devel
+BuildRequires: hiredis-devel
 
 # Test suite
 BuildRequires: python
-# Test suite: the SQL tests
-BuildRequires: libdbi-dbd-sqlite
 
 Requires: logrotate
 Requires: ivykis >= %{ivykis_ver}
@@ -60,31 +51,29 @@ Conflicts: filesystem < 3
 
 
 %description
-syslog-ng, as the name shows, is a syslogd replacement, but with new
-functionality for the new generation. The original syslogd allows
-messages only to be sorted based on priority/facility pairs; syslog-ng
-adds the possibility to filter based on message contents using regular
-expressions. The new configuration scheme is intuitive and powerful.
-Forwarding logs over TCP and remembering all forwarding hops makes it
-ideal for firewalled environments.
-
+syslog-ng is an enhanced log daemon, supporting a wide range of input and
+output methods: syslog, unstructured text, message queues, databases (SQL
+and NoSQL alike) and more.
 
-%package libdbi
-Summary: libdbi support for %{name}
-Group: Development/Libraries
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Key features:
 
-%description libdbi
-This module supports a large number of database systems via libdbi.
+ * receive and send RFC3164 and RFC5424 style syslog messages
+ * work with any kind of unstructured data
+ * receive and send JSON formatted messages
+ * classify and structure logs with builtin parsers (csv-parser(),
+   db-parser(), ...)
+ * normalize, crunch and process logs as they flow through the system
+ * hand on messages for further processing using message queues (like
+   AMQP), files or databases (like PostgreSQL or MongoDB).
 
 
-%package mongodb
-Summary: mongodb support for %{name}
+%package redis
+Summary: redis support for %{name}
 Group: Development/Libraries
 Requires: %{name}%{?_isa} = %{version}-%{release}
 
-%description mongodb
-This module supports the mongodb database via libmongo-client.
+%description redis
+This module supports the redis key-value store via hiredis.
 
 
 %package devel
@@ -126,20 +115,22 @@ GEOIP_LIBS=-lGeoIP; export GEOIP_LIBS; \
     --with-ivykis=system \
     --with-libmongo-client=system \
     --with-embedded-crypto \
+    --enable-man-pages \
     --enable-ipv6 \
     --enable-tcp-wrapper \
     --enable-pcre \
-    --enable-spoof-source \
+    --disable-spoof-source \
     --enable-linux-caps \
-    --enable-sql \
-    --enable-json \
+    --disable-sql \
+    --disable-json \
     --enable-ssl \
-    --enable-smtp \
-    --enable-geoip \
+    --disable-smtp \
+    --disable-geoip \
     --enable-shared \
     --disable-static \
     --enable-dynamic-linking \
     --enable-systemd \
+    --enable-redis \
     --disable-amqp \
     --with-librabbitmq-client=no
 
@@ -244,8 +235,7 @@ fi
 %{_bindir}/update-patterndb
 %{_libdir}/lib%{name}-%{version}.so
 %{_libdir}/%{name}/*.so
-%exclude %{_libdir}/%{name}/libafsql.so
-%exclude %{_libdir}/%{name}/libafmongodb.so
+%exclude %{_libdir}/%{name}/libredis.so
 
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/syslog-ng.vim
@@ -263,11 +253,8 @@ fi
 %{_mandir}/man5/syslog-ng.conf.5*
 %{_mandir}/man8/syslog-ng.8*
 
-%files libdbi
-%{_libdir}/%{name}/libafsql.so
-
-%files mongodb
-%{_libdir}/%{name}/libafmongodb.so
+%files redis
+%{_libdir}/%{name}/libredis.so
 
 %files devel
 %{_libdir}/libsyslog-ng.so
@@ -277,6 +264,13 @@ fi
 
 
 %changelog
+* Mon Jun  2 2014 Peter Czanik <czanik at balabit.hu> - 3.5.4.1-1
+- Update to syslog-ng 3.5.4.1
+- enable SCL in syslog-ng.conf
+- use system() in syslog-ng.conf
+- add redis support to separate subpackage
+  due to dependencies
+
 * Wed Dec 25 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.4.7-1
 - Update to syslog-ng 3.4.7
 


More information about the scm-commits mailing list