-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile.PL
58 lines (47 loc) · 1.38 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
use inc::Module::Install;
RTx('RT-IR');
license('GPL Version 2');
author('Best Practical Solutions <sales@bestpractical.com>');
version_from('lib/RT/IR.pm');
{ # check RT version
my @v = split /\./, "$RT::VERSION";
unless ($v[0]>=3 && $v[1]>=8 && ($v[2]>=3 || $v[2]eq'HEAD')) {
die "RTIR 2.4.2 and newer needs RT 3.8.3 at least, you have $RT::VERSION";
}
}
# XXX: This should be reported by M::I::RTx
my ($lib_path) = $INC{'RT.pm'} =~ /^(.*)[\\\/]/;
my $local_lib_path = "$RT::LocalPath/lib";
unshift @INC, $local_lib_path, $lib_path;
# XXX: we can not depend on RT::FM as new plugin system
# is not ready for that
#requires('RT::FM');
# RTIR needs this version of SB cuz of bug-fix
requires('DBIx::SearchBuilder', 1.51);
# work hours
requires('Business::Hours');
# service level agreement
requires('Business::SLA');
# whois tool
requires('Net::Whois::RIPE');
# IP searching
requires('Hook::LexWrap');
requires('Regexp::Common');
# CIDR parsing and converting
requires('Net::CIDR');
requires('Regexp::Common::net::CIDR');
# for tests
build_requires('Test::More');
build_requires('File::Find');
# for etc/upgrade/upgrade.pl
build_requires('File::Temp');
auto_install();
substitute( {
RT_LIB_PATH => join( ' ', $local_lib_path, $lib_path ),
},
'etc/upgrade/upgrade.pl',
'etc/add_constituency',
't/lib/RT/IR/Test.pm',
);
tests("t/*.t t/*/*.t");
WriteAll();