apache2 httpd 2.4.2 - mod_evasive

Bjarne D Mathiesen macintosh at mathiesen.info
Fri Apr 27 20:04:44 PDT 2012


Ryan Schmidt wrote:
> On Apr 27, 2012, at 20:46, Bjarne D Mathiesen wrote:
> 
>> fails to build
> 
> Try this:
> 
> http://permalink.gmane.org/gmane.linux.redhat.fedora.extras.cvs/754632
> 

OK - this patch fixes the problem

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
-------------- next part --------------
--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/www/mod_evasive/Portfile	2012-04-28 05:03:00.000000000 +0200
+++ portfiles/www/mod_evasive/Portfile	2012-04-28 05:02:51.000000000 +0200
@@ -41,6 +41,10 @@
     depends_lib	port:apache2
     set apachedir apache2
     set cversion "20"
+    post-patch {
+        reinplace   "s|connection->remote_ip|connection->client_ip|g" \
+                    ${worksrcpath}/${name}${cversion}.c
+    }
     build.args	-c -o ${name}${cversion}.so ${name}${cversion}.c
 }
 


More information about the macports-dev mailing list