From 94534929f1b125b137b8d398c72b02bc219e8f07 Mon Sep 17 00:00:00 2001 From: Bryan Heden Date: Sun, 18 Jun 2017 12:23:29 -0500 Subject: [PATCH] updated Makefile.PL to reflect changes in PR#1 by @chorny - tested - updated readme --- Changes | 4 ++++ Makefile.PL | 22 +++++++++++++--------- README | 29 +++++++++++++++++------------ 3 files changed, 34 insertions(+), 21 deletions(-) diff --git a/Changes b/Changes index 301af17..0846a80 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl module Nagios::Monitoring::Plugin. +0.52 ?? + - Updated Makefile.PL with contributions from @chorny on GitHub, PR #1 + - Updated README to reflect proper installation instructions + 0.51 17th September 2015 - Remove usage of defined %hash in test for perl 5.21.x and later diff --git a/Makefile.PL b/Makefile.PL index 67b7733..9f84469 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,13 +3,21 @@ use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( - NAME => 'Nagios::Monitoring::Plugin', - VERSION_FROM => 'lib/Nagios/Monitoring/Plugin/Functions.pm', # finds $VERSION - PREREQ_PM => { - 'LICENSE' => 'perl', + NAME => 'Nagios::Monitoring::Plugin', + AUTHOR => 'Nagios Plugin Development Team ', + VERSION_FROM => 'lib/Nagios/Monitoring/Plugin/Functions.pm', # finds $VERSION + ABSTRACT_FROM => 'lib/Nagios/Monitoring/Plugin.pm', # retrieve abstract from module + LICENSE => 'perl', + MIN_PERL_VERSION => '5.006', + META_MERGE => { + resources => { + repository => 'https://github.com/nagios-plugins/nagios-plugin-perl', + }, + }, + PREREQ_PM => { Params::Validate => 0, Class::Accessor => 0, - Test::More => 0.62, + Test::More => 0.62, Carp => 0, Config::Tiny => 0, File::Spec => 0, @@ -17,8 +25,4 @@ WriteMakefile( IO::File => 0, Math::Calc::Units => 0, # used in N::P::Performance }, # e.g., Module::Name => 1.1 - ($] >= 5.005 ? ## Add these new keywords supported since 5.005 - (ABSTRACT_FROM => 'lib/Nagios/Monitoring/Plugin.pm', # retrieve abstract from module - AUTHOR => 'Nagios Plugin Development Team ') : ()), - ($ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl_5', ) : ()), ); diff --git a/README b/README index 6326296..5befaf4 100644 --- a/README +++ b/README @@ -1,25 +1,29 @@ Nagios::Monitoring::Plugin ============== -These modules are meant for perl developers of plugins for Nagios -(https://github.com/nagios-plugins/nagios-plugin-perl). It is meant to simplify a lot -of the common functions required to do checking of a particular -service. +These modules are meant for [perl developers of plugins for Nagios](https://github.com/nagios-plugins/nagios-plugin-perl). +It is meant to simplify a lot of the common functions required to do checking of a particular service. The modules are still in an experimental stage and will be considered stable when it reaches version 1.0. -INSTALLATION +Installing +---------- + +You may need some prerequisites first. If you're on RHEL/Cent, it would be: + + yum install -y perl-devel perl-Class-Accessor perl-Config-Tiny perl-Math-Calc-Units To install this module type the following: - perl Makefile.PL - make - make test - make install + perl Makefile.PL + make + make test + make install -EXAMPLE SCRIPT +Example +------- "Enough talk! Show me where to start!" @@ -27,9 +31,10 @@ See the file 'check_stuff.pl' in the 't' directory for a complete working example of a plugin script. -COPYRIGHT AND LICENCE +License Notice +-------------- -Copyright (C) 2006-2015 by Nagios Plugin Development Team +Copyright (C) 2006-2017 by Nagios Plugin Development Team This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, -- 2.11.4.GIT