gunnar: server/horde external-horde.sh,1.3,1.4

cvs at kolab.org cvs at kolab.org
Tue Nov 20 07:48:36 CET 2007


Author: gunnar

Update of /kolabrepository/server/horde
In directory doto:/tmp/cvs-serv433

Modified Files:
	external-horde.sh 
Log Message:
Updated the external Horde installation script with the last set of patches. Some restructuring and improvements.

Index: external-horde.sh
===================================================================
RCS file: /kolabrepository/server/horde/external-horde.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- external-horde.sh	1 Nov 2007 11:05:54 -0000	1.3
+++ external-horde.sh	20 Nov 2007 06:48:33 -0000	1.4
@@ -1,79 +1,129 @@
 #!/bin/sh
 
-wget ftp://ftp.horde.org/pub/horde/horde-3.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/imp/imp-h3-4.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/ingo/ingo-h3-1.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/passwd/passwd-h3-3.0.1.tar.gz
-wget ftp://ftp.horde.org/pub/kronolith/kronolith-h3-2.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/mnemo/mnemo-h3-2.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/nag/nag-h3-2.2-alpha.tar.gz
-wget ftp://ftp.horde.org/pub/turba/turba-h3-2.2-alpha.tar.gz
+# The package versions we will be using
 
-tar xfz horde-3.2-alpha.tar.gz
-tar xfz imp-h3-4.2-alpha.tar.gz
-tar xfz ingo-h3-1.2-alpha.tar.gz
-tar xfz passwd-h3-3.0.1.tar.gz
-tar xfz kronolith-h3-2.2-alpha.tar.gz
-tar xfz mnemo-h3-2.2-alpha.tar.gz
-tar xfz nag-h3-2.2-alpha.tar.gz
-tar xfz turba-h3-2.2-alpha.tar.gz
+HORDE_PKG=horde-3.2-alpha
+IMP_PKG=imp-h3-4.2-alpha
+INGO_PKG=ingo-h3-1.2-alpha
+PASSWD_PKG=passwd-h3-3.0.1
+KRONOLITH_PKG=kronolith-h3-2.2-alpha
+MNEMO_PKG=mnemo-h3-2.2-alpha
+NAG_PKG=nag-h3-2.2-alpha
+TURBA_PKG=turba-h3-2.2-alpha
 
-mv imp-h3-4.2-alpha horde-3.2-alpha/imp
-mv ingo-h3-1.2-alpha horde-3.2-alpha/ingo
-mv passwd-h3-3.0.1 horde-3.2-alpha/passwd
-mv kronolith-h3-2.2-alpha horde-3.2-alpha/kronolith
-mv mnemo-h3-2.2-alpha horde-3.2-alpha/mnemo
-mv nag-h3-2.2-alpha horde-3.2-alpha/nag
-mv turba-h3-2.2-alpha horde-3.2-alpha/turba
-mv horde-3.2-alpha horde
 
-for PATCH in HK-GW-framework_3.2_ALPHA-Fix_Prefs_for_Ingo.patch \
-             HK-GW-framework_3.2_ALPHA-Fix_annotation_use.patch \
-             HK-GW-framework_3.2_ALPHA-Fix_the_share_params.patch \
-             HK-GW-framework_3.2_ALPHA-Kolab_issue_2144.patch \
-             HK-GW-framework_3.2_ALPHA-Share_caching.patch \
-             HK-GW-kronolith_2.2-Fix_create_new_event.patch \
-             HK-GW-kronolith_2.2-Fix_share_right_editing.patch \
-             HK-GW-mnemo_2.2_ALPHA-Edit_share_rights.patch \
-             HK-GW-nag_2.2_ALPHA-Fix_share_right_editing.patch \
-             HK-GW-turba_2.2-Changes_after_ALPHA.patch \
-             HK-GW-turba_2.2-Fix_address_book_deletion_1.patch \
-             HK-GW-turba_2.2-Fix_editing_contacts.patch \
-             HK-GW-turba_2.2-Fix_notice_on_addressbook_creation.patch \
-             HK-GW-turba_2.2-Fix_share_id_change.patch \
-             HK-GW-turba_2.2-Ldap_read_only_fix.patch \
-             HK-UV-kronolith_2.2-Fix_list_events.patch;
+# The patches we will be using
+
+FRAMEWORK_PATCHES="HK-GW-framework_3.2_ALPHA-Fix_Prefs_for_Ingo.patch
+                   HK-GW-framework_3.2_ALPHA-Fix_annotation_use.patch
+                   HK-GW-framework_3.2_ALPHA-Fix_the_share_params.patch
+                   HK-GW-framework_3.2_ALPHA-Kolab_issue_2144.patch
+                   HK-GW-framework_3.2_ALPHA-Share_caching.patch
+                   HK-GW-framework_3.2_ALPHA-Kolab_issue_2138.patch
+                   HK-GW-framework_3.2_ALPHA-Fix_contact_XML.patch"
+
+HORDE_PATCHES="HK-GW-horde_3.2_ALPHA-Deleting_categories.patch"             
+
+APPLICATION_PATCHES="HK-GW-kronolith_2.2-Fix_create_new_event.patch
+                     HK-GW-kronolith_2.2-Fix_share_right_editing.patch
+                     HK-GW-kronolith_2.2_ALPHA-Kolab_issue_2138.patch
+                     HK-GW-mnemo_2.2_ALPHA-Edit_share_rights.patch
+                     HK-GW-nag_2.2_ALPHA-Fix_share_right_editing.patch
+                     HK-GW-turba_2.2-Changes_after_ALPHA.patch
+                     HK-GW-turba_2.2-Fix_address_book_deletion_1.patch
+                     HK-GW-turba_2.2-Fix_editing_contacts.patch
+                     HK-GW-turba_2.2-Fix_notice_on_addressbook_creation.patch
+                     HK-GW-turba_2.2-Fix_share_id_change.patch
+                     HK-GW-turba_2.2-Ldap_read_only_fix.patch
+                     HK-UV-kronolith_2.2-Fix_list_events.patch"
+
+
+# The configuration files prepared for Kolab
+
+CONFIG_FILES="horde/conf.php
+              horde/hooks.php
+              horde/registry.php
+              horde-imp/conf.php
+              horde-imp/servers.php
+              horde-ingo/conf.php
+              horde-ingo/backends.php
+              horde-passwd/conf.php
+              horde-passwd/backends.php
+              horde-kronolith/conf.php
+              horde-mnemo/conf.php
+              horde-nag/conf.php
+              horde-turba/conf.php
+              horde-turba/attributes.php
+              horde-turba/sources.php"
+
+
+# Download the packages specified above
+
+wget ftp://ftp.horde.org/pub/horde/${HORDE_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/imp/${IMP_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/ingo/${INGO_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/passwd/${PASSWD_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/kronolith/${KRONOLITH_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/mnemo/${MNEMO_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/nag/${NAG_PKG}.tar.gz
+wget ftp://ftp.horde.org/pub/turba/${TURBA_PKG}.tar.gz
+
+
+# Extract the archives
+
+tar xfz ${HORDE_PKG}.tar.gz
+tar xfz ${IMP_PKG}.tar.gz
+tar xfz ${INGO_PKG}.tar.gz
+tar xfz ${PASSWD_PKG}.tar.gz
+tar xfz ${KRONOLITH_PKG}.tar.gz
+tar xfz ${MNEMO_PKG}.tar.gz
+tar xfz ${NAG_PKG}.tar.gz
+tar xfz ${TURBA_PKG}.tar.gz
+
+
+# Move the sources into the final install locations
+
+mv ${HORDE_PKG} horde
+mv ${IMP_PKG} horde/imp
+mv ${INGO_PKG} horde/ingo
+mv ${PASSWD_PKG} horde/passwd
+mv ${KRONOLITH_PKG} horde/kronolith
+mv ${MNEMO_PKG} horde/mnemo
+mv ${NAG_PKG} horde/nag
+mv ${TURBA_PKG} horde/turba
+
+
+# Fetch the required patches
+
+for PATCH in $FRAMEWORK_PATCHES $APPLICATION_PATCHES;
 do
   wget http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/horde/$PATCH;
 done
 
