# $Id$ # Authority: shuff Summary: Host-based tool to scan for rootkits, backdoors and local exploits Name: rkhunter Version: 1.3.4 Release: 1%{?dist} License: GPL Group: Applications/System URL: http://www.rootkit.nl/ Source: http://dl.sf.net/rkhunter/rkhunter-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: /bin/sh, coreutils, binutils, modutils, findutils, grep, mktemp Requires: e2fsprogs, procps, lsof, prelink, iproute, net-tools, wget Requires: perl, perl(strict), perl(IO::Socket), mailx %description Rootkit Hunter scans files and systems for known and unknown rootkits, backdoors, and sniffers. The package contains one shell script, a few text-based databases, and optional Perl modules. It should run on almost every Unix clone. This tool scans for rootkits, backdoors and local exploits by running tests like: MD5 hash compare, Look for default files used by rootkits, Wrong file permissions for binaries, Look for suspected strings in LKM and KLD modules, Look for hidden files, Optional scan within plaintext and binary files, Software version checks and Application tests %prep %setup ### FIXME: installer has /usr/local as default prefix for RPM %{__perl} -pi.orig -e 's|PREFIX="\${RPM_BUILD_ROOT}/usr/local"|PREFIX="\${RPM_BUILD_ROOT}%{_prefix}"|g' installer.sh %{__cat} <rkhunter.logrotate %{_localstatedir}/log/rkhunter.log { weekly notifempty create 640 root root } EOF %build %install %{__rm} -rf %{buildroot} RPM_BUILD_ROOT="%{buildroot}" ./installer.sh --layout RPM --install %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root 0755) %doc files/ACKNOWLEDGMENTS files/CHANGELOG files/FAQ files/LICENSE files/README files/WISHLIST %doc %{_mandir}/man8/rkhunter.8* %config(noreplace) %{_sysconfdir}/rkhunter.conf %{_bindir}/rkhunter %{_libdir}/rkhunter/ %{_localstatedir}/lib/rkhunter/ %exclude %{_docdir} %changelog * Tue May 05 2009 Christoph Maser - 1.3.4 - 1 - Updated to release 1.3.4. * Tue Dec 23 2008 Christoph Maser - 1.3.2 - 1 - Updated to release 1.3.2. - Use --layout RPM from installer.sh. - Patch installer to use "/usr" prefix in RPM mode. * Thu May 17 2007 Dag Wieers - 1.2.9-2 - Fixed the INSTALLDIR location in rkhunter.conf. (Phil Schaffner) * Mon May 14 2007 Dag Wieers - 1.2.9-1 - Initial package. (using DAR)