Ticket #16702: Portfile.2

File Portfile.2, 1.6 KB (added by BjarneDMat, 13 years ago)

portfile 2.6.0

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$
3PortSystem  1.0
4name            mod_security2
5version         2.6.0
6categories      www security
7platforms       darwin
8maintainers     mathiesen.info:macintosh
9description     Apache 2 intrusion detection and prevention engine for web applications
10long_description        ModSecurity is an open source intrusion detection and \
11                        prevention engine for web applications. It operates \
12                        embedded into the web server, acting as a powerful \
13                        umbrella - shielding applications from attacks.
14homepage        http://www.modsecurity.org
15master_sites    sourceforge:mod-security
16distname        modsecurity-apache_${version}
17
18set apachever   apache2
19
20checksums       md5     ffb858bd1e523f31adcee30191e013aa \
21                        sha1    280061a6cb49c955d7371b9526193f68a12ae2ac \
22                        rmd160  a9d34e17d80007f394087da5bd92c6047f48d343
23
24depends_build   port:libxml2 \
25                                port:pcre \
26                                port:curl \
27                                port:apr \
28                                port:apr-util \
29                                port:lua
30depends_lib     port:${apachever}
31
32configure.args  --with-apxs=${prefix}/${apachever}/bin/apxs \
33                                --with-pcre=${prefix}/bin \
34                                --with-apr=${prefix}/bin \
35                                --with-curl=${prefix} \
36                                --with-libxml=${prefix} \
37                                --with-lua=${prefix}
38
39worksrcdir      ${distname}
40destroot.violate_mtree  yes
41                               
42post-destroot {
43        xinstall -m 644 -W ${worksrcpath} CHANGES NOTICE README.TXT  \
44                ${prefix}/share/doc/${name}
45}
46
47post-install {
48    ui_msg "########################################################"
49    ui_msg "# To enable mod_security2 add"
50    ui_msg "########################################################"
51}