1 Summary: Syslog-ng - new generation fo the system logger
2 Summary(pl): Syslog-ng - zamiennik sysklog'a
10 Source0: http://www.balabit.hu/downloads/syslog-ng/1.4/%{name}-%{version}.tar.gz
13 Source3: %{name}.logrotate
14 Patch0: %{name}-autoconf.patch
15 URL: http://www.balabit.hu/products/syslog-ng/
16 BuildRequires: libol-static >= 0.2.20
18 Requires: rc-scripts >= 0.2.0
20 Provides: syslogdaemon
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sysconfdir /etc
27 syslog-ng is a syslogd replacement for unix and unix-like systems. It
28 has been tested on Solaris, BSDi and Linux, and were found to run
29 reliably. syslog-ng gives you a much enhanced configuration scheme,
30 which lets you filter messages based on not only priority/facility
31 pairs, but also on message content. You can use regexps to direct log
32 stream to different destinations. A destination can be anything from a
33 simple file to a network connection. syslog-ng supports TCP
34 logforwarding, together with hashing to prevent unauthorized
35 modification on the line.
38 Syslog-ng jest zamiennikiem dla standartowo u¿ywanych programów typu
39 sysklog Dzia³a w systemie SunON, BSD, Linux. Daje znacznie wiêksze
40 mo¿liwosci logowanie i kontrolowanie zbieranych informacji.
53 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/{syslog-ng,logrotate.d}} \
56 $RPM_BUILD_ROOT/var/log/{archiv,}/{news,mail}
58 %{__make} DESTDIR=$RPM_BUILD_ROOT install
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
61 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
62 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog-ng
64 gzip -9nf doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt \
66 touch $RPM_BUILD_ROOT/var/log/syslog
69 for n in /var/log/{kernel,messages,secure,maillog,spooler,debug,cron,syslog,daemon,lpr,user,ppp,mail/{info,warn,err}}
76 /sbin/chkconfig --add syslog-ng
77 if [ -f /var/lock/subsys/syslog-ng ]; then
78 /etc/rc.d/init.d/syslog-ng restart &>/dev/null
80 echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
82 if [ -f /var/lock/subsys/klogd ]; then
83 /etc/rc.d/init.d/klogd restart 1>&2
87 if [ "$1" = "0" ]; then
88 if [ -f /var/lock/subsys/syslog-ng ]; then
89 /etc/rc.d/init.d/syslog-ng stop >&2
91 /sbin/chkconfig --del syslog-ng
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
99 %doc doc/*.gz doc/sgml/syslog-ng.txt*
100 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
101 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
102 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/syslog-ng
103 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
104 %attr(755,root,root) %{_sbindir}/syslog-ng
107 %attr(640,root,root) %ghost /var/log/syslog
108 %attr(750,root,root) %ghost /var/log/news
109 %attr(750,root,root) %dir /var/log/mail
110 %attr(750,root,root) %dir /var/log/archiv/mail