Download and Install libpcap version 0.9.8 on Mac OS X
Wednesday the 20th of August, 2008

    libpcap  most recent diff


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



      # $Id: Portfile 34191 2008-02-17 05:20:44Z ricci macports.org $

      PortSystem 1.0

      Name: libpcap
      Version: 0.9.8
      revision 0
      Category: net
      Maintainers: opendarwin.org darkart.com
      Description: Packet Capture library
      Long Description: The Packet Capture library provides a high level interface to packet capture systems. All packets on the network, even those destined for other hosts, are accessible through this mechanism.
      Homepage: http://www.tcpdump.org/
      Platform: darwin
      master_sites ${homepage}release/ macports
      checksums md5 5208f24d0328ee7c20b52c43eaa9aa0e sha1 11dfe67cfc1c279c7346d626a99ad4ba90621028

      configure.args --mandir=${prefix}/share/man
      # configure.env CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
      configure.cflags-append -I. -dynamic -fno-common -DHAVE_CONFIG_H

      patchfiles patch-Makefile.in.diff patch-scanner.l.diff

      pre-configure {
      reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" ${worksrcpath}/Makefile.in
      }

      Variant: ipv6 description {enable ipv6 support} {
      configure.args-append --enable-ipv6
      }

      Variant: no_shared description {don't build libpcap.dylib} {
      # configure.env-delete CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
      configure.cflags-delete -I. -dynamic -fno-common -DHAVE_CONFIG_H
      patchfiles-delete patch-Makefile.in
      pre-configure {
      reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" Makefile.in
      }
      }

      universal_variant no

      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
      # vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #

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

     Where to find more information:

    Darwin Ports



    image test