Ticket #1671: Portfile

File Portfile, 1.5 KB (added by julien.touche@…, 21 years ago)

portfile

Line 
1# $Id: $
2PortSystem        1.0
3name              mod_security
4version           1.7.6
5categories        www
6maintainers       darwinports@opendarwin.org
7description       ModSecurity is an open source intrusion detection and prevention engine for web applications.
8long_description  ModSecurity is an open source intrusion detection and \
9                  prevention engine for web applications. It operates embedded \
10                  into the web server, acting as a powerful umbrella - \
11                  shielding applications from attacks. ModSecurity supports \
12                  both branches of the Apache web server.
13homepage          http://www.modsecurity.org/
14master_sites      http://www.modsecurity.org/download/
15platforms         darwin
16checksums         md5 2be3a3a4ac98a95580e5c01d2d5b3b88
17#configure.args    --with-apxs=${prefix}/sbin/apxs
18#default_variant   apache1
19#set apache_path   ${prefix}/${name}-${version}
20set apache_path   ${prefix}
21depends_lib       path:${apache_path}/sbin/apxs:apache
22
23configure { }
24
25build {
26#       variant apache1 {
27                system "cd ${worksrcpath}/apache1 && ${apache_path}/sbin/apxs \
28                        -c -o ${name}.so ${name}.c"
29#       }
30
31        variant apache2 {
32                system "cd ${worksrcpath}/apache2 && ${apache_path}/sbin/apxs \
33                        -c -o ${name}.so ${name}.c"
34        }
35}
36
37destroot {
38        file mkdir ${destroot}${apache_path}/libexec/apache
39        system "install -m 755 ${worksrcpath}/apache1/${name}.so \
40                ${destroot}${apache_path}/libexec/apache/"
41}
42
43post-destroot {
44        system "${apache_path}/sbin/apxs -i -a -n \"${name}\" \
45                ${worksrcpath}/apache1/${name}.so"
46}
47