Ticket #15432: Portfile

File Portfile, 1.3 KB (added by julien-mac@…, 16 years ago)
Line 
1# $Id: Portfile 20491 2006-11-03 15:43:42Z blair@macports.org $
2PortSystem 1.0
3name            mod_security2
4version         2.5.5
5categories      www security
6description     intrusion detection and prevention engine for web applications
7long_description        ModSecurity is an open source intrusion detection and \
8                        prevention engine for web applications. It operates \
9                        embedded into the web server, acting as a powerful \
10                        umbrella - shielding applications from attacks. \
11                        It supports both branches of the Apache web server.
12homepage        http://www.modsecurity.org
13master_sites    ${homepage}/download/
14platforms       darwin
15checksums       mod_security2-2.5.5.tar.gz md5 51cf433ca21bc44ec547b11bea1c3297 \
16                mod_security2-2.5.5.tar.gz sha1 1e9bdd201c1c7756393ae32600f6afb08db02ceb \
17                mod_security2-2.5.5.tar.gz rmd160 872325e17b5e7699cc8eb15458ddf832ef5be8b8
18
19use_configure   no
20
21#variant apache2        {
22        depends_lib     port:apache2
23        build.cmd       ${prefix}/apache2/bin/apxs
24        set apachedir   apache2
25        set apachever   apache2
26#}
27
28build.args      -c -o ${name}.so ${apachever}/${name}.c
29build.target
30
31destroot {
32        xinstall -d -m 755 ${destroot}${prefix}/libexec/${apachedir} \
33                ${destroot}${prefix}/share/doc/${name}
34        xinstall -m 755 ${worksrcpath}/${name}.so \
35                ${destroot}${prefix}/libexec/${apachedir}/
36        xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENSE README \
37                ${destroot}${prefix}/share/doc/${name}
38}