summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorcube <cube>2004-02-24 23:27:25 +0000
committercube <cube>2004-02-24 23:27:25 +0000
commit29a33a510ccfdf0a0e131c91fd9ddce9077a5565 (patch)
tree0d84e020184dd1166bac8f388acf72857775722c /net
parent89830e00d832f623c73ae9a86304d82e05a118c4 (diff)
downloadpkgsrc-29a33a510ccfdf0a0e131c91fd9ddce9077a5565.tar.gz
Re-import of net/gkrellm-snmp as net/gkrellm1-snmp to leave space for the
GKrellM-2 port of the snmp plugin.
Diffstat (limited to 'net')
-rw-r--r--net/gkrellm1-snmp/DESCR2
-rw-r--r--net/gkrellm1-snmp/Makefile25
-rw-r--r--net/gkrellm1-snmp/PLIST2
-rw-r--r--net/gkrellm1-snmp/distinfo6
-rw-r--r--net/gkrellm1-snmp/patches/patch-aa24
-rw-r--r--net/gkrellm1-snmp/patches/patch-ab12
6 files changed, 71 insertions, 0 deletions
diff --git a/net/gkrellm1-snmp/DESCR b/net/gkrellm1-snmp/DESCR
new file mode 100644
index 00000000000..99e826d9ac2
--- /dev/null
+++ b/net/gkrellm1-snmp/DESCR
@@ -0,0 +1,2 @@
+gkrellm-snmp is a plugin for gkrellm that can show the value of an oid on an
+snmp enabled device
diff --git a/net/gkrellm1-snmp/Makefile b/net/gkrellm1-snmp/Makefile
new file mode 100644
index 00000000000..82c95fc50cd
--- /dev/null
+++ b/net/gkrellm1-snmp/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/24 23:27:25 cube Exp $
+
+DISTNAME= gkrellm_snmp-0.18
+PKGNAME= gkrellm-snmp-0.18
+PKGREVISION= 6
+CATEGORIES= net sysutils
+MASTER_SITES= http://triq.net/gkrellm/
+
+MAINTAINER= jasper@pointless.net
+HOMEPAGE= http://triq.net/gkrellm.html
+COMMENT= Simple SNMP monitor for gkrellm
+
+USE_BUILDLINK2= # defined
+USE_GNU_TOOLS+= make
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/gkrellm/plugins
+ ${INSTALL_PROGRAM} ${WRKSRC}/gkrellm_snmp.so ${PREFIX}/lib/gkrellm/plugins/
+
+.include "../../graphics/imlib/buildlink2.mk"
+.include "../../net/ucd-snmp/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+.include "../../sysutils/gkrellm/buildlink2.mk"
+.include "../../x11/gtk/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/gkrellm1-snmp/PLIST b/net/gkrellm1-snmp/PLIST
new file mode 100644
index 00000000000..71ad192f18e
--- /dev/null
+++ b/net/gkrellm1-snmp/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/24 23:27:25 cube Exp $
+lib/gkrellm/plugins/gkrellm_snmp.so
diff --git a/net/gkrellm1-snmp/distinfo b/net/gkrellm1-snmp/distinfo
new file mode 100644
index 00000000000..75b807437a4
--- /dev/null
+++ b/net/gkrellm1-snmp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/24 23:27:25 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
diff --git a/net/gkrellm1-snmp/patches/patch-aa b/net/gkrellm1-snmp/patches/patch-aa
new file mode 100644
index 00000000000..574f05c369f
--- /dev/null
+++ b/net/gkrellm1-snmp/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:27:26 cube Exp $
+
+--- Makefile.orig Tue Apr 3 09:25:07 2001
++++ Makefile
+@@ -5,7 +5,7 @@
+ IMLIB_CONFIG = imlib-config
+ SYSLIB = -lsnmp
+ # we need lib crypto if libsnmp has privacy support.
+-SYSLIB += -lcrypto -L/usr/local/ssl/lib -L/usr/ssl/lib
++SYSLIB += -lcrypto
+
+ # FreeBSD
+ #GTK_CONFIG = gtk12-config
+@@ -14,8 +14,8 @@
+ #PLUGIN_DIR = /usr/X11R6/libexec/gkrellm/plugins/
+
+ USER_PLUGIN_DIR = $(HOME)/.gkrellm/plugins
+-PLUGIN_DIR = /usr/share/gkrellm/plugins
+-GKRELLM_INCLUDE = -I/usr/local/include
++PLUGIN_DIR = ${PREFIX}/lib/gkrellm/plugins
++GKRELLM_INCLUDE = -I${PREFIX}/include
+
+ GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+ GTK_LIB = `$(GTK_CONFIG) --libs`
diff --git a/net/gkrellm1-snmp/patches/patch-ab b/net/gkrellm1-snmp/patches/patch-ab
new file mode 100644
index 00000000000..8526e967b28
--- /dev/null
+++ b/net/gkrellm1-snmp/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/02/24 23:27:26 cube Exp $
+
+--- gkrellm_snmp.c.orig Thu Sep 6 22:15:30 2001
++++ gkrellm_snmp.c
+@@ -88,6 +88,7 @@
+ GtkTooltips *tooltip;
+ };
+
++oid *snmp_parse_oid(const char *argv, oid *root, size_t *rootlen);
+
+ /*
+ * caller needs to free the returned gchar*