2005-05-07 00:05:05 +00:00
|
|
|
|
|
|
|
%define sbindir /sbin
|
|
|
|
|
|
|
|
Name: syslog-ng
|
|
|
|
Version: 1.6.7
|
2005-05-09 22:16:02 +00:00
|
|
|
Release: 3%{?dist}
|
2005-05-07 00:05:05 +00:00
|
|
|
Summary: Syslog replacement daemon
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPL
|
|
|
|
Url: http://www.balabit.com/products/syslog_ng/
|
|
|
|
Source0: http://www.balabit.com/downloads/syslog-ng/1.6/src/syslog-ng-1.6.7.tar.gz
|
2005-05-09 22:16:02 +00:00
|
|
|
Source1: syslog.log
|
|
|
|
Patch0: syslog-ng-1.6.7-init.patch
|
|
|
|
Patch1: syslog-ng-1.6.7-logrotate.patch
|
2005-05-07 00:05:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2005-05-07 00:27:25 +00:00
|
|
|
BuildRequires: libol-devel >= 0.3.16
|
2005-05-07 00:05:05 +00:00
|
|
|
BuildRequires: flex, tcp_wrappers
|
|
|
|
# Requires sed v3.95 (command line option -i)
|
|
|
|
Requires: logrotate, sed >= 3.95
|
|
|
|
Requires(post): chkconfig, initscripts
|
|
|
|
Requires(preun): chkconfig, initscripts
|
|
|
|
Requires(postun): initscripts
|
|
|
|
#
|
|
|
|
# Keep initscripts and vixie-cron happy
|
|
|
|
#
|
|
|
|
# rpm -e sysklogd
|
|
|
|
# error: removing these packages would break dependencies:
|
|
|
|
# sysklogd >= 1.3.31 is needed by initscripts-6.67-1
|
|
|
|
# sysklogd >= 1.3.33-6 is needed by vixie-cron-3.0.1-64
|
|
|
|
#
|
2005-05-07 00:27:25 +00:00
|
|
|
Provides: sysklogd = 1.4.1-99
|
2005-05-07 00:05:05 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2005-05-09 22:16:02 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%{__sed} -i 's|^#!/usr/local/bin/perl|#!%{__perl}|' contrib/relogger.pl
|
2005-05-07 00:05:05 +00:00
|
|
|
chmod a-x contrib/syslog2ng
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--sbindir=%{sbindir} \
|
|
|
|
--enable-tcp-wrapper
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{_initrddir}
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
|
|
|
|
|
|
|
|
install -p -m 755 contrib/fedora-packaging/syslog-ng.init \
|
|
|
|
$RPM_BUILD_ROOT%{_initrddir}/syslog-ng
|
|
|
|
install -p -m 644 contrib/fedora-packaging/syslog-ng.conf \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/syslog-ng.conf
|
|
|
|
install -p -m 644 contrib/fedora-packaging/syslog-ng.sysconfig \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/syslog-ng
|
2005-05-09 22:16:02 +00:00
|
|
|
install -p -m 644 %{SOURCE1} \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog
|
2005-05-07 00:05:05 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
# only rpm -i (not rpm {-U|-F})
|
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
/sbin/chkconfig --add syslog-ng
|
2005-05-09 22:16:02 +00:00
|
|
|
# /sbin/service syslog-ng start
|
2005-05-07 00:05:05 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
# only rpm -e (not rpm {-U|-F})
|
|
|
|
if [ $1 = 0 ]; then
|
2005-05-09 22:16:02 +00:00
|
|
|
/sbin/service syslog-ng stop > /dev/null 2>&1 || :
|
2005-05-07 00:05:05 +00:00
|
|
|
/sbin/chkconfig --del syslog-ng
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
# only rpm {-U|-F} (not rpm -e)
|
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
/sbin/service syslog-ng condrestart
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING README README.spoof ChangeLog INSTALL NEWS PORTS
|
|
|
|
%doc doc/sgml/syslog-ng.txt doc/sgml/syslog-ng.ps
|
|
|
|
%doc doc/*.demo doc/*.sample
|
|
|
|
%doc contrib/syslog-ng.conf.doc
|
|
|
|
%doc contrib/syslog2ng doc/stresstest.sh contrib/relogger.pl
|
|
|
|
%{sbindir}/syslog-ng
|
|
|
|
%{_initrddir}/syslog-ng
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/syslog-ng.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/syslog-ng
|
2005-05-09 22:16:02 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/syslog
|
2005-05-07 00:05:05 +00:00
|
|
|
%{_mandir}/man5/*.5*
|
|
|
|
%{_mandir}/man8/*.8*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2005-05-26 01:37:33 +00:00
|
|
|
* Thu May 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.7-3
|
2005-05-09 22:16:02 +00:00
|
|
|
- Shipping the sysklogd logrotate file and using the same pidfile
|
|
|
|
as suggested by Jeremy Katz.
|
|
|
|
- Patching the init script: no default runlevels.
|
|
|
|
- Removed the triggers to handle the logrotate file (no longer needed).
|
2005-05-26 01:37:33 +00:00
|
|
|
- The SELinux use_syslogng boolean has been dropped (rules enabled).
|
2005-05-09 22:16:02 +00:00
|
|
|
|
2005-05-07 00:27:25 +00:00
|
|
|
* Sat May 07 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.6.7-2.fc4
|
|
|
|
- Increased libol required version to 0.3.16
|
|
|
|
(https://lists.balabit.hu/pipermail/syslog-ng/2005-May/007385.html).
|
|
|
|
|
2005-05-07 00:05:05 +00:00
|
|
|
* Sat Apr 09 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.7-0.fdr.1
|
|
|
|
- Update to 1.6.7.
|
|
|
|
- The Red Hat/Fedora Core configuration files are now included in the
|
|
|
|
syslog-ng tarball (directory: contrib/fedora-packaging).
|
|
|
|
|
|
|
|
* Fri Mar 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.6-0.fdr.4
|
|
|
|
- Logrotate file conflict: just comment/uncomment contents of the syslog
|
|
|
|
logrotate file using triggers.
|
|
|
|
|
|
|
|
* Tue Feb 15 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.6-0.fdr.3
|
|
|
|
- Require logrotate.
|
|
|
|
- Documentation updates (upstream).
|
|
|
|
|
|
|
|
* Sat Feb 05 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.6-0.fdr.2
|
|
|
|
- Added contrib/relogger.pl (missing in syslog-ng-1.6.6).
|
|
|
|
- Requires libol 0.3.15.
|
|
|
|
- Added %%trigger scripts to handle the logrotate file.
|
|
|
|
|
|
|
|
* Fri Feb 04 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.6-0.fdr.1
|
|
|
|
- Update to 1.6.6.
|
|
|
|
- Patches no longer needed.
|
|
|
|
|
|
|
|
* Fri Feb 04 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.5-0.fdr.7
|
|
|
|
- Took ownership of the configuration directory (/etc/syslog-ng/).
|
|
|
|
- Updated the syslog-ng(8) manpage (upstream patch).
|
|
|
|
- Updated the configuration file: /proc/kmsg is a file not a pipe.
|
|
|
|
- Patched two contrib files: syslog2ng and syslog-ng.conf.RedHat.
|
|
|
|
- Logrotate file inline replacement: perl --> sed (bug 1332 comment 23).
|
|
|
|
|
|
|
|
* Tue Jan 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.5-0.fdr.6
|
|
|
|
- Logrotate problem: only one logrotate file for syslog and syslog-ng.
|
|
|
|
- Configuration file: don't sync d_mail destination (/var/log/maillog).
|
|
|
|
|
|
|
|
* Mon Jan 24 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.5-0.fdr.5
|
|
|
|
- SIGHUP handling upstream patch (syslog-ng-1.6.5+20050121.tar.gz).
|
|
|
|
- Static linking /usr libraries (patch already upstream).
|
|
|
|
|
|
|
|
* Thu Sep 30 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.6.5-0.fdr.4
|
|
|
|
- make: do not strip the binaries during installation (install vs install-strip)
|
|
|
|
(bug 1332 comment 18).
|
|
|
|
- install: preserve timestamps (option -p) (bug 1332 comment 18).
|
|
|
|
|
|
|
|
* Wed Sep 1 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.5-0.fdr.3
|
|
|
|
- use the tcp_wrappers static library instead (bug 1332 comment 15).
|
|
|
|
|
|
|
|
* Wed Sep 1 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.5-0.fdr.2
|
|
|
|
- added missing build requirement: flex (bug 1332 comment 13).
|
|
|
|
|
|
|
|
* Wed Aug 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.5-0.fdr.1
|
|
|
|
- update to 1.65.
|
|
|
|
- removed the syslog-ng.doc.patch patch (already upstream).
|
|
|
|
- removed the syslog-ng.conf.solaris documentation file.
|
|
|
|
|
|
|
|
* Wed Apr 21 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.2-0.fdr.3
|
|
|
|
- removed Conflits:
|
|
|
|
- changed the %post and %preun scripts
|
|
|
|
- splitted Requires( ... , ... ) into Requires( ... )
|
|
|
|
|
|
|
|
* Fri Mar 5 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.2-0.fdr.2
|
|
|
|
- corrected the source URL
|
|
|
|
|
|
|
|
* Sat Feb 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.2-0.fdr.1
|
|
|
|
- changed packaged name to be compliant with fedora.us naming conventions
|
|
|
|
|
|
|
|
* Fri Feb 27 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.2-0.fdr.0.2
|
|
|
|
- updated to version 1.6.2
|
|
|
|
- undo "Requires: tcp_wrappers" - tcp_wrappers is a static lib
|
|
|
|
|
|
|
|
* Sat Feb 7 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.1-0.fdr.2
|
|
|
|
- make %{?_smp_mflags}
|
|
|
|
- Requires: tcp_wrappers
|
|
|
|
|
|
|
|
* Sat Jan 10 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 0:1.6.1-0.fdr.1
|
|
|
|
- first release for fedora.us
|
|
|
|
|
|
|
|
* Fri Jan 9 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.1-1.1tux
|
|
|
|
- updated to version 1.6.1
|
|
|
|
|
|
|
|
* Tue Oct 7 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc4-1.1tux
|
|
|
|
- updated to version 1.6.0rc4
|
|
|
|
|
|
|
|
* Tue Aug 26 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc3-1.4tux
|
|
|
|
- installation scripts improved
|
|
|
|
- conflits line
|
|
|
|
|
|
|
|
* Sat Aug 16 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc3-1.3tux
|
|
|
|
- install-strip
|
|
|
|
|
|
|
|
* Tue Jul 22 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc3-1.2tux
|
|
|
|
- missing document: contrib/syslog-ng.conf.doc
|
|
|
|
|
|
|
|
* Thu Jun 12 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc3-1.1tux
|
|
|
|
- Version 1.6.0rc3
|
|
|
|
|
|
|
|
* Sat Apr 12 2003 Jose Pedro Oliveira <jpo at di.uminho.pt> 1.6.0rc2 snapshot
|
|
|
|
- Reorganized specfile
|
|
|
|
- Corrected the scripts (%post, %postun, and %preun)
|
|
|
|
- Commented the mysql related lines; create an option for future inclusion
|
|
|
|
|
|
|
|
* Thu Feb 27 2003 Richard E. Perlotto II <richard@perlotto.com> 1.6.0rc1-1
|
|
|
|
- Updated for new version
|
|
|
|
|
|
|
|
* Mon Feb 17 2003 Richard E. Perlotto II <richard@perlotto.com> 1.5.26-1
|
|
|
|
- Updated for new version
|
|
|
|
|
|
|
|
* Sun Dec 20 2002 Richard E. Perlotto II <richard@perlotto.com> 1.5.24-1
|
|
|
|
- Updated for new version
|
|
|
|
|
|
|
|
* Sun Dec 13 2002 Richard E. Perlotto II <richard@perlotto.com> 1.5.23-2
|
|
|
|
- Corrected the mass of errors that occured with rpmlint
|
|
|
|
- Continue to clean up for the helpful hints on how to write to a database
|
|
|
|
|
|
|
|
* Sun Dec 08 2002 Richard E. Perlotto II <richard@perlotto.com> 1.5.23-1
|
|
|
|
- Updated file with notes and PGP signatures
|
|
|
|
|
|
|
|
# vim:set ai ts=4 sw=4:
|