]> git.pld-linux.org Git - packages/logcheck.git/blob - logcheck.spec
- another fix in %install.
[packages/logcheck.git] / logcheck.spec
1 Summary:        Logcheck system log analyzer
2 Summary(pl):    Logcheck - analizator logów systemu
3 Name:           logcheck
4 Version:        1.1.1
5 Release:        1
6 License:        Free. See LICENSE file.
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        http://www.psionic.com/tools/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-pld.patch
12 Vendor:         Craig Rowland <crowland@psionic.com>
13 URL:            http://www.psionic.com/abacus
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _sysconfdir     /etc/logcheck
17
18 %description
19 Logcheck is software package that is designed to automatically run and
20 check system log files for security violations and unusual activity.
21 Logcheck utilizes a program called logtail that remembers the last
22 position it read from in a log file and uses this position on
23 subsequent runs to process new information. All source code is
24 available for review and the implementation was kept simple to avoid
25 problems. This package is a clone of the frequentcheck.sh script from
26 the Trusted Information Systems Gauntlet(tm) firewall package. TIS has
27 granted permission for me to clone this package.
28
29 %description -l pl
30 Pakiet zawiera logcheck - aplikacjê przeznaczon± do automatycznego
31 analizowania logów systemowych i przesy³aniu ich po wstêpnjej obróbce
32 poczt± elektroniczn± do administratora systemu. Aplikacja ta jest
33 klonem skryptu frequentcheck.sh z Trusted Information Systems
34 Gauntlet(tm).
35
36 %prep
37 %setup -q
38 %patch -p1
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.hourly,%{_sbindir}}
43
44 %{__make} linux \
45         CC=%{__cc} \
46         CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
47
48 cat <<EOF > $RPM_BUILD_ROOT/etc/cron.hourly/logcheck
49 #!/bin/sh
50 exec %{_sbindir}/logcheck
51 EOF
52
53 gzip -9nf CHANGES CREDITS README* systems/linux/README*
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc *.gz systems/linux/*.gz
61 %attr(700,root,root) %dir %{_sysconfdir}
62 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
63 %attr(700,root,root) %config(missingok) /etc/cron.hourly/logcheck
64 %attr(755,root,root) %{_sbindir}/logcheck
65 %attr(755,root,root) %{_sbindir}/logtail
This page took 0.037058 seconds and 4 git commands to generate.