+
+# Apply the patches
+
+for PATCH in $HORDE_PATCHES;
+do
+  patch -p1 < $PATCH;
+done
+
 cd horde
-for PATCH in HK-GW-kronolith_2.2-Fix_create_new_event.patch \
-             HK-GW-kronolith_2.2-Fix_share_right_editing.patch \
-             HK-GW-mnemo_2.2_ALPHA-Edit_share_rights.patch \
-             HK-GW-nag_2.2_ALPHA-Fix_share_right_editing.patch \
-             HK-GW-turba_2.2-Changes_after_ALPHA.patch \
-             HK-GW-turba_2.2-Fix_address_book_deletion_1.patch \
-             HK-GW-turba_2.2-Fix_editing_contacts.patch \
-             HK-GW-turba_2.2-Fix_notice_on_addressbook_creation.patch \
-             HK-GW-turba_2.2-Fix_share_id_change.patch \
-             HK-GW-turba_2.2-Ldap_read_only_fix.patch \
-             HK-UV-kronolith_2.2-Fix_list_events.patch;
+for PATCH in $APPLICATION_PATCHES;
 do
   patch -p1 < ../$PATCH;
 done
 
 cd lib/Horde
-for PATCH in HK-GW-framework_3.2_ALPHA-Fix_Prefs_for_Ingo.patch \
-             HK-GW-framework_3.2_ALPHA-Fix_annotation_use.patch \
-             HK-GW-framework_3.2_ALPHA-Share_caching.patch \
-             HK-GW-framework_3.2_ALPHA-Kolab_issue_2144.patch \
-             HK-GW-framework_3.2_ALPHA-Fix_the_share_params.patch;
+for PATCH in $FRAMEWORK_PATCHES;
 do
   patch -p3 < ../../../$PATCH;
 done
 cd ../../..
 
+
+# Prepare the default configuration
+
 cd horde/config
 for fl in *.dist;
 do
@@ -91,20 +141,10 @@
 done
 cd ..
 
-for conf in horde/conf.php \
-            horde/hooks.php \
-            horde/registry.php \
-            horde-imp/conf.php \
-            horde-imp/servers.php \
-            horde-ingo/conf.php \
-            horde-ingo/backends.php \
-            horde-passwd/conf.php \
-            horde-passwd/backends.php \
-            horde-kronolith/conf.php \
-            horde-mnemo/conf.php \
-            horde-nag/conf.php \
-            horde-turba/conf.php \
-            horde-turba/sources.php;
+
+# Download and apply the Kolab specific configuration files
+
+for conf in $CONFIG_FILES;
 do
   wget http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/horde/$conf;
   export dest=${conf/\//\/config\/};
@@ -112,8 +152,60 @@
   mv $file ${dest/-/\/};
 done
 
+
+# Check out the Kolab server specific configurations
+
 wget http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/horde/horde/horde-kolab-conf.template
 cat horde-kolab-conf.template | sed -e '1,5d' > horde/config/kolab.php
 wget http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/horde/horde-kronolith/horde-kronolith-kolab-conf.template
 cat horde-kronolith-kolab-conf.template | sed -e '1,5d' > horde/kronolith/config/kolab.php
 
+
+# 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 ""
+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