From owner-svn-ports-all@FreeBSD.ORG Wed Mar 18 16:05:09 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31BDB11C; Wed, 18 Mar 2015 16:05:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D27EFB2; Wed, 18 Mar 2015 16:05:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2IG58G1049067; Wed, 18 Mar 2015 16:05:08 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2IG58qe049066; Wed, 18 Mar 2015 16:05:08 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201503181605.t2IG58qe049066@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Wed, 18 Mar 2015 16:05:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381568 - head/net-mgmt/net-snmp X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2015 16:05:09 -0000 Author: glebius (src committer) Date: Wed Mar 18 16:05:08 2015 New Revision: 381568 URL: https://svnweb.freebsd.org/changeset/ports/381568 QAT: https://qat.redports.org/buildarchive/r381568/ Log: On head do not build deprecated IPV6-MIB implementations in mibII/ipv6.c, now superseeded by the INET-XXX-MIB versions. And no need for _WANT_IFADDR hack now. This fixes build on head, since cuts away the main kvm(3) abuser from net-snmp. Discussion: http://sourceforge.net/p/net-snmp/mailman/message/33539005/ Sponsored by: Netflix Sponsored by: Nginx, Inc. Approved by: zi Modified: head/net-mgmt/net-snmp/Makefile Modified: head/net-mgmt/net-snmp/Makefile ============================================================================== --- head/net-mgmt/net-snmp/Makefile Wed Mar 18 15:33:52 2015 (r381567) +++ head/net-mgmt/net-snmp/Makefile Wed Mar 18 16:05:08 2015 (r381568) @@ -3,7 +3,7 @@ PORTNAME= snmp PORTVERSION= 5.7.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- @@ -155,10 +155,14 @@ NET_SNMP_WITH_MIB_MODULE_LIST+= sctp-mib CONFIGURE_ARGS+= --with-libs="-lssp_nonshared" .endif -.if ${OSVERSION} >= 1000000 +.if ${OSVERSION} >= 1000000 && ${OSVERSION} < 1100062 CFLAGS+= -D_WANT_IFADDR .endif +.if ${OSVERSION} >= 1100062 +CONFIGURE_ARGS+= --with-out-mib-modules="mibII/ipv6" +.endif + .if ${PORT_OPTIONS:MMFD_REWRITES} CONFIGURE_ARGS+=--enable-mfd-rewrites NET_SNMP_WITH_MIB_MODULE_LIST+= if-mib