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