Hping3 version 20051105 - How to Download and Install on Mac OS X
Friday the 19th of March, 2010

    version 20051105

      View the most recent changes for the hping3 port at: hping3.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for hping3.
      The raw portfile for hping3 20051105 is located here:
      http://hping3.darwinports.com/dports/net/hping3/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/hping3


      The hping3 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: hping3
      Version: 20051105
      Revision: 1
      Category: net security
      Platform: 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.type regex
      livecheck.url http://wiki.hping.org/18
      livecheck.regex ${master_sites}/${name}-(\[0-9a-z.\]+)${extract.suffix}

      depends_lib port:tcl

      Patch Files: patch-Makefile.in.diff patch-libpcap_stuff.c.diff patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff patch-bytesex.h.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
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/hping3
      % sudo port install hping3
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching hping3
      ---> Verifying checksum for hping3
      ---> Extracting hping3
      ---> Configuring hping3
      ---> Building hping3 with target all
      ---> Staging hping3 into destroot
      ---> Installing hping3
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using hping3 with these commands:
      %  man hping3
      % apropos hping3
      % which hping3
      % locate hping3

     Where to find more information:

    Darwin Ports



    Lightbox this page.