aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Make.config.in4
-rw-r--r--Makefile4
-rw-r--r--get-help.pd22
-rw-r--r--get.c4
-rw-r--r--snmpget-help.pd25
5 files changed, 29 insertions, 30 deletions
diff --git a/Make.config.in b/Make.config.in
index af4e72b..4bf19b8 100644
--- a/Make.config.in
+++ b/Make.config.in
@@ -7,8 +7,8 @@ BUILDLIBRARY =@BUILDLIBRARY@
PREFIX =@prefix@@PDLIBDIR@
-INSTALL_BIN=$(DESTDIR)$(PREFIX)/lib/pd/extra/$(LIBNAME)
-INSTALL_DOC=$(DESTDIR)$(PREFIX)/lib/pd/@REFERENCEPATH@$(LIBNAME)
+INSTALL_BIN=$(DESTDIR)$(PREFIX)/extra/$(LIBNAME)
+INSTALL_DOC=$(DESTDIR)$(PREFIX)/@REFERENCEPATH@$(LIBNAME)
EXT = @EXT@
DEFS = @DFLAGS@
diff --git a/Makefile b/Makefile
index b1b7098..6423d77 100644
--- a/Makefile
+++ b/Makefile
@@ -77,8 +77,10 @@ install: install-bin install-doc
install-bin:
-install -d $(INSTALL_BIN)
- -install -m 644 $(LIBNAME).$(EXT) $(INSTALL_BIN)
+ -install -m 644 *.$(EXT) $(INSTALL_BIN)
install-doc:
+ -install -d $(INSTALL_DOC)
+ -install -m 644 *-help.pd $(INSTALL_DOC)
everything: clean all install distclean
diff --git a/get-help.pd b/get-help.pd
new file mode 100644
index 0000000..a3965b4
--- /dev/null
+++ b/get-help.pd
@@ -0,0 +1,22 @@
+#N canvas 39 0 849 551 10;
+#X msg 207 274 disconnect;
+#X msg 139 152 get SNMPv2-MIB::system.sysUpTime.0;
+#X obj 121 379 print result;
+#X msg 202 177 get SNMPv2-MIB::system.sysDescr.0;
+#X msg 205 204 get system.sysDescr.0;
+#X obj 121 299 snmp/get;
+#X msg 121 92 connect localhost public;
+#X floatatom 172 321 2 0 0 1 status - -;
+#X text 304 271 disconnect an open connection;
+#X text 317 89 connect to server "localhost" in community "public"
+;
+#X text 470 154 query a MIB;
+#X text 110 22 [snmp/get] communicates with a network entity usigng
+SNMP GET requests;
+#X connect 0 0 5 0;
+#X connect 1 0 5 0;
+#X connect 3 0 5 0;
+#X connect 4 0 5 0;
+#X connect 5 0 2 0;
+#X connect 5 1 7 0;
+#X connect 6 0 5 0;
diff --git a/get.c b/get.c
index 52fd275..b54bae6 100644
--- a/get.c
+++ b/get.c
@@ -228,10 +228,10 @@ void snmpget_setup(void)
{
init_snmp("snmp4pd");
- snmpget_class = class_new(gensym("snmpget"), (t_newmethod)snmpget_new,
+ snmpget_class = class_new(gensym("get"), (t_newmethod)snmpget_new,
0, sizeof(t_snmpget), 0, A_GIMME, 0);
class_addcreator((t_newmethod)snmpget_new, gensym("snmp/get"), 0);
- //class_addcreator((t_newmethod)snmpget_new, gensym("get"), 0);
+ class_addcreator((t_newmethod)snmpget_new, gensym("snmpget"), 0);
class_addmethod(snmpget_class, (t_method)snmpget_get, gensym("get"), A_SYMBOL, 0);
diff --git a/snmpget-help.pd b/snmpget-help.pd
deleted file mode 100644
index 6279930..0000000
--- a/snmpget-help.pd
+++ /dev/null
@@ -1,25 +0,0 @@
-#N canvas 0 0 849 365 10;
-#X msg 121 92 connect;
-#X msg 152 159 disconnect;
-#X msg 208 99 get system;
-#X msg 47 55 get;
-#X msg 185 128 get SNMPv2-MIB::system.sysUpTime.0;
-#X obj 158 65 t b b;
-#X msg 157 38 bang;
-#X obj 65 210 print result;
-#X msg 223 75 get bibabo;
-#X msg 248 173 get SNMPv2-MIB::system.sysDescr.0;
-#X msg 251 200 get system.sysDescr.0;
-#X obj 121 289 snmp/get;
-#X connect 0 0 11 0;
-#X connect 1 0 11 0;
-#X connect 2 0 11 0;
-#X connect 3 0 11 0;
-#X connect 4 0 11 0;
-#X connect 5 0 4 0;
-#X connect 5 1 0 0;
-#X connect 6 0 5 0;
-#X connect 8 0 11 0;
-#X connect 9 0 11 0;
-#X connect 10 0 11 0;
-#X connect 11 0 7 0;