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