]> git.pld-linux.org Git - SPECS.git/blob - logfmon.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / logfmon.spec
1 # TODO: initscript, default configuration suitable for PLD
2 Summary:        logfmon - log file monitoring daemon
3 Summary(pl.UTF-8):      logfmon - demon monitorujący pliki logów
4 Name:           logfmon
5 Version:        1.1
6 Release:        0.1
7 License:        distributable
8 Group:          Daemons
9 Source0:        http://dl.sourceforge.net/logfmon/%{name}-%{version}.tar.gz
10 # Source0-md5:  18345830d8496a2db6d2d77ca75acc2e
11 Patch0:         %{name}-conf.patch
12 URL:            http://logfmon.sourceforge.net/
13 BuildRequires:  bison
14 BuildRequires:  flex
15 BuildRequires:  sed >= 4.0
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The logfmon daemon monitors a set of syslog log files and matches each
20 new entry against the rules defined in it's configuration file. Each
21 rule may be tested against lines from a single file or from all files.
22 Depending on the rule, a command may be executed or the entry may be
23 ignored. All unmatched messages are batched together and mailed every
24 15 minutes, or whatever alternative time is specified in the
25 configuration file.
26
27 Messages may also be collected into contexts and piped to a command
28 after a final message is found or a number of messages is reached. See
29 logfmon.conf(5) for more details of this.
30
31 %description -l pl.UTF-8
32 Demon logfmon monitoruje zestaw plików sysloga i porównuje każdy nowy
33 wpis z regułami zdefiniowanymi w swoim pliku konfiguracyjnym. Każda
34 reguła może być porównywana z linią z jednego lub wielu plików. W
35 zależności od reguły może być wykonywana komenda lub wpis może być
36 ignorowany. Wszystkie niedopasowane linie są zbierane i wysyłane
37 pocztą, domyślnie co 15 minut lub co okres czasu zdefiniowany w pliku
38 konfiguracyjnym.
39
40 Wiadomości mogą być także zbierane w konteksty i przekazywane potokiem
41 do komendy po znalezieniu ostatniej wiadomości lub osiągnięciu ich
42 liczby - więcej szczegółów w logfmon.conf(5) na temat tej opcji.
43
44 %prep
45 %setup -q
46 %patch0 -p0
47
48 %build
49 %{__make} depend all \
50         CC="%{__cc}"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 install -D logfmon $RPM_BUILD_ROOT%{_bindir}/logfmon
56 install -D logfmon.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5/logfmon.conf.5
57 install -D logfmon.8 $RPM_BUILD_ROOT%{_mandir}/man8/logfmon.8
58 install -D examples/logfmon-openbsd.conf $RPM_BUILD_ROOT%{_sysconfdir}/logfmon.conf
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc README examples/*
66 %attr(755,root,root) %{_bindir}/*
67 %{_mandir}/man[58]/*
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/logfmon.conf
This page took 0.422512 seconds and 3 git commands to generate.