]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/chkrootkit.git] / chkrootkit.spec
1 Summary:        chkrootkit - locally checks for signs of a rootkit
2 Summary(pl):    chkrootkit - narzêdzie do lokalnego szukania oznak rootkitów
3 Name:           chkrootkit
4 Version:        0.35
5 Release:        3
6 License:        Copyrighted
7 Group:          Applications/Networking
8 Source0:        ftp://sunsite.icm.edu.pl/pub/unix/security/chkrootkit/%{name}-%{version}.tar.gz
9 Source1:        %{name}-check
10 Source2:        %{name}.sysconfig
11 Patch0:         %{name}-CC.patch
12 Patch1:         %{name}-nostrip.patch
13 Patch2:         %{name}-names.patch
14 Patch3:         %{name}-wtmp.patch
15 URL:            http://www.chkrootkit.org/
16 BuildRequires:  glibc-static
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Chkrootkit is a toolkit to locally check for signs of a rootkit.
21  - chkrootkit: a shell script that checks system binaries for rootkit
22    modification. (If you can't trust rpm -Va)
23  - ifpromisc: checks if the network interface is in promiscuous mode.
24    (If you can't trust netstat)
25  - chklastlog: checks for lastlog deletions.
26  - chkwtmp: checks for wtmp deletions.
27  - check_wtmpx: checks for wtmpx deletions. (Solaris only)
28  - chkproc: checks for signs of LKM trojans. (kernel modules)
29  - strings: quick and dirty strings replacement.
30
31 %description -l pl
32 Chkrootkit to zestaw narzêdzi do lokalnego sprawdzania oznak u¿ycia
33 rootkitów.
34  - chkrootkit: skrypt pow³oki sprawdzaj±cy binarne pliki systemowe na
35    obecno¶æ modyfikacji typowych dla rootkitów (je¶li nie mo¿na zaufaæ
36    rpm -Va)
37  - ifpromisc: sprawdza czy interfejs sieciowy jest w trybie promiscuous
38    (gdy nie mo¿na zaufaæ netstat)
39  - chklastlog: sprawdza czy logi nie by³y kasowane
40  - chkwtmp: sprawdza kasowanie wtmpx
41  - check_wtmpx: sprawdza kasowanie w wtmpx deletions (tylko Solaris)
42  - chkproc: szuka oznak trojanów LKM (modu³y j±dra)
43  - strings: szybko i brzydko napisany zamiennik programu strings.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50 %patch3 -p1
51
52 %build
53 CC=%{__cc}
54 export CC
55 %{__make} sense
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/{sysconfig,cron.weekly}}
60
61 for x in check_wtmpx chklastlog chkproc chkwtmp ifpromisc strings; do
62     install $x $RPM_BUILD_ROOT/%{_bindir}/%{name}-$x
63 done
64
65 install chkrootkit $RPM_BUILD_ROOT/%{_bindir}
66
67 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/cron.weekly/
68 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/sysconfig/chkrootkit
69
70 gzip -9nf COPYRIGHT README README.chklastlog README.chkwtmp
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc *.gz
78 %attr(755,root,root) %{_bindir}/*
79 %attr(750,root,root) /etc/cron.weekly/chkrootkit-check
80 %attr(640,root,root) %config(noreplace) %verify(not mtime size md5) /etc/sysconfig/chkrootkit
This page took 0.110846 seconds and 4 git commands to generate.