Debian Codegraph @

check_rbl/src/Makefile.PL

raw
1 # Load the Module::Install bundled in ./inc/
2 use lib '.'; # added since from Perl 5.26 '.' is no more in @INC
3 use inc::Module::Install;
4
5 ##############################################################################
6 # Define metadata (we read it from the binary)
7
8 name 'check_rbl';
9 version_from 'check_rbl';
10
11 ##############################################################################
12 # Specific dependencies
13
14 my %prereqs = (
15 'Capture::Tiny' => 0,
16 'Data::Validate::Domain' => 0.12,
17 'Data::Validate::IP' => 0,
18 'English' => 0,
19 'Net::DNS' => 0,
20 'Net::IP' => 0,
21 'Readonly' => 0,
22 'Socket' => 0,
23 'IO::Select' => 0,
24 'Monitoring::Plugin' => 0,
25 'Monitoring::Plugin::Threshold' => 0,
26 'Monitoring::Plugin::Getopt' => 0,
27 );
28
29 # Net::DNS 1.03 is broken
30 my $ver = eval { require Net::DNS; $Net::DNS::VERSION };
31 if (!$ver || $ver eq '1.03') {
32 warn 'Net::DNS is broken please downgrade until fixed. See https://rt.cpan.org/Ticket/Display.html?id=108745';
33 $prereqs{'Net::DNS'} = '1.04';
34 }
35
36 # https://metacpan.org/pod/release/DAGOLDEN/CPAN-Meta-2.142690/lib/CPAN/Meta/Spec.pm#license
37 license 'gpl_3';
38
39 install_script 'check_rbl';
40
41 auto_install;
42
43 tests 't/*.t';
44
45 WriteMakefile(
46 PREREQ_PM => \%prereqs,
47 INSTALLSCRIPT => '/usr/lib/nagios/plugins/contrib',
48 INSTALLSITESCRIPT => '/usr/lib/nagios/plugins/contrib',
49 MAN1PODS => { 'check_rbl.pod' =>'blib/man1/check_rbl.1', },
50 MAN3PODS => { },
51 );
52