gunnar: server/horde external-horde-cvs.sh,NONE,1.1
cvs at kolab.org
cvs at kolab.org
Thu Mar 13 07:22:55 CET 2008
Author: gunnar
Update of /kolabrepository/server/horde
In directory doto:/tmp/cvs-serv32004
Added Files:
external-horde-cvs.sh
Log Message:
A new script to install Horde from CVS on an external web server.
--- NEW FILE: external-horde-cvs.sh ---
#!/bin/sh
DATE="Thu Mar 13 06:21:54 UTC 2008"
PATCHES="
framework/HK-GW-Kolab_history_driver.patch
framework/HK-GW-Kolab_syncml_driver.patch
framework/HK-GW-Kolab_syncml_driver_2.patch
framework/HK-GW-Fix_Prefs_for_Ingo.patch
framework/HK-GW-Fbview_xfb_concept.patch
kronolith/HK-SB-Fbview_save_attendees.patch
kronolith/HK-SB-Fbview_extra_params.patch
kronolith/HK-GW-Fbview_relevance.patch
kronolith/HK-GW-Fbview_xfb_access.patch
turba/HK-GW-Fix_share_id_change.patch
turba/HK-GW-Fix_editing_contacts.patch
horde/HK-GW-Config.patch
imp/HK-GW-Config.patch
ingo/HK-GW-Config.patch
mnemo/HK-GW-Config.patch
nag/HK-GW-Config.patch
turba/HK-GW-Config.patch
kronolith/HK-GW-Config.patch
dimp/HK-GW-Config.patch
mimp/HK-GW-Config.patch
passwd/HK-GW-Config.patch
"
PHP_INCLUDE=""
echo ""
echo "Make sure you have the \"Tree\" package from PEAR installed"
echo "before running the script!"
echo ""
usage() {
echo "Usage:"
echo " $0 (install Horde from CVS)"
echo
echo "Options:"
echo
echo " -p (Absolute path to the PEAR package repository)"
}
while getopts p: ARGS; do
case $ARGS in
h) # Display help
usage
exit 0
;;
p) # What should be installed?
PHP_INCLUDE="-d include_path=${OPTARG}"
;;
*) # Unknown Option
echo
usage
exit 1
;;
esac
done
if [ ! -d patches ]; then
mkdir patches
cd patches
for PATCH in ${PATCHES}
do
mkdir -p ${PATCH/\/*/}
wget -q http://hg.pardus.de/cgi-bin/hg.cgi/horde/HORDE_CVS/raw-file/tip/${PATCH} -O ${PATCH}
done
cd ..
fi
export CVSROOT=:pserver:cvsread at anoncvs.horde.org:/repository
echo "Please enter 'horde' as password."
cvs login
if [ ! -d horde ]; then
cvs co -D "${DATE}" horde
for PATCH in ${PATCHES}
do
if [ -z "${PATCH/horde*/}" ]; then
patch -p1 < patches/${PATCH}
fi
done
fi
if [ ! -d framework ]; then
cvs co -D "${DATE}" framework
for PATCH in ${PATCHES}
do
if [ -z "${PATCH/framework*/}" ]; then
patch -p1 < patches/${PATCH}
fi
done
cd framework
php -q ${PHP_INCLUDE} devtools/horde-fw-symlinks.php --copy --src `pwd` --dest `pwd`/../horde/lib/
cd ..
fi
cd horde
APPS="imp kronolith ingo dimp mimp turba passwd mnemo nag"
for APP in ${APPS}
do
if [ ! -d ${APP} ]; then
cvs co -D "${DATE}" ${APP}
for PATCH in "${PATCHES}"
do
if [ -z "${PATCH/${APP}*/}" ]; then
patch -p1 < ../patches/${PATCH}
fi
done
fi
done
cd ..
# Instruct the user
echo ""
echo ""
echo "================================================================="
echo " FINISHED"
echo "================================================================="
echo ""
echo ""
echo "All that is left to do is to configure the connection parameters"
echo "of your Kolab server and to test the installation."
echo ""
echo ""
echo "Specify the server"
echo "------------------"
echo ""
echo "You will have to manually edit both files horde/config/kolab.php"
echo "and horde/kronolith/config/kolab.php. Add the specific details"
echo "for your Kolab server instead of the variables embedded in the @"
echo "signs (e.g. rewrite @@@fqdnhostname@@@ to kolab.mydomain.com)."
echo ""
echo "You should also ensure that you set the correct cookie path of your"
echo "installation in horde/config/conf.php"
echo ""
echo "Test the installation"
echo "---------------------"
echo ""
echo "Assuming that the Horde installation is now accessible under"
echo "'horde' you should test the installation by looking at the URL"
echo " http://my-domain.com/horde/test.php. You should do the same for"
echo "the applications imp, ingo, mnemo, nag, kronolith, passwd, and"
echo "turba. The test script for each application can be found in a"
echo "subdirectory with this name"
echo "(e.g. http://my-domain.com/horde/imp/test.php for imp)."
echo ""
echo "There should be no error messages or red warnings. If there are,"
echo "you need to identify the source of the error and fix it. You can"
echo "remove the test.php scripts afterwards."
echo ""
echo "Often there will be PEAR packages missing or Horde does not find"
echo "your PEAR installation. If PEAR is available at a non standard"
echo " location on your web server you can inform Horde about its"
echo "location by extending the include path in horde/lib/core.php:"
echo ""
echo " ini_set('include_path', dirname(__FILE__) . '/../../php/pear/'"
echo ". PATH_SEPARATOR . dirname(__FILE__) . PATH_SEPARATOR"
echo ". ini_get('include_path'));"
echo ""
echo "If all looks good, you should be able to log in at"
echo "http://my-domain.com/horde/"
More information about the commits
mailing list