Ticket #46085: patch-hping3-Portfile.diff

File patch-hping3-Portfile.diff, 3.4 KB (added by jul_bsd@…, 9 years ago)
  • net/hping3/Portfile

    old new  
    11# -*- 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
    2 # $Id: Portfile 120992 2014-06-13 19:32:24Z mf2k@macports.org $
     2# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
    33
    44PortSystem 1.0
    55
    6 name            hping3
    7 version         20051105
    8 revision        2
    9 categories      net security
    10 platforms       darwin
    11 maintainers     wohner.eu:normen
    12 
    13 description     hping is a command-line oriented TCP/IP packet assembler/analyzer
     6name           hping3
     7version        20051105
     8revision       2
     9categories     net security
     10platforms      darwin
     11maintainers    pmq
     12license        GPL-2
     13description    hping is a command-line oriented TCP/IP packet assembler/analyzer
    1414long_description \
    1515    hping is a command-line oriented TCP/IP packet assembler/analyzer. \
    1616    The interface is inspired to the ping(8) unix command, but hping \
    17     is not only able to send ICMP echo requests. It supports TCP, UDP, \
     17    isn't only able to send ICMP echo requests. It supports TCP, UDP, \
    1818    ICMP and RAW-IP protocols, has a traceroute mode, the ability to send \
    1919    files between a covered channel, and many other features.
    2020
    21 homepage        http://www.hping.org
    22 master_sites    ${homepage}
     21homepage    http://www.hping.org
     22master_sites    ${homepage}
    2323
    24 checksums       sha1 e13d27e14e7f90c2148a9b00a480781732fd351e \
    25                     rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540
     24checksums           rmd160  e4ec209228b5cb99e2d561c5a7b1c82ff8abe540 \
     25                    sha256  f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8
    2626
    27 patchfiles      patch-Makefile.in.diff patch-libpcap_stuff.c.diff \
    28                 patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \
    29                 patch-bytesex.h.diff patch-gethostname.c.diff
     27patchfiles    patch-Makefile.in.diff patch-libpcap_stuff.c.diff \
     28        patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \
     29        patch-bytesex.h.diff patch-gethostname.c.diff
    3030
    3131configure.args  --no-tcl
    3232
    3333post-configure {
    3434    reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
    3535    reinplace "s#MANPATH=#MANPATH=${prefix}/share/man#g" \
    36               ${worksrcpath}/Makefile
     36              ${worksrcpath}/Makefile
    3737    reinplace "s#INSTALL_PATH=#INSTALL_PATH=${destroot}${prefix}#g" \
    38               ${worksrcpath}/Makefile
     38              ${worksrcpath}/Makefile
    3939    reinplace "s#INSTALL_MANPATH=#INSTALL_MANPATH=${destroot}#g" \
    40               ${worksrcpath}/Makefile
     40              ${worksrcpath}/Makefile
    4141}
    4242
    4343variant universal {}
     
    4646                    CCOPT="${configure.cflags} [get_canonical_archflags cc]"
    4747
    4848post-build {
    49     system "cd ${worksrcpath} && make strip"
     49    system -W ${worksrcpath} "make strip"
    5050}
    5151
    5252post-destroot {
     
    5757default_variants +tcl
    5858
    5959variant tcl description "Add the Tcl scripting support" {
    60     depends_lib-append          port:tcl
    61     configure.args-delete       --no-tcl
     60    depends_lib-append        port:tcl
     61    configure.args-delete    --no-tcl
    6262}
    6363
    64 livecheck.type  regex
    65 livecheck.url   ${homepage}/download.php
    66 livecheck.regex ${name}-(\[0-9a-z.\]+)${extract.suffix}
     64notes "
     65This tool has not been updated since 2005. It's recommended to evaluate alternatives.
     66"
     67
     68livecheck.type    regex
     69livecheck.url    ${homepage}/download.php
     70livecheck.regex    ${name}-(\[0-9a-z.\]+)${extract.suffix}
     71