15685782 SUNBT7005330 NET-SNMP upgrade to latest stable version
authorGowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Wed, 22 Jan 2014 01:46:00 -0800
changeset 1649 81d624418adc
parent 1648 ef0e5bc3c1a9
child 1650 ce501c11d5fa
15685782 SUNBT7005330 NET-SNMP upgrade to latest stable version 15997718 netsnmp_assert index == tmp failed if-mib/data_access/interface.c:469 _access_in 15705167 SUNBT7030994 find memory leaks for snmp-notify after doing libfmnotif 15754602 SUNBT7111031 snmpd dumping during walk as strs test suite winds down its connect 16066103 net-snmp service records a registration error when service is enabled 16242256 linkUpDownNotifications does not work as described in snmpd.conf man page
components/net-snmp/Makefile
--- a/components/net-snmp/Makefile	Mon Jan 20 23:00:39 2014 -0800
+++ b/components/net-snmp/Makefile	Wed Jan 22 01:46:00 2014 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 
 # parfait is upset about some inline assembly
@@ -30,14 +30,13 @@
 DOXYGEN=/usr/bin/doxygen
 
 COMPONENT_NAME=		net-snmp
-COMPONENT_VERSION=	5.4.1
+COMPONENT_VERSION=	5.7.2
 COMPONENT_PROJECT_URL=	http://www.net-snmp.org/
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH= \
-    sha256:0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565
-#COMPONENT_ARCHIVE_URL=	http://ftp.ntua.gr/mirror/net-snmp/net-snmp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
-COMPONENT_ARCHIVE_URL= http://ftp.ntua.gr/mirror/net-snmp/OldFiles/net-snmp-5.4.x/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
+    sha256:09ed31b4cc1f3c0411ef9a16eff79ef3b30d89c32ca46d5a01a41826c4ceb816
+COMPONENT_ARCHIVE_URL=	http://ftp.ntua.gr/mirror/net-snmp/net-snmp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
 COMPONENT_BUGDB=	service/net-snmp utility/net-snmp library/net-snmp
 
 include $(WS_TOP)/make-rules/prep.mk
@@ -85,6 +84,9 @@
 CONFIGURE_OPTIONS	+=	CPPFLAGS="$(CPPFLAGS)"
 CONFIGURE_OPTIONS	+=	CC="$(CC)"
 
+# Enable ASLR for this component
+ASLR_MODE = $(ASLR_ENABLE)
+
 PKG_MACROS +=	BUILD_DIR=$(BUILD_DIR)
 
 COMPONENT_PRE_CONFIGURE_ACTION = \
@@ -112,7 +114,9 @@
 $(INSTALL_32): COMPONENT_POST_INSTALL_ACTION= \
 	($(MKDIR) -p $(BUILD_DIR)/prototype/$(MACH)/etc/net-snmp/snmp/mibs; \
 	 cd $(BUILD_DIR)/$(MACH32)/sun ; ls agent; $(CCSMAKE) -e $(CCSMAKE_ARGS) install) ; \
-	(cd $(@D)/python2.7 ; env PYTHON=$(PYTHON.2.7.$(BITS)) \
+	(cd $(@D)/python2.7 ; env CFLAGS="-I$(BUILD_DIR)/$(MACH32)/include \
+		-L$(BUILD_DIR)/$(MACH32)/agent/.libs -L$(BUILD_DIR)/$(MACH32)/snmplib/.libs" \
+		PYTHON=$(PYTHON.2.7.$(BITS)) \
 		$(PYTHON.2.7.$(BITS)) ./setup.py install \
 			--root $(PROTO_DIR) \
 			--install-lib=$(PYTHON.2.7.VENDOR_PACKAGES))