ports/83058: [PATCH] net-mgmt/net-snmp: update to 5.2.1.2
Renato Botelho
freebsd at galle.com.br
Wed Jul 6 12:10:19 UTC 2005
>Number: 83058
>Category: ports
>Synopsis: [PATCH] net-mgmt/net-snmp: update to 5.2.1.2
>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: Wed Jul 06 12:10:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Renato Botelho
>Release: FreeBSD 5.4-RELEASE-p3 i386
>Organization:
Galle Folheados - http://www.galle.com.br
>Environment:
System: FreeBSD data.galle.com.br 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #2: Thu Jun 30 10:57:16 BRST 2005
>Description:
- Update to 5.2.1.2
- Pacify portlint
This version fixes remote DoS vulnerability:
http://marc.theaimsgroup.com/?l=net-snmp-announce&m=112059518426328
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- net-snmp-5.2.1.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.125
diff -u -r1.125 Makefile
--- Makefile 28 May 2005 08:30:49 -0000 1.125
+++ Makefile 6 Jul 2005 12:05:21 -0000
@@ -6,14 +6,16 @@
#
PORTNAME= snmp
-PORTVERSION= 5.2.1
-PORTREVISION= 2
-PKGNAMEPREFIX= net-
+PORTVERSION= 5.2.1.2
CATEGORIES= net-mgmt ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= net-snmp
+PKGNAMEPREFIX= net-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+MAINTAINER= kuriyama at FreeBSD.org
+COMMENT= An extendable SNMP implementation
+
.if defined(WITH_INETADDRESS_HACK)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-snmplib::mib.c
.endif
@@ -21,9 +23,6 @@
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-local:Makefile.in
.endif
-MAINTAINER= kuriyama at FreeBSD.org
-COMMENT= An extendable SNMP implementation
-
.if defined(WITH_TKMIB)
RUN_DEPEND= ${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
.endif
@@ -103,15 +102,15 @@
_NET_SNMP_MIB_MODULES=
.for module1 in ${NET_SNMP_MIB_MODULE_LIST}
_module1=${module1}
-_define= false
+_define=false
. for module2 in ${NET_SNMP_MIB_MODULES}
_module2=${module2}
. if ${_module1} == ${_module2}
-_define= true
+_define=true
. endif
. endfor
. if ${_define} == true
-_NET_SNMP_MIB_MODULES+= ${module1}
+_NET_SNMP_MIB_MODULES+=${module1}
PLIST_SUB+= WITH_${module1:C|.*/||:U}=""
. else
PLIST_SUB+= WITH_${module1:C|.*/||:U}="@comment "
@@ -221,22 +220,21 @@
@${MV} ${WRKSRC}/aclocal.m4.tmp ${WRKSRC}/aclocal.m4
patch-script-files:
-.for file in ${SCRIPT_FILES}
+.for filename in ${SCRIPT_FILES}
@${REINPLACE_CMD} ${SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${WRKSRC}/local/${file}
+ ${WRKSRC}/local/${filename}
.endfor
patch-startup-files:
-.for file in ${STARTUP_FILES}
+.for filename in ${STARTUP_FILES}
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/${file}.sample > ${WRKDIR}/${file}
+ ${FILESDIR}/${filename}.sample > ${WRKDIR}/${filename}
.endfor
post-configure:
@${FIND} ${WRKSRC} -name Makefile | \
${XARGS} ${REINPLACE_CMD} -E -e '/^INSTALL[ ]+=/s|$$| -m 755|'
-
post-build:
.if !defined(WITHOUT_PERL)
${FIND} ${WRKSRC}/perl -name Makefile | \
@@ -256,8 +254,8 @@
@cd ${PREFIX}/sbin; ${STRIP_CMD} ${SBIN_FILES}
install-startup-files:
-.for file in ${STARTUP_FILES}
- @${INSTALL_SCRIPT} ${WRKDIR}/${file} ${STARTUP_DIR}
+.for filename in ${STARTUP_FILES}
+ @${INSTALL_SCRIPT} ${WRKDIR}/${filename} ${STARTUP_DIR}
.endfor
install-config-files:
@@ -266,8 +264,8 @@
install-doc-files:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-. for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+. for filename in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
. endfor
.endif
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/net-snmp/distinfo,v
retrieving revision 1.29
diff -u -r1.29 distinfo
--- distinfo 25 Jan 2005 23:49:30 -0000 1.29
+++ distinfo 6 Jul 2005 12:05:21 -0000
@@ -1,2 +1,2 @@
-MD5 (net-snmp-5.2.1.tar.gz) = 4c38451b1f5914789da370b79dc06124
-SIZE (net-snmp-5.2.1.tar.gz) = 3971320
+MD5 (net-snmp-5.2.1.2.tar.gz) = 34159770a7fe418d99fdd416a75358b1
+SIZE (net-snmp-5.2.1.2.tar.gz) = 3869893
--- net-snmp-5.2.1.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list