Net-snmp version 5.4.2.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    net-snmp  most recent diff


    version 5.4.2.1

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


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

      PortSystem 1.0

      Name: net-snmp
      Version: 5.4.2.1
      Revision: 1
      Category: net
      Maintainers: darkart.com:opendarwin.org openmaintainer
      Description: An extendable SNMP implementation
      Long Description: This is net-snmp, a derivative of CMU's SNMP package. Various tools relating to the Simple Network Management Protocol including: an extensible agent, an SNMP library, tools to request or set information from SNMP agents, tools to generate and handle SNMP traps, a version of the unix 'netstat' command using SNMP, a Tk/perl MIB browser.
      Homepage: http://net-snmp.sourceforge.net/
      Platform: darwin
      Master Sites: sourceforge
      Checksums: md5 984932520143f0c8bf7b7ce1fc9e1da1 sha1 4f2df9ea62344fe840f493d0e08abe5de3697862 rmd160 2148c42d486ed88f9cfc3ca1d50c68abcd7e3d63

      Patch Files: patch-Makefile.in.diff patch-configure.diff

      depends_lib port:openssl port:zlib path:bin/perl:perl5
      use_parallel_build no
      configure.env-append PERLPROG=${prefix}/bin/perl
      configure.args --with-defaults --disable-agent --with-sys-contact=nobody no.where --with-persistent-directory=${prefix}/var/net-snmp --mandir=${prefix}/share/man --infodir=${prefix}/share/info --with-logfile=${prefix}/var/log --with-openssl=${prefix} --with-zlib=${prefix} --with-install-prefix=${destroot} --without-kmem-usage --enable-ipv6 --with-out-mib-modules=mibII/ipv6

      Variant: no_ssl description { Without libssl support } {
      configure.args-delete --with-openssl=${prefix}
      configure.args-append --without-openssl
      }

      Variant: no_zlib description { Without libz support } {
      configure.args-delete --with-zlib=${prefix}
      configure.args-append --without-zlib
      }

      Variant: bzip2 description { Uses libbz2 } {
      configure.args-append --with-bzip2=${prefix}
      }

      Variant: server description { Build snmpd } {
      configure.args-delete --disable-agent

      startupitem.create yes
      startupitem.name NetSNMP
      startupitem.start "echo \"NOT starting (net-)snmpd, no real startup item yet\""
      startupitem.stop "echo \"NOT stopping (net-)snmpd, no real startup item yet\""
      }

      Variant: ksm description { support for kerberos based SNMP security } { configure.args-append --with-security-modules="usm ksm" }

      post-destroot {
      destroot.keepdirs ${destroot}${prefix}/var/net-snmp
      foreach packlist [exec find ${destroot} -name .packlist] {
      ui_info "Fixing packlist ${packlist}"
      reinplace "s|${destroot}||" ${packlist}
      }
      foreach badfile [exec find ${destroot} -name perllocal.pod] {
      ui_info "Removing ${badfile}"
      file delete ${badfile}
      }
      }

      livecheck.type sourceforge
      livecheck.regex "net-snmp (\\d+(?:\\.\\d+)*) released.*"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.