-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
44 lines (39 loc) · 1.02 KB
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use 5.014;
use warnings;
use Module::Build;
my $release_status = 'unstable';
my $build = Module::Build->new(
module_name => 'Acne',
license => 'gpl_2',
dist_author => q{Andre Tomt <[email protected]>},
dist_version_from => 'lib/ACNE.pm',
dist_abstract => q{ACME/Let's Encrypt client},
release_status => $release_status,
configure_requires => {
'Module::Build' => 0
},
build_requires => {
'Test::More' => 0,
},
requires => {
'HTTP::Tiny' => 0.012, # Core since 5.10
'IO::Socket::SSL' => 1.56,
'Net::SSLeay' => 1.49,
'JSON::PP' => 2.27105, # Core since 5.14
},
add_to_cleanup => [ 'Acne-*' ],
etc_files => {
'etc/config.sample' => 'etc/config.sample'
},
script_files => ['bin/acne'],
);
$build->add_build_element('etc');
if ( !$build->install_path('etc') ) {
if ( $build->install_base ) {
$build->install_path( 'etc' => $build->install_base . '/etc/acne' );
}
else {
$build->install_path( 'etc' => '/etc/acne' );
}
}
$build->create_build_script;