7 |
|
|
8 |
%define name rkhunter |
%define name rkhunter |
9 |
%define ver 1.3.0 |
%define ver 1.3.0 |
10 |
%define rel 3 |
%define rel 6 |
11 |
%define epoch 0 |
%define epoch 0 |
12 |
|
|
13 |
# Don't change this define or also: |
# Don't change this define or also: |
63 |
sh ./installer.sh --layout RPM --install |
sh ./installer.sh --layout RPM --install |
64 |
|
|
65 |
sed -i 's_#ALLOWPROCLISTEN=/sbin/dhclient_ALLOWPROCLISTEN=/sbin/dhclient_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
sed -i 's_#ALLOWPROCLISTEN=/sbin/dhclient_ALLOWPROCLISTEN=/sbin/dhclient_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
66 |
sed -i 's_#ALLOWPROCLISTEN=/usr/sbin/pppoe_ALLOWPROCLISTEN=/usr/sbin/pppoe_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
sed -i 's_#ALLOWPROCLISTEN=/usr/sbin/pppoe_ALLOWPROCLISTEN=/sbin/pppoe_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
67 |
sed -i 's_#ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
sed -i 's_#ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_ALLOWHIDDENFILE=/usr/share/man/man1/..1.gz_' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
68 |
sed -i '/#ALLOWPROCLISTEN=\/usr\/bin\/dhcpcd/iALLOWPROCLISTEN=\/usr\/sbin\/dhcpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
sed -i '/#ALLOWPROCLISTEN=\/usr\/bin\/dhcpcd/iALLOWPROCLISTEN=\/usr\/sbin\/dhcpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
69 |
sed -i '/#ALLOWPROCDELFILE=\/usr\/sbin\/mysqld/aALLOWPROCDELFILE=\/usr\/sbin\/httpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
sed -i '/#ALLOWPROCDELFILE=\/usr\/sbin\/mysqld/aALLOWPROCDELFILE=\/usr\/sbin\/httpd' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
70 |
|
sed -i '/ALLOWPROCDELFILE=\/usr\/sbin\/httpd/aALLOWPROCDELFILE=\/usr\/sbin\/asterisk' ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf |
71 |
|
|
72 |
# Make a cron.daily file to mail us the reports |
# Make a cron.daily file to mail us the reports |
73 |
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily" |
%{__mkdir} -p "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily" |
74 |
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF |
%{__cat} > "${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/01-rkhunter" <<EOF |
75 |
#!/bin/sh |
#!/bin/sh |
76 |
%{_bindir}/rkhunter --cronjob --update --disable apps,system_commands --rwo |
%{_bindir}/rkhunter --cronjob --update --disable apps,suspscan,system_commands --rwo |
77 |
exit 0 |
exit 0 |
78 |
EOF |
EOF |
79 |
%{__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 |
126 |
|
|
127 |
|
|
128 |
%changelog |
%changelog |
129 |
|
* Wed Jan 30 2008 Shad L. Lords <slords@mail.com> 1.3.0-6 |
130 |
|
- Fix asterisk to allow deleted files. [SME: 3795] |
131 |
|
|
132 |
|
* Tue Jan 29 2008 Shad L. Lords <slords@mail.com> 1.3.0-5 |
133 |
|
- Correct pppoe binary location. |
134 |
|
- Add asterisk binary to allow deleted files. [SME: 3795] |
135 |
|
|
136 |
|
* Mon Jan 7 2008 Shad L. Lords <slords@mail.com> 1.3.0-4 |
137 |
|
- Disable scan for suspicious files until fixed [SME: 3713] |
138 |
|
|
139 |
* Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-3 |
* Mon Dec 17 2007 Shad L. Lords <slords@mail.com> 1.3.0-3 |
140 |
- Change /var/lib to /var to be consistent with previous versions |
- Change /var/lib to /var to be consistent with previous versions |
141 |
|
|