# $Id$ PortSystem 1.0 name net-snmp version 5.5 revision 1 categories net platforms darwin maintainers ryandesign openmaintainer homepage http://net-snmp.sourceforge.net/ master_sites sourceforge 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. checksums md5 5b2551e7bd024fbbee84dca22a5f13a1 \ sha1 ca03ece79b218af081ee4b273da4e217f459e508 \ rmd160 1699d9cb6bcd5075a565cc8af9913be4dfbc49e2 patchfiles patch-configure.diff depends_lib port:openssl \ port:zlib \ port:bzip2 \ path:bin/perl:perl5 use_parallel_build yes 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-bzip2=${prefix} \ --with-install-prefix=${destroot} \ --without-elf \ --without-kmem-usage \ --enable-ipv6 \ --with-out-mib-modules=mibII/ipv6 variant no_ssl description {Without libssl support} { depends_lib-delete port:openssl configure.args-delete --with-openssl=${prefix} configure.args-append --without-openssl } 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-build { if {[variant_isset universal]} { set my_archflags ${configure.universal_cflags} } else { set my_archflags ${configure.cc_archflags} } reinplace "s|${my_archflags}||g" ${worksrcpath}/${name}-config } 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 regex livecheck.url ${homepage}download.html livecheck.regex {Current release: ([0-9.]+)}