From 1de7d4c07e22631a5ce68bfd7f7460bb814dd878 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 2 Mar 2011 16:17:13 +0000
Subject: [PATCH]  - by default create apache with loris protection

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43905 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/apache.cfg | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/buildout/software-profiles/apache.cfg b/buildout/software-profiles/apache.cfg
index 47aa8bf5f3..e5ef88445f 100644
--- a/buildout/software-profiles/apache.cfg
+++ b/buildout/software-profiles/apache.cfg
@@ -1,5 +1,7 @@
 [buildout]
-parts = apache
+parts =
+  apache
+  apache-antiloris
 
 extends =
   libexpat.cfg
@@ -62,3 +64,14 @@ configure-options = --enable-authn-alias
 environment =
   CFLAGS =-I${libuuid:location}/include
   LDFLAGS =-Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${libuuid:location}/lib -Wl,-rpath -Wl,${libuuid:location}/lib -Wl,-rpath -Wl,${libexpat:location}/lib -Wl,-rpath -Wl,${pcre:location}/lib -Wl,-rpath -Wl,${sqlite3:location}/lib -Wl,-rpath -Wl,${gdbm:location}/lib
+
+[apache-antiloris]
+# Note: Shall react on each build of apache and reinstall itself
+recipe = hexagonit.recipe.cmmi
+url = http://sourceforge.net/projects/mod-antiloris/files/mod_antiloris-0.4.tar.bz2/download
+md5sum = 66862bf10e9be3a023e475604a28a0b4
+configure-command = ${apache:location}/bin/apxs
+configure-options = -c mod_antiloris.c
+make-binary = ${:configure-command}
+make-options = -i -a -n antiloris mod_antiloris.la
+make-targets =
-- 
2.30.9