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