From 63a8b76e0ce51e542517511d6149645b956c9de4 Mon Sep 17 00:00:00 2001 From: short <> Date: Fri, 4 Oct 2002 18:21:45 +0000 Subject: [PATCH] mod_perl is now optional by $with_perl (default=without) - use mod_perl in non-privileged user daemons/inetd by mod_rewrite pass-thrus --- bin/vellumweb-build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/vellumweb-build b/bin/vellumweb-build index a8caad2..ed8e916 100755 --- a/bin/vellumweb-build +++ b/bin/vellumweb-build @@ -11,6 +11,7 @@ pkgs=" php=php-4.2.3 modperl=mod_perl-1.27 " +with_perl=false export CFLAGS="-ggdb3" #----------------------------------------------------------------------------- @@ -21,6 +22,7 @@ trap 'if $do_failed;then echo "FAILED FAILED FAILED!";fi' EXIT set -e eval "$pkgs" echo "$pkgs"|sed -n 's/=/ /p'|while read -r pkg pkgb;do + ! $with_perl && test $pkg = modperl && continue if test -f $arch/$pkgb.tar.gz ;then pkgarchext=.tar.gz ;z=z elif test -f $arch/$pkgb.tgz ;then pkgarchext=.tgz ;z=z elif test -f $arch/$pkgb.tar.bz2;then pkgarchext=.tar.bz2;z=j @@ -60,6 +62,7 @@ pushd $php make install popd +if ! $with_perl;then pushd $modperl perl Makefile.PL APACHE_SRC=../$httpd DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 \ PERL_DEBUG=1 @@ -67,13 +70,17 @@ pushd $modperl # make test # requires running httpd! make install UNINST=1 popd +fi pushd $httpd OPTIM="$CFLAGS" SSL_BASE="$PWD/../$openssl" ./configure --prefix=$prefix \ --enable-module=ssl \ --activate-module=src/modules/php4/libphp4.a \ - --activate-module=src/modules/perl/libperl.a \ - --disable-rule=EXPAT \ + $(if $with_perl;then echo \ + --activate-module=src/modules/perl/libperl.a \ + --disable-rule=EXPAT \ + ;fi + ) \ --enable-module=so \ --enable-module=headers \ --enable-module=rewrite \ -- 1.8.3.1