]> git.pld-linux.org Git - packages/syslog-ng.git/blob - syslog-ng.spec
*** empty log message ***
[packages/syslog-ng.git] / syslog-ng.spec
1 Summary:        Syslog-ng - new generation fo the system logger
2 Summary(pl):    Syslog-ng - zamiennik sysklog'a
3 Name:           syslog-ng
4 Version:        1.1.27
5 Release:        1 
6 Copyright:      GPL
7 Group:          Daemons
8 Group(pl):      Demony
9 #http:          www.balabit.hu
10 #path:          /downloads/syslog-ng/source
11 Source0:        %name-%version.tar.gz
12 Source1:        syslog-ng
13 BuildRequires:  libol >= 0.2
14 Buildroot:      /tmp/%{name}-%{version}-root
15
16 %define _prefix /usr
17
18 %description
19 syslog-ng is a syslogd replacement for unix and unix-like systems. 
20 It has been tested on Solaris, BSDi and Linux, and were found to run reliably. 
21
22 syslog-ng gives you a much enhanced configuration scheme, which lets you filter 
23 messages based on not only priority/facility pairs, but also on message content. 
24 You can use regexps to direct log stream to different destinations. 
25 A destination can be anything from a simple file to a network connection. 
26 syslog-ng supports TCP logforwarding, together with hashing to prevent unauthorized 
27 modification on the line.
28
29 %description -l pl
30 Syslog-ng jest zamiennikiem dla standartowo u¿ywanych programów typu sysklog
31 Dzia³a w systemie SunON, BSD, Linux.
32
33 Daje znacznie wiêksze mo¿liwosci logowanie i kontrolowanie zbieranych informacji.
34
35 %prep
36 %setup -q
37
38 %build
39 autoconf
40 ./configure --prefix=/usr
41 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
42 make dvi
43 make info
44
45 %install
46
47 rm -rf $RPM_BUILD_ROOT
48
49 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
50
51 install -d $RPM_BUILD_ROOT/var/log/
52
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog
54 install doc/syslog-ng.conf.sample $RPM_BUILD_ROOT/etc/syslog-ng.conf
55
56 make prefix=$RPM_BUILD_ROOT/usr install
57
58 bzip2 -9 doc/syslog-ng.conf.demo
59 bzip2 -9 doc/syslog-ng.conf.sample
60 bzip2 -9 doc/*.ps
61 bzip2 -9 $RPM_BUILD_ROOT%{_mandir}/man[58]/*
62
63 touch $RPM_BUILD_ROOT/var/log/syslog
64
65 %post
66 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}
67 do
68         [ -f $n ] && continue
69         touch &n
70         chmod 640 &n
71 done
72
73 /sbin/checkconfig --add syslog
74 if [ -f /var/lock/subsys/ ]; then
75         /etc/rc.d/init.d/syslog restart &>/dev/null
76 else
77         echo "Run \"/etc/rc.d/init.d/syslog start\" to start syslog-ng daemon."
78 fi
79
80 %preun
81 if [ "$1" = "0" ]; then
82         /etc/rc.d/init.d/syslog stop >&2
83         /sbin/checkconfig --del syslog
84 fi
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644, root, root, 755)
91 %doc doc/*.bz2 doc/syslog-ng.html.tar.gz
92
93 %attr(640,root,root) %config %verify(not size mtime md5)/etc/syslog-ng.conf
94
95 %attr(755,root,root) /etc/rc.d/init.d/syslog
96
97 %attr(755,root,root) %{_sbindir}/syslog-ng
98
99 %attr(644,root,root) %{_mandir}/man5/syslog-ng.conf.5.bz2
100 %attr(644,root,root) %{_mandir}/man8/syslog-ng.8.bz2
101
102 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /var/log/*
103
104 %changelog
105 * Tue Jul 20 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
106   [1.1.27-1]
107 - update to last version.
108
109 * Tue May  4 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
110 - building RPM.
This page took 0.056918 seconds and 3 git commands to generate.