pkgsrc-wip/p5-MasonX-Apache2Handler/patches/patch-aa
Thomas Klausner 3f30f6ae5c Initial import of p5-MasonX-Apache2Handler, provided by Carl Brewer
in PR 27497.
Very slightly pkglinted before import.

MasonX::Apache2Handler is experimental (beta) and should only be
used in a test environment. The MasonX::Apache2Handler module itself
is a simple clone of Mason's HTML::Mason::ApacheHandler, and, as
such, seems to be solid. However the components used, mod_perl 2
and libapreq2, are currently under development.
2005-03-15 16:53:58 +00:00

13 lines
638 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2005/03/15 16:53:59 thomasklausner Exp $
--- lib/MasonX/Apache2Handler.pm Tue Oct 26 16:37:57 2004
+++ lib/MasonX/Apache2Handler.pm.new
@@ -615,7 +615,7 @@ sub new
if (exists $allowed_params->{data_dir} and not exists $params{data_dir})
{
# constructs path to <server root>/mason
- my $def = $defaults{data_dir} = Apache->server->server_root_relative('mason');
+ my $def = $defaults{data_dir} = File::Spec->catfile(Apache::ServerUtil::server_root, 'mason');
param_error "Default data_dir (MasonDataDir) '$def' must be an absolute path"
unless File::Spec->file_name_is_absolute($def);