]> git.pld-linux.org Git - packages/chkrootkit.git/blob - chkrootkit.spec
- cosmetics
[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:        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:        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 %description -l pl
39 Chkrootkit to zestaw narzêdzi do lokalnego sprawdzania oznak u¿ycia
40 rootkitów.
41  - chkrootkit: skrypt pow³oki sprawdzaj±cy binarne pliki systemowe na
42    obecno¶æ modyfikacji typowych dla rootkitów (je¶li nie mo¿na zaufaæ
43    rpm -Va)
44  - ifpromisc: sprawdza czy interfejs sieciowy jest w trybie promiscuous
45    (gdy nie mo¿na zaufaæ netstat)
46  - chklastlog: sprawdza czy logi nie by³y kasowane
47  - chkwtmp: sprawdza kasowanie wtmpx
48  - check_wtmpx: sprawdza kasowanie w wtmpx deletions (tylko Solaris)
49  - chkproc: szuka oznak trojanów LKM (modu³y j±dra)
50  - strings: szybko i brzydko napisany zamiennik programu strings.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57 %patch3 -p1
58 %patch4 -p1
59 #%patch5 -p0
60
61 %build
62 CC=%{__cc}
63 export CC
64 %{__make} sense
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/{sysconfig,cron.weekly}}
69
70 for x in check_wtmpx chkdirs chklastlog chkproc chkwtmp ifpromisc strings; do
71         install $x $RPM_BUILD_ROOT%{_bindir}/%{name}-$x
72 done
73
74 install chkrootkit $RPM_BUILD_ROOT%{_bindir}
75
76 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/cron.weekly
77 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/sysconfig/chkrootkit
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc COPYRIGHT README README.chklastlog README.chkwtmp
85 %attr(750,root,root) /etc/cron.weekly/chkrootkit-check
86 %attr(640,root,root) %config(noreplace) %verify(not mtime size md5) /etc/sysconfig/chkrootkit
87 %attr(755,root,root) %{_bindir}/*
This page took 0.098544 seconds and 3 git commands to generate.