From dad14ffc48a74ebfdcd1f113a5991ecf13b0b777 Mon Sep 17 00:00:00 2001 From: skreuzer Date: Fri, 24 Jun 2011 15:30:08 +0000 Subject: This module implements an alternative "event dispatcher" for Net::SNMP, using AnyEvent as a backend. It integrates Net::SNMP into AnyEvent: You can make non-blocking Net::SNMP calls and as long as other parts of your program also use AnyEvent (or some event loop supported by AnyEvent) and they will run in parallel. WWW: http://search.cpan.org/dist/AnyEvent-SNMP/ --- net-mgmt/Makefile | 1 + net-mgmt/p5-AnyEvent-SNMP/Makefile | 24 ++++++++++++++++++++++++ net-mgmt/p5-AnyEvent-SNMP/distinfo | 2 ++ net-mgmt/p5-AnyEvent-SNMP/pkg-descr | 8 ++++++++ net-mgmt/p5-AnyEvent-SNMP/pkg-plist | 5 +++++ 5 files changed, 40 insertions(+) create mode 100644 net-mgmt/p5-AnyEvent-SNMP/Makefile create mode 100644 net-mgmt/p5-AnyEvent-SNMP/distinfo create mode 100644 net-mgmt/p5-AnyEvent-SNMP/pkg-descr create mode 100644 net-mgmt/p5-AnyEvent-SNMP/pkg-plist (limited to 'net-mgmt') diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 560ededb1bb..3f740c5a877 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -183,6 +183,7 @@ SUBDIR += openvmps SUBDIR += ourmon SUBDIR += p0f + SUBDIR += p5-AnyEvent-SNMP SUBDIR += p5-Cflow SUBDIR += p5-Cisco-Reconfig SUBDIR += p5-Data-Validate-IP diff --git a/net-mgmt/p5-AnyEvent-SNMP/Makefile b/net-mgmt/p5-AnyEvent-SNMP/Makefile new file mode 100644 index 00000000000..46b01a11af0 --- /dev/null +++ b/net-mgmt/p5-AnyEvent-SNMP/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: p5-AnyEvent-SNMP +# Date created: 2011-06-24 +# Whom: Steven Kreuzer +# +# $FreeBSD$ +# + +PORTNAME= AnyEvent-SNMP +PORTVERSION= 1.0 +CATEGORIES= net-mgmt perl5 +MASTER_SITES= CPAN + +MAINTAINER= skreuzer@FreeBSD.org +COMMENT= Adaptor to integrate Net::SNMP into AnyEvent + +RUN_DEPENDS= p5-AnyEvent>=4.15:${PORTSDIR}/devel/p5-AnyEvent \ + p5-Net-SNMP>=6.0.1:${PORTSDIR}/net-mgmt/p5-Net-SNMP +BUILD_DEPENDS= ${RUN_DEPENDS} + +PERL_CONFIGURE= YES + +MAN3= AnyEvent::SNMP.3 + +.include diff --git a/net-mgmt/p5-AnyEvent-SNMP/distinfo b/net-mgmt/p5-AnyEvent-SNMP/distinfo new file mode 100644 index 00000000000..a7c36236f12 --- /dev/null +++ b/net-mgmt/p5-AnyEvent-SNMP/distinfo @@ -0,0 +1,2 @@ +SHA256 (AnyEvent-SNMP-1.0.tar.gz) = 8684bc503ad825b236313145ad83c960a6709002a4d38c0a5e1e04a9ced58324 +SIZE (AnyEvent-SNMP-1.0.tar.gz) = 5892 diff --git a/net-mgmt/p5-AnyEvent-SNMP/pkg-descr b/net-mgmt/p5-AnyEvent-SNMP/pkg-descr new file mode 100644 index 00000000000..4b620afe8d6 --- /dev/null +++ b/net-mgmt/p5-AnyEvent-SNMP/pkg-descr @@ -0,0 +1,8 @@ +This module implements an alternative "event dispatcher" for Net::SNMP, using +AnyEvent as a backend. + +It integrates Net::SNMP into AnyEvent: You can make non-blocking Net::SNMP +calls and as long as other parts of your program also use AnyEvent (or some +event loop supported by AnyEvent) and they will run in parallel. + +WWW: http://search.cpan.org/dist/AnyEvent-SNMP/ diff --git a/net-mgmt/p5-AnyEvent-SNMP/pkg-plist b/net-mgmt/p5-AnyEvent-SNMP/pkg-plist new file mode 100644 index 00000000000..c2f12a7d5bd --- /dev/null +++ b/net-mgmt/p5-AnyEvent-SNMP/pkg-plist @@ -0,0 +1,5 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/AnyEvent/SNMP.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/AnyEvent/SNMP/.packlist +@dirrmtry %%SITE_PERL%%/AnyEvent +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/AnyEvent/SNMP -- cgit