Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build setups for apache 2.2.22 and new mod_perl.
  • Loading branch information
root committed Jun 21, 2012
1 parent f03b009 commit dcbfdf0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
24 changes: 18 additions & 6 deletions build.sh
Expand Up @@ -152,7 +152,7 @@ if [ -d /data ]; then

# --cache-file speeds up configure a lot
rm /tmp/Configure.cache
export CFG_CACHE="" #"--cache-file=/tmp/Configure.cache"
export CFG_CACHE="" #"--cache-file=/tmp/Configure.cache"
if [ "$WRE_IA64" == 1 ]; then
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
Expand Down Expand Up @@ -394,13 +394,21 @@ buildApache(){
cd source

# apache
cd httpd-2.4.2
cd httpd-2.2.22
if [ "$WRE_CLEAN" == 1 ]; then
$WRE_MAKE distclean
$WRE_MAKE clean
rm -Rf server/exports.c
rm -Rf server/export_files
#rm -Rf server/exports.c
#rm -Rf server/export_files
fi
SAVED_CPPFLAGS=$CPPFLAGS
CPPFLAGS=""
SAVED_CFLAGS=$CFLAGS
CFLAGS=""
SAVED_LIBS=$LIBS
LIBS=""
SAVED_LDFLAGS=$LDFLAGS
LDFLAGS=""
./configure $CFG_CACHE --prefix=$PREFIX --with-included-apr --with-z=$PREFIX \
--sysconfdir=$WRE_ROOT/etc --localstatedir=$WRE_ROOT/var \
--enable-rewrite=shared --enable-deflate=shared --enable-ssl \
Expand All @@ -419,14 +427,18 @@ buildApache(){
rm -f $WRE_ROOT/etc/httpd.conf
rm -f $WRE_ROOT/etc/ssl-std.conf
rm -f $WRE_ROOT/etc/ssl.conf
CFLAGS=$SAVED_CFLAGS
CPPFLAGS=$SAVED_CPPFLAGS
LDFLAGS=$SAVED_LDFLAGS
LIBS=$SAVED_LIBS

# modperl
cd ../mod_perl-2.0.6
cd ../mod_perl-2.0.7
if [ "$WRE_CLEAN" == 1 ]; then
$WRE_MAKE distclean
$WRE_MAKE clean
fi
perl Makefile.PL MP_APXS="$PREFIX/bin/apxs"; checkError $? "mod_perl Configure"
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"
$WRE_MAKE; checkError $? "mod_perl make"
$WRE_MAKE install; checkError $? "mod_perl make install"
cd ..
Expand Down
6 changes: 3 additions & 3 deletions getsource.sh
Expand Up @@ -76,9 +76,9 @@ wget -t 4 -nv http://www.apache.org/dist/httpd/httpd-2.2.22.tar.gz
tar zxf httpd-2.2.22.tar.gz

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

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

0 comments on commit dcbfdf0

Please sign in to comment.