diff options
author | rh <rh@pkgsrc.org> | 1999-12-02 20:46:35 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 1999-12-02 20:46:35 +0000 |
commit | 69e2c485f34fd4bc1f341673ae48c60f72670eab (patch) | |
tree | 118b5e4e7749e7bc084ada2fdb414202370be069 /www/ap-Embperl/patches/patch-aa | |
parent | 84c595b6fb99805b9c4546e8f8fa71d5d45d4af8 (diff) | |
download | pkgsrc-69e2c485f34fd4bc1f341673ae48c60f72670eab.tar.gz |
Import of ap-Embperl-1.2.0, an Apache Perl5 library for embedding perl in
HTML documents. This package was submitted by Havard Eidnes in pkg/8936
(with a few modifications by me) -- thanks!
Diffstat (limited to 'www/ap-Embperl/patches/patch-aa')
-rw-r--r-- | www/ap-Embperl/patches/patch-aa | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/www/ap-Embperl/patches/patch-aa b/www/ap-Embperl/patches/patch-aa new file mode 100644 index 00000000000..291fecf5f35 --- /dev/null +++ b/www/ap-Embperl/patches/patch-aa @@ -0,0 +1,52 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ + +Our perl_module is named mod_perl.so, not libperl.so +Get rid of annoying interaction, partly by commenting out some code, +partly by adding support for a few environment variables. + +--- Makefile.PL.dist Wed Nov 17 07:40:47 1999 ++++ Makefile.PL Thu Dec 2 19:38:08 1999 +@@ -24,10 +24,10 @@ + %neededmodules = + ( + 'mod_perl.c' => { name => 'perl_module', +- path => ['$apache_src/modules/perl/libperl.so', '$EPBINDIR/modules/libperl.so'], ++ path => ['$apache_src/modules/perl/mod_perl.so', '$EPBINDIR/modules/mod_perl.so'], + win32path => ['$EPBINDIR/modules/apachemoduleperl.dll'], + win32path => ['$mpdll'], +- file => 'libperl.so', ++ file => 'mod_perl.so', + win32file => 'apachemoduleperl.dll', + }, + 'mod_dir.c' => { name => 'dir_module', +@@ -328,7 +328,8 @@ + + if (-e "$apache_src/httpd.h" || -e "$apache_src/main/httpd.h" || -e "$apache_src/include/httpd.h") + { +- $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ # $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ $b = 1; + } + } + +@@ -519,7 +520,8 @@ + $EPGROUP = GetString ("Group to run httpd", $EPGROUP) ; + } + +- $EPHTTPD = "$apache_src/httpd" ; ++ $EPHTTPD = $ENV{APACHE}; ++ $EPHTTPD = "$apache_src/httpd" if (! -e $EPHTTPD); + $EPHTTPD = "$apache_src/httpsd" if (!-e $EPHTTPD && -e "$apache_src/httpsd") ; + + if (!-e $EPHTTPD) +@@ -565,7 +567,9 @@ + $EPBINDIR = dirname ($EPHTTPD) ; + $EPMODPERL = '' ; + +- $addmodpath = '' ; ++ # $addmodpath = '' ; ++ $addmodpath = $ENV{APACHE_MODULES}; ++ $addmodpath = '' if (! -d $addmodpath); + while (($mod, $opt) = each %neededmodules) + { + if (!grep (/$mod/, @modules)) |