[79568] trunk/dports/www
pixilla at macports.org
pixilla at macports.org
Sat Jun 18 07:47:52 PDT 2011
Revision: 79568
http://trac.macports.org/changeset/79568
Author: pixilla at macports.org
Date: 2011-06-18 07:47:50 -0700 (Sat, 18 Jun 2011)
Log Message:
-----------
www/mod_security2: New port. Closes #29825
Added Paths:
-----------
trunk/dports/www/mod_security2/
trunk/dports/www/mod_security2/Portfile
Added: trunk/dports/www/mod_security2/Portfile
===================================================================
--- trunk/dports/www/mod_security2/Portfile (rev 0)
+++ trunk/dports/www/mod_security2/Portfile 2011-06-18 14:47:50 UTC (rev 79568)
@@ -0,0 +1,66 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+name mod_security2
+version 2.6.0
+categories www security
+platforms darwin
+maintainers pixilla openmaintainer
+description Apache 2 intrusion detection and prevention engine for web applications
+long_description ModSecurity is an open source intrusion detection and \
+ prevention engine for web applications. It operates \
+ embedded into the web server, acting as a powerful \
+ umbrella - shielding applications from attacks.
+homepage http://www.modsecurity.org
+master_sites sourceforge:mod-security
+distname modsecurity-apache_${version}
+worksrcdir ${distname}
+
+depends_build port:libxml2 \
+ port:lua \
+ port:pcre \
+ port:curl \
+ port:apr \
+ port:apr-util
+depends_lib port:apache2
+
+checksums sha1 280061a6cb49c955d7371b9526193f68a12ae2ac \
+ rmd160 a9d34e17d80007f394087da5bd92c6047f48d343
+
+configure.args --with-apxs=${prefix}/apache2/bin/apxs \
+ --with-pcre=${prefix}/bin/pcre-config \
+ --with-apr=${prefix}/bin/apr-1-config \
+ --with-apu=${prefix}/bin/apu-1-config \
+ --with-curl=${prefix}/bin/curl-config \
+ --with-libxml=${prefix} \
+ --with-lua=${prefix}
+
+destroot.violate_mtree yes
+
+destroot {
+ xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
+ xinstall -m 644 -W ${worksrcpath}/apache2/.libs mod_security2.so \
+ ${destroot}${prefix}/apache2/modules
+ xinstall -m 755 -W ${worksrcpath}/mlogc mlogc mlogc-batch-load.pl \
+ ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath}/tools rules-updater.pl \
+ ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath}/mlogc mlogc-default.conf \
+ ${destroot}${prefix}/etc
+ xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE NOTICE README.TXT \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
+notes "
+
+# Now edit ${prefix}/apache2/httpd.conf and add the following lines at the end of the LoadModules section:
+ LoadFile ${prefix}/lib/libxml2.dylib
+ LoadFile ${prefix}/lib/liblua.dylib
+ LoadModule security2_module modules/mod_security2.so
+
+# And finally reload apache.
+ $ sudo apachectl graceful
+
+"
\ No newline at end of file
Property changes on: trunk/dports/www/mod_security2/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110618/0ff1c26f/attachment.html>
More information about the macports-changes
mailing list