1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name mod_security |
---|
4 | version 1.7.6 |
---|
5 | categories www |
---|
6 | maintainers darwinports@opendarwin.org |
---|
7 | description ModSecurity is an open source intrusion detection and prevention engine for web applications. |
---|
8 | long_description ModSecurity is an open source intrusion detection and \ |
---|
9 | prevention engine for web applications. It operates embedded \ |
---|
10 | into the web server, acting as a powerful umbrella - \ |
---|
11 | shielding applications from attacks. ModSecurity supports \ |
---|
12 | both branches of the Apache web server. |
---|
13 | homepage http://www.modsecurity.org/ |
---|
14 | master_sites http://www.modsecurity.org/download/ |
---|
15 | platforms darwin |
---|
16 | checksums md5 2be3a3a4ac98a95580e5c01d2d5b3b88 |
---|
17 | #configure.args --with-apxs=${prefix}/sbin/apxs |
---|
18 | #default_variant apache1 |
---|
19 | #set apache_path ${prefix}/${name}-${version} |
---|
20 | set apache_path ${prefix} |
---|
21 | depends_lib path:${apache_path}/sbin/apxs:apache |
---|
22 | |
---|
23 | configure { } |
---|
24 | |
---|
25 | build { |
---|
26 | # variant apache1 { |
---|
27 | system "cd ${worksrcpath}/apache1 && ${apache_path}/sbin/apxs \ |
---|
28 | -c -o ${name}.so ${name}.c" |
---|
29 | # } |
---|
30 | |
---|
31 | variant apache2 { |
---|
32 | system "cd ${worksrcpath}/apache2 && ${apache_path}/sbin/apxs \ |
---|
33 | -c -o ${name}.so ${name}.c" |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | destroot { |
---|
38 | file mkdir ${destroot}${apache_path}/libexec/apache |
---|
39 | system "install -m 755 ${worksrcpath}/apache1/${name}.so \ |
---|
40 | ${destroot}${apache_path}/libexec/apache/" |
---|
41 | } |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | system "${apache_path}/sbin/apxs -i -a -n \"${name}\" \ |
---|
45 | ${worksrcpath}/apache1/${name}.so" |
---|
46 | } |
---|
47 | |
---|