source: trunk/dports/www/mod_security2/Portfile

Last change on this file was 110862, checked in by jmr@…, 4 years ago

mod_security2: license

  • 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 110862 2013-09-08 21:11:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mod_security2
7set name_package    modsecurity-apache
8version             2.7.1
9categories          www security
10license             Apache-2
11platforms           darwin
12maintainers         pixilla openmaintainer
13description         Apache 2 intrusion detection and prevention engine for web applications
14long_description    ModSecurity is an open source intrusion detection and \
15                    prevention engine for web applications. It operates \
16                    embedded into the web server, acting as a powerful \
17                    umbrella - shielding applications from attacks.
18homepage            http://www.modsecurity.org
19master_sites        https://github.com/downloads/SpiderLabs/ModSecurity
20distname            ${name_package}_${version}
21
22checksums           rmd160  92f080d946574d20d4cba80812bbc1dda2d6a624 \
23                    sha256  cb6b738f341c9ec673d17d22085dde56abdaf38ac772a5de25ddf529c785defc
24
25worksrcdir          ${distname}
26
27depends_lib         port:apache2 \
28                    port:libxml2 \
29                    port:lua \
30                    port:curl
31
32configure.args      --with-apxs=${prefix}/apache2/bin/apxs \
33                    --with-pcre=${prefix}/bin/pcre-config \
34                    --with-apr=${prefix}/bin/apr-1-config \
35                    --with-apu=${prefix}/bin/apu-1-config \
36                    --with-curl=${prefix}/bin/curl-config \
37                    --with-libxml=${prefix} \
38                    --with-lua=${prefix}
39
40destroot.violate_mtree yes
41
42destroot {
43    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
44    xinstall -m 644 -W ${worksrcpath}/apache2/.libs mod_security2.so \
45                        ${destroot}${prefix}/apache2/modules
46    xinstall -m 755 -W ${worksrcpath}/mlogc mlogc mlogc-batch-load.pl \
47                        ${destroot}${prefix}/bin
48    xinstall -m 755 -W ${worksrcpath}/tools rules-updater.pl \
49                        ${destroot}${prefix}/bin
50    xinstall -m 755 -W ${worksrcpath}/mlogc mlogc-default.conf \
51                        ${destroot}${prefix}/etc
52    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
53    xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE NOTICE README.TXT \
54                        ${destroot}${prefix}/share/doc/${name}
55}
56
57livecheck.type      regex
58livecheck.regex     "(?!${name_package}).*${name_package}_((?!${extract.suffix}).*)${extract.suffix}"
59
60notes "
61
62# Now edit ${prefix}/apache2/conf/httpd.conf and add the following lines at the end of the LoadModules section:
63    LoadFile ${prefix}/lib/libxml2.dylib
64    LoadFile ${prefix}/lib/liblua.dylib
65    LoadModule security2_module modules/mod_security2.so
66
67# And finally reload apache.
68    $ sudo apachectl graceful
69
70"
Note: See TracBrowser for help on using the repository browser.