# # spec file for package apache2-mod_security2 (Version 2.5.9) # # Copyright (c) 2006-2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: apache2-mod_security2 Version: 2.5.11 Release: 1 # License: GPL Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: apache2-devel apache2-prefork libxml2-devel pcre-devel c++_compiler lua-devel curl-devel %define apache apache2 %define modname mod_security2 %define tarballname modsecurity-apache_%{version} # %define apxs %{_sbindir}/apxs2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)/MMN; test -x $MMN && $MMN) Requires: apache2 %{apache_mmn} # Url: http://www.modsecurity.org Source: http://www.modsecurity.org/download/%{tarballname}.tar.gz Source1: mod_security2.conf # Summary: ModSecurity Open Source Web Application Firewall %description ModSecurity(TM) is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks. Author: -------- Ivan Ristic %prep %setup -n %{tarballname} %build pushd %{apache} ./configure --with-apxs=%{apxs} --with-lua=/usr --with-curl=/usr --with-apr=/usr CFLAGS="%{optflags}" make popd %install pushd %{apache} install -d -m 0755 %{buildroot}%{apache_libexecdir} install .libs/mod_security2.so %{buildroot}%{apache_libexecdir}/%{modname}.so popd install -D -m 0644 %{SOURCE1} %{buildroot}%{apache_sysconfdir}/conf.d/%{modname}.conf %clean %{__rm} -rf %{buildroot}; %files %defattr(-, root, root, 0755) %{apache_libexecdir}/%{modname}.so %config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf %doc doc/html-multipage/ doc/*.pdf %doc README.TXT CHANGES LICENSE MODSECURITY_LICENSING_EXCEPTION %doc tools rules %changelog * Mon Nov 9 2009 tedi.heriyanto@gmail.com - updated to version 2.5.11 - removed --with-apr * Fri Mar 19 2009 tedi.heriyanto@gmail.com - updated to version 2.5.9 - added --with-apr= to the configure script - added --with-lua=/usr to the configure script * Fri Jan 23 2009 skh@suse.de - fix broken config [bnc#457200] * Mon Sep 15 2008 skh@suse.de - update to version 2.5.6 - initial submit to FACTORY * Mon May 12 2008 jg@internetx.de -update to 2.1.7 * Sun Feb 3 2008 jg@internetx.de -update to 2.1.6 * Wed Aug 8 2007 mrueckert@suse.de - update to 2.1.2 * Mon Apr 16 2007 mrueckert@suse.de - update to 2.1.1 - switched to perl based patching instead of cmdline params for make * Fri Sep 22 2006 poeml@suse.de - fix build (./install was vanished)