# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
checksums rmd160 66770d78f2583cda36e90cc35032d7dae2d354c3 \
sha256 b2fc3500840ebe532734c4786b0da4ef0a5f67e51ef4c86b3345d697e4976adf \
maintainers {ryandesign @ryandesign} openmaintainer
homepage http://net-snmp.sourceforge.net/
master_sites sourceforge:project/${name}/${name}/${version}
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.
port:perl${perl5.major} \
# darwin18.h and above do not exist in 5.8
# https://sourceforge.net/p/net-snmp/bugs/2504/
copy ${worksrcpath}/include/net-snmp/system/darwin17.h ${worksrcpath}/include/net-snmp/system/darwin18.h
copy ${worksrcpath}/include/net-snmp/system/darwin17.h ${worksrcpath}/include/net-snmp/system/darwin19.h
patchfiles-append patch-agent-mibgroup-mibII-icmp.h.diff
patchfiles-append configure-frameworks.patch
patchfiles-append configure-perl-cc.patch
patchfiles-append fix-order-of-L-flags.patch
patchfiles-append patch-Makefile.in.diff
patchfiles-append yosemite-libtool.patch
configure.env-append PERLPROG=${perl5.bin}
configure.args --disable-embedded-perl \
--with-sys-contact=nobody@no.where \
--with-persistent-directory=${prefix}/var/net-snmp \
--with-logfile=${prefix}/var/log \