Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (50 sloc) 1.555 kb
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";
if ($v[0] >= 4) {
die "\n\nThis version of RTIR doesn't work with RT 4.x, you have $RT::VERSION";
}
unless ($v[0]>=3 && $v[1]>=8 && ($v[2]>=3 || $v[2]eq'HEAD')) {
die "\n\nThis version of RTIR needs RT 3.8.3 at least, but don't work with RT 4.x, 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',
'lib/RT/IR/Test.pm',
);
tests("t/*.t t/*/*.t");
WriteAll();
Jump to Line
Something went wrong with that request. Please try again.