16 # where to find the sources -> where to put them under blib |
16 # where to find the sources -> where to put them under blib |
17 checks_files => { |
17 checks_files => { |
18 'plugins/check_amanda-client' => |
18 'plugins/check_amanda-client' => |
19 'nagios/plugins/ius/check_amanda-client', |
19 'nagios/plugins/ius/check_amanda-client', |
20 }, |
20 }, |
21 license => 'perl', |
21 license => 'perl', |
22 requires => { perl => 5.014, 'Const::Fast' => 0.011 }, |
22 requires => { perl => 5.014, 'Const::Fast' => 0.011 }, |
23 build_requires => { 'Test::Exception' => 0, }, |
23 build_requires => { 'Test::Exception' => 0, }, |
24 ); |
24 ); |
25 |
25 |
26 # some magic to install it to the proper location} |
26 # some magic to install it to the proper location} |
27 if (not defined $builder->install_path('nagios')) { |
27 if (not defined $builder->install_path('nagios')) { |
28 my $base = do { |
28 my $base = do { |
29 if ($builder->installdirs eq 'vendor') { '/usr/lib' } |
29 if ($builder->installdirs eq 'vendor') { '/usr/lib' } |
30 elsif (defined $builder->install_base) { $builder->install_base } |
30 elsif (defined $builder->install_base) { $builder->install_base } |
31 else { '/usr/local/lib' } |
31 else { '/usr/local/lib' } |
32 }; |
32 }; |
33 $builder->install_path('nagios' => $base . '/nagios'); |
33 $builder->install_path('nagios' => $base . '/nagios'); |
34 } |
34 } |
35 |
35 |
36 $builder->bindoc_dirs([@{ $builder->bindoc_dirs }, 'blib/nagios/plugins/ius']); |
36 $builder->bindoc_dirs([@{ $builder->bindoc_dirs }, 'blib/nagios/plugins/ius']); |