Ticket #16702: Portfile

File Portfile, 1.7 KB (added by myschizobuddy@…, 12 years ago)
Line 
1# $Id: Portfile 20491 2006-11-03 15:43:42Z myschizobuddy@gmail.com $
2PortSystem 1.0
3name            mod_security2
4version         2.5.6
5categories      www security
6platforms       darwin
7maintainers     myschizobuddy@gmail.com
8description     Apache 2 intrusion detection and prevention engine for web applications
9long_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.
14homepage        http://www.modsecurity.org
15master_sites    ${homepage}/download/
16distname        modsecurity-apache_${version}
17
18checksums       md5 eb9e80a232269378752aa5b81f3e99f8 \
19                        sha1 5fb2b5ff3933d4bf766f2e46242bb991603e7081 \
20                        rmd160 a051211538334aa9a753e92ab787ff49ffd0b685
21
22depends_build   port:libxml2 \
23                                port:pcre \
24                                port:curl \
25                                port:apr \
26                                port:apu
27depends_lib     port:apache2
28
29configure.args  --with-apxs=${prefix}/apache2/bin/apxs \
30                                --with-pcre=${prefix}/bin \
31                                --with-apr=${prefix}/bin \
32                                --with-apu=${prefix}/bin \
33                                --with-curl=${prefix} \
34                                --with-libxml=${prefix}
35
36worksrcdir      ${distname}/apache2
37destroot.violate_mtree  yes
38                               
39pre-destroot {
40    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \
41        ${destroot}${prefix}/share/doc
42    file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/${name}
43}
44
45post-install {
46    ui_msg "########################################################"
47    ui_msg "# To enable mod_security2 add"
48    ui_msg "#  LoadModule security2_module modules/mod_security2.so"
49    ui_msg "# to your apache2 config file:"
50    ui_msg "#  ${prefix}/apache2/conf/httpd.conf"
51    ui_msg "########################################################"
52}