1 Summary: Syslog-ng - new generation of the system logger
2 Summary(pl): Syslog-ng - zamiennik syskloga
3 Summary(pt_BR): Daemon de log nova geração
9 Source0: http://www.balabit.hu/downloads/syslog-ng/1.4/%{name}-%{version}.tar.gz
12 Source3: %{name}.logrotate
13 Patch0: %{name}-autoconf.patch
14 URL: http://www.balabit.hu/products/syslog-ng/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libol-static >= 0.2.21
19 Prereq: rc-scripts >= 0.2.0
20 Prereq: /sbin/chkconfig
23 Requires: psmisc >= 20.1
24 Provides: syslogdaemon
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _sysconfdir /etc
31 syslog-ng is a syslogd replacement for unix and unix-like systems. It
32 has been tested on Solaris, BSDi and Linux, and were found to run
33 reliably. syslog-ng gives you a much enhanced configuration scheme,
34 which lets you filter messages based on not only priority/facility
35 pairs, but also on message content. You can use regexps to direct log
36 stream to different destinations. A destination can be anything from a
37 simple file to a network connection. syslog-ng supports TCP
38 logforwarding, together with hashing to prevent unauthorized
39 modification on the line.
42 Syslog-ng jest zamiennikiem dla standartowo u¿ywanych programów typu
43 sysklog. Dzia³a w systemie SunOS, BSD, Linux. Daje znacznie wiêksze
44 mo¿liwo¶ci logowania i kontrolowania zbieranych informacji.
47 Syslog-ng é um substituto para o syslog tradicional, mas com diversas
48 melhorias, como, por exemplo, a habilidade de filtrar mensagens de log
49 por seu conteúdo (usando expressões regulares) e não apenas pelo par
50 facility/prioridade como o syslog original.
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/{syslog-ng,logrotate.d}} \
67 $RPM_BUILD_ROOT/var/log/{archiv,}/{news,mail}
69 %{__make} DESTDIR=$RPM_BUILD_ROOT install
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
73 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog-ng
75 gzip -9nf doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt \
77 touch $RPM_BUILD_ROOT/var/log/syslog
80 rm -rf $RPM_BUILD_ROOT
83 for n in /var/log/{kernel,messages,secure,maillog,spooler,debug,cron,syslog,daemon,lpr,user,ppp,mail/{info,warn,err}}
90 /sbin/chkconfig --add syslog-ng
91 if [ -f /var/lock/subsys/syslog-ng ]; then
92 /etc/rc.d/init.d/syslog-ng restart &>/dev/null
94 echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
96 if [ -f /var/lock/subsys/klogd ]; then
97 /etc/rc.d/init.d/klogd restart 1>&2
101 if [ "$1" = "0" ]; then
102 if [ -f /var/lock/subsys/syslog-ng ]; then
103 /etc/rc.d/init.d/syslog-ng stop >&2
105 /sbin/chkconfig --del syslog-ng
109 %defattr(644,root,root,755)
110 %doc doc/*.gz doc/sgml/syslog-ng.txt*
111 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
112 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
113 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/syslog-ng
114 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
115 %attr(755,root,root) %{_sbindir}/syslog-ng
118 %attr(640,root,root) %ghost /var/log/syslog
119 %attr(750,root,root) %ghost /var/log/news
120 %attr(750,root,root) %dir /var/log/mail
121 %attr(750,root,root) %dir /var/log/archiv/mail