use ExtUtils::MakeMaker;
+use 5.014000;
WriteMakefile(
NAME => 'Apache2::Authen::Passphrase',
LICENSE => 'perl',
EXE_FILES => [ 'aap-passwd' ],
PREREQ_PM => {
- Apache2::RequestRec => 0,
- Apache2::Access => 0,
- Apache2::Const => 0,
- Authen::Passphrase => 0,
- Authen::Passphrase::BlowfishCrypt => 0,
- IO::Prompter => 0,
- YAML::Any => 0,
+ qw/Authen::Passphrase 0
+ Authen::Passphrase::BlowfishCrypt 0
+ IO::Prompter 0
+ YAML::Any 0/,
},
+ META_MERGE => {
+ recommends => {
+ qw/Apache2::RequestRec 0
+ Apache2::Access 0
+ Apache2::Const 0/,
+ }
+ }
);
use strict;
use warnings;
use parent qw/Exporter/;
+use subs qw/OK HTTP_UNAUTHORIZED/;
use constant +{
USER_REGEX => qr/^\w{2,20}$/pa,
BAD_PASSWORD => "bad-password\n",
};
-use Apache2::RequestRec;
-use Apache2::Access;
-use Apache2::Const qw/OK HTTP_UNAUTHORIZED/;
+use if $ENV{MOD_PERL}, 'Apache2::RequestRec';
+use if $ENV{MOD_PERL}, 'Apache2::Access';
+use if $ENV{MOD_PERL}, 'Apache2::Const' => qw/OK HTTP_UNAUTHORIZED/;
use Authen::Passphrase;
use Authen::Passphrase::BlowfishCrypt;
use YAML::Any qw/LoadFile DumpFile/;