Fix install of rules .conf files for EL4 only

This commit is contained in:
Michael Fleming 2010-02-27 00:39:08 +00:00
parent 5a8ed3950f
commit fef6f307f8

View File

@ -1,7 +1,7 @@
Summary: Security module for the Apache HTTP Server
Name: mod_security
Version: 2.5.12
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
URL: http://www.modsecurity.org/
Group: System Environment/Daemons
@ -32,7 +32,7 @@ rm -rf %{buildroot}
install -D -m755 apache2/.libs/mod_security2.so %{buildroot}/%{_libdir}/httpd/modules/mod_security2.so
install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/mod_security.conf
install -d %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
install -D -m644 rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
cp -R rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
cp -R rules/base_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
cp -R rules/optional_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
install -D -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/modsecurity_localrules.conf
@ -55,9 +55,10 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/*.conf
%changelog
* Sat Feb 13 2010 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.12-1
* Sat Feb 13 2010 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.12-2
- Update to latest upstream release
- SECURITY: Fix potential rules bypass and denial of service (bz#563576)
- Trivial installer fix for EL4
* Fri Nov 6 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.10-2
- Fix rules and Apache configuration (bz#533124)