summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorseb <seb>2004-11-05 10:40:35 +0000
committerseb <seb>2004-11-05 10:40:35 +0000
commitb22976d3ad43cad4891cf4804f34a1df34879302 (patch)
tree3139e6e356b6bb056612b9eb41885f35f94a6ea4 /net
parent09fb9d72daaa895187aa99063397e5f42f4debac (diff)
downloadpkgsrc-b22976d3ad43cad4891cf4804f34a1df34879302.tar.gz
Remove package p5-SNMP as the net-snmp package now includes the associated
Perl modules.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/p5-SNMP/DESCR15
-rw-r--r--net/p5-SNMP/Makefile28
-rw-r--r--net/p5-SNMP/PLIST2
-rw-r--r--net/p5-SNMP/distinfo7
-rw-r--r--net/p5-SNMP/patches/patch-aa13
-rw-r--r--net/p5-SNMP/patches/patch-ab176
-rw-r--r--net/p5-SNMP/patches/patch-ac61
8 files changed, 1 insertions, 304 deletions
diff --git a/net/Makefile b/net/Makefile
index 09951d493f6..3f925fc34ca 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.511 2004/11/04 21:45:19 he Exp $
+# $NetBSD: Makefile,v 1.512 2004/11/05 10:40:35 seb Exp $
#
COMMENT= Networking tools
@@ -248,7 +248,6 @@ SUBDIR+= p5-Net-Z3950
SUBDIR+= p5-NetAddr-IP
SUBDIR+= p5-NetPacket
SUBDIR+= p5-RADIUS
-SUBDIR+= p5-SNMP
SUBDIR+= p5-SNMP-MIB-Compiler
SUBDIR+= p5-SNMP_Session
SUBDIR+= p5-SOAP-Lite
diff --git a/net/p5-SNMP/DESCR b/net/p5-SNMP/DESCR
deleted file mode 100644
index 8db0048cdc3..00000000000
--- a/net/p5-SNMP/DESCR
+++ /dev/null
@@ -1,15 +0,0 @@
-This is the Perl5 'SNMP' extension module. The SNMP module provides a
-full featured, tri-lingual SNMP (SNMPv3, SNMPv2c, SNMPv1) API. The
-SNMP module also provides an interface to the SMI MIB parse-tree for
-run-time access to parsed MIB data. The SNMP module internals rely on
-the Net-SNMP toolkit library (previously known as ucd-snmp).
-
-The basic operations of the SNMP protocol are provided by this module
-through an object oriented interface for modularity and ease of use.
-The primary class is SNMP::Session which encapsulates the persistent
-aspects of a connection between the management application and the
-managed agent. Internally the class is implemented as a blessed hash
-reference. This class supplies 'get', 'getnext', 'set', 'fget', and
-'fgetnext' and other method calls. The methods take a variety of input
-argument formats and support both synchronous and asynchronous
-operation through a polymorphic API.
diff --git a/net/p5-SNMP/Makefile b/net/p5-SNMP/Makefile
deleted file mode 100644
index 4a6bc6cc3fe..00000000000
--- a/net/p5-SNMP/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: Makefile,v 1.20 2004/10/03 00:17:57 tv Exp $
-# FreeBSD Id: Makefile,v 1.1.1.1 1997/06/27 01:53:13 jfitz Exp
-#
-
-DISTNAME= net-snmp-5.0.9
-PKGNAME= p5-SNMP-5.0.9
-PKGREVISION= 1
-SVR4_PKGNAME= p5snm
-CATEGORIES= net perl5
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/}
-
-MAINTAINER= tech-pkg@NetBSD.org
-HOMEPAGE= http://www.net-snmp.org/
-COMMENT= Perl5 module for interfacing to the Net-SNMP library
-
-USE_BUILDLINK3= YES
-PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Bundle/NetSNMP/.packlist
-
-WRKSRC= ${WRKDIR}/${DISTNAME}/perl
-
-INSTALLATION_DIRS+= share/doc/p5-SNMP
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/SNMP/README ${PREFIX}/share/doc/p5-SNMP/README
-
-.include "../../lang/perl5/module.mk"
-.include "../../net/net-snmp/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/net/p5-SNMP/PLIST b/net/p5-SNMP/PLIST
deleted file mode 100644
index 852e603ab50..00000000000
--- a/net/p5-SNMP/PLIST
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2004/02/13 17:46:22 seb Exp $
-share/doc/p5-SNMP/README
diff --git a/net/p5-SNMP/distinfo b/net/p5-SNMP/distinfo
deleted file mode 100644
index 6b2892bac46..00000000000
--- a/net/p5-SNMP/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD: distinfo,v 1.3 2004/02/13 17:46:22 seb Exp $
-
-SHA1 (net-snmp-5.0.9.tar.gz) = bb27bdf38da96833a3fa55f8c6a14732ab2c1991
-Size (net-snmp-5.0.9.tar.gz) = 2345822 bytes
-SHA1 (patch-aa) = bf695411a053cd0a9d8ecfd056edc57528454487
-SHA1 (patch-ab) = cedbea3a47e0322d9528333e1e8323e3d496cf9d
-SHA1 (patch-ac) = d423bdee21c07f4625f77ec1e08f6b212fab2b79
diff --git a/net/p5-SNMP/patches/patch-aa b/net/p5-SNMP/patches/patch-aa
deleted file mode 100644
index 7f0d28b2754..00000000000
--- a/net/p5-SNMP/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2004/02/13 17:46:22 seb Exp $
-
---- OID/OID.xs.orig Thu Dec 19 22:49:21 2002
-+++ OID/OID.xs
-@@ -12,7 +12,7 @@
- #define NETSNMP_NAMEBUF_LEN 128
- typedef struct netsnmp_oid_s {
- oid *name;
-- unsigned int len;
-+ size_t len;
- oid namebuf[ NETSNMP_NAMEBUF_LEN ];
- } netsnmp_oid;
-
diff --git a/net/p5-SNMP/patches/patch-ab b/net/p5-SNMP/patches/patch-ab
deleted file mode 100644
index 1cc49afe859..00000000000
--- a/net/p5-SNMP/patches/patch-ab
+++ /dev/null
@@ -1,176 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2004/02/13 17:46:22 seb Exp $
-
---- SNMP/SNMP.xs.orig Fri Jul 25 01:14:48 2003
-+++ SNMP/SNMP.xs
-@@ -119,15 +119,15 @@ static int __snprint_value _((char *, si
- netsnmp_variable_list*, struct tree *,
- int, int));
- static int __sprint_num_objid _((char *, oid *, int));
--static int __scan_num_objid _((char *, oid *, int *));
-+static int __scan_num_objid _((char *, oid *, size_t *));
- static int __get_type_str _((int, char *));
- static int __get_label_iid _((char *, char **, char **, int));
- static int __oid_cmp _((oid *, int, oid *, int));
- static int __tp_sprint_num_objid _((char*,SnmpMibNode *));
- static SnmpMibNode * __get_next_mib_node _((SnmpMibNode *));
- static struct tree * __oid2tp _((oid*, int, struct tree *, int*));
--static struct tree * __tag2oid _((char *, char *, oid *, int *, int *, int));
--static int __concat_oid_str _((oid *, int *, char *));
-+static struct tree * __tag2oid _((char *, char *, oid *, size_t *, int *, int));
-+static int __concat_oid_str _((oid *, size_t *, char *));
- static int __add_var_val_str _((netsnmp_pdu *, oid *, int, char *,
- int, int));
- static int __send_sync_pdu _((netsnmp_session *, netsnmp_pdu *,
-@@ -565,7 +565,7 @@ static int
- __scan_num_objid (buf, objid, len)
- char *buf;
- oid *objid;
--int *len;
-+size_t *len;
- {
- char *cp;
- *len = 0;
-@@ -818,7 +818,7 @@ __tag2oid(tag, iid, oid_arr, oid_arr_len
- char * tag;
- char * iid;
- oid * oid_arr;
--int * oid_arr_len;
-+size_t * oid_arr_len;
- int * type;
- int best_guess;
- {
-@@ -826,7 +826,7 @@ int best_guess;
- struct tree *rtp = NULL;
- DLL_IMPORT extern struct tree *tree_head;
- oid newname[MAX_OID_LEN], *op;
-- int newname_len = 0;
-+ size_t newname_len = 0;
-
- if (type) *type = TYPE_UNKNOWN;
- if (oid_arr_len) *oid_arr_len = 0;
-@@ -926,7 +926,7 @@ found:
- static int
- __concat_oid_str(doid_arr, doid_arr_len, soid_str)
- oid *doid_arr;
--int *doid_arr_len;
-+size_t *doid_arr_len;
- char * soid_str;
- {
- char soid_buf[STR_BUF_SIZE];
-@@ -2794,7 +2794,10 @@ snmp_read_mib(mib_file, force=0)
- if (verbose) warn("failed\n");
- }
- }
-- RETVAL = (I32)Mib;
-+ if (Mib)
-+ RETVAL = (I32)1;
-+ else
-+ RETVAL = (I32)0;
- }
- OUTPUT:
- RETVAL
-@@ -2817,7 +2820,10 @@ snmp_read_module(module)
- } else {
- if (verbose) warn("Failed reading %s\n", module);
- }
-- RETVAL = (I32)Mib;
-+ if (Mib)
-+ RETVAL = (I32)1;
-+ else
-+ RETVAL = (I32)0;
- }
- OUTPUT:
- RETVAL
-@@ -2840,7 +2846,7 @@ snmp_set(sess_ref, varlist_ref, perl_cal
- netsnmp_pdu *pdu, *response;
- struct tree *tp;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- char *tag_pv;
- snmp_xs_cb_data *xs_cb_data;
- SV **sess_ptr_sv;
-@@ -3035,7 +3041,7 @@ snmp_get(sess_ref, retry_nosuch, varlist
- struct tree *tp;
- int len;
- oid *oid_arr = NULL;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- SV *tmp_sv;
- char *tag_pv;
- int type;
-@@ -3188,7 +3194,7 @@ snmp_getnext(sess_ref, varlist_ref, perl
- struct tree *tp;
- int len;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- SV *tmp_sv;
- int type;
- char tmp_type_str[MAX_TYPE_NAME_LEN];
-@@ -3394,7 +3400,7 @@ snmp_getbulk(sess_ref, nonrepeaters, max
- struct tree *tp;
- int len;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- SV *tmp_sv;
- int type;
- char tmp_type_str[MAX_TYPE_NAME_LEN];
-@@ -3599,7 +3605,7 @@ snmp_bulkwalk(sess_ref, nonrepeaters, ma
- netsnmp_session *ss;
- netsnmp_pdu *pdu = NULL;
- oid oid_arr[MAX_OID_LEN];
-- int oid_arr_len;
-+ size_t oid_arr_len;
- SV **sess_ptr_sv;
- SV **err_str_svp;
- SV **err_num_svp;
-@@ -3813,9 +3819,9 @@ snmp_bulkwalk(sess_ref, nonrepeaters, ma
- }
-
- /* Sent okay... Return the request ID in 'pdu' as an SvIV. */
-- DBPRT(1,( "Okay, request id is %d\n", (int)pdu));
-+/* DBPRT(1,( "Okay, request id is %d\n", (int)pdu)); */
- /* XSRETURN_IV((int)pdu); */
-- XPUSHs(sv_2mortal(newSViv((int)pdu)));
-+ XPUSHs(sv_2mortal(newSViv((IV)pdu)));
- XSRETURN(1);
- }
-
-@@ -3908,7 +3914,7 @@ snmp_trapV1(sess_ref,enterprise,agent,ge
- netsnmp_pdu *pdu = NULL;
- struct tree *tp;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- SV **sess_ptr_sv;
- SV **err_str_svp;
- SV **err_num_svp;
-@@ -4045,7 +4051,7 @@ snmp_trapV2(sess_ref,uptime,trap_oid,var
- netsnmp_pdu *pdu = NULL;
- struct tree *tp;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- SV **sess_ptr_sv;
- SV **err_str_svp;
- SV **err_num_svp;
-@@ -4180,7 +4186,7 @@ snmp_inform(sess_ref,uptime,trap_oid,var
- netsnmp_pdu *response;
- struct tree *tp;
- oid *oid_arr;
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- snmp_xs_cb_data *xs_cb_data;
- SV **sess_ptr_sv;
- SV **err_str_svp;
-@@ -4405,7 +4411,7 @@ snmp_translate_obj(var,mode,use_long,aut
- {
- char str_buf[STR_BUF_SIZE];
- oid oid_arr[MAX_OID_LEN];
-- int oid_arr_len = MAX_OID_LEN;
-+ size_t oid_arr_len = MAX_OID_LEN;
- char * label;
- char * iid;
- int status = FAILURE;
diff --git a/net/p5-SNMP/patches/patch-ac b/net/p5-SNMP/patches/patch-ac
deleted file mode 100644
index 83bc1aa7273..00000000000
--- a/net/p5-SNMP/patches/patch-ac
+++ /dev/null
@@ -1,61 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2004/02/13 17:46:22 seb Exp $
-
---- agent/agent.xs.orig Thu May 8 23:15:40 2003
-+++ agent/agent.xs
-@@ -214,19 +214,19 @@ handler_wrapper(netsnmp_mib_handler
- PUSHMARK(sp);
- rarg = newSViv(0);
- arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_mib_handler");
-- sv_setiv(arg, (int) handler);
-+ sv_setiv(arg, (IV) handler);
- XPUSHs(rarg);
- rarg = newSViv(0);
- arg = newSVrv(rarg, "NetSNMP::agent::reginfo");
-- sv_setiv(arg, (int) reginfo);
-+ sv_setiv(arg, (IV) reginfo);
- XPUSHs(rarg);
- rarg = newSViv(0);
- arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_agent_request_info");
-- sv_setiv(arg, (int) reqinfo);
-+ sv_setiv(arg, (IV) reqinfo);
- XPUSHs(rarg);
- rarg = newSViv(0);
- arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_request_infoPtr");
-- sv_setiv(arg, (int) requests);
-+ sv_setiv(arg, (IV) requests);
- XPUSHs(rarg);
- PUTBACK;
- if (SvTYPE(cb) == SVt_PVCV) {
-@@ -372,9 +372,9 @@ nsahr_getRootOID(me)
- memcpy(o->name, reginfo->rootoid,
- reginfo->rootoid_len * sizeof(oid));
-
-- rarg = newSViv((int) 0);
-+ rarg = newSViv((IV) 0);
- arg = newSVrv(rarg, "netsnmp_oidPtr");
-- sv_setiv(arg, (int) o);
-+ sv_setiv(arg, (IV) o);
-
- XPUSHs(rarg);
-
-@@ -411,9 +411,9 @@ getOID(me)
- memcpy(o->name, request->requestvb->name,
- request->requestvb->name_length * sizeof(oid));
-
-- rarg = newSViv((int) 0);
-+ rarg = newSViv((IV) 0);
- arg = newSVrv(rarg, "netsnmp_oidPtr");
-- sv_setiv(arg, (int) o);
-+ sv_setiv(arg, (IV) o);
-
- XPUSHs(rarg);
-
-@@ -754,7 +754,7 @@ nari_next(me)
- request = request->next;
- rarg = newSViv(0);
- arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_request_infoPtr");
-- sv_setiv(arg, (int) request);
-+ sv_setiv(arg, (IV) request);
- ST(0) = rarg;
- } else {
- ST(0) = &sv_undef;