diff options
author | tobez <tobez@FreeBSD.org> | 2005-12-14 17:03:19 +0800 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2005-12-14 17:03:19 +0800 |
commit | bc51cecfcfa4b2ba07b9c610856f91ee1dda68d7 (patch) | |
tree | bf99d0ed0c809cb5dd4c9d2f03e78d056589c58b | |
parent | e2c03599ef918368eec6a1b60f0a4779649a1495 (diff) | |
download | freebsd-ports-gnome-bc51cecfcfa4b2ba07b9c610856f91ee1dda68d7.tar.gz freebsd-ports-gnome-bc51cecfcfa4b2ba07b9c610856f91ee1dda68d7.tar.zst freebsd-ports-gnome-bc51cecfcfa4b2ba07b9c610856f91ee1dda68d7.zip |
Add net-mgmt/p5-NSNMP, a fast, flexible, low-level, pure-Perl SNMP
library.
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/p5-NSNMP/Makefile | 29 | ||||
-rw-r--r-- | net-mgmt/p5-NSNMP/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/p5-NSNMP/pkg-descr | 15 | ||||
-rw-r--r-- | net-mgmt/p5-NSNMP/pkg-plist | 7 |
5 files changed, 55 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 3160c37337f7..fb8e07558a2e 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -120,6 +120,7 @@ SUBDIR += p5-Altoids SUBDIR += p5-Cflow SUBDIR += p5-Mon + SUBDIR += p5-NSNMP SUBDIR += p5-Net-CIDR SUBDIR += p5-Net-IP SUBDIR += p5-Net-IPv4Addr diff --git a/net-mgmt/p5-NSNMP/Makefile b/net-mgmt/p5-NSNMP/Makefile new file mode 100644 index 000000000000..bf7a9975636b --- /dev/null +++ b/net-mgmt/p5-NSNMP/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: net-mgmt/p5-NSNMP +# Date created: 14 December 2005 +# Whom: Anton Berezin <tobez@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= NSNMP +PORTVERSION= 0.5 +CATEGORIES= net-mgmt perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../../authors/id/K/KR/KRAGEN +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@FreeBSD.org +COMMENT= NSNMP - fast, flexible, low-level, pure-Perl SNMP library + +PERL_CONFIGURE= yes + +MAN3= NSNMP.3 \ + NSNMP::Simple.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +IGNORE= requires perl 5.8.0 or later. Install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> diff --git a/net-mgmt/p5-NSNMP/distinfo b/net-mgmt/p5-NSNMP/distinfo new file mode 100644 index 000000000000..48f252afd172 --- /dev/null +++ b/net-mgmt/p5-NSNMP/distinfo @@ -0,0 +1,3 @@ +MD5 (NSNMP-0.5.tar.gz) = 2cd3b79f604a77c2f16e22e6aef83ac5 +SHA256 (NSNMP-0.5.tar.gz) = 46993fb44b2f3c1376e148aa5cef86f25104e03bda79e29d0b1a17b4884ad676 +SIZE (NSNMP-0.5.tar.gz) = 28590 diff --git a/net-mgmt/p5-NSNMP/pkg-descr b/net-mgmt/p5-NSNMP/pkg-descr new file mode 100644 index 000000000000..21463995f93d --- /dev/null +++ b/net-mgmt/p5-NSNMP/pkg-descr @@ -0,0 +1,15 @@ +This is an SNMP message encoding and decoding library, providing very +low-level facilities; you pretty much need to read the SNMP RFCs to use +it. It is, however, very fast (it's more than an order of magnitude +faster than Net::SNMP, and it can send a request and parse a response in +only slightly more time than the snmpd from net-snmp takes to parse the +request and send a response), and it's relatively complete --- the +interface is flexible enough that you can use it to write SNMP +management applications, SNMP agents, and test suites for SNMP +implementations. + +The package also includes NSNMP::Simple, which lets you get or set a +single OID via SNMP with a single line of code. It's easier to use, and +roughly an order of magnitude faster, than Net::SNMP. + +WWW: http://search.cpan.org/dist/NSNMP/ diff --git a/net-mgmt/p5-NSNMP/pkg-plist b/net-mgmt/p5-NSNMP/pkg-plist new file mode 100644 index 000000000000..35eaf7af1611 --- /dev/null +++ b/net-mgmt/p5-NSNMP/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/NSNMP.pm +%%SITE_PERL%%/NSNMP/Agent.pm +%%SITE_PERL%%/NSNMP/Mapper.pm +%%SITE_PERL%%/NSNMP/Simple.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/NSNMP/.packlist +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/NSNMP 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/NSNMP 2>/dev/null || true |