1 | # $Id: Portfile 20491 2006-11-03 15:43:42Z myschizobuddy@gmail.com $ |
---|
2 | PortSystem 1.0 |
---|
3 | name mod_security2 |
---|
4 | version 2.5.6 |
---|
5 | categories www security |
---|
6 | platforms darwin |
---|
7 | maintainers myschizobuddy@gmail.com |
---|
8 | description Apache 2 intrusion detection and prevention engine for web applications |
---|
9 | long_description ModSecurity is an open source intrusion detection and \ |
---|
10 | prevention engine for web applications. It operates \ |
---|
11 | embedded into the web server, acting as a powerful \ |
---|
12 | umbrella - shielding applications from attacks. \ |
---|
13 | It supports both branches of the Apache web server. |
---|
14 | homepage http://www.modsecurity.org |
---|
15 | master_sites ${homepage}/download/ |
---|
16 | distname modsecurity-apache_${version} |
---|
17 | |
---|
18 | checksums md5 eb9e80a232269378752aa5b81f3e99f8 \ |
---|
19 | sha1 5fb2b5ff3933d4bf766f2e46242bb991603e7081 |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | depends_build port:libxml2 \ |
---|
24 | port:pcre \ |
---|
25 | port:curl \ |
---|
26 | port:apr \ |
---|
27 | port:apu |
---|
28 | depends_lib port:apache2 |
---|
29 | |
---|
30 | configure.args --with-apxs=${prefix}/apache2/bin/apxs \ |
---|
31 | --with-pcre=${prefix}/bin \ |
---|
32 | --with-apr=${prefix}/bin \ |
---|
33 | --with-apu=${prefix}/bin\ |
---|
34 | --with-curl=${prefix} \ |
---|
35 | --with-libxml=${prefix} |
---|
36 | |
---|
37 | worksrcdir ${distname}/apache2 |
---|
38 | destroot.violate_mtree yes |
---|
39 | |
---|
40 | pre-destroot { |
---|
41 | xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \ |
---|
42 | ${destroot}${prefix}/share/doc |
---|
43 | file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/${name} |
---|
44 | } |
---|
45 | |
---|
46 | post-install { |
---|
47 | ui_msg "########################################################" |
---|
48 | ui_msg "# To enable mod_security2 add" |
---|
49 | ui_msg "# LoadModule security2_module modules/mod_security2.so" |
---|
50 | ui_msg "# to your apache2 config file:" |
---|
51 | ui_msg "# ${prefix}/apache2/conf/httpd.conf" |
---|
52 | ui_msg "########################################################" |
---|
53 | } |
---|