diff -r 92818898bb2c -r 2247be0e2a13 Build.PL --- a/Build.PL Thu Jan 23 23:31:08 2014 +0100 +++ b/Build.PL Sat Jan 25 23:08:21 2014 +0100 @@ -6,33 +6,34 @@ use Module::Build; my $builder = Module::Build->new( - dist_name => 'nagios-plugin-amanda-client', + dist_name => 'nagios-plugin-amanda-client', dist_version_from => 'plugins/check_amanda-client', - dist_abstract => 'nagios check for amanda clients', + dist_abstract => 'nagios check for amanda clients', + # new type 'plugins' # # where to find the sources -> where to put them under blib checks_files => { - 'plugins/check_amanda-client' => 'nagios/plugins/ius/check_amanda-client', + 'plugins/check_amanda-client' => + 'nagios/plugins/ius/check_amanda-client', }, - license => 'perl', - requires => { - perl => 5.010, - }, + license => 'perl', + requires => { perl => 5.014, }, + test_requires => { 'Test::Exception' => 0, }, ); - +# some magic to install it to the proper location} if (not defined $builder->install_path('nagios')) { my $base = do { - if ($builder->installdirs eq 'vendor') { '/usr/lib' } - elsif (defined $builder->install_base) { $builder->install_base } - else { '/usr/local/lib' } + if ($builder->installdirs eq 'vendor') { '/usr/lib' } + elsif (defined $builder->install_base) { $builder->install_base } + else { '/usr/local/lib' } }; $builder->install_path('nagios' => $base . '/nagios'); } -$builder->bindoc_dirs([@{$builder->bindoc_dirs}, 'blib/nagios/plugins/ius']); +$builder->bindoc_dirs([@{ $builder->bindoc_dirs }, 'blib/nagios/plugins/ius']); $builder->add_build_element('checks'); $builder->create_build_script;