/[packages]/updates/1/rkhunter/current/SPECS/rkhunter.spec
ViewVC logotype

Contents of /updates/1/rkhunter/current/SPECS/rkhunter.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 216548 - (show annotations) (download)
Thu Mar 1 20:38:03 2012 UTC (9 years, 5 months ago) by remmy
File size: 2906 byte(s)
SILENT: Fix typo (as reported by Dave Hodgins)

1 %define subrel 3
2 Summary: Rootkit scans for rootkits, backdoors and local exploits
3 Name: rkhunter
4 Version: 1.3.8
5 Release: %mkrel 1
6 License: GPLv2+
7 Group: System/Configuration/Other
8 URL: http://rkhunter.sourceforge.net/
9 Source0: http://downloads.sourceforge.net/rkhunter/%{name}-%{version}.tar.gz
10 Source1: http://downloads.sourceforge.net/rkhunter/%{name}-%{version}.tar.gz.asc
11 Source2: rkhunter.cron
12 Source3: rkhunter.logrotate
13 Source4: README.urpmi
14 Patch0: rkhunter.conf.patch
15 BuildArch: noarch
16 Requires: webfetch
17 Requires: e2fsprogs
18 Requires: binutils
19 #Requires: ccp
20 Suggests: unhide
21
22 %description
23 Rootkit scanner is scanning tool to ensure you you're clean of known nasty
24 tools. This tool scans for rootkits, backdoors and local exploits by running
25 tests like:
26 - MD5/SHA1 hash compare
27 - Look for default files used by rootkits
28 - Wrong file permissions for binaries
29 - Look for suspected strings in LKM and KLD modules
30 - Look for hidden files
31 - Optional scan within plaintext and binary files
32
33 %prep
34 %setup -q
35 chmod -R a+r .
36 %patch0 -b .old
37
38 %install
39 rm -rf %{buildroot}
40 mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_sbindir} \
41 %{buildroot}%{_var}/lib/rkhunter/{db/i18n,scripts,tmp} \
42 %{buildroot}%{_mandir}/man8
43 install files/rkhunter %{buildroot}%{_sbindir}/
44 install -m 644 files/%{name}.conf %{buildroot}%{_sysconfdir}
45 install -m 644 files/*.dat %{buildroot}%{_var}/lib/rkhunter/db
46 install -m 644 files/i18n/* %{buildroot}%{_var}/lib/rkhunter/db/i18n
47 install -m 754 files/*.{pl,sh} %{buildroot}%{_var}/lib/rkhunter/scripts
48 install -m 644 files/rkhunter.8 %{buildroot}%{_mandir}/man8
49
50 %{__mkdir_p} %{buildroot}%{_sysconfdir}/cron.daily
51 %{__install} -m 0755 %{_sourcedir}/rkhunter.cron \
52 %{buildroot}%{_sysconfdir}/cron.daily/rkhunter
53
54 %{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
55 %{__install} -m 0644 %{_sourcedir}/rkhunter.logrotate \
56 %{buildroot}%{_sysconfdir}/logrotate.d/rkhunter
57
58 %{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}
59 %{__install} -m 0644 %{_sourcedir}/README.urpmi \
60 %{buildroot}%{_defaultdocdir}/%{name}/README.urpmi
61
62 %post
63 if [ $1 = 1 ]; then
64 # create rkhunter.dat
65 %{_sbindir}/rkhunter --propupd
66 # gather user / group info
67 %{_sbindir}/rkhunter --enable group_changes,passwd_changes
68 # Suppress warning on fresh install because of missing copies of passwd
69 # and groups file above
70 /bin/true
71 fi
72
73 #unfortunately, multiple ALLOW* and SCRIPT* keys forbids use of ccp
74 #until it supports the feature...
75 ##fix previous broken < 1.2.8 installs.
76 #ccp --delete --ifexists --set NoOrphans \
77 # --ignoreopt TMPDIR --ignoreopt DBDIR \
78 # --oldfile %{_sysconfdir}/rkhunter.conf \
79 # --newfile %{_sysconfdir}/rkhunter.conf.rpmnew
80
81 %files
82 %doc files/CHANGELOG files/README
83 %config(noreplace) %{_sysconfdir}/rkhunter.conf
84 %{_sysconfdir}/cron.daily/rkhunter
85 %{_sysconfdir}/logrotate.d/rkhunter
86 %{_sbindir}/*
87 %{_var}/lib/rkhunter
88 %{_mandir}/man8/*

  ViewVC Help
Powered by ViewVC 1.1.28