-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.PL
44 lines (39 loc) · 1.07 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
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile
(
NAME => 'pgeodns',
AUTHOR => 'Ask Bjoern Hansen <ask@develooper.com>',
VERSION_FROM => 'lib/GeoDNS.pm',
ABSTRACT => "Perl Geographic DNS Server",
PL_FILES => { },
EXE_FILES => [ 'pgeodns' ],
# PM => {
# 'GeoDNS.pm' => '$(INST_LIBDIR)/App/HWD.pm',
# },
MIN_PERL_VERSION => '5.008',
BUILD_REQUIRES => {
'ExtUtils::MakeMaker' => '6.48',
'Test::Simple' => '0.90',
},
PREREQ_PM => {
'Net::DNS' => 0.67,
'Geo::IP' => 1.28,
'List::Util' => 0,
'JSON' => 2.12,
'IO::Socket::INET6' => '2.01', # ipv6 support for Net::DNS
},
MAN3PODS => { }, # no need for docs on these
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'cover_db pm_to_blib' },
);
sub MY::postamble {
return <<'MAKE_FRAG';
.PHONY: testcover
cover:
cover -delete
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
MAKE_FRAG
}