forked from darold/pgcluu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
55 lines (48 loc) · 1.35 KB
/
Makefile.PL
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
use strict;
my @ALLOWED_ARGS = ('INSTALLDIRS','DESTDIR');
# Parse command line arguments and store them as environment variables
while ($_ = shift) {
my ($k,$v) = split(/=/, $_, 2);
if (grep(/^$k$/, @ALLOWED_ARGS)) {
$ENV{$k} = $v;
}
}
$ENV{DESTDIR} =~ s/\/$//;
# Default install path
my $DESTDIR = $ENV{DESTDIR} || '';
my $INSTALLDIRS = $ENV{INSTALLDIRS} || 'site';
my %merge_compat = ();
if ($ExtUtils::MakeMaker::VERSION >= 6.46) {
%merge_compat = (
'META_MERGE' => {
resources => {
homepage => 'http://pgcluu.darold.net/',
repository => {
type => 'git',
git => '[email protected]:darold/pgcluu.git',
web => 'http://pgcluu.darold.net/',
},
},
}
);
}
WriteMakefile(
'DISTNAME' => 'pgcluu',
'NAME' => 'pgCluu',
'VERSION_FROM' => 'pgcluu',
'dist' => {
'COMPRESS'=>'gzip -9f', 'SUFFIX' => 'gz',
'ZIP'=>'/usr/bin/zip','ZIPFLAGS'=>'-rl'
},
'AUTHOR' => 'Gilles Darold ([email protected])',
'ABSTRACT' => 'pgCluu - PostgreSQL performances auditing tool',
'EXE_FILES' => [ qw(pgcluu pgcluu_collectd) ],
'MAN1PODS' => { 'doc/pgCluu.pod' => 'blib/man1/pgcluu.1' },
'DESTDIR' => $DESTDIR,
'INSTALLDIRS' => $INSTALLDIRS,
'clean' => {},
%merge_compat
);