Revision
128948
Author
ionic@macports.org
Date
2014-11-30 17:54:34 -0800 (Sun, 30 Nov 2014)

Log Message

mod_security: apply maintainer patch with slight variations. Fixes #46095.

Modified Paths

Diff

Modified: trunk/dports/www/mod_security/Portfile (128947 => 128948)


--- trunk/dports/www/mod_security/Portfile	2014-12-01 01:54:29 UTC (rev 128947)
+++ trunk/dports/www/mod_security/Portfile	2014-12-01 01:54:34 UTC (rev 128948)
@@ -4,9 +4,9 @@
 PortSystem          1.0
 
 name                mod_security
-version             1.8.6
+version             1.9.5
 categories          www security
-maintainers         touche.fr.st:julien.touche
+maintainers         nomaintainer
 description         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 \
@@ -14,11 +14,20 @@
                     umbrella - shielding applications from attacks. \
                     It supports both branches of the Apache web server.
 homepage            http://www.modsecurity.org/
-master_sites        sourceforge:macports
+license             GPL-2
 platforms           darwin
-checksums           md5 f6bf4724dd0db3d37586b64bc0ee160d \
-                    sha1 9b6df25f3e5cf97b7c18caba79f90dca54800368
+# http://sourceforge.net/projects/mod-security/files/modsecurity-apache/1.9.5/
+#master_sites       sourceforge:macports
+#master_sites       sourceforge:mod-security/files/modsecurity-apache/${version}/        # NOK
+#master_sites       sourceforge:projects/mod-security/files/modsecurity-apache/${version}/    # NOK
+#master_sites       sourceforge:project/mod-security/files/modsecurity-apache/${version}/    # NOK
+#master_sites       sourceforge:modsecurity-apache/${version}/                # NOK
+master_sites        sourceforge:projects/mod-security/files/modsecurity-apache/${version}/
+distname            modsecurity-apache_${version}
 
+checksums           rmd160  f36f29f75bb30ca80ebaf5a96aa951e9de475d03 \
+                    sha256  927fafbce4fc11d32fe808a46c62da335a8703a6d18c22aadb7dd9692cf752a5
+
 use_configure       no
 
 #variant apache1 {
@@ -46,3 +55,9 @@
     xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENSE README \
         ${destroot}${prefix}/share/doc/${name}
 }
+
+notes "mod_security ${version} has been released on 2009.01.22. You are strongly encouraged to use mod_security2 or other maintained alternatives."
+
+livecheck.type      regex
+livecheck.url       http://sourceforge.net/projects/mod-security/files/modsecurity-apache/
+livecheck.regex     "<a href=\"/projects/mod-security/files/modsecurity-apache/(1(?:\\.\\d+)*)/\""