]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.spec
- add obsoletes msyslog
[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.17
6 Release:        1
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 Patch2:         %{name}-ac25x.patch
16 URL:            http://www.balabit.hu/products/syslog-ng/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  flex
20 BuildRequires:  libol-static >= 0.2.21
21 PreReq:         rc-scripts >= 0.2.0
22 Requires(post,preun):   /sbin/chkconfig
23 Requires(post): fileutils
24 Requires:       logrotate
25 Requires:       psmisc >= 20.1
26 Provides:       syslogdaemon
27 Obsoletes:      syslog
28 Obsoletes:      msyslog
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 standardowo 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 %patch2 -p1
58
59 %build
60 rm -f missing
61 %{__aclocal}
62 %{__autoconf}
63 %{__automake}
64 %configure
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d},%{_sysconfdir}/syslog-ng}
70 install -d $RPM_BUILD_ROOT/var/log/{mail,archiv}
71
72 %{__make} DESTDIR=$RPM_BUILD_ROOT install
73
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
75 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
76 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
77
78 > $RPM_BUILD_ROOT/var/log/syslog
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post
84 for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,ppp,secure,spooler,syslog,user,mail/{info,warn,err}}
85 do
86         [ -f $n ] && continue
87         touch $n
88         chmod 640 $n
89 done
90
91 /sbin/chkconfig --add syslog-ng
92 if [ -f /var/lock/subsys/syslog-ng ]; then
93         /etc/rc.d/init.d/syslog-ng restart >/dev/null 2>&1
94 else
95         echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
96 fi
97 if [ -f /var/lock/subsys/klogd ]; then
98         /etc/rc.d/init.d/klogd restart 1>&2
99 fi
100
101 %preun
102 if [ "$1" = "0" ]; then
103         if [ -f /var/lock/subsys/syslog-ng ]; then
104                 /etc/rc.d/init.d/syslog-ng stop >&2
105         fi
106         /sbin/chkconfig --del syslog-ng
107 fi
108
109 %files
110 %defattr(644,root,root,755)
111 %doc doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt*
112 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
113 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
114 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/syslog-ng
115 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
116 %attr(755,root,root) %{_sbindir}/syslog-ng
117 %{_mandir}/man[58]/*
118
119 %attr(640,root,root) %ghost /var/log/syslog
120 %dir /var/log/mail
121 %dir /var/log/archiv
This page took 0.033657 seconds and 4 git commands to generate.