Ticket #1670: Portfile

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

portfile

Line 
1# $Id: $
2PortSystem        1.0
3name              mod_dosevasive
4version           1.8
5distname          ${name}.${version}
6categories        www
7maintainers       darwinports@opendarwin.org
8description       apache against DDoS
9long_description  \
10                  mod_dosevasive is an evasive maneuvers module for \
11                  Apache to provide evasive action in the event of an \
12                  HTTP DoS or DDoS attack or brute force attack. It is \
13                  also designed to be a detection and network management \
14                  tool, and can be easily configured to talk to \
15                  ipchains, firewalls, routers, and etcetera. \
16                  mod_dosevasive presently reports abuses via email and \
17                  syslog facilities.
18homepage          http://www.nuclearelephant.com/projects/dosevasive/
19master_sites      ${homepage}
20platforms         darwin
21checksums         md5 243d24e205c3b82ef55542887e03d998
22#configure.args    --with-apxs=${prefix}/sbin/apxs
23#default_variant   apache1
24#set apache_path   ${prefix}/${name}-${version}
25set apache_path   ${prefix}
26depends_lib       path:${apache_path}/sbin/apxs:apache
27set worksrcdir    ${name}
28
29configure { }
30
31build {
32#       variant apache1 {
33                system "cd ${worksrcpath} && ${apache_path}/sbin/apxs \
34                        -c -o ${name}.so ${name}.c"
35#       }
36
37        variant apache2 {
38                system "cd ${worksrcpath} && ${apache_path}/sbin/apxs \
39                        -c -o ${name}.so ${name}20.c"
40        }
41}
42
43destroot {
44        file mkdir ${destroot}${apache_path}/libexec/apache
45        system "install -m 755 ${worksrcpath}/${name}.so \
46                ${destroot}${apache_path}/libexec/apache/"
47}
48
49post-destroot {
50        system "${apache_path}/sbin/apxs -i -a -n \"${name}\" \
51                ${worksrcpath}/${name}.so"
52}
53