Compare commits

...

7 Commits
rawhide ... f9

Author SHA1 Message Date
Fedora Release Engineering
75d626daad dist-git conversion 2010-07-29 03:34:46 +00:00
Bill Nottingham
c3b4a6a2f1 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:38:59 +00:00
Michael Fleming
e9351e9af9 - Update to upstream release 2.5.9
- Fixes potential DoS' in multipart request and PDF XSS handling
2009-03-12 09:46:47 +00:00
Michael Fleming
3b33ac62d4 - Update to upstream 2.5.7
- Reinstate mlogc
2008-12-29 12:47:27 +00:00
Michael Fleming
23ac55e25a Forgot .cvsignore 2008-08-13 11:03:41 +00:00
Michael Fleming
a23445c1bf - Update to upstream 2.5.6
- Remove references to mlogc, it no longer ships in the main tarball.
- Link correctly vs. libxml2 and lua (bz# 445839)
- Remove bogus LoadFile directives as they're no longer needed.
2008-08-13 11:01:15 +00:00
Jesse Keating
25fd8b3412 Initialize branch F-9 for mod_security 2008-04-21 04:28:08 +00:00
6 changed files with 28 additions and 32 deletions

View File

@ -1 +0,0 @@
modsecurity-apache_2.1.7.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
modsecurity-apache_2.5.9.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: mod_security
# $Id$
NAME := mod_security
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,7 +1,5 @@
# Example configuration file for the mod_security Apache module # Example configuration file for the mod_security Apache module
LoadFile LIBDIR/libxml2.so.2
LoadModule security2_module modules/mod_security2.so LoadModule security2_module modules/mod_security2.so
LoadModule unique_id_module modules/mod_unique_id.so LoadModule unique_id_module modules/mod_unique_id.so

View File

@ -1,6 +1,6 @@
Summary: Security module for the Apache HTTP Server Summary: Security module for the Apache HTTP Server
Name: mod_security Name: mod_security
Version: 2.1.7 Version: 2.5.9
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
URL: http://www.modsecurity.org/ URL: http://www.modsecurity.org/
@ -9,8 +9,8 @@ Source: http://www.modsecurity.org/download/modsecurity-apache_%{version}.tar.gz
Source1: mod_security.conf Source1: mod_security.conf
Source2: modsecurity_localrules.conf Source2: modsecurity_localrules.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: libxml2 pcre httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing) Requires: httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)
BuildRequires: httpd-devel libxml2-devel pcre-devel BuildRequires: httpd-devel libxml2-devel pcre-devel curl-devel lua-devel
%description %description
ModSecurity is an open source intrusion detection and prevention engine ModSecurity is an open source intrusion detection and prevention engine
@ -22,8 +22,10 @@ as a powerful umbrella - shielding web applications from attacks.
%setup -n modsecurity-apache_%{version} %setup -n modsecurity-apache_%{version}
%build %build
make -C apache2 CFLAGS="%{optflags}" top_dir="%{_libdir}/httpd" cd apache2
perl -pi.orig -e 's|LIBDIR|%{_libdir}|;' %{SOURCE1} %configure
make %{_smp_mflags}
make %{_smp_mflags} mlogc
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
@ -33,22 +35,39 @@ install -d %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/optional_rules/
cp -r rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ cp -r rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
cp -r rules/optional_rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/optional_rules/ cp -r rules/optional_rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/optional_rules/
install -D -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/modsecurity_localrules.conf install -D -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/modsecurity_localrules.conf
install -Dp tools/mlogc %{buildroot}/%{_bindir}/mlogc
install -D -m644 apache2/mlogc-src/mlogc-default.conf %{buildroot}/%{_sysconfdir}/mlogc.conf
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr (-,root,root) %defattr (-,root,root)
%doc CHANGES LICENSE README.* modsecurity* doc %doc CHANGES LICENSE README.* modsecurity* doc MODSECURITY_LICENSING_EXCEPTION
%{_libdir}/httpd/modules/mod_security2.so %{_libdir}/httpd/modules/mod_security2.so
%{_bindir}/mlogc
%config(noreplace) %{_sysconfdir}/mlogc.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_security.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_security.conf
%dir %{_sysconfdir}/httpd/modsecurity.d %dir %{_sysconfdir}/httpd/modsecurity.d
%dir %{_sysconfdir}/httpd/modsecurity.d/optional_rules %dir %{_sysconfdir}/httpd/modsecurity.d/optional_rules
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/*.conf %config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/*.conf
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/optional_rules/*.conf %config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/optional_rules/*.conf
%changelog %changelog
* Thu Mar 12 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> 2.5.9-1
- Update to upstream release 2.5.9
- Fixes potential DoS' in multipart request and PDF XSS handling
* Mon Dec 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.5.7-1
- Update to upstream 2.5.7
- Reinstate mlogc
* Sat Aug 2 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.5.6-1
- Update to upstream 2.5.6
- Remove references to mlogc, it no longer ships in the main tarball.
- Link correctly vs. libxml2 and lua (bz# 445839)
- Remove bogus LoadFile directives as they're no longer needed.
* Sun Apr 13 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.7-1 * Sun Apr 13 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.7-1
- Update to upstream 2.1.7 - Update to upstream 2.1.7

View File

@ -1 +1 @@
19c34dd5611e0c516c0717de793f4640 modsecurity-apache_2.1.7.tar.gz b7bf44a7e041b49b0da5043495660375 modsecurity-apache_2.5.9.tar.gz