Build.PL
changeset 14 877c4297d82e
parent 12 f5467f4a3e94
child 15 a1b5a2326a66
equal deleted inserted replaced
13:0f74bcc68b05 14:877c4297d82e
     7 
     7 
     8 my $builder = Module::Build->new(
     8 my $builder = Module::Build->new(
     9     dist_name => 'nagios-plugin-amanda-client',
     9     dist_name => 'nagios-plugin-amanda-client',
    10     dist_version_from => 'plugins/check_amanda-client',
    10     dist_version_from => 'plugins/check_amanda-client',
    11     dist_abstract => 'nagios check for amanda clients',
    11     dist_abstract => 'nagios check for amanda clients',
       
    12     # new type 'plugins'
       
    13     #
       
    14 
       
    15     # where to find the sources -> where to put them under blib
    12     plugins_files => {
    16     plugins_files => {
    13 	'plugins/check_amanda-client' => 'nagios/plugins/ius/check_amanda_client',
    17 	'plugins/check_amanda-client' => 'nagios/plugins/ius/check_amanda-client',
    14     },
    18     },
    15     license => 'perl',
    19     license => 'perl',
    16     requires => {
    20     requires => {
    17 	perl => 5.010,
    21 	perl => 5.010,
    18     },
    22     },
    19 );
    23 );
       
    24 
       
    25 my $base = defined $builder->install_base 
       
    26     ?  $builder->install_base
       
    27     : $builder->installdirs eq 'site' ? '/usr/local/lib' 
       
    28 	: '/usr/lib';
       
    29 
       
    30 $builder->install_path('nagios' => ($builder->install_base // '/usr/local/lib') . '/nagios');
    20 $builder->add_build_element('plugins');
    31 $builder->add_build_element('plugins');
    21 $builder->install_base_relpaths(nagios => 'nagios/plugins/ius');
       
    22 $builder->create_build_script;
    32 $builder->create_build_script;
    23 
    33 
    24 __END__
    34 __END__
    25 
    35