arch=$HOME/arch
prefix=/usr/local/apache
pkgs="
- httpd=apache_1.3.26
- openssl=openssl-0.9.6e
- modssl=mod_ssl-2.8.10-1.3.26
- php=php-4.2.2
- modperl=mod_perl-1.27
+ httpd=apache_1.3.29
+ openssl=openssl-0.9.7d
+ modssl=mod_ssl-2.8.16-1.3.29
+ php=php-4.3.4
+ modperl=mod_perl-1.29
"
+with_perl=false
export CFLAGS="-ggdb3"
#-----------------------------------------------------------------------------
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
--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
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
# 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