lemonldap-ng/lemonldap-ng-common/Makefile.PL

113 lines
3.9 KiB
Makefile
Raw Normal View History

2016-04-10 23:29:59 +02:00
use 5.014;
use ExtUtils::MakeMaker;
2008-12-25 09:21:30 +01:00
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
sub MY::top_targets {
2008-12-25 09:21:30 +01:00
my $self = shift;
my $r = $self->MM::top_targets(@_);
my $newtarget;
2008-12-25 09:21:30 +01:00
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', # finds $VERSION
LICENSE => 'gpl',
BUILD_REQUIRES => {
'IO::String' => 0,
'Net::LDAP' => 0,
'String::Random' => 0,
'Test::Pod' => 1.00,
},
META_MERGE => {
'recommends' => {
'Apache::Session::Browseable' => '1.3.9',
2018-02-19 22:47:10 +01:00
'Convert::Base32' => 0,
'Cookie::Baker::XS' => 0,
'Crypt::URandom' => 0,
'Date::Parse' => 0,
'String::Random' => 0,
2017-03-07 11:03:23 +01:00
'DBI' => 0,
'Net::LDAP' => 0,
2017-03-07 11:03:23 +01:00
'SOAP::Lite' => 0,
'LWP::Protocol::https' => 0,
},
2018-04-05 22:27:51 +02:00
resources => {
repository => {
url => 'https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng.git',
web => 'https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng',
type => 'git',
},
MailingList => 'mailto:lemonldap-ng-dev@ow2.org',
license => 'http://opensource.org/licenses/GPL-2.0',
2022-02-19 18:27:09 +01:00
homepage => 'https://lemonldap-ng.org/',
bugtracker =>
'https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues',
2018-04-05 22:27:51 +02:00
x_twitter => 'https://twitter.com/lemonldapng',
},
},
PREREQ_PM => {
2016-04-10 23:29:59 +02:00
'Apache::Session' => 0,
'Cache::Cache' => 0,
2017-03-07 11:03:23 +01:00
'Config::IniFiles' => 0,
2016-04-10 23:29:59 +02:00
'Crypt::OpenSSL::Bignum' => 0,
'Crypt::OpenSSL::RSA' => 0,
'Crypt::OpenSSL::X509' => 0,
'Crypt::Rijndael' => 0,
'Crypt::URandom' => 0,
2016-04-10 23:29:59 +02:00
'Digest::SHA' => 0,
2017-03-07 11:03:23 +01:00
'HTML::Template' => 0,
2016-04-10 23:29:59 +02:00
'JSON' => 0,
'JSON::XS' => 0,
2016-04-10 23:29:59 +02:00
'Mouse' => 0,
'Plack' => 0,
2017-04-11 11:17:13 +02:00
'Test::Pod' => 1.00,
2017-03-07 11:03:23 +01:00
'URI' => 0,
}, # 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
AUTHOR =>
2022-02-19 18:27:09 +01:00
'Xavier Guimard <x.guimard@free.fr>, Clement Oudot <clement@oodo.net>, Christophe Maudoux <chrmdx@gmail.com>, Maxime Besson <maxime.besson@worteks.com>'
2008-12-25 09:21:30 +01:00
)
: ()
),
2016-01-09 21:35:47 +01:00
clean => {
FILES => 't/lmConf*'
2016-02-06 19:41:29 +01:00
},
MAN1PODS => {
'scripts/convertConfig' => 'blib/man1/convertConfig.1p',
'scripts/convertSessions' => 'blib/man1/convertSessions.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',
2016-02-06 19:41:29 +01:00
},
);