1use 5.016; 2use strict; 3use warnings FATAL => 'all'; 4use Module::Build; 5 6my $builder = Module::Build->new( 7 module_name => 'Security::TLSCheck', 8 license => 'artistic_2', 9 dist_author => q{Alvar C.H. Freude <alvar@a-blast.org>}, 10 dist_version_from => 'lib/Security/TLSCheck.pm', 11 release_status => 'testing', 12 configure_requires => { 13 'Module::Build' => 0, 14 }, 15 build_requires => { 16 'Test::More' => 0, 17 'Test::Exception' => 0.25, 18 'Test::MockObject' => 1.20140408, 19 'Test::LWP::UserAgent' => 0.025, 20 'Test::File' => 1.41, 21 'IPC::Run' => 0.90, 22 }, 23 24 share_dir => { 25 module => { 26 'Net::SSL::CipherSuites' => [ 'files/CipherSuites', ], 27 'Security::TLSCheck::App::DomainFilter' => [ 'files/DomainFilter', ], 28 'Security::TLSCheck' => [ 'conf', 'bin/ext', ], 29 }, 30 31 #dist => [ 'conf', ], 32 33 }, 34 35 # config_files => { 36 # '' => '', 37 # }, 38 39 40 # TODO: 41 # Check minimal required versions! 42 # this versions are set to my installed versions at writing time ... 43 # usually it should work with older versions of this modules, but this 44 # is not tested. 45 requires => { 46 'Moose' => 2.1213, 47 'MooseX::Getopt' => 0.65, 48 'MooseX::SimpleConfig' => 0.10, 49 'Net::DNS' => 0.80, 50 'Log::Log4perl' => 1.44, 51 'Net::LibIDN' => 0.12, # Needed by Net::DNS 52 'Net::DNS::RR::DS' => 0.20, 53 'LWP::Protocol::https' => 6.06, 54 'Text::CSV_XS' => 1.11, 55 'IO::All' => 0.79, 56 'Config::General' => 2.56, 57 'Readonly' => 2, 58 'Mozilla::CA' => 20141217, 59 'Net::SMTP' => 3.04, 60 'IO::Socket::Timeout' => 0.29, 61 'File::ShareDir' => 1.102, 62 'IO::Socket::SSL' => 2.016, 63 'LWP::UserAgent' => 6.06, 64 'PerlIO::via::Timeout' => 0.32, 65 'Parallel::ForkManager' => 1.17, # make this OPTIONAL! 66 'File::HomeDir' => 1.0, 67 'Net::IDN::Encode' => 2.300, # maybe replace by Net::LibIDN 68 }, 69 add_to_cleanup => ['Security-TLSCheck-*'], 70 create_makefile_pl => 'traditional', 71 ); 72 73$builder->create_build_script(); 74 75 76# FreeBSD Ports: 77# portmaster devel/p5-Config-General devel/p5-IO-All www/p5-libwww www/p5-LWP-Protocol-https devel/p5-Log-Log4perl devel/p5-Moose devel/p5-MooseX-Getopt devel/p5-MooseX-SimpleConfig dns/p5-Net-DNS dns/p5-Net-DNS-RR-SRV-Helper dns/p5-Net-LibIDN textproc/p5-Text-CSV_XS devel/p5-Test-Exception devel/p5-Test-File devel/p5-Test-MockObject 78