From c9bbdd6bef56a1b6fec5f24d2f0d52a074203e5c Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 24 Aug 2006 11:13:51 +0000 Subject: [PATCH] Object oriented helper routines for your Nagios plugin: This is the place for common routines when writing Nagios plugins. The idea is to make it as easy as possible for developers to conform to the plugin guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html). WWW: http://search.cpan.org/dist/Nagios-Plugins/ PR: ports/102391 Submitted by: Gerrit Beine Approved by: krion (mentor) --- net-mgmt/Makefile | 1 + net-mgmt/p5-Nagios-Plugin/Makefile | 41 +++++++++++++++++++++++++++++ net-mgmt/p5-Nagios-Plugin/distinfo | 3 +++ net-mgmt/p5-Nagios-Plugin/pkg-descr | 7 +++++ net-mgmt/p5-Nagios-Plugin/pkg-plist | 10 +++++++ 5 files changed, 62 insertions(+) create mode 100644 net-mgmt/p5-Nagios-Plugin/Makefile create mode 100644 net-mgmt/p5-Nagios-Plugin/distinfo create mode 100644 net-mgmt/p5-Nagios-Plugin/pkg-descr create mode 100644 net-mgmt/p5-Nagios-Plugin/pkg-plist diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 2710697df829..bc700e679746 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -130,6 +130,7 @@ SUBDIR += p5-Cflow SUBDIR += p5-Mon SUBDIR += p5-NSNMP + SUBDIR += p5-Nagios-Plugin SUBDIR += p5-Net-CIDR SUBDIR += p5-Net-IP SUBDIR += p5-Net-IP-Match-Regexp diff --git a/net-mgmt/p5-Nagios-Plugin/Makefile b/net-mgmt/p5-Nagios-Plugin/Makefile new file mode 100644 index 000000000000..edb379a76964 --- /dev/null +++ b/net-mgmt/p5-Nagios-Plugin/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: p5-Nagios-Plugin +# Date created: 13 08 2006 +# Whom: Gerrit Beine +# +# $FreeBSD$ +# + +PORTNAME= Nagios-Plugin +PORTVERSION= 0.12 +CATEGORIES= net-mgmt perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../../authors/id/T/TO/TONVOON +PKGNAMEPREFIX= p5- + +MAINTAINER= gerrit.beine@gmx.de +COMMENT= Object oriented helper routines for Nagios plugin + +PERL_CONFIGURE= yes + +MAN3= Nagios::Plugin.3 \ + Nagios::Plugin::Base.3 \ + Nagios::Plugin::Performance.3 \ + Nagios::Plugin::Range.3 \ + Nagios::Plugin::Threshold.3 \ + +.include + +.if ${OSVERSION} < 500000 +BROKEN= This port requires FreeBSD 5-STABLE. +.endif + +.if !defined(NOPORTDOCS) +PORTDOCS= Changes README + +post-install: + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." +.endif + +.include diff --git a/net-mgmt/p5-Nagios-Plugin/distinfo b/net-mgmt/p5-Nagios-Plugin/distinfo new file mode 100644 index 000000000000..d2205aa58c99 --- /dev/null +++ b/net-mgmt/p5-Nagios-Plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (Nagios-Plugin-0.12.tar.gz) = 332c25b428ccd50963ac49a24eae9fcf +SHA256 (Nagios-Plugin-0.12.tar.gz) = bea17584abf8f051efa44a83fef1fe65031fd9c5706a1582abfdae9258a7d91f +SIZE (Nagios-Plugin-0.12.tar.gz) = 7778 diff --git a/net-mgmt/p5-Nagios-Plugin/pkg-descr b/net-mgmt/p5-Nagios-Plugin/pkg-descr new file mode 100644 index 000000000000..82963bb59a1d --- /dev/null +++ b/net-mgmt/p5-Nagios-Plugin/pkg-descr @@ -0,0 +1,7 @@ +Object oriented helper routines for your Nagios plugin: + +This is the place for common routines when writing Nagios plugins. The idea is +to make it as easy as possible for developers to conform to the plugin +guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html). + +WWW: http://search.cpan.org/dist/Nagios-Plugins/ diff --git a/net-mgmt/p5-Nagios-Plugin/pkg-plist b/net-mgmt/p5-Nagios-Plugin/pkg-plist new file mode 100644 index 000000000000..dff2f097f187 --- /dev/null +++ b/net-mgmt/p5-Nagios-Plugin/pkg-plist @@ -0,0 +1,10 @@ +%%SITE_PERL%%/Nagios/Plugin.pm +%%SITE_PERL%%/Nagios/Plugin/Base.pm +%%SITE_PERL%%/Nagios/Plugin/Performance.pm +%%SITE_PERL%%/Nagios/Plugin/Range.pm +%%SITE_PERL%%/Nagios/Plugin/Threshold.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Nagios/Plugin/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Nagios/Plugin +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Nagios +@dirrm %%SITE_PERL%%/Nagios/Plugin +@dirrmtry %%SITE_PERL%%/Nagios