[packages/syslog-ng] up to 3.4.3
glen
glen at pld-linux.org
Mon Sep 30 21:05:31 CEST 2013
commit db1b62f646cb14a085f8907a4e46dc584384f242
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Sep 30 22:03:39 2013 +0300
up to 3.4.3
syslog-ng-am.patch | 19 -----------------
syslog-ng-pacct.patch | 56 ---------------------------------------------------
syslog-ng.spec | 26 +++++++++++-------------
3 files changed, 12 insertions(+), 89 deletions(-)
---
diff --git a/syslog-ng.spec b/syslog-ng.spec
index 6663fcf..1c953d3 100644
--- a/syslog-ng.spec
+++ b/syslog-ng.spec
@@ -25,16 +25,16 @@ Summary: Syslog-ng - new generation of the system logger
Summary(pl.UTF-8): Syslog-ng - systemowy demon logujący nowej generacji
Summary(pt_BR.UTF-8): Daemon de log nova geração
Name: syslog-ng
-Version: 3.4.2
+Version: 3.4.3
Release: 1
License: GPL v2+ with OpenSSL exception
Group: Daemons
Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
-# Source0-md5: 2e32c5fedc067dd83a363c0316b29fb4
+# Source0-md5: 80b873a11b3e02706bc3f2430b9be068
Source1: %{name}.init
Source2: %{name}.conf
Source3: %{name}.logrotate
-Source4: http://www.balabit.com/support/documentation/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-guide-admin/pdf/syslog-ng-ose-v3.4-guide-admin.pdf
+Source4: http://www.balabit.com/support/documentation/syslog-ng-ose-3.4-guides/en/syslog-ng-ose-v3.4-guide-admin/pdf/%{name}-ose-v3.4-guide-admin.pdf
# Source4-md5: fbc1516a2af9f40d0a7c4929fdf381b1
Source5: %{name}-simple.conf
Source6: %{name}.upstart
@@ -42,16 +42,14 @@ Patch0: %{name}-datadir.patch
Patch1: cap_syslog-vserver-workaround.patch
Patch2: %{name}-nolibs.patch
Patch3: %{name}-systemd.patch
-Patch4: %{name}-am.patch
-Patch5: %{name}-pacct.patch
URL: http://www.balabit.com/products/syslog_ng/
+BuildRequires: GeoIP-devel >= 1.5.1
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: bison >= 2.4
BuildRequires: eventlog-devel >= 0.2.12
%{?with_tests:BuildRequires: findutils}
BuildRequires: flex
-BuildRequires: GeoIP-devel >= 1.5.1
BuildRequires: glib2-devel >= %{glib2_ver}
%{?with_json:BuildRequires: json-c-devel >= 0.7}
BuildRequires: libcap-devel
@@ -116,6 +114,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# - same applies for modules
# In dynamic case tests are forcily linked with dynamic modules, which doesn't work with as-needed.
%define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
+
%if %{without dynamic}
%define no_install_post_check_so 1
%define _sbindir /sbin
@@ -272,10 +271,8 @@ Pliki nagłówkowe do tworzenia modułów dla sysloga-ng.
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-cp -a %{SOURCE4} doc
-cp -a %{SOURCE5} contrib/syslog-ng.conf.simple
+cp -p %{SOURCE4} doc
+cp -p %{SOURCE5} contrib/syslog-ng.conf.simple
%{__sed} -i -e 's|/usr/bin/awk|/bin/awk|' scl/syslogconf/convert-syslogconf.awk
@@ -292,6 +289,7 @@ done
%configure \
--sysconfdir=%{_sysconfdir}/syslog-ng \
--datadir=%{_datadir}/syslog-ng \
+ --disable-silent-rules \
--with-default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat \
%if %{with mongodb}
--enable-mongodb \
@@ -337,7 +335,7 @@ export LD_LIBRARY_PATH PYTHONPATH
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{init,sysconfig,logrotate.d,rc.d/init.d} \
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d,init} \
$RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/patterndb.d \
$RPM_BUILD_ROOT/var/{log,lib/%{name}/xsd}
@@ -346,8 +344,8 @@ install -d $RPM_BUILD_ROOT/etc/{init,sysconfig,logrotate.d,rc.d/init.d} \
DESTDIR=$RPM_BUILD_ROOT
%{__sed} -e 's|@@SBINDIR@@|%{_sbindir}|g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
-cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
-cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
for n in daemon debug iptables kernel lpr maillog messages secure spooler syslog user xferlog; do
> $RPM_BUILD_ROOT/var/log/$n
@@ -429,7 +427,7 @@ exit 0
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS debian/syslog-ng.conf* contrib/relogger.pl
+%doc AUTHORS NEWS debian/syslog-ng.conf* contrib/relogger.pl
%doc contrib/syslog-ng.conf.{doc,simple,RedHat}
%doc contrib/{apparmor,selinux,syslog2ng} doc/syslog-ng-ose-v3.4-guide-admin.pdf
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
diff --git a/syslog-ng-am.patch b/syslog-ng-am.patch
deleted file mode 100644
index 22d8159..0000000
--- a/syslog-ng-am.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- syslog-ng-3.3.6/configure.in.orig 2013-02-03 16:17:57.687433055 +0100
-+++ syslog-ng-3.3.6/configure.in 2013-02-03 16:30:24.357417494 +0100
-@@ -67,7 +67,7 @@
- pidfiledir='${localstatedir}'
- moduledir='${exec_prefix}/lib/syslog-ng'
-
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS(config.h)
-
- dnl ***************************************************************************
- dnl Arguments
-@@ -211,7 +211,6 @@
- dnl ***************************************************************************
- dnl Checks for programs.
- AC_PROG_CC
--AM_PROG_CC_STDC
- AC_PROG_CC_C99
- if test "x$ac_cv_prog_cc_c99" = "xno"; then
- AC_MSG_ERROR("C99 standard compliant C compiler required. Try GCC 3.x or later.")
diff --git a/syslog-ng-pacct.patch b/syslog-ng-pacct.patch
deleted file mode 100644
index 3b8ab1e..0000000
--- a/syslog-ng-pacct.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 095667af0a837cb4df965764bc89730796e0a94d Mon Sep 17 00:00:00 2001
-From: Balazs Scheidler <bazsi at balabit.hu>
-Date: Mon, 25 Mar 2013 21:56:19 +0100
-Subject: [PATCH] pacct: fixed compilation errors
-
-This plugin has rotten somewhat and become uncompilable, fixed all compilation
-issues.
-
-Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>
----
- modules/pacctformat/pacct-format.c | 11 ++++++-----
- 1 file changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/modules/pacctformat/pacct-format.c b/modules/pacctformat/pacct-format.c
-index 646e3a0..597635c 100644
---- a/modules/pacctformat/pacct-format.c
-+++ b/modules/pacctformat/pacct-format.c
-@@ -23,6 +23,7 @@
-
- #include "pacct-format.h"
- #include "logmsg.h"
-+#include "logproto-record-server.h"
-
- /* we're using the Linux header as the glibc one is incomplete */
- #include <linux/acct.h>
-@@ -96,7 +97,7 @@
- }
-
- void
--pacct_format_handler(MsgFormatOptions *options, const guchar *data, gsize length, LogMessage *msg)
-+pacct_format_handler(const MsgFormatOptions *options, const guchar *data, gsize length, LogMessage *msg)
- {
- acct_t *rec;
- gsize len;
-@@ -151,14 +152,14 @@
- log_msg_set_value(msg, handle_ac_comm, rec->ac_comm, len);
- }
-
--void
--pacct_construct_proto(MsgFormatOptions *options, LogTransport *transport, const LogProtoOptions *options)
-+static LogProtoServer *
-+pacct_construct_proto(const MsgFormatOptions *options, LogTransport *transport, const LogProtoServerOptions *proto_options)
- {
-- return log_proto_binary_record_server_new(transport, options, sizeof(acct_t));
-+ return log_proto_binary_record_server_new(transport, proto_options, sizeof(acct_t));
- }
-
- MsgFormatHandler pacct_handler =
- {
-- .alter_proto_options = pacct_alter_proto_options,
-+ .construct_proto = pacct_construct_proto,
- .parse = &pacct_format_handler
- };
---
-1.8.1.6
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/syslog-ng.git/commitdiff/cd31ca9ba2103963305e678ce9575603c556285f
More information about the pld-cvs-commit
mailing list