]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.spec
- updated to 1.4.13.
[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 Name:           syslog-ng
4 Version:        1.4.13
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        http://www.balabit.hu/downloads/syslog-ng/1.4/%{name}-%{version}.tar.gz
11 Source1:        %{name}.init
12 Source2:        %{name}.conf
13 Source3:        %{name}.logrotate
14 Patch0:         %{name}-autoconf.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 %prep
48 %setup -q
49 %patch -p1
50
51 %build
52 aclocal
53 autoconf
54 automake -a -c
55 %configure
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/{syslog-ng,logrotate.d}} \
61         $RPM_BUILD_ROOT/var/log/{archiv,}/{news,mail}
62
63 %{__make} DESTDIR=$RPM_BUILD_ROOT install
64
65 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
66 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
67 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog-ng
68
69 gzip -9nf doc/syslog-ng.conf.{demo,sample} doc/sgml/syslog-ng.txt \
70
71 touch $RPM_BUILD_ROOT/var/log/syslog
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post
77 for n in /var/log/{kernel,messages,secure,maillog,spooler,debug,cron,syslog,daemon,lpr,user,ppp,mail/{info,warn,err}}
78 do
79         [ -f $n ] && continue
80         touch $n
81         chmod 640 $n
82 done
83
84 /sbin/chkconfig --add syslog-ng
85 if [ -f /var/lock/subsys/syslog-ng ]; then
86         /etc/rc.d/init.d/syslog-ng restart &>/dev/null
87 else
88         echo "Run \"/etc/rc.d/init.d/syslog-ng start\" to start syslog-ng daemon."
89 fi
90 if [ -f /var/lock/subsys/klogd ]; then
91         /etc/rc.d/init.d/klogd restart 1>&2
92 fi
93
94 %preun
95 if [ "$1" = "0" ]; then
96         if [ -f /var/lock/subsys/syslog-ng ]; then
97                 /etc/rc.d/init.d/syslog-ng stop >&2
98         fi
99         /sbin/chkconfig --del syslog-ng
100 fi
101
102 %files
103 %defattr(644,root,root,755)
104 %doc doc/*.gz doc/sgml/syslog-ng.txt*
105 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
106 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/syslog-ng/syslog-ng.conf
107 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/logrotate.d/syslog-ng
108 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
109 %attr(755,root,root) %{_sbindir}/syslog-ng
110 %{_mandir}/man[58]/*
111
112 %attr(640,root,root) %ghost /var/log/syslog
113 %attr(750,root,root) %ghost /var/log/news
114 %attr(750,root,root) %dir /var/log/mail
115 %attr(750,root,root) %dir /var/log/archiv/mail
This page took 0.081537 seconds and 4 git commands to generate.