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