]> git.pld-linux.org Git - packages/logcheck.git/blob - logcheck.spec
- quote %{__cc}
[packages/logcheck.git] / logcheck.spec
1 # TODO:
2 # - SECURITY: http://securitytracker.com/alerts/2004/Apr/1009838.html
3 # - put logtail to bin instead of sbin?
4 Summary:        Logcheck system log analyzer
5 Summary(es):    Analizador de logs
6 Summary(pl):    Logcheck - analizator logów systemu
7 Summary(pt_BR): Um analisador de logs
8 Summary(ru):    Logcheck - ÁÎÁÌÉÚÁÔÏÒ log-ÆÁÊÌÏ×
9 Summary(uk):    Logcheck - ÁÎÁ̦ÚÁÔÏÒ log-ÆÁÊ̦×
10 Summary(zh_CN): ÏµÍ³ÈÕÖ¾·ÖÎö¹¤¾ß
11 Name:           logcheck
12 Version:        1.1.1
13 Release:        3.1
14 License:        GPL
15 Group:          Applications/System
16 #Source0:       http://www.psionic.com/tools/%{name}-%{version}.tar.gz
17 # Adopted by Debian ? They have 1.3.14 in pool
18 # Debian has 1.2.32 now.
19 Source0:        %{name}-%{version}.tar.gz
20 # Source0-md5:  e97c2f096e219e20310c1b80e9e1bc29
21 Patch0:         %{name}-pld.patch
22 Vendor:         Craig H. Rowland <crowland@psionic.com>
23 #URL:           http://www.psionic.com/abacus
24 Requires:       /usr/sbin/sendmail
25 Requires:       crondaemon
26 Requires:       logtail = %{epoch}:%{version}-%{release}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _sysconfdir     /etc/logcheck
30
31 %description
32 Logcheck is software package that is designed to automatically run and
33 check system log files for security violations and unusual activity.
34 Logcheck utilizes a program called logtail that remembers the last
35 position it read from in a log file and uses this position on
36 subsequent runs to process new information. All source code is
37 available for review and the implementation was kept simple to avoid
38 problems. This package is a clone of the frequentcheck.sh script from
39 the Trusted Information Systems Gauntlet(tm) firewall package. TIS has
40 granted permission for me to clone this package.
41
42 %description -l es
43 Analizador de logs
44
45 %description -l pl
46 Pakiet zawiera logcheck - aplikacjê przeznaczon± do automatycznego
47 analizowania logów systemowych i przesy³aniu ich po wstêpnej obróbce
48 poczt± elektroniczn± do administratora systemu. Aplikacja ta jest
49 klonem skryptu frequentcheck.sh z Trusted Information Systems
50 Gauntlet(tm).
51
52 %description -l pt_BR
53 O logcheck é um software que foi desenvolvido para automaticamente
54 rodar e checar logs do sistema para violações de segurança, e
55 atividade não usual.
56
57 %description -l ru
58 Logcheck - ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÏÔÓÌÅÖÉ×ÁÎÉÑ × ÓÉÓÔÅÍÎÙÈ ÌÏÇÁÈ ÎÅÏÂÙÞÎÙÈ
59 ÄÅÊÓÔ×ÉÊ É ÐÏÐÙÔÏË ÎÅÓÁÎËÃÉÏÎÉÒÏ×ÁÎÎÏÇÏ ÄÏÓÔÕÐÁ.
60
61 %description -l uk
62 Logcheck - ÐÒÏÇÒÁÍÁ ÄÌѠצÄÓ̦ÄËÏ×Õ×ÁÎÎÑ × ÓÉÓÔÅÍÎÉÈ ÌÏÇÁÈ ÎÅÚ×ÉÞÁÊÎÉÈ
63 ĦʠÔÁ ÓÐÒÏ ÎÅÓÁÎËæÏÎÏ×ÁÎÏÇÏ ÄÏÓÔÕÐÕ.
64
65 %package -n logtail
66 Summary:        logtail program from logcheck package
67 Group:          Applications/System
68
69 %description -n logtail
70 This package contains logtail that remembers the last position it read
71 from in a log file and uses this position on subsequent runs to
72 process new information.
73
74 %prep
75 %setup -q
76 %patch -p1
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.hourly,%{_sbindir}}
81
82 %{__make} linux \
83         CC="%{__cc}" \
84         CFLAGS="%{rpmcflags}"
85
86 cat <<EOF > $RPM_BUILD_ROOT/etc/cron.hourly/logcheck
87 #!/bin/sh
88 exec %{_sbindir}/logcheck
89 EOF
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc CHANGES CREDITS README* systems/linux/README*
97 %attr(700,root,root) %dir %{_sysconfdir}
98 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
99 %attr(700,root,root) %config(missingok) /etc/cron.hourly/logcheck
100 %attr(755,root,root) %{_sbindir}/logcheck
101
102 %files -n logtail
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_sbindir}/logtail
This page took 0.112198 seconds and 4 git commands to generate.