The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use inc::Module::Install;

RTx('RT-Extension-Nginx');
all_from('lib/RT/Extension/Nginx.pm');
readme_from('lib/RT/Extension/Nginx.pm');

# 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;

substitute( {
        RT_LIB_PATH => join( ' ', $local_lib_path, $lib_path ),
    },
    'sbin/rt-generate-nginx-conf',
    'sbin/rt-nginx-control',
);

requires_rt '4.0';
requires 'File::Spec';
requires 'File::Path';
requires 'autodie';
requires 'Text::Template' => 1.22;

WriteAll();