4 %define fullver %{mainver}.%{minorver}
6 Summary: Syslog-ng - new generation of the system logger
7 Summary(pl): Syslog-ng - zamiennik syskloga
8 Summary(pt_BR): Daemon de log nova geração
10 Version: %{mainver}.%{minorver}
14 Source0: http://www.balabit.hu/downloads/syslog-ng/%{mainver}/src/%{name}-%{fullver}.tar.gz
15 # Source0-md5: 43cd9301077ea4ef47ab5cde7f428894
18 Source3: %{name}.logrotate
19 Patch0: %{name}-ac25x.patch
20 URL: http://www.balabit.com/products/syslog_ng/
21 BuildRequires: autoconf
22 BuildRequires: automake
24 BuildRequires: libol-static >= 0.3.10
25 BuildRequires: libwrap-devel
26 PreReq: rc-scripts >= 0.2.0
27 Requires(post,preun): /sbin/chkconfig
28 Requires(post): fileutils
30 Requires: psmisc >= 20.1
31 Provides: syslogdaemon
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 syslog-ng is a syslogd replacement for unix and unix-like systems. It
39 has been tested on Solaris, BSDi and Linux, and were found to run
40 reliably. syslog-ng gives you a much enhanced configuration scheme,
41 which lets you filter messages based on not only priority/facility
42 pairs, but also on message content. You can use regexps to direct log
43 stream to different destinations. A destination can be anything from a
44 simple file to a network connection. syslog-ng supports TCP
45 logforwarding, together with hashing to prevent unauthorized
46 modification on the line.
49 Syslog-ng jest zamiennikiem dla standardowo u¿ywanych programów typu
50 sysklog. Dzia³a w systemie SunOS, BSD, Linux. Daje znacznie wiêksze
51 mo¿liwo¶ci logowania i kontrolowania zbieranych informacji.
54 Syslog-ng é um substituto para o syslog tradicional, mas com diversas
55 melhorias, como, por exemplo, a habilidade de filtrar mensagens de log
56 por seu conteúdo (usando expressões regulares) e não apenas pelo par
57 facility/prioridade como o syslog original.
60 %setup -q -n %{name}-%{fullver}
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d},%{_sysconfdir}/syslog-ng} \
75 $RPM_BUILD_ROOT/var/log/{mail,archiv/mail}
78 DESTDIR=$RPM_BUILD_ROOT
80 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
81 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
82 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
84 > $RPM_BUILD_ROOT/var/log/syslog
87 rm -rf $RPM_BUILD_ROOT
90 for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,ppp,secure,spooler,syslog,user,mail/{info,warn,err}}
97 /sbin/chkconfig --add syslog-ng
98 if [ -f /var/lock/subsys/syslog-ng ]; then
99 /etc/rc.d/init.d/syslog-ng restart >&2
101 echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
105 if [ "$1" = "0" ]; then
106 if [ -f /var/lock/subsys/syslog-ng ]; then
107 /etc/rc.d/init.d/syslog-ng stop >&2
109 /sbin/chkconfig --del syslog-ng
113 %defattr(644,root,root,755)
114 %doc doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt* contrib/syslog-ng.conf.{doc,RedHat}
115 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
116 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
117 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/syslog-ng
118 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
119 %attr(755,root,root) %{_sbindir}/syslog-ng
122 %attr(640,root,root) %ghost /var/log/syslog
125 %dir /var/log/archiv/mail