Skip to content

Commit dcbfdf0

Browse files
author
root
committedJun 21, 2012
Build setups for apache 2.2.22 and new mod_perl.
1 parent f03b009 commit dcbfdf0

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed
 

‎build.sh

+18-6
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ if [ -d /data ]; then
152152

153153
# --cache-file speeds up configure a lot
154154
rm /tmp/Configure.cache
155-
export CFG_CACHE="" #"--cache-file=/tmp/Configure.cache"
155+
export CFG_CACHE="" #"--cache-file=/tmp/Configure.cache"
156156
if [ "$WRE_IA64" == 1 ]; then
157157
export CFLAGS="$CFLAGS -fPIC"
158158
export CXXFLAGS="$CXXFLAGS -fPIC"
@@ -394,13 +394,21 @@ buildApache(){
394394
cd source
395395

396396
# apache
397-
cd httpd-2.4.2
397+
cd httpd-2.2.22
398398
if [ "$WRE_CLEAN" == 1 ]; then
399399
$WRE_MAKE distclean
400400
$WRE_MAKE clean
401-
rm -Rf server/exports.c
402-
rm -Rf server/export_files
401+
#rm -Rf server/exports.c
402+
#rm -Rf server/export_files
403403
fi
404+
SAVED_CPPFLAGS=$CPPFLAGS
405+
CPPFLAGS=""
406+
SAVED_CFLAGS=$CFLAGS
407+
CFLAGS=""
408+
SAVED_LIBS=$LIBS
409+
LIBS=""
410+
SAVED_LDFLAGS=$LDFLAGS
411+
LDFLAGS=""
404412
./configure $CFG_CACHE --prefix=$PREFIX --with-included-apr --with-z=$PREFIX \
405413
--sysconfdir=$WRE_ROOT/etc --localstatedir=$WRE_ROOT/var \
406414
--enable-rewrite=shared --enable-deflate=shared --enable-ssl \
@@ -419,14 +427,18 @@ buildApache(){
419427
rm -f $WRE_ROOT/etc/httpd.conf
420428
rm -f $WRE_ROOT/etc/ssl-std.conf
421429
rm -f $WRE_ROOT/etc/ssl.conf
430+
CFLAGS=$SAVED_CFLAGS
431+
CPPFLAGS=$SAVED_CPPFLAGS
432+
LDFLAGS=$SAVED_LDFLAGS
433+
LIBS=$SAVED_LIBS
422434

423435
# modperl
424-
cd ../mod_perl-2.0.6
436+
cd ../mod_perl-2.0.7
425437
if [ "$WRE_CLEAN" == 1 ]; then
426438
$WRE_MAKE distclean
427439
$WRE_MAKE clean
428440
fi
429-
perl Makefile.PL MP_APXS="$PREFIX/bin/apxs"; checkError $? "mod_perl Configure"
441+
perl Makefile.PL MP_APR_CONFIG="$PREFIX/bin/apr-1-config" MP_APU_CONFIG="$PREFIX/bin/apu-1-config" MP_APXS="$PREFIX/bin/apxs"; checkError $? "mod_perl Configure"
430442
$WRE_MAKE; checkError $? "mod_perl make"
431443
$WRE_MAKE install; checkError $? "mod_perl make install"
432444
cd ..

‎getsource.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ wget -t 4 -nv http://www.apache.org/dist/httpd/httpd-2.2.22.tar.gz
7676
tar zxf httpd-2.2.22.tar.gz
7777

7878
# Apache runtime support libraries http://httpd.apache.org/
79-
wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-1.4.6.tar.bz2
80-
wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-util-1.4.1.tar.bz2
81-
wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-iconv-1.2.1.tar.bz2
79+
#wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-1.4.6.tar.bz2
80+
#wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-util-1.4.1.tar.bz2
81+
#wget -t 4 -nv http://apache.mirrors.tds.net//apr/apr-iconv-1.2.1.tar.bz2
8282

8383
##Need to be unpacked inside of the httpd build directory, accoring to INSTALL
8484
cd httpd-2.2.22/srclib

0 commit comments

Comments
 (0)
Please sign in to comment.