Arpwatch version 2.1a15 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    arpwatch  most recent diff


    version 2.1a15

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


      The arpwatch Portfile 40428 2008-10-01 18:28:26Z pmq macports.org $

      PortSystem 1.0

      Name: arpwatch
      Version: 2.1a15
      Revision: 2
      Category: net
      Platform: darwin
      Maintainers: pmq openmaintainer

      Description: Monitor ARP & RARP requests
      Long Description: Arpwatch monitors ethernet activity and maintains a database of ethernet/ip address pairings. It also reports certain changes via email.

      Homepage: http://online.securityfocus.com/tools/142
      Master Sites: ftp://ftp.ee.lbl.gov

      Checksums: sha1 9dffaec0f132e5bb7aedfc840c5c67068bfbce69 rmd160 a27ee53275dcec3cafb85eb3df2451d42ec32b0c

      livecheck.url "http://www.freebsd.org/cgi/ports.cgi?query=${name}&stype=all"
      livecheck.regex ">${name}-(.*?)<"
      livecheck.version 2.1.a15_4

      depends_lib port:libpcap

      set sharedir ${prefix}/share/${name}-${version}
      pre-configure {
      reinplace "s|INCLS = -I.|INCLS = -I. -I${prefix}/include|" ${worksrcpath}/Makefile.in
      reinplace "s|LIBS = LIBS |LIBS = -L${prefix}/lib LIBS |" ${worksrcpath}/Makefile.in
      reinplace "s|ARPDIR = .*|ARPDIR = ${prefix}/var/arpwatch|" ${worksrcpath}/Makefile.in

      set ethercodes ${sharedir}/ethercodes.dat
      reinplace "s|-DARPDIR|-DETHERCODES=\\\\\"${ethercodes}\\\\\" -DARPDIR|" ${worksrcpath}/Makefile.in
      }

      configure.cflags-append "-DBIND_8_COMPAT=1"
      configure.args --mandir=${prefix}/share/man

      post-configure {
      reinplace "s|-o bin -g bin||g" ${worksrcpath}/Makefile
      reinplace "/#define ETHERCODES .*/D" ${worksrcpath}/arpwatch.h
      }

      destroot.target install install-man
      post-destroot {
      set destsharedir ${destroot}${sharedir}
      file mkdir ${destsharedir}

      xinstall -W ${build.dir} CHANGES FILES INSTALL README arp2ethers arpfetch bihourly.sh ethercodes.dat d.awk duplicates.awk e.awk euppertolower.awk massagevendor p.awk ${destsharedir}
      }

    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/arpwatch
      % sudo port install arpwatch
      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 arpwatch
      ---> Verifying checksum for arpwatch
      ---> Extracting arpwatch
      ---> Configuring arpwatch
      ---> Building arpwatch with target all
      ---> Staging arpwatch into destroot
      ---> Installing arpwatch
    - 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 arpwatch with these commands:
      %  man arpwatch
      % apropos arpwatch
      % which arpwatch
      % locate arpwatch

     Where to find more information:

    Darwin Ports



    Lightbox this page.