aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2011-06-24 23:30:08 +0800
committerskreuzer <skreuzer@FreeBSD.org>2011-06-24 23:30:08 +0800
commitdad14ffc48a74ebfdcd1f113a5991ecf13b0b777 (patch)
tree35deb715af518cbcc4f1401069012a278d748223 /net-mgmt
parent2b39dae24e8eee5fe34dd82a49cf85aff4d41c82 (diff)
downloadfreebsd-ports-graphics-dad14ffc48a74ebfdcd1f113a5991ecf13b0b777.tar.gz
freebsd-ports-graphics-dad14ffc48a74ebfdcd1f113a5991ecf13b0b777.tar.zst
freebsd-ports-graphics-dad14ffc48a74ebfdcd1f113a5991ecf13b0b777.zip
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/
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/p5-AnyEvent-SNMP/Makefile24
-rw-r--r--net-mgmt/p5-AnyEvent-SNMP/distinfo2
-rw-r--r--net-mgmt/p5-AnyEvent-SNMP/pkg-descr8
-rw-r--r--net-mgmt/p5-AnyEvent-SNMP/pkg-plist5
5 files changed, 40 insertions, 0 deletions
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 <skreuzer@FreeBSD.org>
+#
+# $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 <bsd.port.mk>
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