pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/gkrellm1-snmp Use net-snmp instead of ucd-snmp.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b72359a86f9
branches:  trunk
changeset: 471619:3b72359a86f9
user:      cube <cube%pkgsrc.org@localhost>
date:      Mon Mar 29 16:27:30 2004 +0000

description:
Use net-snmp instead of ucd-snmp.

diffstat:

 net/gkrellm1-snmp/Makefile         |   6 ++--
 net/gkrellm1-snmp/distinfo         |   4 +-
 net/gkrellm1-snmp/patches/patch-ab |  52 +++++++++++++++++++++++++++++++++++--
 3 files changed, 54 insertions(+), 8 deletions(-)

diffs (100 lines):

diff -r ca8abe60a3d5 -r 3b72359a86f9 net/gkrellm1-snmp/Makefile
--- a/net/gkrellm1-snmp/Makefile        Mon Mar 29 16:23:14 2004 +0000
+++ b/net/gkrellm1-snmp/Makefile        Mon Mar 29 16:27:30 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2004/03/26 02:27:48 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2004/03/29 16:27:30 cube Exp $
 
 DISTNAME=              gkrellm_snmp-0.18
 PKGNAME=               gkrellm-snmp-0.18
-PKGREVISION=           8
+PKGREVISION=           9
 CATEGORIES=            net sysutils
 MASTER_SITES=          http://triq.net/gkrellm/
 
@@ -18,7 +18,7 @@
        ${INSTALL_PROGRAM} ${WRKSRC}/gkrellm_snmp.so ${PREFIX}/lib/gkrellm/plugins/
 
 .include "../../graphics/imlib/buildlink2.mk"
-.include "../../net/ucd-snmp/buildlink2.mk"
+.include "../../net/net-snmp/buildlink2.mk"
 .include "../../security/openssl/buildlink2.mk"
 .include "../../sysutils/gkrellm1/buildlink2.mk"
 .include "../../x11/gtk/buildlink2.mk"
diff -r ca8abe60a3d5 -r 3b72359a86f9 net/gkrellm1-snmp/distinfo
--- a/net/gkrellm1-snmp/distinfo        Mon Mar 29 16:23:14 2004 +0000
+++ b/net/gkrellm1-snmp/distinfo        Mon Mar 29 16:27:30 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/02/24 23:27:25 cube Exp $
+$NetBSD: distinfo,v 1.2 2004/03/29 16:27:30 cube Exp $
 
 SHA1 (gkrellm_snmp-0.18.tar.gz) = c1aa5edf8e86aedb377c454cf1f249d956ec8a67
 Size (gkrellm_snmp-0.18.tar.gz) = 15450 bytes
 SHA1 (patch-aa) = b8c84280e496febff37579914d700b4980f8cc37
-SHA1 (patch-ab) = caa2acd64e3a58596b599fb22d72df69effbbc05
+SHA1 (patch-ab) = f9a8f15814e0c57b1fd8b05612ffbc321a150ca8
diff -r ca8abe60a3d5 -r 3b72359a86f9 net/gkrellm1-snmp/patches/patch-ab
--- a/net/gkrellm1-snmp/patches/patch-ab        Mon Mar 29 16:23:14 2004 +0000
+++ b/net/gkrellm1-snmp/patches/patch-ab        Mon Mar 29 16:27:30 2004 +0000
@@ -1,8 +1,26 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/02/24 23:27:26 cube Exp $
+$NetBSD: patch-ab,v 1.2 2004/03/29 16:27:30 cube Exp $
 
---- gkrellm_snmp.c.orig        Thu Sep  6 22:15:30 2001
+--- gkrellm_snmp.c.orig        2001-07-27 20:06:41.000000000 +0000
 +++ gkrellm_snmp.c
-@@ -88,6 +88,7 @@
+@@ -33,14 +33,9 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ 
+-#include <ucd-snmp/asn1.h>
+-#include <ucd-snmp/mib.h>
+-#include <ucd-snmp/parse.h>
+-
+-#include <ucd-snmp/snmp.h>
+-#include <ucd-snmp/snmp_api.h>
+-#include <ucd-snmp/snmp_client.h>
+-#include <ucd-snmp/snmp_impl.h> /* special ASN types */
++#include <net-snmp/net-snmp-config.h>
++#include <net-snmp/net-snmp-includes.h>
++
+ #ifdef DEBUG_SNMP
+ #include <ucd-snmp/snmp_debug.h>
+ #endif /* DEBUG_SNMP */
+@@ -88,6 +83,7 @@ struct Reader {
        GtkTooltips             *tooltip;
  };
  
@@ -10,3 +28,31 @@
  
  /*
   * caller needs to free the returned gchar*
+@@ -277,7 +273,8 @@ retry:
+       if (response->errstat == SNMP_ERR_NOERROR){
+         /* just render all vars */
+         for(vars = response->variables; vars; vars = vars->next_variable) {
+-          sprint_variable(textbuf, vars->name, vars->name_length, vars);
++          snprint_variable(textbuf, 1023, vars->name, vars->name_length, vars);
++          textbuf[1023] = '\0';
+           if (result) {
+               tmp = result;
+               result = g_strdup_printf("%s\n%s\n", tmp, textbuf);
+@@ -375,7 +372,7 @@ snmp_input(int op,
+     u_long time = 0;
+     Reader *reader = NULL;
+ 
+-    if (op == RECEIVED_MESSAGE) {
++    if (op == NETSNMP_CALLBACK_OP_RECEIVED_MESSAGE) {
+ 
+         if (pdu->errstat == SNMP_ERR_NOERROR) {
+ 
+@@ -415,7 +412,7 @@ snmp_input(int op,
+         }
+ 
+ 
+-    } else if (op == TIMED_OUT){
++    } else if (op == NETSNMP_CALLBACK_OP_TIMED_OUT){
+         error = g_strdup_printf("Error! SNMP Timeout.");
+     }
+     /* we use session's callback magic to pass back data */



Home | Main Index | Thread Index | Old Index