]> git.pld-linux.org Git - packages/tenshi.git/blob - tenshi.spec
- updated to 0.5.1
[packages/tenshi.git] / tenshi.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Log parsing and notification program
3 Summary(pl):    Program do analizy logów i powiadamiania
4 Name:           tenshi
5 Version:        0.5.1
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        http://dev.gentoo.org/~lcars/tenshi/%{name}-%{version}.tar.gz
10 # Source0-md5:  44361d5d8defc5170146f467a8825413
11 Source1:        %{name}.init
12 Patch0:         %{name}-root.patch
13 URL:            http://www.gentoo.org/proj/en/infrastructure/tenshi/index.xml
14 BuildRequires:  rpmbuild(macros) >= 1.228
15 BuildRequires:  rpm-perlprov
16 Requires(post,preun):   rc-scripts
17 Requires(post,preun):   /sbin/chkconfig
18 Obsoletes:      wasabi
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Tenshi is a log monitoring program, designed to watch one or more log
24 files for lines matching user defined regular expressions and report
25 on the matches. The regular expressions are assigned to queues which
26 have an alert interval and a list of mail recipients.
27
28 Queues can be set to send a notification as soon as there is a log
29 line assigned to it, or to send periodic reports.
30
31 Additionally, uninteresting fields in the log lines (such as PID
32 numbers) can be masked with the standard regular expression grouping
33 operators ( ). This allows cleaner and more readable reports. All
34 reports are separated by hostname and all messages are condensed when
35 possible.
36
37 %description -l pl
38 Tenshi to program do monitorowania logów zaprojektowany do ogl±dania
39 jednego lub wiêkszej liczby plików logów pod k±tem linii pasuj±cych do
40 zdefiniowanych przez u¿ytkownika wyra¿eñ regularnych i raportowania
41 tych dopasowañ. Wyra¿enia regularne s± przypisywane do kolejek
42 maj±cych czêstotliwo¶æ alarmowania i listê adresatów pocztowych.
43
44 Kolejki mog± byæ konfigurowane do wysy³ania powiadomieñ zaraz po
45 napotkaniu linii w logu lub wysy³ania regularnych raportów.
46
47 Dodatkowo nieciekawe pola z linii logów (takie jak numery procesów)
48 mog± byæ pokrywane standardowymi operatorami grupowania wyra¿eñ
49 regularnych ( ). Daje to bardziej przejrzyste i bardziej czytelne
50 raporty. Wszystkie raporty s± oddzielane nazw± hosta, a wszystkie
51 wiadomo¶ci s± tak skondensowane, jak to tylko mo¿liwe.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_mandir}/man8,/etc/rc.d/init.d}
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
65 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post
71 /sbin/chkconfig --add %{name}
72 %service %{name} restart
73
74 %preun
75 if [ "$1" = "0" ]; then
76         %service -q %{name} stop
77         /sbin/chkconfig --del %{name}
78 fi
79
80 %files
81 %defattr(644,root,root,755)
82 %doc CREDITS Changelog README
83 %attr(755,root,root) %{_sbindir}/*
84 %attr(750,root,root) %dir %{_sysconfdir}/%{name}
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
86 %attr(754,root,root) /etc/rc.d/init.d/%{name}
87 %{_mandir}/man8/*
This page took 0.080393 seconds and 3 git commands to generate.