29 |
Group: Applications/System |
Group: Applications/System |
30 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
31 |
Patch0: rkhunter-installer.patch |
Patch0: rkhunter-installer.patch |
|
Patch1: rkhunter-sme7.patch |
|
32 |
BuildArch: noarch |
BuildArch: noarch |
33 |
Requires: filesystem, bash, grep, findutils, net-tools, coreutils, e2fsprogs, modutils, procps, binutils, wget, perl |
Requires: filesystem, bash, grep, findutils, net-tools, coreutils, e2fsprogs, modutils, procps, binutils, wget, perl |
34 |
Provides: %{name} |
Provides: %{name} |
54 |
%prep |
%prep |
55 |
%setup -q |
%setup -q |
56 |
%patch0 -p1 |
%patch0 -p1 |
|
%patch1 -p1 |
|
57 |
|
|
58 |
%build |
%build |
59 |
|
|
60 |
%install |
%install |
61 |
sh ./installer.sh --layout RPM --install |
sh ./installer.sh --layout RPM --install |
62 |
|
|
63 |
|
sed -i 's_#ALLOWPROCLISTEN=/sbin/dhclient_ALLOWPROCLISTEN=/sbin/dhclient_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
64 |
|
sed -i 's_#ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
65 |
|
sed -i '/#ALLOWPROCDELFILE=\/usr\/sbin\/mysqld/aALLOWPROCDELFILE=\/usr\/sbin\/httpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
66 |
|
|
67 |
# Make a cron.daily file to mail us the reports |
# Make a cron.daily file to mail us the reports |
68 |
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily" |
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily" |
69 |
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF |
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF |
70 |
#!/bin/sh |
#!/bin/sh |
71 |
( %{_bindir}/rkhunter --cronjob --update --rwo && echo "" ) | /bin/mail -s "Rkhunter daily run on `uname -n`" root |
%{_bindir}/rkhunter --cronjob --update --disable apps,system_commands --rwo |
72 |
exit 0 |
exit 0 |
73 |
EOF |
EOF |
74 |
%{__chmod} a+rwx,g-w,o-rwx ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/01-rkhunter |
%{__chmod} a+rwx,g-w,o-rwx ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/01-rkhunter |
122 |
|
|
123 |
%changelog |
%changelog |
124 |
* Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-1 |
* Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-1 |
|
- Add sigs for 7.2, 7.3 and 8.0 |
|
125 |
- Fix installer to not install in local |
- Fix installer to not install in local |
126 |
|
- Set parameters for sme specific tests |
127 |
|
|
128 |
* Sun Feb 11 2007 unSpawn - pre-1.3.0 |
* Sun Feb 11 2007 unSpawn - pre-1.3.0 |
129 |
- Sync spec with fixes, installer and CVS |
- Sync spec with fixes, installer and CVS |