]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.spec
- updated to 1.4.15.
[packages/syslog-ng.git] / syslog-ng.spec
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
4 Name:           syslog-ng
5 Version:        1.4.15
6 Release:        2
7 License:        GPL
8 Group:          Daemons
9 Source0:        http://www.balabit.hu/downloads/syslog-ng/1.4/%{name}-%{version}.tar.gz
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Source3:        %{name}.logrotate
13 Patch0:         %{name}-autoconf.patch
14 Patch1:         %{name}-notestlibolver.patch
15 URL:            http://www.balabit.hu/products/syslog-ng/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libol-static >= 0.2.21
19 BuildRequires:  flex
20 Prereq:         rc-scripts >= 0.2.0
21 Prereq:         /sbin/chkconfig
22 Requires:       logrotate
23 Requires:       fileutils
24 Requires:       psmisc >= 20.1
25 Provides:       syslogdaemon
26 Obsoletes:      syslog
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _sysconfdir     /etc
30
31 %description
32 syslog-ng is a syslogd replacement for unix and unix-like systems. It
33 has been tested on Solaris, BSDi and Linux, and were found to run
34 reliably. syslog-ng gives you a much enhanced configuration scheme,
35 which lets you filter messages based on not only priority/facility
36 pairs, but also on message content. You can use regexps to direct log
37 stream to different destinations. A destination can be anything from a
38 simple file to a network connection. syslog-ng supports TCP
39 logforwarding, together with hashing to prevent unauthorized
40 modification on the line.
41
42 %description -l pl
43 Syslog-ng jest zamiennikiem dla standartowo u¿ywanych programów typu
44 sysklog. Dzia³a w systemie SunOS, BSD, Linux. Daje znacznie wiêksze
45 mo¿liwo¶ci logowania i kontrolowania zbieranych informacji.
46
47 %description -l pt_BR
48 Syslog-ng é um substituto para o syslog tradicional, mas com diversas
49 melhorias, como, por exemplo, a habilidade de filtrar mensagens de log
50 por seu conteúdo (usando expressões regulares) e não apenas pelo par
51 facility/prioridade como o syslog original.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56 %patch1 -p0
57
58 %build
59 rm -f missing
60 aclocal
61 autoconf
62 automake -a -c -f
63 %configure
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/{syslog-ng,logrotate.d}} \
69         $RPM_BUILD_ROOT/var/log/{archiv,}/{news,mail}
70
71 %{__make} DESTDIR=$RPM_BUILD_ROOT install
72
73 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
74 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
75 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog-ng
76
77 gzip -9nf doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt \
78
79 touch $RPM_BUILD_ROOT/var/log/syslog
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post
85 for n in /var/log/{kernel,messages,secure,maillog,spooler,debug,cron,syslog,daemon,lpr,user,ppp,mail/{info,warn,err}}
86 do
87         [ -f $n ] && continue
88         touch $n
89         chmod 640 $n
90 done
91
92 /sbin/chkconfig --add syslog-ng
93 if [ -f /var/lock/subsys/syslog-ng ]; then
94         /etc/rc.d/init.d/syslog-ng restart &>/dev/null
95 else
96         echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
97 fi
98 if [ -f /var/lock/subsys/klogd ]; then
99         /etc/rc.d/init.d/klogd restart 1>&2
100 fi
101
102 %preun
103 if [ "$1" = "0" ]; then
104         if [ -f /var/lock/subsys/syslog-ng ]; then
105                 /etc/rc.d/init.d/syslog-ng stop >&2
106         fi
107         /sbin/chkconfig --del syslog-ng
108 fi
109
110 %files
111 %defattr(644,root,root,755)
112 %doc doc/*.gz doc/sgml/syslog-ng.txt*
113 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
114 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
115 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/syslog-ng
116 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
117 %attr(755,root,root) %{_sbindir}/syslog-ng
118 %{_mandir}/man[58]/*
119
120 %attr(640,root,root) %ghost /var/log/syslog
121 %attr(750,root,root) %ghost /var/log/news
122 %attr(750,root,root) %dir /var/log/mail
123 %attr(750,root,root) %dir /var/log/archiv/mail
This page took 0.043791 seconds and 4 git commands to generate.