source: trunk/dports/www/mod_security2/Portfile @ 87969

Last change on this file since 87969 was 85092, checked in by pixilla@…, 8 years ago

www/mod_security2:

  • Update to version 2.6.2.
  • Fix livecheck.
  • Fix notes.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 85092 2011-10-09 17:56:03Z pixilla@macports.org $
3
4PortSystem          1.0
5name                mod_security2
6set name_package    modsecurity-apache
7version             2.6.2
8categories          www security
9platforms           darwin
10maintainers         pixilla openmaintainer
11description         Apache 2 intrusion detection and prevention engine for web applications
12long_description    ModSecurity is an open source intrusion detection and \
13                    prevention engine for web applications. It operates \
14                    embedded into the web server, acting as a powerful \
15                    umbrella - shielding applications from attacks.
16homepage            http://www.modsecurity.org
17master_sites        sourceforge:mod-security
18distname            ${name_package}_${version}
19worksrcdir          ${distname}
20
21depends_lib         port:apache2 \
22                    port:libxml2 \
23                    port:lua \
24                    port:curl
25
26checksums           rmd160  9e75dbb790cc9f2b48a6d38beb5bd4c8755e013e \
27                    sha256  99eb400cb35a2a7cfd8069774bf39197e577a57d2c5126036c67f661268f3e5a
28
29configure.args      --with-apxs=${prefix}/apache2/bin/apxs \
30                    --with-pcre=${prefix}/bin/pcre-config \
31                    --with-apr=${prefix}/bin/apr-1-config \
32                    --with-apu=${prefix}/bin/apu-1-config \
33                    --with-curl=${prefix}/bin/curl-config \
34                    --with-libxml=${prefix} \
35                    --with-lua=${prefix}
36
37destroot.violate_mtree yes
38
39destroot {
40    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
41    xinstall -m 644 -W ${worksrcpath}/apache2/.libs mod_security2.so \
42                        ${destroot}${prefix}/apache2/modules
43    xinstall -m 755 -W ${worksrcpath}/mlogc mlogc mlogc-batch-load.pl \
44                        ${destroot}${prefix}/bin
45    xinstall -m 755 -W ${worksrcpath}/tools rules-updater.pl \
46                        ${destroot}${prefix}/bin
47    xinstall -m 755 -W ${worksrcpath}/mlogc mlogc-default.conf \
48                        ${destroot}${prefix}/etc
49    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE NOTICE README.TXT \
51                        ${destroot}${prefix}/share/doc/${name}
52}
53
54livecheck.type      regex
55livecheck.regex     "(?!${name_package}).*${name_package}_((?!${extract.suffix}).*)${extract.suffix}"
56
57notes "
58
59# Now edit ${prefix}/apache2/conf/httpd.conf and add the following lines at the end of the LoadModules section:
60    LoadFile ${prefix}/lib/libxml2.dylib
61    LoadFile ${prefix}/lib/liblua.dylib
62    LoadModule security2_module modules/mod_security2.so
63
64# And finally reload apache.
65    $ sudo apachectl graceful
66
67"
Note: See TracBrowser for help on using the repository browser.