Ticket #44004: patch-hping3-Portfile.diff

File patch-hping3-Portfile.diff, 1.8 KB (added by Gminfly, 10 years ago)

Portfile patch

  • net/hping3/Portfile

    old new  
     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: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
    23
    34PortSystem 1.0
    45
    56name            hping3
    67version         20051105
    7 revision        1
     8revision        2
    89categories      net security
    910platforms       darwin
    1011maintainers     pmq
     
    2324checksums       sha1 e13d27e14e7f90c2148a9b00a480781732fd351e \
    2425                rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540
    2526
    26 livecheck.type  regex
    27 livecheck.url   http://wiki.hping.org/18
    28 livecheck.regex ${master_sites}/${name}-(\[0-9a-z.\]+)${extract.suffix}
    29 
    3027depends_lib     port:tcl
    3128
    3229patchfiles      patch-Makefile.in.diff patch-libpcap_stuff.c.diff \
    3330                patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \
    34                 patch-bytesex.h.diff
     31                patch-bytesex.h.diff patch-gethostname.c.diff
     32
     33configure.args  --no-tcl
    3534
    3635post-configure {
    3736    reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
     
    4342              ${worksrcpath}/Makefile
    4443}
    4544
     45variant universal {}
     46
     47build.args          CC=${configure.cc} \
     48                    CCOPT="${configure.cflags} [get_canonical_archflags cc]"
     49
    4650post-build {
    4751    system "cd ${worksrcpath} && make strip"
    4852}
     
    5256    file delete ${destroot}${prefix}/sbin/hping2
    5357}
    5458
    55 variant no_tcl description "Remove the Tcl scripting support" {
    56     depends_lib-delete          port:tcl
    57     configure.args-append       --no-tcl
     59default_variants +tcl
     60
     61variant tcl description "Add the Tcl scripting support" {
     62    depends_lib-append          port:tcl
     63    configure.args-delete       --no-tcl
    5864}
     65
     66livecheck.type  regex
     67livecheck.url   ${homepage}/download.php
     68livecheck.regex ${name}-(\[0-9a-z.\]+)${extract.suffix}
     69