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