forked from zonemaster/zonemaster-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
84 lines (72 loc) · 2.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
use inc::Module::Install;
use Module::Install::Share;
name 'Zonemaster-Backend';
all_from 'lib/Zonemaster/Backend.pm';
repository 'https://github.com/zonemaster/zonemaster-backend';
bugtracker 'https://github.com/zonemaster/zonemaster-backend/issues';
# "2.1.0" could be declared as "2.001" but not as "2.1"
# (see Zonemaster::LDNS below)
requires
'Class::Method::Modifiers' => 1.09,
'Config::IniFiles' => 0,
'DBI' => 1.635,
'Daemon::Control' => 0.001007,
'File::ShareDir' => 0,
'File::Slurp' => 0,
'HTML::Entities' => 0,
'JSON::PP' => 0,
'JSON::RPC' => 1.01,
'JSON::Validator' => 4.00,
'Log::Any' => 0,
'Log::Any::Adapter::Dispatch' => 0,
'Log::Dispatch' => 0,
'LWP::UserAgent' => 0,
'Mojolicious' => 7.28,
'Moose' => 2.04,
'Parallel::ForkManager' => 1.12,
'Plack::Builder' => 0,
'Role::Tiny' => 1.001003,
'Router::Simple::Declare' => 0,
'Starman' => 0,
'String::ShellQuote' => 0,
'Try::Tiny' => 0.12,
'Zonemaster::Engine' => 4.005001,
'Zonemaster::LDNS' => 2.002002,
'Plack::Middleware::ReverseProxy' => 0,
'Locale::TextDomain' => 1.20,
;
test_requires 'DBD::SQLite' => 1.4702;
test_requires 'Test::NoWarnings';
test_requires 'Test::Exception';
test_requires 'Test::Differences';
test_requires 'Time::Local' => 1.26;
recommends 'DBD::mysql';
recommends 'DBD::Pg';
recommends 'DBD::SQLite';
install_share;
install_script 'zonemaster_backend_rpcapi.psgi';
install_script 'zonemaster_backend_testagent';
install_script 'zmtest';
install_script 'zmb';
no_index directory => 'CodeSnippets';
no_index directory => 'Doc';
# Make all platforms include inc/Module/Install/External.pm
requires_external_bin 'find';
if ($^O eq "freebsd") {
requires_external_bin 'gmake';
};
sub MY::postamble {
my $text;
if ($^O eq "freebsd") {
# Make FreeBSD use gmake for share/Makefile
$text = 'GMAKE ?= "gmake"' . "\n"
. 'pure_all :: share/Makefile' . "\n"
. "\t" . 'cd share && $(GMAKE) all' . "\n";
} else {
$text = 'pure_all :: share/Makefile' . "\n"
. "\t" . 'cd share && $(MAKE) all' . "\n";
};
return $text;
};
install_share;
WriteAll;