]> git.pld-linux.org Git - packages/tenshi.git/blame - tenshi.spec
up to 0.15 (20140804)
[packages/tenshi.git] / tenshi.spec
CommitLineData
747de3a4 1%include /usr/lib/rpm/macros.perl
ed19a8a2 2Summary: Log parsing and notification program
9a6709ed 3Summary(pl.UTF-8): Program do analizy logów i powiadamiania
ed19a8a2 4Name: tenshi
b28034ad 5Version: 0.15
c3a84b3d 6Release: 1
190f6c79 7License: GPL
ed19a8a2 8Group: Applications/System
637d97a2 9Source0: http://dev.inversepath.com/tenshi/%{name}-%{version}.tar.gz
b28034ad 10# Source0-md5: 3eb858893e29f0f6e7fb9f58f653a5b1
ed19a8a2 11Source1: %{name}.init
d6371d66 12Source2: %{name}.tmpfiles
ed19a8a2 13Patch0: %{name}-root.patch
cc7455fe 14Patch1: %{name}-config.patch
682cf968 15URL: http://www.inversepath.com/tenshi.html
747de3a4 16BuildRequires: rpm-perlprov
637d97a2 17BuildRequires: rpmbuild(macros) >= 1.228
cf14fe95 18Requires(post,preun): /sbin/chkconfig
637d97a2
ER
19Requires(post,preun): rc-scripts
20Requires(postun): /usr/sbin/groupdel
21Requires(postun): /usr/sbin/userdel
22Requires(pre): /bin/id
23Requires(pre): /usr/bin/getgid
24Requires(pre): /usr/sbin/groupadd
25Requires(pre): /usr/sbin/useradd
ed19a8a2 26Obsoletes: wasabi
a15cc553 27BuildArch: noarch
ed19a8a2
ER
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
637d97a2
ER
30%define _sysconfdir /etc/tenshi
31
ed19a8a2 32%description
de5b3c28 33Tenshi is a log monitoring program, designed to watch one or more log
34files for lines matching user defined regular expressions and report
35on the matches. The regular expressions are assigned to queues which
36have an alert interval and a list of mail recipients.
ed19a8a2 37
305959dc
ER
38Queues can be set to send a notification as soon as there is a log
39line assigned to it, or to send periodic reports.
40
a15cc553 41Additionally, uninteresting fields in the log lines (such as PID
305959dc 42numbers) can be masked with the standard regular expression grouping
a15cc553 43operators ( ). This allows cleaner and more readable reports. All
305959dc
ER
44reports are separated by hostname and all messages are condensed when
45possible.
46
ac15b206
JR
47%description -l pl.UTF-8
48Tenshi to program do monitorowania logów zaprojektowany do oglądania
49jednego lub większej liczby plików logów pod kątem linii pasujących do
50zdefiniowanych przez użytkownika wyrażeń regularnych i raportowania
51tych dopasowań. Wyrażenia regularne są przypisywane do kolejek
52mających częstotliwość alarmowania i listę adresatów pocztowych.
a15cc553 53
ac15b206
JR
54Kolejki mogą być konfigurowane do wysyłania powiadomień zaraz po
55napotkaniu linii w logu lub wysyłania regularnych raportów.
a15cc553 56
ac15b206
JR
57Dodatkowo nieciekawe pola z linii logów (takie jak numery procesów)
58mogą być pokrywane standardowymi operatorami grupowania wyrażeń
a15cc553 59regularnych ( ). Daje to bardziej przejrzyste i bardziej czytelne
ac15b206
JR
60raporty. Wszystkie raporty są oddzielane nazwą hosta, a wszystkie
61wiadomości są tak skondensowane, jak to tylko możliwe.
a15cc553 62
ed19a8a2
ER
63%prep
64%setup -q
65%patch0 -p1
cc7455fe 66%patch1 -p1
ed19a8a2 67
ed19a8a2
ER
68%install
69rm -rf $RPM_BUILD_ROOT
d6371d66
JR
70install -d $RPM_BUILD_ROOT{%{_mandir}/man8,/var/run/tenshi} \
71 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
ed19a8a2
ER
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
75
637d97a2 76install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
d6371d66 77install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
ed19a8a2 78
92b36db0
JR
79%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
80
ed19a8a2
ER
81%clean
82rm -rf $RPM_BUILD_ROOT
83
637d97a2
ER
84%pre
85%groupadd -g 175 %{name}
86%useradd -u 175 -d %{_sysconfdir} -g %{name} -c "Tenshi User" %{name}
87
1704837c
ER
88%post
89/sbin/chkconfig --add %{name}
747de3a4 90%service %{name} restart
1704837c
ER
91
92%preun
93if [ "$1" = "0" ]; then
747de3a4 94 %service -q %{name} stop
1704837c
ER
95 /sbin/chkconfig --del %{name}
96fi
97
637d97a2
ER
98%postun
99if [ "$1" = "0" ]; then
100 %userremove %{name}
101 %groupremove %{name}
102fi
103
ed19a8a2
ER
104%files
105%defattr(644,root,root,755)
cc7455fe 106%doc CREDITS Changelog README tenshi.conf
ed19a8a2 107%attr(755,root,root) %{_sbindir}/*
637d97a2 108%attr(750,root,tenshi) %dir %{_sysconfdir}
cc7455fe 109%attr(640,root,tenshi) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
a15cc553
JB
110%attr(754,root,root) /etc/rc.d/init.d/%{name}
111%{_mandir}/man8/*
637d97a2 112%dir %attr(775,root,tenshi) /var/run/tenshi
d6371d66 113/usr/lib/tmpfiles.d/%{name}.conf
This page took 0.068088 seconds and 4 git commands to generate.