1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $Id: Makefile.PL 12712 2009-04-23 16:22:51Z turnstep $
use ExtUtils::MakeMaker;
use Config;
use strict;
use warnings;
use 5.006001;
my $VERSION = '2.8.0';
if ($VERSION =~ /_/) {
print "WARNING! This is a test version ($VERSION) and should not be used in production!\n";
}
if (grep { /help/ } @ARGV) {
print qq{
Usage: perl $0
The usual steps to install check_postgres.pl:
1. perl Makefile.PL
2. make
3. make test
4. make install
Do steps 1 to 3 as a normal user, not as root!
See the README file for more help.
If all else fails, email check_postgres\@bucardo.org for help.
};
exit 1;
}
print "Configuring check_postgres $VERSION\n";
my %opts =
(
NAME => 'check_postgres',
VERSION_FROM => 'check_postgres.pl',
AUTHOR => 'Greg Sabino Mullane <[email protected]>',
ABSTRACT => 'Postgre monitoring script',
PREREQ_PM => {
'ExtUtils::MakeMaker' => '6.11',
'Test::More' => '0.61',
'version' => '0',
},
NEEDS_LINKING => 0,
NO_META => 1,
NORECURS => 1,
MAN1PODS => {},
clean => { FILES => 'test_database_check_postgres/', '/tmp/cptesting_socket' },
);
{
package MY;
sub clean {
my $string = shift->SUPER::clean(@_);
$string =~ s{\t}{\tperl t/99_cleanup\.t\n\t};
return $string;
}
}
my $output = WriteMakefile(%opts);
exit 0;
# end of Makefile.PL
|