Ticket #29814: patch-Portfile.diff

File patch-Portfile.diff, 1.5 KB (added by BjarneDMat, 13 years ago)

diff to deprecate the port

  • www/mod_dosevasive/Portfile

    old new  
    22PortSystem 1.0
    33name            mod_dosevasive
    44version         1.8
     5revision    1
     6
     7replaced_by mod_evasive
     8
    59categories      www
    610platforms       darwin
    711maintainers     touche.fr.st:julien.touche
     
    1519                        mod_dosevasive presently reports abuses via email and \
    1620                        syslog facilities.
    1721
    18 homepage        http://www.nuclearelephant.com/projects/dosevasive/
    19 master_sites    ${homepage}
    20 distname        ${name}.${version}
    21 checksums       md5 243d24e205c3b82ef55542887e03d998
    22 
    23 set worksrcdir  ${name}
    24 
    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
    37 }
     22distfiles
    3823
    39 build.args      -c -o ${name}.so ${name}.c
    40 build.target
     24livecheck.type      none
    4125
    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}
     26pre-configure {
     27    ui_error "Please do not install this port since it has been replaced by 'mod_evasive'."
     28    return -code error
    4929}