1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name mod_dosevasive |
---|
4 | version 1.8 |
---|
5 | distname ${name}.${version} |
---|
6 | categories www |
---|
7 | maintainers darwinports@opendarwin.org |
---|
8 | description apache against DDoS |
---|
9 | long_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. |
---|
18 | homepage http://www.nuclearelephant.com/projects/dosevasive/ |
---|
19 | master_sites ${homepage} |
---|
20 | platforms darwin |
---|
21 | checksums md5 243d24e205c3b82ef55542887e03d998 |
---|
22 | #configure.args --with-apxs=${prefix}/sbin/apxs |
---|
23 | #default_variant apache1 |
---|
24 | #set apache_path ${prefix}/${name}-${version} |
---|
25 | set apache_path ${prefix} |
---|
26 | depends_lib path:${apache_path}/sbin/apxs:apache |
---|
27 | set worksrcdir ${name} |
---|
28 | |
---|
29 | configure { } |
---|
30 | |
---|
31 | build { |
---|
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 | |
---|
43 | destroot { |
---|
44 | file mkdir ${destroot}${apache_path}/libexec/apache |
---|
45 | system "install -m 755 ${worksrcpath}/${name}.so \ |
---|
46 | ${destroot}${apache_path}/libexec/apache/" |
---|
47 | } |
---|
48 | |
---|
49 | post-destroot { |
---|
50 | system "${apache_path}/sbin/apxs -i -a -n \"${name}\" \ |
---|
51 | ${worksrcpath}/${name}.so" |
---|
52 | } |
---|
53 | |
---|