]> git.pld-linux.org Git - packages/syslog-ng.git/blobdiff - syslog-ng.spec
- updated to 1.4.9.
[packages/syslog-ng.git] / syslog-ng.spec
index 2b1d8debc0c8389badd869063edf35012c45e9c2..005536ddbdd97ac76e82d671805f3cc6613b1e3b 100644 (file)
@@ -1,37 +1,43 @@
 Summary:       Syslog-ng - new generation fo the system logger
 Summary(pl):   Syslog-ng - zamiennik sysklog'a
 Name:          syslog-ng
-Version:       1.4.1
-Release:       1 
+Version:       1.4.9
+Release:       1
 License:       GPL
 Group:         Daemons
-Group(pl):     Demony
-Source0:       http://www.balabit.hu//downloads/syslog-ng/source/%{name}-%{version}.tar.gz
-Source1:       syslog-ng.init
-Source2:       syslog-ng.conf
-Patch0:                syslog-ng-autoconf.patch
-BuildRequires: libol-static >= 0.2.16
+Group(de):     Server
+Group(pl):     Serwery
+Source0:       http://www.balabit.hu/downloads/syslog-ng/1.4/%{name}-%{version}.tar.gz
+Source1:       %{name}.init
+Source2:       %{name}.conf
+Source3:       %{name}.logrotate
+Patch0:                %{name}-autoconf.patch
+URL:           http://www.balabit.hu/products/syslog-ng/
+BuildRequires: libol-static >= 0.2.20
 BuildRequires: flex
-Requires:      rc-scripts
+Requires:      rc-scripts >= 0.2.0
+Requires:      logrotate
+Provides:      syslogdaemon
 Obsoletes:     syslog
-Buildroot:     /tmp/%{name}-%{version}-root
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
+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.
 
 %prep
 %setup -q
@@ -40,47 +46,49 @@ logowanie i kontrolowanie zbieranych informacji.
 %build
 aclocal
 autoconf
-LDFLAGS="-s"; export LDFLAGS
 %configure
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/syslog-ng} \
-       $RPM_BUILD_ROOT/var/log/news
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/{syslog-ng,logrotate.d}} \
+       $RPM_BUILD_ROOT/var/log/{archiv,}/{news,mail}
 
-make DESTDIR=$RPM_BUILD_ROOT install
+%{__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 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog-ng
 
 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
 
 %post
-for n in /var/log/{auth.log,syslog,cron.log,daemon.log,kern.log,lpr.log,user.log,uucp.log,ppp.log,mail.log,mail.info,mail.warn,mail.err,debug,messages}
+for n in /var/log/{kernel,messages,secure,maillog,spooler,debug,cron,syslog,daemon,lpr,user,ppp,mail/{info,warn,err}}
 do
        [ -f $n ] && continue
-       touch &n
-       chmod 640 &n
+       touch $n
+       chmod 640 $n
 done
 
-/sbin/checkconfig --add syslog
-if [ -f /var/lock/subsys/ ]; then
-       /etc/rc.d/init.d/syslog restart &>/dev/null
+/sbin/chkconfig --add syslog-ng
+if [ -f /var/lock/subsys/syslog-ng ]; then
+       /etc/rc.d/init.d/syslog-ng restart &>/dev/null
 else
-       echo "Run \"/etc/rc.d/init.d/syslog start\" to start syslog-ng daemon."
+       echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
+fi
+if [ -f /var/lock/subsys/klogd ]; then
+       /etc/rc.d/init.d/klogd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       if if [ -f /var/lock/subsys/ ]; then
-               /etc/rc.d/init.d/syslog stop >&2
+       if [ -f /var/lock/subsys/syslog-ng ]; then
+               /etc/rc.d/init.d/syslog-ng stop >&2
        fi
-       /sbin/checkconfig --del syslog
+       /sbin/chkconfig --del syslog-ng
 fi
 
 %clean
@@ -91,8 +99,12 @@ rm -rf $RPM_BUILD_ROOT
 %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(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/syslog-ng
 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
-%attr(755,root,root) %{_sbindir}/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/*
+
+%attr(640,root,root) %ghost /var/log/syslog
+%attr(750,root,root) %ghost /var/log/news
+%attr(750,root,root) %dir /var/log/mail
+%attr(750,root,root) %dir /var/log/archiv/mail
This page took 0.519827 seconds and 4 git commands to generate.