aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-03-04 07:20:21 +0000
committerSergey Poznyakoff <gray@gnu.org>2020-03-04 07:20:21 +0000
commit78fb326be62816fa0a0eeda0d62532cf0eb6e734 (patch)
tree46486f9c4731c9c4c775815617812d8c52bcad53 /lib
parent9ce221b58ff8e5df3707cdf7d2272600da25a303 (diff)
downloadmangemanche-78fb326be62816fa0a0eeda0d62532cf0eb6e734.tar.gz
mangemanche-78fb326be62816fa0a0eeda0d62532cf0eb6e734.tar.bz2
Add Perl build infrastructure
Diffstat (limited to 'lib')
-rw-r--r--lib/App/Mangemanche.pm10
-rw-r--r--lib/App/Mangemanche/Command/dbload.pm2
-rw-r--r--lib/App/Mangemanche/Command/ident.pm2
-rw-r--r--lib/App/Mangemanche/Command/inspect.pm2
-rw-r--r--lib/App/Mangemanche/Command/ipadd.pm2
-rw-r--r--lib/App/Mangemanche/Command/ipdel.pm2
-rw-r--r--lib/App/Mangemanche/Command/nagios.pm2
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';
13 13
14my $DEFAULT_URL = 'http://localhost:8080'; 14my $DEFAULT_URL = 'http://localhost:8080';
15 15
16my $LICENSE = <<'EOT'
17Copyright (C) 2020 Sergey Poznyakoff
18
19License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
20This is free software: you are free to change and redistribute it.
21There is NO WARRANTY, to the extent permitted by law.
22EOT
23;
24
16sub new { 25sub new {
17 my $class = shift; 26 my $class = shift;
18 my $config_file; 27 my $config_file;
@@ -38,6 +47,7 @@ sub new {
38 }, 47 },
39 'version' => sub { 48 'version' => sub {
40 print "$0 version $VERSION\n"; 49 print "$0 version $VERSION\n";
50 print $LICENSE,"\n";
41 exit(EX_OK); 51 exit(EX_OK);
42 }, 52 },
43 'config|c=s' => \$config_file, 53 '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
96 96
97=head1 SYNOPSIS 97=head1 SYNOPSIS
98 98
99B<dbload> 99B<mangemanche dbload>
100[B<-D> I<DRIVER>] 100[B<-D> I<DRIVER>]
101[B<-P> I<DBPORT>] 101[B<-P> I<DBPORT>]
102[B<-c> I<COLUMN>] 102[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
36 36
37=head1 SYNOPSIS 37=head1 SYNOPSIS
38 38
39B<ident> 39B<mangemanche ident>
40[I<PARAM>] 40[I<PARAM>]
41 41
42=head1 DESCRIPTION 42=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 {
36 36
37=head1 NAME 37=head1 NAME
38 38
39inspect - inspect ping903 server configuration 39mangemanche inspect - inspect ping903 server configuration
40 40
41=head1 SYNOPSIS 41=head1 SYNOPSIS
42 42
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
21 21
22=head1 SYNOPSIS 22=head1 SYNOPSIS
23 23
24B<ipadd> I<IP> 24B<mangemanche ipadd> I<IP>
25 25
26=head1 DESCRIPTION 26=head1 DESCRIPTION
27 27
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
20 20
21=head1 SYNOPSIS 21=head1 SYNOPSIS
22 22
23B<ipdel> I<IP> 23B<mangemanche ipdel> I<IP>
24 24
25=head1 DESCRIPTION 25=head1 DESCRIPTION
26 26
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
65 65
66=head1 SYNOPSIS 66=head1 SYNOPSIS
67 67
68B<nagios> 68B<mangemanche nagios>
69[B<-c> I<FILE>] 69[B<-c> I<FILE>]
70[B<-p> I<PROG>] 70[B<-p> I<PROG>]
71[B<--config=>I<FILE>] 71[B<--config=>I<FILE>]

Return to:

Send suggestions and report system problems to the System administrator.