1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
use ExtUtils::MakeMaker;
use lib 't/lib';
use Apache::test;
my %params = Apache::test->get_test_params();
chomp (my $cwd = `pwd`);
Apache::test->write_httpd_conf
(%params,
include => join '', <DATA>);
*MY::test = sub { Apache::test->MM_test(%params) };
my $module = 'Apache::SSI';
my ($name, $dir);
($name = $module) =~ s/.*::(\w+)/$1.pm/;
($dir = $module) =~ s/::/-/g;
WriteMakefile
(
'NAME' => $module,
'VERSION_FROM' => $name, # finds $VERSION
'dist' => { COMPRESS=>"gzip",
SUFFIX=>"gz",
PREOP=>('rm -f README; '.
"pod2text -80 < $name > README; ".
"cp -f README $dir-\$(VERSION); "
),
},
'clean' => {FILES => "t/httpd.conf t/error_log t/httpd"},
'PREREQ_PM' => {
'Apache::Constants' => '1.00',
'HTML::SimpleParse' => '0.06',
}
);
__DATA__
AddType text/html .html
PerlModule Apache::SSI
PerlModule Apache::Kid
PerlModule Apache::Status
<Files ~ "\.ssi$">
SetHandler perl-script
PerlHandler Apache::SSI
</Files>
<Files ~ "\.ssik$">
SetHandler perl-script
PerlHandler Apache::Kid
</Files>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
</Location>
|