use
5.014;
sub
MY::top_targets {
my
$self
=
shift
;
my
$r
=
$self
->MM::top_targets(
@_
);
my
$newtarget
;
if
(
my
$cf
=
$ENV
{LMNGCONFFILE} ) {
$cf
=
quotemeta
(
$cf
);
$newtarget
.=
<<"EOT";
perl -i -pe 's/^(use constant DEFAULTCONFFILE\\s*=>).*\$\$/\$\$1 "$cf";/' blib/lib/Lemonldap/NG/Common/Conf/Constants.pm
EOT
}
if
(
my
$cf
=
$ENV
{LMNGCONFDIR} ) {
$cf
=
quotemeta
(
$cf
);
$newtarget
.=
<<"EOT";
perl -i -pe 's/^(\\s*dirName\\s+)=>.*/\$\$1 => "$cf",/' blib/lib/Lemonldap/NG/Common/Conf/Constants.pm
EOT
}
if
(
$newtarget
) {
$r
=~ s/^(all.*)$/$1 fix_defaults/m;
$r
.=
<<"EOT";
fix_defaults:
$newtarget
EOT
}
return
$r
;
}
WriteMakefile(
NAME
=>
'Lemonldap::NG::Common'
,
VERSION_FROM
=>
'lib/Lemonldap/NG/Common.pm'
,
LICENSE
=>
'gpl'
,
BUILD_REQUIRES
=> {
'IO::String'
=> 0,
'MIME::Entity'
=> 0,
'Net::LDAP'
=> 0,
'String::Random'
=> 0,
'Test::Pod'
=> 1.00,
'Test::Output'
=> 0,
'Time::Fake'
=> 0,
},
META_MERGE
=> {
'recommends'
=> {
'Apache::Session::Browseable'
=>
'1.3.9'
,
'Convert::Base32'
=> 0,
'Cookie::Baker::XS'
=> 0,
'Crypt::URandom'
=> 0,
'Date::Parse'
=> 0,
'String::Random'
=> 0,
'DBI'
=> 0,
'Net::LDAP'
=> 0,
'SOAP::Lite'
=> 0,
'LWP::Protocol::https'
=> 0,
},
resources
=> {
repository
=> {
type
=>
'git'
,
},
MailingList
=>
'mailto:lemonldap-ng-dev@ow2.org'
,
bugtracker
=>
},
},
PREREQ_PM
=> {
'Apache::Session'
=> 0,
'Cache::Cache'
=> 0,
'Config::IniFiles'
=> 0,
'Crypt::OpenSSL::Bignum'
=> 0,
'Crypt::OpenSSL::RSA'
=> 0,
'Crypt::OpenSSL::X509'
=> 0,
'Crypt::Rijndael'
=> 0,
'Crypt::URandom'
=> 0,
'Digest::SHA'
=> 0,
'HTML::Template'
=> 0,
'JSON'
=> 0,
'JSON::XS'
=> 0,
'Mouse'
=> 0,
'Net::CIDR'
=> 0,
'Plack'
=> 0,
'URI'
=> 0,
'LWP::UserAgent'
=> 0,
'XML::LibXML'
=> 0,
},
(
$] >= 5.005
?
(
ABSTRACT_FROM
=>
'lib/Lemonldap/NG/Common.pm'
,
AUTHOR
=>
'Xavier Guimard <x.guimard@free.fr>, Clement Oudot <clement@oodo.net>, Christophe Maudoux <chrmdx@gmail.com>, Maxime Besson <maxime.besson@worteks.com>'
)
: ()
),
clean
=> {
FILES
=>
't/lmConf*'
},
MAN1PODS
=> {
'scripts/convertConfig'
=>
'blib/man1/convertConfig.1p'
,
'scripts/convertSessions'
=>
'blib/man1/convertSessions.1p'
,
'scripts/convertToHashSessionStorage'
=>
'blib/man1/convertToHashSessionStorage.1p'
,
'scripts/encryptTotpSecrets'
=>
'blib/man1/encryptTotpSecrets.1p'
,
'scripts/lemonldap-ng-cli'
=>
'blib/man1/lemonldap-ng-cli.1p'
,
'scripts/lemonldap-ng-sessions'
=>
'blib/man1/lemonldap-ng-sessions.1p'
,
'scripts/importMetadata'
=>
'blib/man1/importMetadata.1p'
,
},
);