Logoj0ke.net Open Build Service > Projects > internetx > ix-rkhunter > rkhunter.spec
Sign Up | Log In

File rkhunter.spec of Package ix-rkhunter (Revision b76ef03aef5960dc8da1bf1eb960948b)

Currently displaying revision b76ef03aef5960dc8da1bf1eb960948b, show latest

 
1
# norootforbuild
2
# usedforbuild    aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cpp41 cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc41 gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc41 libltdl libmudflap41 libnscd libstdc++41 libtool libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel
3
4
Name:           rkhunter
5
URL:            http://www.rootkit.nl/
6
License:        GNU General Public License (GPL)
7
Group:          System/Monitoring
8
Autoreqprov:    on
9
Summary:        Rootkit Scans for Rootkits, Backdoors, and Local Exploits
10
Version:        1.3.0
11
Release:        1
12
Source0:        http://downloads.rootkit.nl/%{name}-%{version}.tar.gz
13
Patch0:         %{name}-10.0_os.dat.patch
14
Patch1:     %{name}-config.patch
15
Patch2:     %{name}-installer.patch
16
Requires:       coreutils wget
17
BuildArch:      noarch
18
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
19
20
%description
21
Rootkit scanner is scanning tool that can give you 99.9% certainty that
22
your system is clean of nasty tools. This tool scans for rootkits,
23
backdoors, and local exploits by running tests like:
24
25
- Comparing MD5 hashes
26
27
- Looking for default files used by rootkits
28
29
- Checking for wrong file permissions for binaries
30
31
- Looking for suspected strings in LKM and KLD modules
32
33
- Looking for hidden files
34
35
- Optionally scanning within plain text and binary files
36
37
- Checking software versions
38
39
- Testing applications
40
41
42
43
Authors:
44
--------
45
    Michael Boelen <michael@rootkit.nl>
46
47
%debug_package
48
%prep
49
%setup -q
50
%patch0 -p1
51
%patch1 -p1
52
%patch2 -p1
53
%build
54
55
%install
56
./installer.sh --layout RPM --install
57
mkdir -p ${RPM_BUILD_ROOT}%{_docdir}
58
mv /usr/share/doc/${name}-%{version} ${RPM_BUILD_ROOT}%{_docdir}
59
cat files/rkhunter.conf >> ${RPM_BUILD_ROOT}%{_sysconfdir}/rkhunter.conf
60
%{__chmod} 640 ${RPM_BUILD_ROOT}%{_sysconfdir}/rkhunter.conf
61
# Only root should use rkhunter (at least for now)
62
#%{__chmod} o-rwx -R ${RPM_BUILD_ROOT}/usr/share/rkhunter
63
%{__chmod} o-rwx -R ${RPM_BUILD_ROOT}%{_var}/lib/rkhunter/db
64
# make a cron.daily file to mail us the reports
65
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily"
66
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/ix-rkhunter" <<EOF
67
#!/bin/sh
68
%{_bindir}/rkhunter --quiet --update
69
%{_bindir}/rkhunter --quiet --cronjob --nomow
70
EOF
71
%{__chmod} a+rwx,g-w,o-w ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/ix-rkhunter
72
73
%clean
74
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
75
  && rm -rf $RPM_BUILD_ROOT
76
77
%files
78
%defattr(-,root,root,-)
79
%{_bindir}/rkhunter
80
%doc %{_docdir}/rkhunter-%{version}
81
%{_mandir}/man8/*
82
%{_libdir}/rkhunter/scripts
83
%dir %{_var}/lib/rkhunter
84
%dir %{_var}/lib/rkhunter/tmp
85
%{_var}/lib/rkhunter/db
86
%config(noreplace) %verify(not mtime) %{_sysconfdir}/rkhunter.conf
87
%attr(755,root,root) %{_sysconfdir}/cron.daily/ix-rkhunter
88
89
%changelog -n rkhunter
90
* Tue Jan 15 2008 Carsten Schoene <cs@linux-administrator.com>
91
- reworked all patches
92
- changed installation to installers RPM mode
93
94
* Wed Nov 22 2006 - meissner@suse.de
95
- use correct string for i586. #223221
96
* Thu Nov 16 2006 - meissner@suse.de
97
- Detect openSUSE as product correctly. #216053
98
- renamed cron script to have "suse.de-" prefix.
99
* Tue Nov 07 2006 - meissner@suse.de
100
- Include the current database from upstream. #216053
101
- daily cron script to mode 755
102
* Wed Jul 19 2006 - meissner@suse.de
103
- New version 1.2.8
104
    - some hashes and version updated
105
    - small fixes
106
- Added SUSE Linux 10 hashes
107
* Thu Mar 23 2006 - meissner@suse.de
108
- detect 10.1. #148471
109
* Wed Jan 25 2006 - mls@suse.de
110
- converted neededforbuild to BuildRequires
111
* Thu Dec 01 2005 - meissner@suse.de
112
- Order ALLOW* directives in the right section.
113
- Do not |mail in a cronjob, just let cron do it for itself.
114
- Quiet down output so it usually should not mail.
115
- Enable MAIL_ON_WARNING, send mail to root. #132683
116
* Wed Sep 07 2005 - meissner@suse.de
117
- ignore /etc/.pwd.lock, /etc/.java too. #115128
118
* Thu Aug 18 2005 - meissner@suse.de
119
- recognize 10.0, ignore /dev/.udevdb/.
120
* Fri Aug 12 2005 - meissner@suse.de
121
- Use /usr/share/rkhunter instead of /usr/%%_lib/rkhunter.
122
- Fixed some other problems.
123
* Mon Jul 11 2005 - meissner@suse.de
124
- Initial import of rkhunter 1.2.7.
125