diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-03-04 07:20:21 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-03-04 07:20:21 +0000 |
commit | 78fb326be62816fa0a0eeda0d62532cf0eb6e734 (patch) | |
tree | 46486f9c4731c9c4c775815617812d8c52bcad53 /lib | |
parent | 9ce221b58ff8e5df3707cdf7d2272600da25a303 (diff) | |
download | mangemanche-78fb326be62816fa0a0eeda0d62532cf0eb6e734.tar.gz mangemanche-78fb326be62816fa0a0eeda0d62532cf0eb6e734.tar.bz2 |
Add Perl build infrastructure
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/Mangemanche.pm | 10 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/dbload.pm | 2 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/ident.pm | 2 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/inspect.pm | 2 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/ipadd.pm | 2 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/ipdel.pm | 2 | ||||
-rw-r--r-- | lib/App/Mangemanche/Command/nagios.pm | 2 |
7 files changed, 16 insertions, 6 deletions
diff --git a/lib/App/Mangemanche.pm b/lib/App/Mangemanche.pm index 2bcbc44..4d43796 100644 --- a/lib/App/Mangemanche.pm +++ b/lib/App/Mangemanche.pm @@ -13,6 +13,15 @@ our $VERSION = '0.4.90'; my $DEFAULT_URL = 'http://localhost:8080'; +my $LICENSE = <<'EOT' +Copyright (C) 2020 Sergey Poznyakoff + +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. +EOT +; + sub new { my $class = shift; my $config_file; @@ -38,6 +47,7 @@ sub new { }, 'version' => sub { print "$0 version $VERSION\n"; + print $LICENSE,"\n"; exit(EX_OK); }, 'config|c=s' => \$config_file, diff --git a/lib/App/Mangemanche/Command/dbload.pm b/lib/App/Mangemanche/Command/dbload.pm index 90188c8..06219a8 100644 --- a/lib/App/Mangemanche/Command/dbload.pm +++ b/lib/App/Mangemanche/Command/dbload.pm @@ -96,7 +96,7 @@ dbload - Load IP addresses from database into Ping903 =head1 SYNOPSIS -B<dbload> +B<mangemanche dbload> [B<-D> I<DRIVER>] [B<-P> I<DBPORT>] [B<-c> I<COLUMN>] diff --git a/lib/App/Mangemanche/Command/ident.pm b/lib/App/Mangemanche/Command/ident.pm index af86d83..f3c904a 100644 --- a/lib/App/Mangemanche/Command/ident.pm +++ b/lib/App/Mangemanche/Command/ident.pm @@ -36,7 +36,7 @@ ident - display ping903 server identification =head1 SYNOPSIS -B<ident> +B<mangemanche ident> [I<PARAM>] =head1 DESCRIPTION diff --git a/lib/App/Mangemanche/Command/inspect.pm b/lib/App/Mangemanche/Command/inspect.pm index 8ad4221..24b8df9 100644 --- a/lib/App/Mangemanche/Command/inspect.pm +++ b/lib/App/Mangemanche/Command/inspect.pm @@ -36,7 +36,7 @@ sub run { =head1 NAME -inspect - inspect ping903 server configuration +mangemanche inspect - inspect ping903 server configuration =head1 SYNOPSIS diff --git a/lib/App/Mangemanche/Command/ipadd.pm b/lib/App/Mangemanche/Command/ipadd.pm index 7a68d82..9ad44d5 100644 --- a/lib/App/Mangemanche/Command/ipadd.pm +++ b/lib/App/Mangemanche/Command/ipadd.pm @@ -21,7 +21,7 @@ ipadd - adds a single IP to the ping903 ip list =head1 SYNOPSIS -B<ipadd> I<IP> +B<mangemanche ipadd> I<IP> =head1 DESCRIPTION diff --git a/lib/App/Mangemanche/Command/ipdel.pm b/lib/App/Mangemanche/Command/ipdel.pm index 0671973..79af276 100644 --- a/lib/App/Mangemanche/Command/ipdel.pm +++ b/lib/App/Mangemanche/Command/ipdel.pm @@ -20,7 +20,7 @@ ipdel - deletes a single IP from the ping903 mutable ip list =head1 SYNOPSIS -B<ipdel> I<IP> +B<mangemanche ipdel> I<IP> =head1 DESCRIPTION diff --git a/lib/App/Mangemanche/Command/nagios.pm b/lib/App/Mangemanche/Command/nagios.pm index fc21a37..d3ad347 100644 --- a/lib/App/Mangemanche/Command/nagios.pm +++ b/lib/App/Mangemanche/Command/nagios.pm @@ -65,7 +65,7 @@ nagios - extract monitored IP addresses from the Nagios configuration =head1 SYNOPSIS -B<nagios> +B<mangemanche nagios> [B<-c> I<FILE>] [B<-p> I<PROG>] [B<--config=>I<FILE>] |