Revision: 21004 http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21004 Author: sigurdne Date: 2010-01-30 17:00:26 +0000 (Sat, 30 Jan 2010) Log Message: ----------- Improvement: optional IMAP/ORACLE/MSSQL support on homebrew 4565:4680
Modified Paths: -------------- people/sigurdne/modules/property/trunk/tutorials/property/examples/install.apache.sh Modified: people/sigurdne/modules/property/trunk/tutorials/property/examples/install.apache.sh =================================================================== --- people/sigurdne/modules/property/trunk/tutorials/property/examples/install.apache.sh 2010-01-30 16:57:12 UTC (rev 21003) +++ people/sigurdne/modules/property/trunk/tutorials/property/examples/install.apache.sh 2010-01-30 17:00:26 UTC (rev 21004) @@ -63,16 +63,51 @@ # * @var string EACCELERATOR, EACCELERATORTAR # * Download: http://eaccelerator.net/ # */ -EACCELERATORTAR="eaccelerator-0.9.6-rc1.tar.bz2" -EACCELERATOR="eaccelerator-0.9.6-rc1" -$PHP_PREFIX = "/usr/local" +EACCELERATORTAR="eaccelerator-svn379.tar.gz" +EACCELERATOR="eaccelerator-svn379" +PHP_PREFIX="/usr/local" # APC as Alternative: # Download: http://pecl.php.net/package/APC # APCTAR="APC-3.1.2.tgz" # APC="APC-3.1.2" +#/** +# * Oracle PDO-Support +# * Download: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html +# */ +ORACLETAR="instantclient-basic-linux32-11.2.0.1.zip" +ORACLE="instantclient_11_2" +ORACLEDEVELTAR="instantclient-sdk-linux32-11.2.0.1.zip" + +ORACLE_PDO="" + +# include the oracle pdo-driver in the install +function include_oracle() +{ + echo -n "Delete /opt/$2 ? answere yes or no: " + + read svar + + if [ $svar = "yes" ];then + echo "Ok - lets try" + rm /opt/$2 -rf + else + echo "Skipp delete old" + fi + + unzip $1 + mv $2 /opt/ + unzip $ORACLEDEVELTAR + mv $2/sdk /opt/$2/ + export ORACLE_HOME=/opt/$2/ + ln -s /opt/$2/libclntsh.so.11.1 /opt/$2/libclntsh.so + ln -s /opt/$2/libocci.so.11.1 /opt/$2/libocci.so + ln -s /opt/$2/ /opt/$2/lib +} + + # clean up from previous rm $FREETDS -rf &&\ @@ -82,30 +117,88 @@ rm $PHP -rf &&\ rm $EACCELERATOR -rf &&\ rm $APACHE -rf &&\ +rm $ORACLE -rf &&\ # perform the install -tar -xzf $FREETDSTAR &&\ +echo -n "Include Oracle-pdo? answere yes or no: " + +read svar + + +if [ $svar = "yes" ];then + echo "Ok - lets try the Oracle" + include_oracle $ORACLETAR $ORACLE $ORACLEDEVELTAR + ORACLE_PDO=" --with-oci8=instantclient,/opt/$ORACLE/ --with-pdo-oci" + echo $ORACLE_PDO + else + echo "Skipping Oracle" +fi + +# include the IMAP-support in the install +function include_imap() +{ + cd $1 &&\ + make lmd SSLTYPE=unix.nopwd IP6=4 &&\ + ln -s c-client include &&\ + mkdir lib &&\ + cd lib &&\ + ln -s ../c-client/c-client.a libc-client.a &&\ + cd ../../ +} + +echo -n "Include IMAP support? answere yes or no: " + +read svar + +IMAP_CONFIG='' + +if [ $svar = "yes" ];then + echo "Ok - lets try the IMAP" + gunzip -c $IMAPTAR | tar xf - + include_imap $IMAP + IMAP_CONFIG="--with-imap=/opt/web/$IMAP --with-imap-ssl" + echo $IMAP_CONFIG + else + echo "Skipping Oracle" +fi + +# include the MSSQL/SYBASE-support in the install +function include_mssql() +{ + cd $1 &&\ + ./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib\ + --enable-dbmfix --with-gnu-ld --enable-shared --enable-static &&\ + make &&\ + make install &&\ + touch /usr/local/freetds/include/tds.h &&\ + touch /usr/local/freetds/lib/libtds.a &&\ + cd .. +} + +echo -n "Include MSSQL support? answere yes or no: " + +read svar + +MSSQL_CONFIG='' + +if [ $svar = "yes" ];then + echo "Ok - lets try the MSSQL" + tar -xzf $FREETDSTAR + include_mssql $FREETDS + MSSQL_CONFIG="--with-sybase-ct=/usr/local/freetds" + echo $MSSQL_CONFIG + else + echo "Skipping MSSQL" +fi + + tar -xzf $LIBXMLTAR &&\ tar -xzf $LIBXSLTAR &&\ -gunzip -c $IMAPTAR | tar xf - &&\ tar -xzf $APACHETAR &&\ bunzip2 -c $PHPTAR | tar xvf -&&\ -bunzip2 -c $EACCELERATORTAR | tar xvf -&&\ -cd $FREETDS &&\ -./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib\ ---enable-dbmfix --with-gnu-ld --enable-shared --enable-static &&\ -make &&\ -make install &&\ -touch /usr/local/freetds/include/tds.h &&\ -touch /usr/local/freetds/lib/libtds.a &&\ -cd ../$IMAP &&\ -make lmd SSLTYPE=unix.nopwd IP6=4 &&\ -ln -s c-client include &&\ -mkdir lib &&\ -cd lib &&\ -ln -s ../c-client/c-client.a libc-client.a &&\ -cd ../../$LIBXML &&\ +tar -xzf $EACCELERATORTAR &&\ +cd $LIBXML &&\ ./configure &&\ make &&\ make install &&\ @@ -135,9 +228,9 @@ make install &&\ cd ../$PHP &&\ export LDFLAGS=-lstdc++ &&\ -./configure --with-imap=/opt/web/$IMAP\ - --with-imap-ssl\ - --with-sybase-ct=/usr/local/freetds\ +./configure \ + $IMAP_CONFIG\ + $MSSQL_CONFIG\ --with-apxs2=/usr/local/apache2/bin/apxs\ --with-xsl\ --with-zlib\ @@ -162,7 +255,8 @@ --enable-mbstring\ --with-mcrypt\ --enable-soap\ - --with-xmlrpc &&\ + --with-xmlrpc \ + $ORACLE_PDO &&\ make &&\ make install &&\ cd ../$EACCELERATOR &&\ _______________________________________________ phpGroupWare-cvs mailing list phpGroupWare-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs