Ticket #16623: Portfile

File Portfile, 1.7 KB (added by myschizobuddy@…, 16 years ago)

mod_security2 portfile

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
21
22
23depends_build   port:libxml2 \
24                                port:pcre \
25                                port:curl \
26                                port:apr \
27                                port:apu
28depends_lib     port:apache2
29
30configure.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
37worksrcdir      ${distname}/apache2
38destroot.violate_mtree  yes
39                               
40pre-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
46post-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}