diff options
author | jfitz <jfitz@FreeBSD.org> | 1997-06-27 09:53:14 +0800 |
---|---|---|
committer | jfitz <jfitz@FreeBSD.org> | 1997-06-27 09:53:14 +0800 |
commit | cc439bdf9daa4a7b80a7cd74a9ef42130179bbd2 (patch) | |
tree | bf51dc5fa2a915643f2c8ad29bc2bd6716fca0ca /net-mgmt/p5-SNMP | |
parent | 3d979ae126dd11a1c9f40bb6a41610e9ec0c9601 (diff) | |
download | freebsd-ports-gnome-cc439bdf9daa4a7b80a7cd74a9ef42130179bbd2.tar.gz freebsd-ports-gnome-cc439bdf9daa4a7b80a7cd74a9ef42130179bbd2.tar.zst freebsd-ports-gnome-cc439bdf9daa4a7b80a7cd74a9ef42130179bbd2.zip |
Import of a perl5 interface to UCD's SNMP library
Diffstat (limited to 'net-mgmt/p5-SNMP')
-rw-r--r-- | net-mgmt/p5-SNMP/Makefile | 27 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/distinfo | 1 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/files/patch-aa | 11 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/pkg-comment | 1 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/pkg-descr | 32 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/pkg-plist | 8 |
6 files changed, 80 insertions, 0 deletions
diff --git a/net-mgmt/p5-SNMP/Makefile b/net-mgmt/p5-SNMP/Makefile new file mode 100644 index 000000000000..4ffdc8f3baba --- /dev/null +++ b/net-mgmt/p5-SNMP/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: p5-SNMP +# Version required: 1.6 +# Date created: May 5th 1997 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= SNMP-1.6 +PKGNAME= p5-SNMP-1.6 +CATEGORIES= net perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= SNMP + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= ${PREFIX}/lib/libsnmp.a:${PORTSDIR}/net/ucd-snmp + +USE_PERL5= YES + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: + @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/lib/perl5/site_perl/README.SNMP + +.include <bsd.port.mk> diff --git a/net-mgmt/p5-SNMP/distinfo b/net-mgmt/p5-SNMP/distinfo new file mode 100644 index 000000000000..f8309476f14e --- /dev/null +++ b/net-mgmt/p5-SNMP/distinfo @@ -0,0 +1 @@ +MD5 (SNMP-1.6.tar.gz) = 7fa5297084b4f82707577635f03f08bd diff --git a/net-mgmt/p5-SNMP/files/patch-aa b/net-mgmt/p5-SNMP/files/patch-aa new file mode 100644 index 000000000000..00b792963d07 --- /dev/null +++ b/net-mgmt/p5-SNMP/files/patch-aa @@ -0,0 +1,11 @@ +--- Makefile.PL.orig Mon May 5 21:23:30 1997 ++++ Makefile.PL Mon May 5 21:31:53 1997 +@@ -17,7 +17,7 @@ + my @IncludeFiles = qw[asn1.h parse.h snmp.h snmp_api.h + snmp_client.h snmp_impl.h]; + +-my @IncludeDirs = qw[/usr/include /usr/local/include]; ++my @IncludeDirs = qw[/usr/include /usr/local/include /usr/local/include/snmp]; + + my $IncludeDir = find_files(\@IncludeFiles,\@IncludeDirs) || + prompt("Where are the cmu-snmpv2 include files installed?","/usr/local/include"); diff --git a/net-mgmt/p5-SNMP/pkg-comment b/net-mgmt/p5-SNMP/pkg-comment new file mode 100644 index 000000000000..a5faff815b4e --- /dev/null +++ b/net-mgmt/p5-SNMP/pkg-comment @@ -0,0 +1 @@ +a perl5 module for interfacing with the CMU SNMP library diff --git a/net-mgmt/p5-SNMP/pkg-descr b/net-mgmt/p5-SNMP/pkg-descr new file mode 100644 index 000000000000..cf17a82af26f --- /dev/null +++ b/net-mgmt/p5-SNMP/pkg-descr @@ -0,0 +1,32 @@ +This is a Perl5 extension module which provides an interface to the +CMU-SNMPv2 library. + +Description: + +The basic operations offered by SNMP are provided through an object +oriented interface for modularity and ease of use. The primary object is +SNMP::Session which is implemented as a blessed hash reference. The +object supports 'get', 'set', and 'getNext' method calls. All calls are +blocking/synchronous (i.e., they must receive a response or timeout +before control is returned to the caller). The methods take a variety of +input argument formats(see test.pl and examp/* for examples). A +description of the objects data fields follow. + +SNMP::Session + DestHost - default 'localhost', hostname or ip addr of SNMP agent + Community - default 'public', SNMP community string + Version - default '1', v1 support only for now + Timeout - default '1000000', micro-seconds before retry + Retries - default '5', retries before failure + RetryNoSuch - default '1', for get request NOSUCH errors, the pdu will + be repaired, removing the varbind in error, and resent - + undef will be returned for all NOSUCH varbinds, setting + to '0' disables this feature and the entire get request + will fail on any NOSUCH error + ErrorStr - read-only, returns a test description of any error occuring + in the last request + ErrorNum - read-only, returns the snmp_err or staus of last request + private + DestAddr - internal field used to hold the translated DestHost field + SessPtr - internal field used to cache a created session structure + diff --git a/net-mgmt/p5-SNMP/pkg-plist b/net-mgmt/p5-SNMP/pkg-plist new file mode 100644 index 000000000000..6b43e2ff7718 --- /dev/null +++ b/net-mgmt/p5-SNMP/pkg-plist @@ -0,0 +1,8 @@ +lib/perl5/site_perl/i386-freebsd/auto/SNMP/SNMP.bs +lib/perl5/site_perl/i386-freebsd/auto/SNMP/SNMP.so +lib/perl5/site_perl/auto/SNMP/autosplit.ix +lib/perl5/site_perl/SNMP.pm +lib/perl5/site_perl/README.SNMP +lib/perl5/site_perl/i386-freebsd/auto/SNMP/.packlist +@dirrm lib/perl5/site_perl/auto/SNMP +@dirrm lib/perl5/site_perl/i386-freebsd/auto/SNMP |