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