Summary: Syslog-ng - new generation fo the system logger
Summary(pl): Syslog-ng - zamiennik sysklog'a
Name: syslog-ng
-Version: 1.1.28
+Version: 1.3.17
Release: 1
-Copyright: GPL
+License: GPL
Group: Daemons
Group(pl): Demony
-#http: www.balabit.hu
-#path: /downloads/syslog-ng/source
-Source0: %name-%version.tar.gz
-Source1: syslog-ng
+Source0: http://www.balabit.hu//downloads/syslog-ng/source/%{name}-%{version}.tar.gz
+Source1: syslog-ng.init
Source2: syslog-ng.conf
-BuildRequires: libol >= 0.2
+Patch0: syslog-ng-autoconf.patch
+BuildRequires: libol >= 0.2.16
Requires: rc-scripts
-Obsolotes: syslog
+Obsoletes: syslog
Buildroot: /tmp/%{name}-%{version}-root
-%define _prefix /usr
+%define _sysconfdir /etc
%description
-syslog-ng is a syslogd replacement for unix and unix-like systems.
-It has been tested on Solaris, BSDi and Linux, and were found to run reliably.
-
-syslog-ng gives you a much enhanced configuration scheme, which lets you filter
-messages based on not only priority/facility pairs, but also on message content.
-You can use regexps to direct log stream to different destinations.
-A destination can be anything from a simple file to a network connection.
-syslog-ng supports TCP logforwarding, together with hashing to prevent unauthorized
-modification on the line.
+syslog-ng is a syslogd replacement for unix and unix-like systems. It has
+been tested on Solaris, BSDi and Linux, and were found to run reliably.
+syslog-ng gives you a much enhanced configuration scheme, which lets you
+filter messages based on not only priority/facility pairs, but also on
+message content. You can use regexps to direct log stream to different
+destinations. A destination can be anything from a simple file to a
+network connection. syslog-ng supports TCP logforwarding, together with
+hashing to prevent unauthorized modification on the line.
%description -l pl
Syslog-ng jest zamiennikiem dla standartowo u¿ywanych programów typu sysklog
-Dzia³a w systemie SunON, BSD, Linux.
-
-Daje znacznie wiêksze mo¿liwosci logowanie i kontrolowanie zbieranych informacji.
+Dzia³a w systemie SunON, BSD, Linux. Daje znacznie wiêksze mo¿liwosci
+logowanie i kontrolowanie zbieranych informacji.
%prep
%setup -q
+%patch -p1
%build
+aclocal
autoconf
-./configure --prefix=%{_prefix}
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
-make dvi
-make info
+LDFLAGS="-s"; export LDFLAGS
+%configure
+make
%install
-
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{syslog-ng,rc.d/init.d}
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/syslog-ng} \
+ $RPM_BUILD_ROOT/var/log/news
-install -d $RPM_BUILD_ROOT/var/log/news
+make DESTDIR=$RPM_BUILD_ROOT install
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/syslog-ng
-
-make prefix=$RPM_BUILD_ROOT/usr install
-
-bzip2 -9 doc/syslog-ng.conf.demo
-bzip2 -9 doc/syslog-ng.conf.sample
-bzip2 -9 doc/*.ps
-bzip2 -9 $RPM_BUILD_ROOT%{_mandir}/man[58]/*
+gzip -9nf doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt \
+ $RPM_BUILD_ROOT%{_mandir}/man[58]/*
touch $RPM_BUILD_ROOT/var/log/syslog
%preun
if [ "$1" = "0" ]; then
- /etc/rc.d/init.d/syslog stop >&2
+ if if [ -f /var/lock/subsys/ ]; then
+ /etc/rc.d/init.d/syslog stop >&2
+ fi
/sbin/checkconfig --del syslog
fi
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(644, root, root, 755)
-%doc doc/*.bz2 doc/syslog-ng.html.tar.gz
-
-%attr(640,root,root) %config %verify(not size mtime md5)/etc/syslog-ng/syslog-ng.conf
-
-%attr(754,root,root) /etc/rc.d/init.d/syslog
-
-%attr(755,root,root) %{_sbindir}/syslog-ng
-
-%attr(644,root,root) %{_mandir}/man5/syslog-ng.conf.5.bz2
-%attr(644,root,root) %{_mandir}/man8/syslog-ng.8.bz2
-
+%defattr(644,root,root,755)
+%doc doc/*.gz doc/sgml/syslog-ng.txt*
+%attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
+%attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
+%attr(754,root,root) /etc/rc.d/init.d/syslog-ng
+%attr(755,root,root) %{_sbindir}/syslog-ng/
+
+%{_mandir}/man[58]/*
%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /var/log/*
-
-%changelog
-* Tue Jul 20 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
- [1.1.27-1]
-- update to last version.
-
-* Tue May 4 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- building RPM.