X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Fvellumweb-build;h=01eb92101d228caefb76718cfa0c5e58dfba698b;hp=a8caad2f2e16e6a3c428f5d380af9520cd54a928;hb=a859f46406df67ca23459083b9ebabae49ac5692;hpb=d57513f26219ba7cb7701ee3136b1a60d205a6a5 diff --git a/bin/vellumweb-build b/bin/vellumweb-build index a8caad2..01eb921 100755 --- a/bin/vellumweb-build +++ b/bin/vellumweb-build @@ -5,12 +5,13 @@ arch=$HOME/arch prefix=/usr/local/apache pkgs=" - httpd=apache_1.3.27 - openssl=openssl-0.9.6g - modssl=mod_ssl-2.8.11-1.3.27 - php=php-4.2.3 - modperl=mod_perl-1.27 + httpd=apache_1.3.31 + openssl=openssl-0.9.7d + modssl=mod_ssl-2.8.19-1.3.31 + php=php-4.3.6 + modperl=mod_perl-1.29 " +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 @@ -55,11 +57,16 @@ pushd $php --with-mysql`d=/usr/local/mysql && test -d $d && echo =$d` \ --enable-track-vars \ --enable-memory-limit=yes \ - --enable-debug=no + --enable-debug=no \ + --with-gd \ + --with-zlib-dir=/usr/lib \ + --with-jpeg-dir=/usr/lib \ + --with-iconv make 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,17 +74,22 @@ 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 \ - --enable-module=auth_anon + --enable-module=auth_anon \ + --enable-module=proxy make make install popd