Build.PL
changeset 12 f5467f4a3e94
parent 11 a19446e119d3
child 14 877c4297d82e
--- a/Build.PL	Sat Jan 11 23:36:22 2014 +0100
+++ b/Build.PL	Sat Jan 11 23:54:53 2014 +0100
@@ -1,14 +1,25 @@
 #! perl
 
+use 5.010;
+use strict;
+use warnings;
 use Module::Build;
 
-Module::Build->new(
+my $builder = Module::Build->new(
     dist_name => 'nagios-plugin-amanda-client',
-    dist_version_from => 'bin/check_amanda-client',
+    dist_version_from => 'plugins/check_amanda-client',
     dist_abstract => 'nagios check for amanda clients',
-    scripts => [glob 'bin/*'],
+    plugins_files => {
+	'plugins/check_amanda-client' => 'nagios/plugins/ius/check_amanda_client',
+    },
     license => 'perl',
     requires => {
 	perl => 5.010,
     },
-)->create_build_script;
+);
+$builder->add_build_element('plugins');
+$builder->install_base_relpaths(nagios => 'nagios/plugins/ius');
+$builder->create_build_script;
+
+__END__
+