# $Id$ PortSystem 1.0 name hping3 version 20051105 revision 1 categories net security platforms darwin maintainers pmq description hping is a command-line oriented TCP/IP packet assembler/analyzer long_description \ hping is a command-line oriented TCP/IP packet assembler/analyzer. \ The interface is inspired to the ping(8) unix command, but hping \ isn't only able to send ICMP echo requests. It supports TCP, UDP, \ ICMP and RAW-IP protocols, has a traceroute mode, the ability to send \ files between a covered channel, and many other features. homepage http://www.hping.org master_sites ${homepage} checksums sha1 e13d27e14e7f90c2148a9b00a480781732fd351e \ rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540 livecheck.check regex livecheck.url http://wiki.hping.org/18 livecheck.regex ${master_sites}/${name}-(\[0-9a-z.\]+)${extract.suffix} depends_lib port:tcl patchfiles patch-Makefile.in.diff patch-libpcap_stuff.c.diff \ patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff post-configure { reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile reinplace "s#MANPATH=#MANPATH=${prefix}/share/man#g" \ ${worksrcpath}/Makefile reinplace "s#INSTALL_PATH=#INSTALL_PATH=${destroot}${prefix}#g" \ ${worksrcpath}/Makefile reinplace "s#INSTALL_MANPATH=#INSTALL_MANPATH=${destroot}#g" \ ${worksrcpath}/Makefile } post-build { system "cd ${worksrcpath} && make strip" } post-destroot { file delete ${destroot}${prefix}/sbin/hping file delete ${destroot}${prefix}/sbin/hping2 } variant no_tcl description "Remove the Tcl scripting support" { depends_lib-delete port:tcl configure.args-append --no-tcl }