]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.spec
- merged DEVEL
[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.5.26
6 Release:        1
7 License:        GPL
8 Group:          Daemons
9 Source0:        http://www.balabit.hu/downloads/syslog-ng/1.5/%{name}-%{version}.tar.gz
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Source3:        %{name}.logrotate
13 Patch2:         %{name}-ac25x.patch
14 URL:            http://www.balabit.hu/products/syslog-ng/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  flex
18 BuildRequires:  libol-static >= 0.3.9
19 PreReq:         rc-scripts >= 0.2.0
20 Requires(post,preun):   /sbin/chkconfig
21 Requires(post): fileutils
22 Requires:       logrotate
23 Requires:       psmisc >= 20.1
24 Provides:       syslogdaemon
25 Obsoletes:      syslog
26 Obsoletes:      msyslog
27 Obsoletes:      klogd
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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.
40
41 %description -l pl
42 Syslog-ng jest zamiennikiem dla standardowo 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.
45
46 %description -l pt_BR
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.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %build
57 rm -f missing
58 %{__aclocal}
59 %{__autoconf}
60 %{__automake}
61 %configure
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d},%{_sysconfdir}/syslog-ng}
67 install -d $RPM_BUILD_ROOT/var/log/{mail,archiv}
68
69 %{__make} DESTDIR=$RPM_BUILD_ROOT install
70
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/etc/logrotate.d/syslog-ng
74
75 > $RPM_BUILD_ROOT/var/log/syslog
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post
81 for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,ppp,secure,spooler,syslog,user,mail/{info,warn,err}}
82 do
83         [ -f $n ] && continue
84         touch $n
85         chmod 640 $n
86 done
87
88 /sbin/chkconfig --add syslog-ng
89 if [ -f /var/lock/subsys/syslog-ng ]; then
90         /etc/rc.d/init.d/syslog-ng restart >&2
91 else
92         echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
93 fi
94
95 %preun
96 if [ "$1" = "0" ]; then
97         if [ -f /var/lock/subsys/syslog-ng ]; then
98                 /etc/rc.d/init.d/syslog-ng stop >&2
99         fi
100         /sbin/chkconfig --del syslog-ng
101 fi
102
103 %files
104 %defattr(644,root,root,755)
105 %doc doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt*
106 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
107 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
108 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/syslog-ng
109 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
110 %attr(755,root,root) %{_sbindir}/syslog-ng
111 %{_mandir}/man[58]/*
112
113 %attr(640,root,root) %ghost /var/log/syslog
114 %dir /var/log/mail
115 %dir /var/log/archiv
This page took 0.036445 seconds and 4 git commands to generate.