From dan@dan.emsphone.com  Fri Jul 29 18:30:55 2011
Return-Path: <dan@dan.emsphone.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 91D0C106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2011 18:30:55 +0000 (UTC)
	(envelope-from dan@dan.emsphone.com)
Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116])
	by mx1.freebsd.org (Postfix) with ESMTP id 3FE418FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2011 18:30:55 +0000 (UTC)
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p6TIIRHx005868
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2011 13:18:27 -0500 (CDT)
	(envelope-from dan@dan.emsphone.com)
Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1])
	by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id p6TIIQlx070599
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2011 13:18:27 -0500 (CDT)
	(envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.14.5/8.14.5/Submit) id p6TIIPSL070598;
	Fri, 29 Jul 2011 13:18:25 -0500 (CDT)
	(envelope-from dan)
Message-Id: <201107291818.p6TIIPSL070598@dan.emsphone.com>
Date: Fri, 29 Jul 2011 13:18:25 -0500 (CDT)
From: Dan Nelson <dnelson@allantgroup.com>
Reply-To: Dan Nelson <dnelson@allantgroup.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: net-mgmt/net-snmp 5.7 doesn't include default mib modules
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:    sylvio
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 29 18:40:09 UTC 2011
>Closed-Date:    Sat Aug 13 23:45:00 UTC 2011
>Last-Modified:  Sat Aug 13 23:50:08 UTC 2011
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->sylvio 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jul 29 18:40:20 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159299 
State-Changed-From-To: open->closed 
State-Changed-By: sylvio 
State-Changed-When: Sat Aug 13 23:44:59 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159299 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159299: commit references a PR
Date: Sat, 13 Aug 2011 23:44:09 +0000 (UTC)

 sylvio      2011-08-13 23:43:55 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt/net-snmp    Makefile pkg-plist 
   Added files:
     net-mgmt/net-snmp/files 
                             patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c 
                             patch-include-net-snmp_net-snmp-config.h.in 
   Log:
   - Fix to location of mib modules
   - Fix problem when /dev/kmem file is not available
   - Fix when installed without WITH_IPV6 option, when using pkg_delete
   - fix of returning free diskspace in HOST-RESOURCES-MIB::hrStorageUsed
   - BUMP PORTREVISION
   
   PR:             ports/159299
                   ports/159354
                   ports/159386
                   ports/159524
   Submitted by:   Dan Nelson <dnelson@allantgroup.com>
                   Emil Smolenski <am@raisa.eu.org>
                   Rene Henzinger <henzinger@burda-ic.com>
   
   Revision  Changes    Path
   1.189     +3 -3      ports/net-mgmt/net-snmp/Makefile
   1.1       +11 -0     ports/net-mgmt/net-snmp/files/patch-agent-mibgroup-hardware-fsys-fsys_getfsstats.c (new)
   1.1       +11 -0     ports/net-mgmt/net-snmp/files/patch-include-net-snmp_net-snmp-config.h.in (new)
   1.59      +3 -1      ports/net-mgmt/net-snmp/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
