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

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

Currently displaying revision dbfeb64a29f54765f34fa2f5214fbea0, 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
%define realname rkhunter
5
Name:           ix-rkhunter
6
URL:            http://www.rootkit.nl/
7
License:        GNU General Public License (GPL)
8
Group:          System/Monitoring
9
Autoreqprov:    on
10
Summary:        Rootkit Scans for Rootkits, Backdoors, and Local Exploits
11
Version:        1.3.4
12
Release:        1
13
Source0:        http://downloads.rootkit.nl/%{realname}-%{version}.tar.gz
14
Patch0:         %{realname}-10.0_os.dat.patch
15
Patch1:     %{realname}-config.patch
16
Patch2:     %{realname}-installer.patch
17
Requires:       coreutils wget
18
BuildArch:      noarch
19
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
20
21
%description
22
Rootkit scanner is scanning tool that can give you 99.9% certainty that
23
your system is clean of nasty tools. This tool scans for rootkits,
24
backdoors, and local exploits by running tests like:
25
26
- Comparing MD5 hashes
27
28
- Looking for default files used by rootkits
29
30
- Checking for wrong file permissions for binaries
31
32
- Looking for suspected strings in LKM and KLD modules
33
34
- Looking for hidden files
35
36
- Optionally scanning within plain text and binary files
37
38
- Checking software versions
39
40
- Testing applications
41
42
43
44
Authors:
45
--------
46
    Michael Boelen <michael@rootkit.nl>
47
48
%debug_package
49
%prep
50
%setup -q -n %{realname}-%{version}
51
%patch0 -p1
52
%patch1 -p1
53
%patch2 -p1
54
%build
55
56
%install
57
./installer.sh --layout RPM --install
58
%if 0%{?suse_version}
59
mkdir -p ${RPM_BUILD_ROOT}/%{_docdir}
60
mv ${RPM_BUILD_ROOT}/usr/share/doc/%{realname}-%{version} ${RPM_BUILD_ROOT}%{_docdir}
61
%endif
62
cat files/rkhunter.conf >> ${RPM_BUILD_ROOT}%{_sysconfdir}/rkhunter.conf
63
%{__chmod} 640 ${RPM_BUILD_ROOT}%{_sysconfdir}/rkhunter.conf
64
# Only root should use rkhunter (at least for now)
65
#%{__chmod} o-rwx -R ${RPM_BUILD_ROOT}/usr/share/rkhunter
66
%{__chmod} o-rwx -R ${RPM_BUILD_ROOT}%{_var}/lib/rkhunter/db
67
# make a cron.daily file to mail us the reports
68
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily"
69
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/ix-rkhunter" <<EOF
70
#!/bin/sh
71
%{_bindir}/rkhunter --quiet --update
72
%{_bindir}/rkhunter --quiet --cronjob --nomow
73
EOF
74
%{__chmod} a+rwx,g-w,o-w ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/ix-rkhunter
75
76
%post
77
%{_bindir}/rkhunter --quiet --propupd
78
79
%clean
80
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
81
  && rm -rf $RPM_BUILD_ROOT
82
83
%files
84
%defattr(-,root,root,-)
85
%{_bindir}/rkhunter
86
%doc %{_docdir}/rkhunter-%{version}
87
%{_mandir}/man8/*
88
%{_libdir}/rkhunter/scripts
89
%dir %{_var}/lib/rkhunter
90
%dir %{_var}/lib/rkhunter/tmp
91
%{_var}/lib/rkhunter/db
92
%config(noreplace) %verify(not mtime) %{_sysconfdir}/rkhunter.conf
93
%attr(755,root,root) %{_sysconfdir}/cron.daily/ix-rkhunter
94
95
%changelog -n rkhunter
96
* Thu Jan 01 2009 Carsten Schoene <cs@linux-administrator.com>
97
- new upstream release 1.3.4
98
 - Added IntoXonia-NG rootkit check.
99
 - Added Phalanx2 rootkit check.
100
 - Added support for TCB shadow files.
101
 - The '--propupd' option can now take an optional file, directory or package name after it.
102
 - Revised file properties inode check.
103
 - Improved the O/S name detection.
104
 - Improved hidden files and directories check.
105
 - Improved debug file option.
106
107
* Fri May 30 2008 Carsten Schoene <cs@linux-administrator.com>
108
- new upstream release 1.3.2
109
 - Socklog and rsyslog daemons support.
110
 - IRIX/IRIX64 support.
111
 - Application version check errors mostly ignored.
112
 - Unset ALLOW_SSH_ROOT_USER and ALLOW_SSH_PROT_V1.
113
 - Application check whitelisting.
114
 - 'pflog' checked for all *BSD now.
115
 - Correct scanning of /dev in LAZY mode.
116
 - Whitelisted passwordless account names logged.
117
 - Corrected obtaining process names in Solaris.
118
 - Unset MANPATH for .spec (OpenSuSE).
119
 - Correct hidden files/directories test behaviour.
120
 - Cater for those using fdesc/fdescfs.
121
122
* Tue Jan 15 2008 Carsten Schoene <cs@linux-administrator.com>
123
- reworked all patches
124
- changed installation to installers RPM mode
125
- internetx specific configuration changes
126
127
* Wed Nov 22 2006 - meissner@suse.de
128
- use correct string for i586. #223221
129
* Thu Nov 16 2006 - meissner@suse.de
130
- Detect openSUSE as product correctly. #216053
131
- renamed cron script to have "suse.de-" prefix.
132
* Tue Nov 07 2006 - meissner@suse.de
133
- Include the current database from upstream. #216053
134
- daily cron script to mode 755
135
* Wed Jul 19 2006 - meissner@suse.de
136
- New version 1.2.8
137
    - some hashes and version updated
138
    - small fixes
139
- Added SUSE Linux 10 hashes
140
* Thu Mar 23 2006 - meissner@suse.de
141
- detect 10.1. #148471
142
* Wed Jan 25 2006 - mls@suse.de
143
- converted neededforbuild to BuildRequires
144
* Thu Dec 01 2005 - meissner@suse.de
145
- Order ALLOW* directives in the right section.
146
- Do not |mail in a cronjob, just let cron do it for itself.
147
- Quiet down output so it usually should not mail.
148
- Enable MAIL_ON_WARNING, send mail to root. #132683
149
* Wed Sep 07 2005 - meissner@suse.de
150
- ignore /etc/.pwd.lock, /etc/.java too. #115128
151
* Thu Aug 18 2005 - meissner@suse.de
152
- recognize 10.0, ignore /dev/.udevdb/.
153
* Fri Aug 12 2005 - meissner@suse.de
154
- Use /usr/share/rkhunter instead of /usr/%%_lib/rkhunter.
155
- Fixed some other problems.
156
* Mon Jul 11 2005 - meissner@suse.de
157
- Initial import of rkhunter 1.2.7.
158