Build.PL
changeset 12 f5467f4a3e94
parent 11 a19446e119d3
child 14 877c4297d82e
equal deleted inserted replaced
11:a19446e119d3 12:f5467f4a3e94
     1 #! perl
     1 #! perl
     2 
     2 
       
     3 use 5.010;
       
     4 use strict;
       
     5 use warnings;
     3 use Module::Build;
     6 use Module::Build;
     4 
     7 
     5 Module::Build->new(
     8 my $builder = Module::Build->new(
     6     dist_name => 'nagios-plugin-amanda-client',
     9     dist_name => 'nagios-plugin-amanda-client',
     7     dist_version_from => 'bin/check_amanda-client',
    10     dist_version_from => 'plugins/check_amanda-client',
     8     dist_abstract => 'nagios check for amanda clients',
    11     dist_abstract => 'nagios check for amanda clients',
     9     scripts => [glob 'bin/*'],
    12     plugins_files => {
       
    13 	'plugins/check_amanda-client' => 'nagios/plugins/ius/check_amanda_client',
       
    14     },
    10     license => 'perl',
    15     license => 'perl',
    11     requires => {
    16     requires => {
    12 	perl => 5.010,
    17 	perl => 5.010,
    13     },
    18     },
    14 )->create_build_script;
    19 );
       
    20 $builder->add_build_element('plugins');
       
    21 $builder->install_base_relpaths(nagios => 'nagios/plugins/ius');
       
    22 $builder->create_build_script;
       
    23 
       
    24 __END__
       
    25