/home/
svn/pkgs/svn_install.sh
|
#!/bin/sh
export SRC_HOME="/home/
svn/pkgs"
export APACHE_VERSION="2.0.59"
export APACHE_HOME="/home/
svn/apache2"
export OPEN_SSL_DIR="/home/
svn/pkgs/open_ssl_dir"
export OPEN_SSL_VERSION="0.9.8e"
export SUBVERSION_VERSION="1.4.3"
echo ">> Install open_ssl"
cd ${SRC_HOME}
tar xvzf openssl-${OPEN_SSL_VERSION}.tar.gz
cd openssl-${OPEN_SSL_VERSION}
./config --prefix=${SRC_HOME} --openssldir=${OPEN_SSL_DIR}
make
make install
echo ">> Install Apache2"
cd ${SRC_HOME}
tar zxf httpd-${APACHE_VERSION}.tar.gz
cd httpd-${APACHE_VERSION}
./configure --prefix=${APACHE_HOME} --enable-suexec /
--enable-so --with-suexec-caller=bin /
--enable-ssl --with-ssl=${OPEN_SSL_DIR} --enable-cache /
--enable-ext-filter --with-z=/usr/include --enable-dav /
--with-layout=Apache --enable-headers=shared /
--enable-auth --enable-alias --enable-so --enable-proxy=shared /
--enable-proxy-http=shared --enable-rewrite=shared --enable-deflate=shared
make
make install
echo ">> Install
SVN"
cd ${SRC_HOME}
tar zxf subversion-${SUBVERSION_VERSION}.tar.gz
cd subversion-${SUBVERSION_VERSION}
./configure --prefix=/home/
svn/subversion-${SUBVERSION_VERSION} /
--with-zlib /
--with-apr=${APACHE_HOME} /
--with-apr-util=${APACHE_HOME} /
--with-apxs=${APACHE_HOME}/bin/apxs
make
make install
|
export
SVNHOME=/home/svn
export PATH=$PATH:$
SVNHOME/apache2/bin
export PATH=$PATH:$
SVNHOME/subversion-1.4.3/bin
|