openpgpg2x509 is useful enough to install with other scripts.
[monkeysphere-validation-agent.git] / Build.PL
index 592798475057976be1119bbd535c573ba38ebe64..69c3850f7b2a6eb912be6b1e00e41f16c6bbe5bc 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -2,6 +2,19 @@ use strict;
 use warnings;
 use diagnostics;
 use Module::Build;
+use File::Find;
+use Data::Dumper;
+
+my %doc_files = (
+               'Changelog' => 'doc/Changelog',
+               );
+sub add_doc {
+               if (-f $_) {
+                               $doc_files{$File::Find::name} = $File::Find::name;
+               }
+}
+find(\&add_doc, 'doc');
+#print Dumper(\%doc_files);
 
 my $cm = Module::Build->new
     (
@@ -12,7 +25,7 @@ my $cm = Module::Build->new
          'Crypt::X509' => '0.21',
          'File::HomeDir' => '0.93',
 #         'GnuPG::Handles' => '0.42',  (part of GnuPG::Interface)
-         'GnuPG::Interface' => '0.42',
+         'GnuPG::Interface' => '0.43',
          'HTTP::Headers' => '6.00',
          'HTTP::Request' => '6.00',
          'HTTP::Server::Simple' => '0.42',
@@ -21,5 +34,10 @@ my $cm = Module::Build->new
      },
                 dist_version_from => 'lib/Crypt/Monkeysphere/MSVA.pm',
                 dist_abstract => 'Monkeysphere public key validation daemon',
+                script_files => 'script/',
+                doc_files => \%doc_files,
+                install_path => { 'doc' => '/usr/share/doc/msva' },
+                recursive_test_files => 1,
     );
+$cm->add_build_element('doc');
 $cm->create_build_script;