2008-11-17 17:59:56 +01:00
|
|
|
use ExtUtils::MakeMaker;
|
2008-12-25 09:21:30 +01:00
|
|
|
|
2008-11-17 17:59:56 +01:00
|
|
|
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
|
|
|
# the contents of the Makefile that is written.
|
2008-12-22 18:49:36 +01:00
|
|
|
|
|
|
|
sub MY::top_targets {
|
2008-12-25 09:21:30 +01:00
|
|
|
my $self = shift;
|
|
|
|
my $r = $self->MM::top_targets(@_);
|
|
|
|
if ( my $cf = $ENV{LMNGCONFFILE} ) {
|
2008-12-22 18:49:36 +01:00
|
|
|
$r =~ s/^(all.*)$/$1 my_target/m;
|
|
|
|
$cf = quotemeta($cf);
|
|
|
|
$r .= <<"EOT";
|
|
|
|
|
|
|
|
my_target:
|
|
|
|
perl -i -pe 's/^(use constant DEFAULTCONFFILE =>).*\$\$/\$\$1 "$cf";/' blib/lib/Lemonldap/NG/Common/Conf.pm
|
|
|
|
EOT
|
|
|
|
}
|
|
|
|
return $r;
|
|
|
|
}
|
|
|
|
|
2008-11-17 17:59:56 +01:00
|
|
|
WriteMakefile(
|
2008-12-25 09:21:30 +01:00
|
|
|
NAME => 'Lemonldap::NG::Common',
|
|
|
|
VERSION_FROM => 'lib/Lemonldap/NG/Common.pm', # finds $VERSION
|
|
|
|
PREREQ_PM => {
|
|
|
|
'CGI' => 3.08,
|
2008-12-03 17:05:27 +01:00
|
|
|
'DBI' => 0,
|
|
|
|
'Storable' => 0,
|
|
|
|
'Regexp::Assemble' => 0,
|
2009-01-28 18:37:10 +01:00
|
|
|
'Cache::Cache' => 0,
|
2008-12-28 10:06:58 +01:00
|
|
|
'SOAP::Lite' => 0,
|
2009-01-28 18:37:10 +01:00
|
|
|
'Crypt::Rijndael' => 0,
|
2008-12-25 09:21:30 +01:00
|
|
|
}, # e.g., Module::Name => 1.1
|
2008-12-31 11:39:39 +01:00
|
|
|
#EXE_FILES => [ 'scripts/lmConfig_File2MySQL', ],
|
2008-12-25 09:21:30 +01:00
|
|
|
(
|
|
|
|
$] >= 5.005
|
|
|
|
? ## Add these new keywords supported since 5.005
|
|
|
|
(
|
|
|
|
ABSTRACT_FROM =>
|
|
|
|
'lib/Lemonldap/NG/Common.pm', # retrieve abstract from module
|
|
|
|
AUTHOR => 'guimard <guimard@>'
|
|
|
|
)
|
|
|
|
: ()
|
|
|
|
),
|
2008-11-17 17:59:56 +01:00
|
|
|
);
|