Changeset 92270


Ignore:
Timestamp:
Apr 23, 2012, 4:05:21 PM (7 years ago)
Author:
jmr@…
Message:

mod_dosevasive: rename to mod_evasive, update to 1.10.1 (#29814, #29815)

Location:
trunk/dports/www
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/mod_dosevasive/Portfile

    r50984 r92270  
    11# $Id$
     2
    23PortSystem 1.0
     4
    35name            mod_dosevasive
    46version         1.8
     7revision    1
     8
     9replaced_by mod_evasive
     10
    511categories      www
    6 platforms       darwin 
    7 maintainers     touche.fr.st:julien.touche
     12platforms       darwin
     13maintainers     nomaintainer
    814description     apache module against DDoS
    915long_description        mod_dosevasive is an evasive maneuvers module for \
     
    1420                        ipchains, firewalls, routers, and etcetera. \
    1521                        mod_dosevasive presently reports abuses via email and \
    16                         syslog facilities. 
     22                        syslog facilities.
    1723
    1824homepage        http://www.nuclearelephant.com/projects/dosevasive/
    19 master_sites    ${homepage}
    20 distname        ${name}.${version}
    21 checksums       md5 243d24e205c3b82ef55542887e03d998
     25distfiles
    2226
    23 set worksrcdir  ${name}
     27livecheck.type      none
    2428
    25 use_configure   no
    26 
    27 #variant apache1        {
    28         depends_lib     path:${prefix}/etc/apache:apache
    29         build.cmd       ${prefix}/sbin/apxs
    30         set apache      apache
    31 #}
    32 
    33 variant apache2 {
    34         depends_lib     path:${prefix}/etc/apache2:apache2
    35         build.cmd       ${prefix}/sbin/apxs
    36         set apache      apache2
     29pre-configure {
     30    ui_error "Please do not install this port since it has been replaced by 'mod_evasive'."
     31    return -code error
    3732}
    38 
    39 build.args      -c -o ${name}.so ${name}.c
    40 build.target
    41 
    42 destroot {
    43         xinstall -d -m 755 ${destroot}${prefix}/libexec/${apache} \
    44                 ${destroot}${prefix}/share/doc/${name}
    45         xinstall -m 755 ${worksrcpath}/${name}.so \
    46                 ${destroot}${prefix}/libexec/${apache}/
    47         xinstall -W ${worksrcpath} LICENSE README \
    48                 ${destroot}${prefix}/share/doc/${name}
    49 }
  • trunk/dports/www/mod_evasive/Portfile

    r50984 r92270  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
     3
    24PortSystem 1.0
    3 name            mod_dosevasive
    4 version         1.8
     5
     6name            mod_evasive
     7version         1.10.1
    58categories      www
    6 platforms       darwin 
     9platforms       darwin
    710maintainers     touche.fr.st:julien.touche
    811description     apache module against DDoS
    9 long_description        mod_dosevasive is an evasive maneuvers module for \
     12long_description        mod_evasive is an evasive maneuvers module for \
    1013                        Apache to provide evasive action in the event of an \
    1114                        HTTP DoS or DDoS attack or brute force attack. It is \
     
    1316                        tool, and can be easily configured to talk to \
    1417                        ipchains, firewalls, routers, and etcetera. \
    15                         mod_dosevasive presently reports abuses via email and \
    16                         syslog facilities. 
     18                        mod_evasive presently reports abuses via email and \
     19                        syslog facilities.
    1720
    18 homepage        http://www.nuclearelephant.com/projects/dosevasive/
    19 master_sites    ${homepage}
    20 distname        ${name}.${version}
    21 checksums       md5 243d24e205c3b82ef55542887e03d998
     21homepage        http://www.zdziarski.com/blog/?page_id=442
     22master_sites    http://www.zdziarski.com/blog/wp-content/uploads/2010/02/
     23distname        ${name}_${version}
     24checksums   sha1    7240481f9f7b0f80693787a73a2bfd9bfec6f274 \
     25            rmd160  1ce741bf3f3bbc0cc81a9aa73311b08a68bd454e
    2226
    2327set worksrcdir  ${name}
     28set apachedir   apache2
     29set cversion    "20"
    2430
    2531use_configure   no
    2632
    27 #variant apache1        {
    28         depends_lib     path:${prefix}/etc/apache:apache
    29         build.cmd       ${prefix}/sbin/apxs
    30         set apache      apache
    31 #}
    32 
    33 variant apache2 {
    34         depends_lib     path:${prefix}/etc/apache2:apache2
    35         build.cmd       ${prefix}/sbin/apxs
    36         set apache      apache2
     33variant apache1 conflicts apache2 {
     34    depends_lib port:apache
     35    set apachedir apache
     36    set cversion ""
     37    build.args  -c -o ${name}.so ${name}.c
    3738}
    3839
    39 build.args      -c -o ${name}.so ${name}.c
     40variant apache2 conflicts apache1 {
     41    depends_lib port:apache2
     42    set apachedir apache2
     43    set cversion "20"
     44    build.args  -c -o ${name}${cversion}.so ${name}${cversion}.c
     45}
     46
     47build.cmd       ${prefix}/${apachedir}/bin/apxs
    4048build.target
    4149
     50destroot.violate_mtree  yes
     51
    4252destroot {
    43         xinstall -d -m 755 ${destroot}${prefix}/libexec/${apache} \
     53        xinstall -m 755 -d \
     54            ${destroot}${prefix}/${apachedir}/modules \
    4455                ${destroot}${prefix}/share/doc/${name}
    45         xinstall -m 755 ${worksrcpath}/${name}.so \
    46                 ${destroot}${prefix}/libexec/${apache}/
    47         xinstall -W ${worksrcpath} LICENSE README \
     56        xinstall -m 644 ${worksrcpath}/.libs/${name}${cversion}.so \
     57                ${destroot}${prefix}/apache2/modules
     58        xinstall -m 644 -W ${worksrcpath} CHANGELOG LICENSE README \
    4859                ${destroot}${prefix}/share/doc/${name}
    4960}
     61
     62post-destroot {
     63        exec    ${prefix}/${apachedir}/bin/apxs -e \
     64            -S SYSCONFDIR=${prefix}/${apachedir}/conf/standard \
     65            -S TARGET=00000-dso \
     66            -n "evasive_module" \
     67            -a modules/mod_evasive${cversion}.so \
     68            2>@1
     69    exec    sed -n -E \
     70            -e "/IfModule mod_evasive${cversion}.c/,/IfModule/p" \
     71            ${worksrcpath}/README \
     72            > ${prefix}/${apachedir}/conf/extra/httpd-evasive.conf
     73    reinplace   "s|mod_evasive${cversion}.c|evasive_module|" \
     74                ${prefix}/${apachedir}/conf/extra/httpd-evasive.conf
     75}
     76
     77if { ![variant_isset apache1] } { default_variants +apache2 }
Note: See TracChangeset for help on using the changeset viewer.