From f552242505b25d3d4aa1a43a7f50dc84dbcdb0d8 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: May 07 2011 19:57:26 +0000 Subject: * Update to 3.1.4 --- diff --git a/.gitignore b/.gitignore index ea49e64..50c4a82 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ syslog-ng_3.1.1.tar.gz +/syslog-ng_3.1.4.tar.gz diff --git a/rsyslog-3.14.1-logrotate.d-rsyslog.log b/rsyslog-3.14.1-logrotate.d-rsyslog.log deleted file mode 100644 index e0593a2..0000000 --- a/rsyslog-3.14.1-logrotate.d-rsyslog.log +++ /dev/null @@ -1,6 +0,0 @@ -/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { - sharedscripts - postrotate - /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true - endscript -} diff --git a/rsyslog-3.21.9-logrotate.d-rsyslog.log b/rsyslog-3.21.9-logrotate.d-rsyslog.log deleted file mode 100644 index b2d41f1..0000000 --- a/rsyslog-3.21.9-logrotate.d-rsyslog.log +++ /dev/null @@ -1,6 +0,0 @@ -/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { - sharedscripts - postrotate - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true - endscript -} diff --git a/rsyslog-syslog-ng-fc10.sysconfig b/rsyslog-syslog-ng-fc10.sysconfig deleted file mode 100644 index f0c36b0..0000000 --- a/rsyslog-syslog-ng-fc10.sysconfig +++ /dev/null @@ -1,3 +0,0 @@ -SYSLOGNG_PID="/var/run/syslog-ng.pid" -SYSLOGNG_OPTIONS="-p $SYSLOGNG_PID" -SYSLOGNG_COMPAT_PID="/var/run/syslogd.pid" diff --git a/rsyslog-syslog-ng.sysconfig b/rsyslog-syslog-ng.sysconfig deleted file mode 100644 index 3ab2430..0000000 --- a/rsyslog-syslog-ng.sysconfig +++ /dev/null @@ -1,3 +0,0 @@ -SYSLOGNG_PID="/var/run/syslog-ng.pid" -SYSLOGNG_OPTIONS="-p $SYSLOGNG_PID" -SYSLOGNG_COMPAT_PID="/var/run/rsyslogd.pid" diff --git a/sources b/sources index 7544aa7..c4b5419 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4fdc64ff0ad964dc811a746228609412 syslog-ng_3.1.1.tar.gz +48e6646d12d30c655f4391b970d61f56 syslog-ng_3.1.4.tar.gz diff --git a/sysklogd-1.4.1-44-logrotate.d-syslog.log b/sysklogd-1.4.1-44-logrotate.d-syslog.log deleted file mode 100644 index 5e94409..0000000 --- a/sysklogd-1.4.1-44-logrotate.d-syslog.log +++ /dev/null @@ -1,7 +0,0 @@ -/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { - sharedscripts - postrotate - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true - /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true - endscript -} diff --git a/sysklogd-1.4.1-logrotate.d-syslog.log b/sysklogd-1.4.1-logrotate.d-syslog.log deleted file mode 100644 index b2d41f1..0000000 --- a/sysklogd-1.4.1-logrotate.d-syslog.log +++ /dev/null @@ -1,6 +0,0 @@ -/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { - sharedscripts - postrotate - /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true - endscript -} diff --git a/sysklogd-syslog-ng.sysconfig b/sysklogd-syslog-ng.sysconfig deleted file mode 100644 index f0c36b0..0000000 --- a/sysklogd-syslog-ng.sysconfig +++ /dev/null @@ -1,3 +0,0 @@ -SYSLOGNG_PID="/var/run/syslog-ng.pid" -SYSLOGNG_OPTIONS="-p $SYSLOGNG_PID" -SYSLOGNG_COMPAT_PID="/var/run/syslogd.pid" diff --git a/syslog-ng-2.1.4-libnet.patch b/syslog-ng-2.1.4-libnet.patch deleted file mode 100644 index accf339..0000000 --- a/syslog-ng-2.1.4-libnet.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr syslog-ng-2.1.4.orig/configure.in syslog-ng-2.1.4/configure.in ---- syslog-ng-2.1.4.orig/configure.in 2008-11-19 05:00:11.000000000 -0800 -+++ syslog-ng-2.1.4/configure.in 2009-08-20 19:27:52.000000000 -0700 -@@ -466,7 +466,7 @@ - elif test "x$enable_static_linking" = "xyes"; then - DEPS_LIBS="-static $LIBS $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $LIBNET_LIBS $LIBWRAP_LIBS $LIBDBI_LIBS" - else -- DEPS_LIBS="$LIBS $LD_START_STATIC $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $LIBNET_LIBS $LIBWRAP_LIBS $LD_END_STATIC $LIBDBI_LIBS $DL_LIBS" -+ DEPS_LIBS="$LIBS $LD_START_STATIC $LEXLIB $GLIB_LIBS $EVTLOG_LIBS $LIBWRAP_LIBS $LD_END_STATIC $LIBNET_LIBS $LIBDBI_LIBS $DL_LIBS" - fi - LIBS="$DEPS_LIBS" - YFLAGS="-d" diff --git a/syslog-ng.logrotate b/syslog-ng.logrotate new file mode 100644 index 0000000..b2d41f1 --- /dev/null +++ b/syslog-ng.logrotate @@ -0,0 +1,6 @@ +/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { + sharedscripts + postrotate + /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff --git a/syslog-ng.spec b/syslog-ng.spec index c9656cc..17d1a83 100644 --- a/syslog-ng.spec +++ b/syslog-ng.spec @@ -1,106 +1,62 @@ -%{?_with_spoofsource:%define spoofsource 1} -%define evtlog_ver 0.2.7-2 + +%define evtlog_ver 0.2.7 %define _sbindir /sbin %define _localstatedir /var/lib/syslog-ng Name: syslog-ng -Version: 3.1.1 -Release: 1%{?dist} +Version: 3.1.4 +Release: 2%{?dist} Summary: Next-generation syslog server Group: System Environment/Daemons License: GPLv2+ Url: http://www.balabit.com/products/syslog_ng/ -Source0: http://www.balabit.com/downloads/files/syslog-ng/sources/3.1.1/src/%{name}_%{version}.tar.gz +Source0: http://www.balabit.com/downloads/files?path=/syslog-ng/sources/%{version}/source/%{name}_%{version}.tar.gz Source1: syslog-ng.conf Source2: syslog-ng.init.d -Source10: sysklogd-syslog-ng.sysconfig -Source11: sysklogd-1.4.1-logrotate.d-syslog.log -Source12: sysklogd-1.4.1-44-logrotate.d-syslog.log -Source20: rsyslog-syslog-ng.sysconfig -Source21: rsyslog-3.14.1-logrotate.d-rsyslog.log -Source30: rsyslog-syslog-ng-fc10.sysconfig -Source31: rsyslog-3.21.9-logrotate.d-rsyslog.log - -Patch0: syslog-ng-2.1.4-libnet.patch +Source3: syslog-ng.sysconfig +Source4: syslog-ng.logrotate BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: eventlog-devel >= %{evtlog_ver} BuildRequires: pkgconfig -BuildRequires: glib2-devel -BuildRequires: pcre-devel -%if 0%{?fedora} -BuildRequires: glib2-static -%endif -%if 0%{?rhel} -BuildRequires: tcp_wrappers -BuildRequires: eventlog-static >= %{evtlog_ver} -BuildRequires: automake -%else +BuildRequires: eventlog-devel >= %{evtlog_ver} +BuildRequires: glib2-devel >= 2.10.1 +BuildRequires: libnet-devel >= 1.1.4-3 +BuildRequires: pcre-devel >= 7.3 BuildRequires: tcp_wrappers-devel -%endif -BuildRequires: libnet-devel + Requires: logrotate Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service + Provides: syslog -%if 0%{?rhel} == 4 -# makes vixie-cron and initscripts happy -Provides: sysklogd = 1.3.33-6 -%endif # merge separate syslog-vim package into one Provides: syslog-ng-vim = %{version}-%{release} Obsoletes: syslog-ng-vim < 2.0.8-1 %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 +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. %prep -%if 0%{?rhel} -%patch0 -p1 -b .libnet -%endif - %setup -q # fix perl path %{__sed} -i 's|^#!/usr/local/bin/perl|#!%{__perl}|' contrib/relogger.pl -# force regeneration to avoid broken paths from upstream (#265221) -touch src/cfg-grammar.c src/cfg-lex.c - -%define logrotated_dst syslog -%if 0%{?rhel} - %if 0%{?rhel} <= 4 - %define sysconfig_src %{SOURCE10} - %define logrotated_src %{SOURCE11} - %endif - %if 0%{?rhel} >= 5 - %define sysconfig_src %{SOURCE10} - %define logrotated_src %{SOURCE12} - %endif -%endif -%if 0%{?fedora} - %if 0%{?fedora} <= 9 - %define sysconfig_src %{SOURCE20} - %define logrotated_src %{SOURCE21} - %endif - %if 0%{?fedora} >= 10 - %define sysconfig_src %{SOURCE30} - %define logrotated_src %{SOURCE31} - %endif -%endif +# fix executable perms on contrib files +%{__chmod} -c a-x contrib/syslog2ng %build @@ -109,15 +65,8 @@ touch src/cfg-grammar.c src/cfg-lex.c --sysconfdir=%{_sysconfdir}/%{name} \ --enable-tcp-wrapper \ --enable-pcre \ -%if 0%{?spoofsource} --enable-spoof-source \ -%endif -%if 0%{?rhel} - --enable-mixed-linking -%else --enable-dynamic-linking -%endif - make %{_smp_mflags} @@ -133,11 +82,10 @@ make DESTDIR=%{buildroot} install %{__install} -p -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/%{name} %{__install} -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig -%{__install} -p -m 644 %{sysconfig_src} %{buildroot}%{_sysconfdir}/sysconfig/%{name} +%{__install} -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %{__install} -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d -%{__install} -p -m 644 %{logrotated_src} \ - %{buildroot}%{_sysconfdir}/logrotate.d/%{logrotated_dst} +%{__install} -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/syslog # make local state dir %{__install} -d -m 755 %{buildroot}/%{_localstatedir} @@ -146,17 +94,11 @@ make DESTDIR=%{buildroot} install /usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && \ %{__mv} -f AUTHORS.conv AUTHORS -# fix executable perms on contrib files -%{__chmod} -x contrib/relogger.pl -%{__chmod} -x contrib/syslog2ng - -# fix script interpreter -sed -i 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/' contrib/relogger.pl # install vim files %{__install} -d -m 755 %{buildroot}%{_datadir}/%{name} %{__install} -p -m 644 contrib/syslog-ng.vim %{buildroot}%{_datadir}/%{name} -for vimver in 63 64 70 71 ; do +for vimver in 70 71 72 73 ; do %{__install} -d -m 755 %{buildroot}%{_datadir}/vim/vim$vimver/syntax cd %{buildroot}%{_datadir}/vim/vim$vimver/syntax ln -s ../../../%{name}/syslog-ng.vim . @@ -206,9 +148,8 @@ if [ $1 = 1 ]; then fi - %files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc AUTHORS COPYING README ChangeLog NEWS %doc doc/security/*.txt %doc doc/examples/syslog-ng.conf.sample @@ -216,13 +157,14 @@ fi %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %{_sysconfdir}/sysconfig/%{name} -%config(noreplace) %{_sysconfdir}/logrotate.d/%{logrotated_dst} +%config(noreplace) %{_sysconfdir}/logrotate.d/syslog %{_sysconfdir}/init.d/%{name} %dir %{_localstatedir} %{_sbindir}/%{name} %{_sbindir}/syslog-ng-ctl %{_bindir}/loggen %{_bindir}/pdbtool +%{_bindir}/update-patterndb %{_datadir}/%{name} %{_mandir}/man1/* %{_mandir}/man5/* @@ -231,6 +173,20 @@ fi %changelog +* Mon Apr 25 2011 Jose Pedro Oliveira - 3.1.4-2 +- cleans the sysconfig and logrotate file mess (#651823 comments 17, 20 and 21) +- add support for vim versions 72 and 73; drop support for 6x +- clean the spoofsource conditional logical: libnet resides in /lib{,64} since + since 2009 + +* Wed Apr 13 2011 Jose Pedro Oliveira - 3.1.4-1 +- update for syslog-ng 3.1.4 +- updated the source URL +- versioned some of the build requirements +- dropped the libnet patch (syslog-ng-2.1.4-libnet.patch) +- dropped support for EPEL-4 and EPEL-5 (syslog-ng 4.x requires pcre >= 7.3) +- new file: update-patterndb + * Sat Jul 24 2010 Doug Warner - 3.1.1-1 - update for syslog-ng 3.1.1 - supports the new syslog protocol standards diff --git a/syslog-ng.sysconfig b/syslog-ng.sysconfig new file mode 100644 index 0000000..f0c36b0 --- /dev/null +++ b/syslog-ng.sysconfig @@ -0,0 +1,3 @@ +SYSLOGNG_PID="/var/run/syslog-ng.pid" +SYSLOGNG_OPTIONS="-p $SYSLOGNG_PID" +SYSLOGNG_COMPAT_PID="/var/run/syslogd.pid" diff --git a/syslog-ng.vim b/syslog-ng.vim deleted file mode 100644 index d0ef3df..0000000 --- a/syslog-ng.vim +++ /dev/null @@ -1,52 +0,0 @@ -" Vim syntax file -" Language: syslog-ng: syslog-ng main configuration file (1.5.5a) -" Maintainer: -- -" Last change: 2001 Apr 13 -" URL: -- -" syslog-ng's home: http://www.balabit.hu -" Something like this in filetype.vim would be helpful -" au BufNewFile,BufRead syslog-ng.conf setf syslog-ng - - -" Remove any old syntax stuff hanging around -syn clear -syn case match -set iskeyword=a-z,A-Z,48-57,_,-,. - -syn keyword sysngStatement source destination filter log options -syn match sysngComment "#.*$" -syn match sysngString +"[^"]*"+ -syn match sysngOctNumber "\<0\o\+\>" -syn match sysngDecNumber "\<\d\+\>" -syn match sysngHexNumber "\<0x\x\+\>" -syn keyword sysngBool yes no on off -syn match sysngIdentifier "\<[sdf]_\+\>" - -syn keyword sysngDriver internal remote_control -syn keyword sysngDriver file fifo pipe door -syn keyword sysngDriver udp tcp udp6 tcp6 -syn keyword sysngDriver sun_stream sun_streams sun-stream sun-streams -syn keyword sysngDriver unix_dgram unix_stream unix-dgram unix-stream -syn keyword sysngDriver usertty program - -syn keyword sysngFilter not and or .. level priority facility -syn keyword sysngFilter program host match DEFAULT - -if !exists("did_sysng_syntax_inits") - let did_sysng_syntax_inits = 1 - - hi link sysngStatement Statement - hi link sysngComment Comment - hi link sysngString String - hi link sysngOctNumber Number - hi link sysngDecNumber Number - hi link sysngHexNumber Number - hi link sysngBool Constant - hi link sysngIdentifier Identifier - - hi link sysngDriver Type - hi link sysngFilter Operator -endif - -let b:current_syntax = "syslog-ng" -