2010-11-29 16:32:56 +01:00
|
|
|
use 5.008;
|
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:
|
2009-12-02 16:08:35 +01:00
|
|
|
perl -i -pe 's/^(use constant DEFAULTCONFFILE\\s*=>).*\$\$/\$\$1 "$cf";/' blib/lib/Lemonldap/NG/Common/Conf/Constants.pm
|
2008-12-22 18:49:36 +01:00
|
|
|
EOT
|
|
|
|
}
|
|
|
|
return $r;
|
|
|
|
}
|
|
|
|
|
2008-11-17 17:59:56 +01:00
|
|
|
WriteMakefile(
|
2011-03-07 10:14:33 +01:00
|
|
|
NAME => 'Lemonldap::NG::Common',
|
|
|
|
VERSION_FROM => 'lib/Lemonldap/NG/Common.pm', # finds $VERSION
|
2013-07-07 14:03:21 +02:00
|
|
|
LICENSE => 'gpl',
|
2013-01-25 21:36:21 +01:00
|
|
|
BUILD_REQUIRES => {
|
2013-11-03 18:49:03 +01:00
|
|
|
'IO::String' => 0,
|
|
|
|
'Net::LDAP' => 0,
|
|
|
|
'Test::Pod' => 1.00,
|
|
|
|
'XML::Simple' => 0,
|
2013-01-25 21:36:21 +01:00
|
|
|
},
|
|
|
|
META_MERGE => {
|
|
|
|
'recommends' => {
|
2013-10-19 06:29:41 +02:00
|
|
|
'Apache::Session::Browseable' => 0,
|
|
|
|
'HTML::Template' => 0,
|
|
|
|
'HTTP::Message' => 0,
|
|
|
|
'Net::LDAP' => 0,
|
|
|
|
'XML::Simple' => 0,
|
|
|
|
'XML::LibXML' => 0,
|
2013-01-25 21:36:21 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
PREREQ_PM => {
|
|
|
|
'Apache::Session' => 0,
|
|
|
|
'Cache::Cache' => 0,
|
|
|
|
'CGI' => 3.08,
|
|
|
|
'Crypt::OpenSSL::RSA' => 0,
|
|
|
|
'Crypt::OpenSSL::X509' => 0,
|
|
|
|
'Crypt::Rijndael' => 0,
|
|
|
|
'Config::IniFiles' => 0,
|
|
|
|
'DBI' => 0,
|
2014-06-08 11:37:49 +02:00
|
|
|
'Digest::SHA' => 0,
|
2013-01-25 21:36:21 +01:00
|
|
|
'File::Basename' => 0,
|
2014-02-18 14:56:55 +01:00
|
|
|
'Mouse' => 0,
|
2013-01-25 21:36:21 +01:00
|
|
|
'Net::CIDR::Lite' => 0,
|
|
|
|
'SOAP::Lite' => 0,
|
|
|
|
'Storable' => 0,
|
2011-03-07 10:14:33 +01:00
|
|
|
}, # e.g., Module::Name => 1.1
|
|
|
|
#EXE_FILES => [ 'scripts/convertConfig', ],
|
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
|
2011-03-07 10:14:33 +01:00
|
|
|
AUTHOR =>
|
|
|
|
'Xavier Guimard <x.guimard@free.fr>, Clément Oudot <clement@oodo.net>'
|
2008-12-25 09:21:30 +01:00
|
|
|
)
|
|
|
|
: ()
|
|
|
|
),
|
2008-11-17 17:59:56 +01:00
|
|
|
);
|