--- rpms/rkhunter/sme8/rkhunter.spec 2007/12/17 22:24:22 1.4 +++ rpms/rkhunter/sme8/rkhunter.spec 2007/12/18 10:47:34 1.5 @@ -7,7 +7,7 @@ %define name rkhunter %define ver 1.3.0 -%define rel 2 +%define rel 3 %define epoch 0 # Don't change this define or also: @@ -29,6 +29,7 @@ License: GPL Group: Applications/System Source0: %{name}-%{version}.tar.gz Patch0: rkhunter-installer.patch +Patch1: rkhunter-nolib.patch BuildArch: noarch Requires: filesystem, bash, grep, findutils, net-tools, coreutils, e2fsprogs, modutils, procps, binutils, wget, perl Provides: %{name} @@ -54,6 +55,7 @@ Rootkit Hunter is released as a GPL lice %prep %setup -q %patch0 -p1 +%patch1 -p1 %build @@ -79,8 +81,8 @@ EOF %post # Only do this on an initial install if [ $1 -eq 1 ]; then - %{__cp} -p /etc/passwd /var/lib/rkhunter/tmp >/dev/null 2>&1 || : - %{__cp} -p /etc/group /var/lib/rkhunter/tmp >/dev/null 2>&1 || : + %{__cp} -p /etc/passwd /var/rkhunter/tmp >/dev/null 2>&1 || : + %{__cp} -p /etc/group /var/rkhunter/tmp >/dev/null 2>&1 || : fi @@ -88,7 +90,7 @@ fi # Only do this when removing the RPM if [ $1 -eq 0 ]; then %{__rm} -f /var/log/rkhunter.log /var/log/rkhunter.log.old >/dev/null 2>&1 - %{__rm} -rf /var/lib/rkhunter/* >/dev/null 2>&1 + %{__rm} -rf /var/rkhunter/* >/dev/null 2>&1 fi @@ -113,16 +115,19 @@ fi %attr(644,root,root) %doc %{_prefix}/share/man/man8/%{name}.8.gz %attr(755,root,root) %dir %{docdir} %attr(644,root,root) %doc %{docdir}/* -%attr(750,root,root) %dir %{_var}/lib/%{name} -%attr(750,root,root) %dir %{_var}/lib/%{name}/db -%attr(640,root,root) %{_var}/lib/%{name}/db/*.dat -%attr(750,root,root) %dir %{_var}/lib/%{name}/db/i18n -%attr(640,root,root) %{_var}/lib/%{name}/db/i18n/* -%attr(750,root,root) %dir %{_var}/lib/%{name}/tmp +%attr(750,root,root) %dir %{_var}/%{name} +%attr(750,root,root) %dir %{_var}/%{name}/db +%attr(640,root,root) %{_var}/%{name}/db/*.dat +%attr(750,root,root) %dir %{_var}/%{name}/db/i18n +%attr(640,root,root) %{_var}/%{name}/db/i18n/* +%attr(750,root,root) %dir %{_var}/%{name}/tmp %{_sysconfdir}/cron.daily/01-rkhunter %changelog +* Mon Dec 17 2007 Shad L. Lords 1.3.0-3 +- Change /var/lib to /var to be consistent with previous versions + * Mon Dec 17 2007 Shad L. Lords 1.3.0-2 - Add a few more services for sme tests