-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
72 lines (71 loc) · 1.99 KB
/
Makefile.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
use strict;
use warnings;
use ExtUtils::MakeMaker;
use Config;
unless ( ( exists $Config{'d_fork'} )
&& ( defined $Config{'d_fork'} )
&& ( $Config{'d_fork'} eq 'define' ) )
{
die "'$^O' does not use the fork call for process control\n";
}
my $path_sep = $Config{'path_sep'};
my @slapd_directories = split /$path_sep/smx, "$ENV{'PATH'}$path_sep/usr/lib/openldap";
my $slapd_path;
foreach my $directory (@slapd_directories) {
my $possible =
File::Spec->catfile( $directory, 'slapd' );
if ( -x $possible ) {
$slapd_path = $possible;
}
}
if ( !defined $slapd_path ) {
die 'No slapd binary found in '
. ( join ',', @slapd_directories );
}
WriteMakefile(
NAME => 'Test::OpenLDAP',
AUTHOR => q{David Dick <[email protected]>},
VERSION_FROM => 'lib/Test/OpenLDAP.pm',
ABSTRACT_FROM => 'lib/Test/OpenLDAP.pm',
( $ExtUtils::MakeMaker::VERSION >= 6.3002
? ( 'LICENSE' => 'perl' )
: () ),
(
$ExtUtils::MakeMaker::VERSION >= 6.48
? ( 'MIN_PERL_VERSION' => '5.006' )
: ()
),
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
url => 'https://github.com/david-dick/test-openldap',
web => 'https://github.com/david-dick/test-openldap',
type => 'git',
},
bugtracker => {
web => 'https://github.com/david-dick/test-openldap/issues'
},
},
},
PL_FILES => {},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
TEST_REQUIRES => {
'Test::More' => 0,
},
PREREQ_PM => {
'Config' => 0,
'POSIX' => 0,
'Data::UUID' => 0,
'FileHandle' => 0,
'DirHandle' => 0,
'File::Temp' => 0,
'URI::Escape' => 0,
'English' => 0,
'Net::LDAP' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Test-OpenLDAP-*' },
);