mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 5.2.1.
- Add a patch to fix memory leak (SF bugs #1103644). - Add WITH_DMALLOC knob (with a lot of patches to fix #include order).
This commit is contained in:
parent
7b4f846044
commit
a7f5634511
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127345
@ -6,8 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 5.2.1
|
||||
PORTREVISION= 0
|
||||
PKGNAMEPREFIX= net-
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -33,6 +33,7 @@ USE_REINPLACE= yes
|
||||
USE_AUTOCONF_VER=259
|
||||
USE_LIBTOOL_VER=15
|
||||
USE_RC_SUBR= yes
|
||||
USE_OPENSSL= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
LIBTOOLFLAGS= #empty
|
||||
.if !defined(WITHOUT_PERL)
|
||||
@ -73,6 +74,11 @@ PLIST_SUB+= WITH_TKMIB=""
|
||||
PLIST_SUB+= WITH_TKMIB="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DMALLOC)
|
||||
LIB_DEPEND+= dmalloc:${PORTSDIR}/devel/dmalloc
|
||||
CONFIGURE_ARGS+=--with-dmalloc=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
|
||||
CONFIGURE_ARGS+=--enable-ipv6
|
||||
# --with-transport="UDPIPv6 TCPIPv6" --with-modules=mibII/ipv6"
|
||||
@ -268,6 +274,6 @@ display-message:
|
||||
|
||||
# Maintainer's note:
|
||||
# Don't forget to bump library version in these ports.
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille,mail/cyrus-imapd22,net/ifstat,sysutils/jailadmin
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (net-snmp-5.2.tar.gz) = af1c18209474ec4851b06504aae2a7c1
|
||||
SIZE (net-snmp-5.2.tar.gz) = 3853153
|
||||
MD5 (net-snmp-5.2.1.tar.gz) = 4c38451b1f5914789da370b79dc06124
|
||||
SIZE (net-snmp-5.2.1.tar.gz) = 3971320
|
||||
|
13
net-mgmt/net-snmp-devel/files/patch-agent_index.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-agent_index.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_index.c.orig Mon Jan 24 09:14:39 2005
|
||||
+++ agent/agent_index.c Mon Jan 24 09:14:55 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
13
net-mgmt/net-snmp-devel/files/patch-agent_read_config.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-agent_read_config.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_read_config.c.orig Mon Jan 24 09:12:58 2005
|
||||
+++ agent/agent_read_config.c Mon Jan 24 09:13:13 2005
|
||||
@@ -84,10 +84,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
13
net-mgmt/net-snmp-devel/files/patch-agent_registry.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-agent_registry.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_registry.c.orig Mon Jan 24 09:14:00 2005
|
||||
+++ agent/agent_registry.c Mon Jan 24 09:14:08 2005
|
||||
@@ -51,10 +51,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp-devel/files/patch-asn1.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-asn1.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/asn1.c.orig Tue Jan 25 10:09:35 2005
|
||||
+++ snmplib/asn1.c Tue Jan 25 10:09:55 2005
|
||||
@@ -181,6 +181,9 @@
|
||||
#include <in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-at.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-at.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/mibII/at.c.orig Mon Jan 24 09:08:41 2005
|
||||
+++ agent/mibgroup/mibII/at.c Mon Jan 24 09:08:58 2005
|
||||
@@ -90,9 +90,6 @@
|
||||
#if HAVE_WINSOCK_H
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#ifdef hpux11
|
||||
#include <sys/mib.h>
|
13
net-mgmt/net-snmp-devel/files/patch-auto_nlist.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-auto_nlist.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/auto_nlist.c.orig Mon Jan 24 09:11:07 2005
|
||||
+++ agent/auto_nlist.c Mon Jan 24 09:11:24 2005
|
||||
@@ -21,10 +21,6 @@
|
||||
#include <kvm.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/agent/auto_nlist.h>
|
||||
#include "autonlist.h"
|
||||
#include "kernel.h"
|
12
net-mgmt/net-snmp-devel/files/patch-callback.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-callback.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/callback.c.orig Tue Jan 25 10:19:39 2005
|
||||
+++ snmplib/callback.c Tue Jan 25 10:19:53 2005
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-default_store.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-default_store.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/default_store.c.orig Tue Jan 25 10:20:31 2005
|
||||
+++ snmplib/default_store.c Tue Jan 25 10:20:47 2005
|
||||
@@ -145,6 +145,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-diskio.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-diskio.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- ./agent/mibgroup/ucd-snmp/diskio.c.orig Mon Jan 24 23:35:53 2005
|
||||
+++ ./agent/mibgroup/ucd-snmp/diskio.c Mon Jan 24 23:37:24 2005
|
||||
@@ -458,8 +458,8 @@
|
||||
ERROR_MSG("Memory alloc failure - devla_getstats()\n");
|
||||
return;
|
||||
}
|
||||
+ memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
}
|
||||
- memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
|
||||
if ((GETDEVS(lastat)) == -1) {
|
||||
ERROR_MSG("can't do getdevs()\n");
|
@ -1,16 +0,0 @@
|
||||
--- agent/mibgroup/mibII/interfaces.c.orig Sat Jun 8 00:18:03 2002
|
||||
+++ agent/mibgroup/mibII/interfaces.c Mon Jul 29 12:35:08 2002
|
||||
@@ -555,11 +555,9 @@
|
||||
ifp->ifm_type));
|
||||
}
|
||||
}
|
||||
- if (have_ifinfo && have_addr) {
|
||||
+ if (have_ifinfo) {
|
||||
return 0;
|
||||
- } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
|
||||
- return 0;
|
||||
- else {
|
||||
+ } else {
|
||||
return -1;
|
||||
}
|
||||
}
|
12
net-mgmt/net-snmp-devel/files/patch-keytools.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-keytools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/keytools.c.orig Tue Jan 25 10:17:48 2005
|
||||
+++ snmplib/keytools.c Tue Jan 25 10:18:07 2005
|
||||
@@ -32,6 +32,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-lcd_time.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-lcd_time.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/lcd_time.c.orig Tue Jan 25 10:16:53 2005
|
||||
+++ snmplib/lcd_time.c Tue Jan 25 10:17:10 2005
|
||||
@@ -38,6 +38,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp-devel/files/patch-master.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-master.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/master.c.orig Mon Jan 24 09:16:00 2005
|
||||
+++ agent/mibgroup/agentx/master.c Mon Jan 24 09:16:21 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-master_admin.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-master_admin.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/agentx/master_admin.c.orig Mon Jan 24 09:18:07 2005
|
||||
+++ agent/mibgroup/agentx/master_admin.c Mon Jan 24 09:18:15 2005
|
||||
@@ -35,9 +35,6 @@
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
12
net-mgmt/net-snmp-devel/files/patch-mib.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-mib.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/mib.c.orig Tue Jan 25 10:01:11 2005
|
||||
+++ snmplib/mib.c Tue Jan 25 10:02:02 2005
|
||||
@@ -75,6 +75,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp-devel/files/patch-net-snmp-includes.h
Normal file
13
net-mgmt/net-snmp-devel/files/patch-net-snmp-includes.h
Normal file
@ -0,0 +1,13 @@
|
||||
--- include/net-snmp/net-snmp-includes.h.orig Mon Jan 24 08:24:47 2005
|
||||
+++ include/net-snmp/net-snmp-includes.h Mon Jan 24 08:25:11 2005
|
||||
@@ -49,6 +49,10 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Must be right after system headers, but before library code for best usage
|
||||
*/
|
13
net-mgmt/net-snmp-devel/files/patch-oid_stash.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-oid_stash.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- snmplib/oid_stash.c.orig Mon Jan 24 09:43:04 2005
|
||||
+++ snmplib/oid_stash.c Mon Jan 24 09:43:14 2005
|
||||
@@ -5,10 +5,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
|
||||
/** @defgroup oid_stash Store and retrieve data referenced by an OID.
|
12
net-mgmt/net-snmp-devel/files/patch-parse.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-parse.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/parse.c.orig Tue Jan 25 10:04:35 2005
|
||||
+++ snmplib/parse.c Tue Jan 25 10:05:02 2005
|
||||
@@ -106,6 +106,9 @@
|
||||
#if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)
|
||||
#include <regex.h>
|
||||
#endif
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-scapi.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-scapi.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/scapi.c.orig Tue Jan 25 10:18:44 2005
|
||||
+++ snmplib/scapi.c Tue Jan 25 10:19:01 2005
|
||||
@@ -46,6 +46,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
11
net-mgmt/net-snmp-devel/files/patch-snmpUDPDomain.c
Normal file
11
net-mgmt/net-snmp-devel/files/patch-snmpUDPDomain.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- snmplib/snmpUDPDomain.c.orig Mon Jan 24 10:47:16 2005
|
||||
+++ snmplib/snmpUDPDomain.c Mon Jan 24 10:47:41 2005
|
||||
@@ -88,7 +88,7 @@
|
||||
} else {
|
||||
char tmp[64];
|
||||
|
||||
- sprintf(tmp, "UDP: [%s]:%hd",
|
||||
+ sprintf(tmp, "UDP: [%s]:%hu",
|
||||
inet_ntoa(to->sin_addr), ntohs(to->sin_port));
|
||||
return strdup(tmp);
|
||||
}
|
12
net-mgmt/net-snmp-devel/files/patch-snmp_auth.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-snmp_auth.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_auth.c.orig Tue Jan 25 10:08:14 2005
|
||||
+++ snmplib/snmp_auth.c Tue Jan 25 10:08:34 2005
|
||||
@@ -63,6 +63,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-snmp_debug.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-snmp_debug.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_debug.c.orig Tue Jan 25 10:10:49 2005
|
||||
+++ snmplib/snmp_debug.c Tue Jan 25 10:11:06 2005
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-snmp_logging.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-snmp_logging.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_logging.c.orig Tue Jan 25 10:14:41 2005
|
||||
+++ snmplib/snmp_logging.c Tue Jan 25 10:15:05 2005
|
||||
@@ -65,6 +65,9 @@
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp-devel/files/patch-snmp_transport.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-snmp_transport.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_transport.c.orig Tue Jan 25 10:21:33 2005
|
||||
+++ snmplib/snmp_transport.c Tue Jan 25 10:21:52 2005
|
||||
@@ -12,6 +12,9 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp-devel/files/patch-snmp_vars.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-snmp_vars.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/snmp_vars.c.orig Mon Jan 24 09:12:09 2005
|
||||
+++ agent/snmp_vars.c Mon Jan 24 09:12:23 2005
|
||||
@@ -136,10 +136,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/mib_modules.h>
|
@ -1,6 +1,16 @@
|
||||
--- snmplib/snmpusm.c.orig Wed Dec 8 19:32:52 2004
|
||||
+++ snmplib/snmpusm.c Wed Dec 8 19:33:30 2004
|
||||
@@ -89,6 +89,8 @@
|
||||
--- snmplib/snmpusm.c.orig Thu Sep 16 07:57:47 2004
|
||||
+++ snmplib/snmpusm.c Tue Jan 25 10:23:02 2005
|
||||
@@ -54,6 +54,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
@@ -89,6 +92,8 @@
|
||||
oid usmAESPrivProtocol[10] = { 1, 3, 6, 1, 6, 3, 10, 1, 2, 4 };
|
||||
/* backwards compat */
|
||||
oid *usmAES128PrivProtocol = usmAESPrivProtocol;
|
||||
|
13
net-mgmt/net-snmp-devel/files/patch-subagent.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-subagent.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/subagent.c.orig Mon Jan 24 09:17:08 2005
|
||||
+++ agent/mibgroup/agentx/subagent.c Mon Jan 24 09:17:12 2005
|
||||
@@ -36,10 +36,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/library/snmp_assert.h>
|
13
net-mgmt/net-snmp-devel/files/patch-sysORTable.c
Normal file
13
net-mgmt/net-snmp-devel/files/patch-sysORTable.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/mibII/sysORTable.c.orig Mon Jan 24 08:27:58 2005
|
||||
+++ agent/mibgroup/mibII/sysORTable.c Mon Jan 24 08:28:10 2005
|
||||
@@ -34,10 +34,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp-devel/files/patch-tools.c
Normal file
12
net-mgmt/net-snmp-devel/files/patch-tools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/tools.c.orig Tue Jan 25 10:13:50 2005
|
||||
+++ snmplib/tools.c Tue Jan 25 10:14:06 2005
|
||||
@@ -44,6 +44,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
@ -324,6 +324,7 @@ sbin/snmptrapd
|
||||
%%DATADIR%%/mibs/HOST-RESOURCES-TYPES.txt
|
||||
%%DATADIR%%/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-LANGUAGE-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-RTPROTO-MIB.txt
|
||||
%%DATADIR%%/mibs/IANAifType-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-INVERTED-STACK-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-MIB.txt
|
||||
|
@ -6,8 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 5.2.1
|
||||
PORTREVISION= 0
|
||||
PKGNAMEPREFIX= net-
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -33,6 +33,7 @@ USE_REINPLACE= yes
|
||||
USE_AUTOCONF_VER=259
|
||||
USE_LIBTOOL_VER=15
|
||||
USE_RC_SUBR= yes
|
||||
USE_OPENSSL= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
LIBTOOLFLAGS= #empty
|
||||
.if !defined(WITHOUT_PERL)
|
||||
@ -73,6 +74,11 @@ PLIST_SUB+= WITH_TKMIB=""
|
||||
PLIST_SUB+= WITH_TKMIB="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DMALLOC)
|
||||
LIB_DEPEND+= dmalloc:${PORTSDIR}/devel/dmalloc
|
||||
CONFIGURE_ARGS+=--with-dmalloc=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
|
||||
CONFIGURE_ARGS+=--enable-ipv6
|
||||
# --with-transport="UDPIPv6 TCPIPv6" --with-modules=mibII/ipv6"
|
||||
@ -268,6 +274,6 @@ display-message:
|
||||
|
||||
# Maintainer's note:
|
||||
# Don't forget to bump library version in these ports.
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille,mail/cyrus-imapd22,net/ifstat,sysutils/jailadmin
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (net-snmp-5.2.tar.gz) = af1c18209474ec4851b06504aae2a7c1
|
||||
SIZE (net-snmp-5.2.tar.gz) = 3853153
|
||||
MD5 (net-snmp-5.2.1.tar.gz) = 4c38451b1f5914789da370b79dc06124
|
||||
SIZE (net-snmp-5.2.1.tar.gz) = 3971320
|
||||
|
13
net-mgmt/net-snmp/files/patch-agent_index.c
Normal file
13
net-mgmt/net-snmp/files/patch-agent_index.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_index.c.orig Mon Jan 24 09:14:39 2005
|
||||
+++ agent/agent_index.c Mon Jan 24 09:14:55 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
13
net-mgmt/net-snmp/files/patch-agent_read_config.c
Normal file
13
net-mgmt/net-snmp/files/patch-agent_read_config.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_read_config.c.orig Mon Jan 24 09:12:58 2005
|
||||
+++ agent/agent_read_config.c Mon Jan 24 09:13:13 2005
|
||||
@@ -84,10 +84,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
13
net-mgmt/net-snmp/files/patch-agent_registry.c
Normal file
13
net-mgmt/net-snmp/files/patch-agent_registry.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_registry.c.orig Mon Jan 24 09:14:00 2005
|
||||
+++ agent/agent_registry.c Mon Jan 24 09:14:08 2005
|
||||
@@ -51,10 +51,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp/files/patch-asn1.c
Normal file
12
net-mgmt/net-snmp/files/patch-asn1.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/asn1.c.orig Tue Jan 25 10:09:35 2005
|
||||
+++ snmplib/asn1.c Tue Jan 25 10:09:55 2005
|
||||
@@ -181,6 +181,9 @@
|
||||
#include <in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-at.c
Normal file
12
net-mgmt/net-snmp/files/patch-at.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/mibII/at.c.orig Mon Jan 24 09:08:41 2005
|
||||
+++ agent/mibgroup/mibII/at.c Mon Jan 24 09:08:58 2005
|
||||
@@ -90,9 +90,6 @@
|
||||
#if HAVE_WINSOCK_H
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#ifdef hpux11
|
||||
#include <sys/mib.h>
|
13
net-mgmt/net-snmp/files/patch-auto_nlist.c
Normal file
13
net-mgmt/net-snmp/files/patch-auto_nlist.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/auto_nlist.c.orig Mon Jan 24 09:11:07 2005
|
||||
+++ agent/auto_nlist.c Mon Jan 24 09:11:24 2005
|
||||
@@ -21,10 +21,6 @@
|
||||
#include <kvm.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/agent/auto_nlist.h>
|
||||
#include "autonlist.h"
|
||||
#include "kernel.h"
|
12
net-mgmt/net-snmp/files/patch-callback.c
Normal file
12
net-mgmt/net-snmp/files/patch-callback.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/callback.c.orig Tue Jan 25 10:19:39 2005
|
||||
+++ snmplib/callback.c Tue Jan 25 10:19:53 2005
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-default_store.c
Normal file
12
net-mgmt/net-snmp/files/patch-default_store.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/default_store.c.orig Tue Jan 25 10:20:31 2005
|
||||
+++ snmplib/default_store.c Tue Jan 25 10:20:47 2005
|
||||
@@ -145,6 +145,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-diskio.c
Normal file
12
net-mgmt/net-snmp/files/patch-diskio.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- ./agent/mibgroup/ucd-snmp/diskio.c.orig Mon Jan 24 23:35:53 2005
|
||||
+++ ./agent/mibgroup/ucd-snmp/diskio.c Mon Jan 24 23:37:24 2005
|
||||
@@ -458,8 +458,8 @@
|
||||
ERROR_MSG("Memory alloc failure - devla_getstats()\n");
|
||||
return;
|
||||
}
|
||||
+ memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
}
|
||||
- memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
|
||||
if ((GETDEVS(lastat)) == -1) {
|
||||
ERROR_MSG("can't do getdevs()\n");
|
@ -1,16 +0,0 @@
|
||||
--- agent/mibgroup/mibII/interfaces.c.orig Sat Jun 8 00:18:03 2002
|
||||
+++ agent/mibgroup/mibII/interfaces.c Mon Jul 29 12:35:08 2002
|
||||
@@ -555,11 +555,9 @@
|
||||
ifp->ifm_type));
|
||||
}
|
||||
}
|
||||
- if (have_ifinfo && have_addr) {
|
||||
+ if (have_ifinfo) {
|
||||
return 0;
|
||||
- } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
|
||||
- return 0;
|
||||
- else {
|
||||
+ } else {
|
||||
return -1;
|
||||
}
|
||||
}
|
12
net-mgmt/net-snmp/files/patch-keytools.c
Normal file
12
net-mgmt/net-snmp/files/patch-keytools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/keytools.c.orig Tue Jan 25 10:17:48 2005
|
||||
+++ snmplib/keytools.c Tue Jan 25 10:18:07 2005
|
||||
@@ -32,6 +32,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-lcd_time.c
Normal file
12
net-mgmt/net-snmp/files/patch-lcd_time.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/lcd_time.c.orig Tue Jan 25 10:16:53 2005
|
||||
+++ snmplib/lcd_time.c Tue Jan 25 10:17:10 2005
|
||||
@@ -38,6 +38,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp/files/patch-master.c
Normal file
13
net-mgmt/net-snmp/files/patch-master.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/master.c.orig Mon Jan 24 09:16:00 2005
|
||||
+++ agent/mibgroup/agentx/master.c Mon Jan 24 09:16:21 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-master_admin.c
Normal file
12
net-mgmt/net-snmp/files/patch-master_admin.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/agentx/master_admin.c.orig Mon Jan 24 09:18:07 2005
|
||||
+++ agent/mibgroup/agentx/master_admin.c Mon Jan 24 09:18:15 2005
|
||||
@@ -35,9 +35,6 @@
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
12
net-mgmt/net-snmp/files/patch-mib.c
Normal file
12
net-mgmt/net-snmp/files/patch-mib.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/mib.c.orig Tue Jan 25 10:01:11 2005
|
||||
+++ snmplib/mib.c Tue Jan 25 10:02:02 2005
|
||||
@@ -75,6 +75,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp/files/patch-net-snmp-includes.h
Normal file
13
net-mgmt/net-snmp/files/patch-net-snmp-includes.h
Normal file
@ -0,0 +1,13 @@
|
||||
--- include/net-snmp/net-snmp-includes.h.orig Mon Jan 24 08:24:47 2005
|
||||
+++ include/net-snmp/net-snmp-includes.h Mon Jan 24 08:25:11 2005
|
||||
@@ -49,6 +49,10 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Must be right after system headers, but before library code for best usage
|
||||
*/
|
13
net-mgmt/net-snmp/files/patch-oid_stash.c
Normal file
13
net-mgmt/net-snmp/files/patch-oid_stash.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- snmplib/oid_stash.c.orig Mon Jan 24 09:43:04 2005
|
||||
+++ snmplib/oid_stash.c Mon Jan 24 09:43:14 2005
|
||||
@@ -5,10 +5,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
|
||||
/** @defgroup oid_stash Store and retrieve data referenced by an OID.
|
12
net-mgmt/net-snmp/files/patch-parse.c
Normal file
12
net-mgmt/net-snmp/files/patch-parse.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/parse.c.orig Tue Jan 25 10:04:35 2005
|
||||
+++ snmplib/parse.c Tue Jan 25 10:05:02 2005
|
||||
@@ -106,6 +106,9 @@
|
||||
#if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)
|
||||
#include <regex.h>
|
||||
#endif
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-scapi.c
Normal file
12
net-mgmt/net-snmp/files/patch-scapi.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/scapi.c.orig Tue Jan 25 10:18:44 2005
|
||||
+++ snmplib/scapi.c Tue Jan 25 10:19:01 2005
|
||||
@@ -46,6 +46,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
11
net-mgmt/net-snmp/files/patch-snmpUDPDomain.c
Normal file
11
net-mgmt/net-snmp/files/patch-snmpUDPDomain.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- snmplib/snmpUDPDomain.c.orig Mon Jan 24 10:47:16 2005
|
||||
+++ snmplib/snmpUDPDomain.c Mon Jan 24 10:47:41 2005
|
||||
@@ -88,7 +88,7 @@
|
||||
} else {
|
||||
char tmp[64];
|
||||
|
||||
- sprintf(tmp, "UDP: [%s]:%hd",
|
||||
+ sprintf(tmp, "UDP: [%s]:%hu",
|
||||
inet_ntoa(to->sin_addr), ntohs(to->sin_port));
|
||||
return strdup(tmp);
|
||||
}
|
12
net-mgmt/net-snmp/files/patch-snmp_auth.c
Normal file
12
net-mgmt/net-snmp/files/patch-snmp_auth.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_auth.c.orig Tue Jan 25 10:08:14 2005
|
||||
+++ snmplib/snmp_auth.c Tue Jan 25 10:08:34 2005
|
||||
@@ -63,6 +63,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-snmp_debug.c
Normal file
12
net-mgmt/net-snmp/files/patch-snmp_debug.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_debug.c.orig Tue Jan 25 10:10:49 2005
|
||||
+++ snmplib/snmp_debug.c Tue Jan 25 10:11:06 2005
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-snmp_logging.c
Normal file
12
net-mgmt/net-snmp/files/patch-snmp_logging.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_logging.c.orig Tue Jan 25 10:14:41 2005
|
||||
+++ snmplib/snmp_logging.c Tue Jan 25 10:15:05 2005
|
||||
@@ -65,6 +65,9 @@
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp/files/patch-snmp_transport.c
Normal file
12
net-mgmt/net-snmp/files/patch-snmp_transport.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_transport.c.orig Tue Jan 25 10:21:33 2005
|
||||
+++ snmplib/snmp_transport.c Tue Jan 25 10:21:52 2005
|
||||
@@ -12,6 +12,9 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp/files/patch-snmp_vars.c
Normal file
13
net-mgmt/net-snmp/files/patch-snmp_vars.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/snmp_vars.c.orig Mon Jan 24 09:12:09 2005
|
||||
+++ agent/snmp_vars.c Mon Jan 24 09:12:23 2005
|
||||
@@ -136,10 +136,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/mib_modules.h>
|
@ -1,6 +1,16 @@
|
||||
--- snmplib/snmpusm.c.orig Wed Dec 8 19:32:52 2004
|
||||
+++ snmplib/snmpusm.c Wed Dec 8 19:33:30 2004
|
||||
@@ -89,6 +89,8 @@
|
||||
--- snmplib/snmpusm.c.orig Thu Sep 16 07:57:47 2004
|
||||
+++ snmplib/snmpusm.c Tue Jan 25 10:23:02 2005
|
||||
@@ -54,6 +54,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
@@ -89,6 +92,8 @@
|
||||
oid usmAESPrivProtocol[10] = { 1, 3, 6, 1, 6, 3, 10, 1, 2, 4 };
|
||||
/* backwards compat */
|
||||
oid *usmAES128PrivProtocol = usmAESPrivProtocol;
|
||||
|
13
net-mgmt/net-snmp/files/patch-subagent.c
Normal file
13
net-mgmt/net-snmp/files/patch-subagent.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/subagent.c.orig Mon Jan 24 09:17:08 2005
|
||||
+++ agent/mibgroup/agentx/subagent.c Mon Jan 24 09:17:12 2005
|
||||
@@ -36,10 +36,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/library/snmp_assert.h>
|
13
net-mgmt/net-snmp/files/patch-sysORTable.c
Normal file
13
net-mgmt/net-snmp/files/patch-sysORTable.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/mibII/sysORTable.c.orig Mon Jan 24 08:27:58 2005
|
||||
+++ agent/mibgroup/mibII/sysORTable.c Mon Jan 24 08:28:10 2005
|
||||
@@ -34,10 +34,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp/files/patch-tools.c
Normal file
12
net-mgmt/net-snmp/files/patch-tools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/tools.c.orig Tue Jan 25 10:13:50 2005
|
||||
+++ snmplib/tools.c Tue Jan 25 10:14:06 2005
|
||||
@@ -44,6 +44,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
@ -324,6 +324,7 @@ sbin/snmptrapd
|
||||
%%DATADIR%%/mibs/HOST-RESOURCES-TYPES.txt
|
||||
%%DATADIR%%/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-LANGUAGE-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-RTPROTO-MIB.txt
|
||||
%%DATADIR%%/mibs/IANAifType-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-INVERTED-STACK-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-MIB.txt
|
||||
|
@ -6,8 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 5.2.1
|
||||
PORTREVISION= 0
|
||||
PKGNAMEPREFIX= net-
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -33,6 +33,7 @@ USE_REINPLACE= yes
|
||||
USE_AUTOCONF_VER=259
|
||||
USE_LIBTOOL_VER=15
|
||||
USE_RC_SUBR= yes
|
||||
USE_OPENSSL= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
LIBTOOLFLAGS= #empty
|
||||
.if !defined(WITHOUT_PERL)
|
||||
@ -73,6 +74,11 @@ PLIST_SUB+= WITH_TKMIB=""
|
||||
PLIST_SUB+= WITH_TKMIB="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DMALLOC)
|
||||
LIB_DEPEND+= dmalloc:${PORTSDIR}/devel/dmalloc
|
||||
CONFIGURE_ARGS+=--with-dmalloc=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 400014 && !defined(WITHOUT_IPV6)
|
||||
CONFIGURE_ARGS+=--enable-ipv6
|
||||
# --with-transport="UDPIPv6 TCPIPv6" --with-modules=mibII/ipv6"
|
||||
@ -268,6 +274,6 @@ display-message:
|
||||
|
||||
# Maintainer's note:
|
||||
# Don't forget to bump library version in these ports.
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille
|
||||
# lang/php4,lang/php5,net-mgmt/braa,net-mgmt/docsis,net/ethereal,net-mgmt/mbrowse,net/quagga,net/tethereal,net-mgmt/zabbix,security/libfwbuilder,net-mgmt/p5-SNMP-Info,net-mgmt/nagios-snmp-plugins,french/plgrenouille,mail/cyrus-imapd22,net/ifstat,sysutils/jailadmin
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (net-snmp-5.2.tar.gz) = af1c18209474ec4851b06504aae2a7c1
|
||||
SIZE (net-snmp-5.2.tar.gz) = 3853153
|
||||
MD5 (net-snmp-5.2.1.tar.gz) = 4c38451b1f5914789da370b79dc06124
|
||||
SIZE (net-snmp-5.2.1.tar.gz) = 3971320
|
||||
|
13
net-mgmt/net-snmp53/files/patch-agent_index.c
Normal file
13
net-mgmt/net-snmp53/files/patch-agent_index.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_index.c.orig Mon Jan 24 09:14:39 2005
|
||||
+++ agent/agent_index.c Mon Jan 24 09:14:55 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
13
net-mgmt/net-snmp53/files/patch-agent_read_config.c
Normal file
13
net-mgmt/net-snmp53/files/patch-agent_read_config.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_read_config.c.orig Mon Jan 24 09:12:58 2005
|
||||
+++ agent/agent_read_config.c Mon Jan 24 09:13:13 2005
|
||||
@@ -84,10 +84,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
13
net-mgmt/net-snmp53/files/patch-agent_registry.c
Normal file
13
net-mgmt/net-snmp53/files/patch-agent_registry.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/agent_registry.c.orig Mon Jan 24 09:14:00 2005
|
||||
+++ agent/agent_registry.c Mon Jan 24 09:14:08 2005
|
||||
@@ -51,10 +51,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp53/files/patch-asn1.c
Normal file
12
net-mgmt/net-snmp53/files/patch-asn1.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/asn1.c.orig Tue Jan 25 10:09:35 2005
|
||||
+++ snmplib/asn1.c Tue Jan 25 10:09:55 2005
|
||||
@@ -181,6 +181,9 @@
|
||||
#include <in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-at.c
Normal file
12
net-mgmt/net-snmp53/files/patch-at.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/mibII/at.c.orig Mon Jan 24 09:08:41 2005
|
||||
+++ agent/mibgroup/mibII/at.c Mon Jan 24 09:08:58 2005
|
||||
@@ -90,9 +90,6 @@
|
||||
#if HAVE_WINSOCK_H
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#ifdef hpux11
|
||||
#include <sys/mib.h>
|
13
net-mgmt/net-snmp53/files/patch-auto_nlist.c
Normal file
13
net-mgmt/net-snmp53/files/patch-auto_nlist.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/auto_nlist.c.orig Mon Jan 24 09:11:07 2005
|
||||
+++ agent/auto_nlist.c Mon Jan 24 09:11:24 2005
|
||||
@@ -21,10 +21,6 @@
|
||||
#include <kvm.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/agent/auto_nlist.h>
|
||||
#include "autonlist.h"
|
||||
#include "kernel.h"
|
12
net-mgmt/net-snmp53/files/patch-callback.c
Normal file
12
net-mgmt/net-snmp53/files/patch-callback.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/callback.c.orig Tue Jan 25 10:19:39 2005
|
||||
+++ snmplib/callback.c Tue Jan 25 10:19:53 2005
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-default_store.c
Normal file
12
net-mgmt/net-snmp53/files/patch-default_store.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/default_store.c.orig Tue Jan 25 10:20:31 2005
|
||||
+++ snmplib/default_store.c Tue Jan 25 10:20:47 2005
|
||||
@@ -145,6 +145,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-diskio.c
Normal file
12
net-mgmt/net-snmp53/files/patch-diskio.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- ./agent/mibgroup/ucd-snmp/diskio.c.orig Mon Jan 24 23:35:53 2005
|
||||
+++ ./agent/mibgroup/ucd-snmp/diskio.c Mon Jan 24 23:37:24 2005
|
||||
@@ -458,8 +458,8 @@
|
||||
ERROR_MSG("Memory alloc failure - devla_getstats()\n");
|
||||
return;
|
||||
}
|
||||
+ memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
}
|
||||
- memset(lastat->dinfo, 0, sizeof(struct devinfo));
|
||||
|
||||
if ((GETDEVS(lastat)) == -1) {
|
||||
ERROR_MSG("can't do getdevs()\n");
|
@ -1,16 +0,0 @@
|
||||
--- agent/mibgroup/mibII/interfaces.c.orig Sat Jun 8 00:18:03 2002
|
||||
+++ agent/mibgroup/mibII/interfaces.c Mon Jul 29 12:35:08 2002
|
||||
@@ -555,11 +555,9 @@
|
||||
ifp->ifm_type));
|
||||
}
|
||||
}
|
||||
- if (have_ifinfo && have_addr) {
|
||||
+ if (have_ifinfo) {
|
||||
return 0;
|
||||
- } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
|
||||
- return 0;
|
||||
- else {
|
||||
+ } else {
|
||||
return -1;
|
||||
}
|
||||
}
|
12
net-mgmt/net-snmp53/files/patch-keytools.c
Normal file
12
net-mgmt/net-snmp53/files/patch-keytools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/keytools.c.orig Tue Jan 25 10:17:48 2005
|
||||
+++ snmplib/keytools.c Tue Jan 25 10:18:07 2005
|
||||
@@ -32,6 +32,9 @@
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-lcd_time.c
Normal file
12
net-mgmt/net-snmp53/files/patch-lcd_time.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/lcd_time.c.orig Tue Jan 25 10:16:53 2005
|
||||
+++ snmplib/lcd_time.c Tue Jan 25 10:17:10 2005
|
||||
@@ -38,6 +38,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp53/files/patch-master.c
Normal file
13
net-mgmt/net-snmp53/files/patch-master.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/master.c.orig Mon Jan 24 09:16:00 2005
|
||||
+++ agent/mibgroup/agentx/master.c Mon Jan 24 09:16:21 2005
|
||||
@@ -39,10 +39,6 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-master_admin.c
Normal file
12
net-mgmt/net-snmp53/files/patch-master_admin.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- agent/mibgroup/agentx/master_admin.c.orig Mon Jan 24 09:18:07 2005
|
||||
+++ agent/mibgroup/agentx/master_admin.c Mon Jan 24 09:18:15 2005
|
||||
@@ -35,9 +35,6 @@
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
12
net-mgmt/net-snmp53/files/patch-mib.c
Normal file
12
net-mgmt/net-snmp53/files/patch-mib.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/mib.c.orig Tue Jan 25 10:01:11 2005
|
||||
+++ snmplib/mib.c Tue Jan 25 10:02:02 2005
|
||||
@@ -75,6 +75,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp53/files/patch-net-snmp-includes.h
Normal file
13
net-mgmt/net-snmp53/files/patch-net-snmp-includes.h
Normal file
@ -0,0 +1,13 @@
|
||||
--- include/net-snmp/net-snmp-includes.h.orig Mon Jan 24 08:24:47 2005
|
||||
+++ include/net-snmp/net-snmp-includes.h Mon Jan 24 08:25:11 2005
|
||||
@@ -49,6 +49,10 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Must be right after system headers, but before library code for best usage
|
||||
*/
|
13
net-mgmt/net-snmp53/files/patch-oid_stash.c
Normal file
13
net-mgmt/net-snmp53/files/patch-oid_stash.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- snmplib/oid_stash.c.orig Mon Jan 24 09:43:04 2005
|
||||
+++ snmplib/oid_stash.c Mon Jan 24 09:43:14 2005
|
||||
@@ -5,10 +5,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
|
||||
/** @defgroup oid_stash Store and retrieve data referenced by an OID.
|
12
net-mgmt/net-snmp53/files/patch-parse.c
Normal file
12
net-mgmt/net-snmp53/files/patch-parse.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/parse.c.orig Tue Jan 25 10:04:35 2005
|
||||
+++ snmplib/parse.c Tue Jan 25 10:05:02 2005
|
||||
@@ -106,6 +106,9 @@
|
||||
#if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP)
|
||||
#include <regex.h>
|
||||
#endif
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-scapi.c
Normal file
12
net-mgmt/net-snmp53/files/patch-scapi.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/scapi.c.orig Tue Jan 25 10:18:44 2005
|
||||
+++ snmplib/scapi.c Tue Jan 25 10:19:01 2005
|
||||
@@ -46,6 +46,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
11
net-mgmt/net-snmp53/files/patch-snmpUDPDomain.c
Normal file
11
net-mgmt/net-snmp53/files/patch-snmpUDPDomain.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- snmplib/snmpUDPDomain.c.orig Mon Jan 24 10:47:16 2005
|
||||
+++ snmplib/snmpUDPDomain.c Mon Jan 24 10:47:41 2005
|
||||
@@ -88,7 +88,7 @@
|
||||
} else {
|
||||
char tmp[64];
|
||||
|
||||
- sprintf(tmp, "UDP: [%s]:%hd",
|
||||
+ sprintf(tmp, "UDP: [%s]:%hu",
|
||||
inet_ntoa(to->sin_addr), ntohs(to->sin_port));
|
||||
return strdup(tmp);
|
||||
}
|
12
net-mgmt/net-snmp53/files/patch-snmp_auth.c
Normal file
12
net-mgmt/net-snmp53/files/patch-snmp_auth.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_auth.c.orig Tue Jan 25 10:08:14 2005
|
||||
+++ snmplib/snmp_auth.c Tue Jan 25 10:08:34 2005
|
||||
@@ -63,6 +63,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-snmp_debug.c
Normal file
12
net-mgmt/net-snmp53/files/patch-snmp_debug.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_debug.c.orig Tue Jan 25 10:10:49 2005
|
||||
+++ snmplib/snmp_debug.c Tue Jan 25 10:11:06 2005
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-snmp_logging.c
Normal file
12
net-mgmt/net-snmp53/files/patch-snmp_logging.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_logging.c.orig Tue Jan 25 10:14:41 2005
|
||||
+++ snmplib/snmp_logging.c Tue Jan 25 10:15:05 2005
|
||||
@@ -65,6 +65,9 @@
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
12
net-mgmt/net-snmp53/files/patch-snmp_transport.c
Normal file
12
net-mgmt/net-snmp53/files/patch-snmp_transport.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/snmp_transport.c.orig Tue Jan 25 10:21:33 2005
|
||||
+++ snmplib/snmp_transport.c Tue Jan 25 10:21:52 2005
|
||||
@@ -12,6 +12,9 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
13
net-mgmt/net-snmp53/files/patch-snmp_vars.c
Normal file
13
net-mgmt/net-snmp53/files/patch-snmp_vars.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/snmp_vars.c.orig Mon Jan 24 09:12:09 2005
|
||||
+++ agent/snmp_vars.c Mon Jan 24 09:12:23 2005
|
||||
@@ -136,10 +136,6 @@
|
||||
#include <inet/mib2.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/mib_modules.h>
|
@ -1,6 +1,16 @@
|
||||
--- snmplib/snmpusm.c.orig Wed Dec 8 19:32:52 2004
|
||||
+++ snmplib/snmpusm.c Wed Dec 8 19:33:30 2004
|
||||
@@ -89,6 +89,8 @@
|
||||
--- snmplib/snmpusm.c.orig Thu Sep 16 07:57:47 2004
|
||||
+++ snmplib/snmpusm.c Tue Jan 25 10:23:02 2005
|
||||
@@ -54,6 +54,9 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
@@ -89,6 +92,8 @@
|
||||
oid usmAESPrivProtocol[10] = { 1, 3, 6, 1, 6, 3, 10, 1, 2, 4 };
|
||||
/* backwards compat */
|
||||
oid *usmAES128PrivProtocol = usmAESPrivProtocol;
|
||||
|
13
net-mgmt/net-snmp53/files/patch-subagent.c
Normal file
13
net-mgmt/net-snmp53/files/patch-subagent.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/agentx/subagent.c.orig Mon Jan 24 09:17:08 2005
|
||||
+++ agent/mibgroup/agentx/subagent.c Mon Jan 24 09:17:12 2005
|
||||
@@ -36,10 +36,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/library/snmp_assert.h>
|
13
net-mgmt/net-snmp53/files/patch-sysORTable.c
Normal file
13
net-mgmt/net-snmp53/files/patch-sysORTable.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- agent/mibgroup/mibII/sysORTable.c.orig Mon Jan 24 08:27:58 2005
|
||||
+++ agent/mibgroup/mibII/sysORTable.c Mon Jan 24 08:28:10 2005
|
||||
@@ -34,10 +34,6 @@
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
-#if HAVE_DMALLOC_H
|
||||
-#include <dmalloc.h>
|
||||
-#endif
|
||||
-
|
||||
#include <net-snmp/net-snmp-includes.h>
|
||||
#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
#include <net-snmp/agent/agent_callbacks.h>
|
12
net-mgmt/net-snmp53/files/patch-tools.c
Normal file
12
net-mgmt/net-snmp53/files/patch-tools.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- snmplib/tools.c.orig Tue Jan 25 10:13:50 2005
|
||||
+++ snmplib/tools.c Tue Jan 25 10:14:06 2005
|
||||
@@ -44,6 +44,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
+#if HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
#if HAVE_DMALLOC_H
|
||||
#include <dmalloc.h>
|
||||
#endif
|
@ -324,6 +324,7 @@ sbin/snmptrapd
|
||||
%%DATADIR%%/mibs/HOST-RESOURCES-TYPES.txt
|
||||
%%DATADIR%%/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-LANGUAGE-MIB.txt
|
||||
%%DATADIR%%/mibs/IANA-RTPROTO-MIB.txt
|
||||
%%DATADIR%%/mibs/IANAifType-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-INVERTED-STACK-MIB.txt
|
||||
%%DATADIR%%/mibs/IF-MIB.txt
|
||||
|
Loading…
Reference in New Issue
Block a user