aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1997-06-27 01:53:14 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1997-06-27 01:53:14 +0000
commit2841c2f4fed9bedd1af323ac2d0b36d5e2340db7 (patch)
tree2f8ed2babe6f89a0811e4a434db399ac48ce2401
parent0892424656a01d0b60febdf52e4f15966a5aac43 (diff)
downloadports-2841c2f4fed9bedd1af323ac2d0b36d5e2340db7.tar.gz
ports-2841c2f4fed9bedd1af323ac2d0b36d5e2340db7.zip
Notes
-rw-r--r--net-mgmt/p5-SNMP/Makefile27
-rw-r--r--net-mgmt/p5-SNMP/distinfo1
-rw-r--r--net-mgmt/p5-SNMP/files/patch-aa11
-rw-r--r--net-mgmt/p5-SNMP/pkg-comment1
-rw-r--r--net-mgmt/p5-SNMP/pkg-descr32
-rw-r--r--net-mgmt/p5-SNMP/pkg-plist8
-rw-r--r--net/p5-SNMP/Makefile27
-rw-r--r--net/p5-SNMP/distinfo1
-rw-r--r--net/p5-SNMP/files/patch-aa11
-rw-r--r--net/p5-SNMP/pkg-comment1
-rw-r--r--net/p5-SNMP/pkg-descr32
-rw-r--r--net/p5-SNMP/pkg-plist8
12 files changed, 160 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
diff --git a/net/p5-SNMP/Makefile b/net/p5-SNMP/Makefile
new file mode 100644
index 000000000000..4ffdc8f3baba
--- /dev/null
+++ b/net/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/p5-SNMP/distinfo b/net/p5-SNMP/distinfo
new file mode 100644
index 000000000000..f8309476f14e
--- /dev/null
+++ b/net/p5-SNMP/distinfo
@@ -0,0 +1 @@
+MD5 (SNMP-1.6.tar.gz) = 7fa5297084b4f82707577635f03f08bd
diff --git a/net/p5-SNMP/files/patch-aa b/net/p5-SNMP/files/patch-aa
new file mode 100644
index 000000000000..00b792963d07
--- /dev/null
+++ b/net/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/p5-SNMP/pkg-comment b/net/p5-SNMP/pkg-comment
new file mode 100644
index 000000000000..a5faff815b4e
--- /dev/null
+++ b/net/p5-SNMP/pkg-comment
@@ -0,0 +1 @@
+a perl5 module for interfacing with the CMU SNMP library
diff --git a/net/p5-SNMP/pkg-descr b/net/p5-SNMP/pkg-descr
new file mode 100644
index 000000000000..cf17a82af26f
--- /dev/null
+++ b/net/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/p5-SNMP/pkg-plist b/net/p5-SNMP/pkg-plist
new file mode 100644
index 000000000000..6b43e2ff7718
--- /dev/null
+++ b/net/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