summaryrefslogtreecommitdiff
path: root/net/gkrellm_snmp/files
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2000-09-14 16:56:05 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2000-09-14 16:56:05 +0000
commite531d42910c1f02cfb431edf973a9e15903f3339 (patch)
tree51b16a2b49d26f4d8135a8fe992ce1c785a98ead /net/gkrellm_snmp/files
parentAdd myself to the map. (diff)
A plugin for GKrellM which allows monitoring of SNMP-Values.
PR: ports/21166 Submitted by: Eike Bernhardt <eike.bernhardt@gmx.de>
Diffstat (limited to 'net/gkrellm_snmp/files')
-rw-r--r--net/gkrellm_snmp/files/patch-aa39
1 files changed, 39 insertions, 0 deletions
diff --git a/net/gkrellm_snmp/files/patch-aa b/net/gkrellm_snmp/files/patch-aa
new file mode 100644
index 000000000000..6e605bb80c39
--- /dev/null
+++ b/net/gkrellm_snmp/files/patch-aa
@@ -0,0 +1,39 @@
+Index: Makefile
+diff -u Makefile.orig Makefile
+--- Makefile.orig Fri May 12 03:39:39 2000
++++ Makefile Fri Sep 15 01:11:28 2000
+@@ -1,8 +1,8 @@
+ # Makefile for a GKrellM SNMP monitor plugin
+
+ # Linux
+-GTK_CONFIG = gtk-config
+-IMLIB_CONFIG = imlib-config
++GTK_CONFIG?= gtk-config
++IMLIB_CONFIG?= imlib-config
+ SYSLIB = -lsnmp
+ # we need lib crypto if libsnmp has privacy support.
+ SYSLIB += -lcrypto
+@@ -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?= /usr/share/gkrellm/plugins
++GKRELLM_INCLUDE?= -I/usr/local/include
+
+ GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
+ GTK_LIB = `$(GTK_CONFIG) --libs`
+@@ -24,11 +24,9 @@
+ IMLIB_LIB = `$(IMLIB_CONFIG) --libs-gdk`
+
+
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
++CFLAGS += -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+ LIBS = $(GTK_LIB) $(IMLIB_LIB) $(SYSLIB)
+ LFLAGS = -shared
+-
+-CC = gcc $(CFLAGS) $(FLAGS)
+
+ INSTALL = install -c
+ INSTALL_PROGRAM = $(INSTALL) -s