1 | # $Id: Portfile 20491 2006-11-03 15:43:42Z blair@macports.org $ |
---|
2 | PortSystem 1.0 |
---|
3 | name mod_security2 |
---|
4 | version 2.5.5 |
---|
5 | categories www security |
---|
6 | description intrusion detection and prevention engine for web applications |
---|
7 | long_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. |
---|
12 | homepage http://www.modsecurity.org |
---|
13 | master_sites ${homepage}/download/ |
---|
14 | platforms darwin |
---|
15 | checksums 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 | |
---|
19 | use_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 | |
---|
28 | build.args -c -o ${name}.so ${apachever}/${name}.c |
---|
29 | build.target |
---|
30 | |
---|
31 | destroot { |
---|
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 | } |
---|