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