Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2011 13:18:25 -0500 (CDT)
From:      Dan Nelson <dnelson@allantgroup.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/159299: net-mgmt/net-snmp 5.7 doesn't include default mib modules
Message-ID:  <201107291818.p6TIIPSL070598@dan.emsphone.com>
Resent-Message-ID: <201107291840.p6TIeApJ033311@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159299
>Category:       ports
>Synopsis:       net-mgmt/net-snmp 5.7 doesn't include default mib modules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 29 18:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Dan Nelson
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD dan.emsphone.com 8.2-STABLE FreeBSD 8.2-STABLE #630 r223656M: Wed Jun 29 11:51:35 CDT 2011 zsh@dan.emsphone.com:/usr/src-svn/sys/i386/compile/DANSMP i386


	
>Description:
	

The net-snmp port appends "CONFIGURE_ARGS+=--with-mib-modules ..." in two
locations; once at the top along with a bunch of other configure flags, and
once at the bottom, using the contents of ${NET_SNMP_WITH_MIB_MODULE_LIST}. 
The last option takes precedence, so if NET_SNMP_WITH_MIB_MODULE_LIST gets
set, the default list of mibs "host disman/event-mib smux mibII/mta_sendmail
mibII/tcpTable ucd-snmp/diskio" is lost.

>How-To-Repeat:
	

Build net-snmp on any FreeBSD older than OSVERSION 700028, and notice that
the only additional mib configured is sctp-mib.

>Fix:

	

Apply this patch:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.188
diff -u -r1.188 Makefile
--- Makefile	28 Jul 2011 12:41:49 -0000	1.188
+++ Makefile	29 Jul 2011 17:56:58 -0000
@@ -40,7 +40,6 @@
 		--with-sys-location="${NET_SNMP_SYS_LOCATION}" \
 		--with-logfile="${NET_SNMP_LOGFILE}" \
 		--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
-		--with-mib-modules="host disman/event-mib smux mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio" \
 		--with-gnu-ld --with-libwrap --with-ldflags="-lm -lkvm -ldevstat"
 
 .if defined(BATCH)
@@ -107,6 +106,8 @@
 NET_SNMP_LOGFILE?=	/var/log/snmpd.log
 NET_SNMP_PERSISTENTDIR?=/var/net-snmp
 
+NET_SNMP_WITH_MIB_MODULE_LIST+=	host disman/event-mib smux mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio
+
 .if ${OSVERSION} >= 700028
 NET_SNMP_WITH_MIB_MODULE_LIST+=	sctp-mib
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107291818.p6TIIPSL070598>