#!/bin/sh ## Install.sh -- Install Greenstone # set iscdrom variable to "yes" for a cdrom installation iscdrom="yes" # This string will always be in English so is not translated echo "Which version of Greenstone do you want installed: " echo "[E]nglish, (F)rench, (R)ussian or (S)panish?" printf "%s" "> " read gsdllang gsdllang=`echo $gsdllang | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # ------------------------------------------------------------------------------ # FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "x$gsdllang" = "xf" -o "x$gsdllang" = "xfrench" ]; then gsdllangcode=fr itext0="Greeenstone n'a pu être installé" itext1="Install.h doit être exécuté à partir du répertoire dans lequel il réside." itext2="ERREUR: n'a pu trouver l'emplacement " itext3cd="Ce script va installer Greenstone sur votre système. Vous pourriez parcourir le document Install.pdf présent dans le repertoire des documents de ce CD ROM avant de poursuivre avec l'installation." itext3web="Ce script va installer Greenstone sur votre système. Vous pourrier télécharger et consulter le Guide d'installeur de Greenstone (Install.pdf) avant de poursuivre l'installation." itext3="Notez que lorsque l'on vous demande de taper une réponse, appuyer sur \"entrer\" sélectionnera le choix par défaut (indiqué entre crochets [] à la fin de chaque question). Si vous hésitez sur l'option à choisir, choisissez l'option par défaut. Notez aussi que Install.sh affiche des informations concernant la commande exécutée sur votre système sous la forme: \"--> Install.sh: [command]\". Dans cette installation, il est supposé que vous ayez déjà un serveur Web installé sur votre système. Afin de le consulter ultérieurement, le texte affiché lors de l'installation, celui ci est enregistré dans un fichier appelé INSTALL_RECORD qui sera placé dans le répertoire à partir duquel vous avez choisi d'installer Greenstone. Continuer? [y]" itext4=" Dans quel répertoire voulez-vous installer Greenstone? Assurez-vous que ce répertoire est sur une partition avec suffisamment d'espace disque pour les options que vous avez l'intention de choisir." itext5=" * Une installation binaire pour Linux nécessite environ 70Mo." itext6=" * La compilation du code source de Greenstone nécessite environ 155Mo. * L'installation facultative des collections Greenstone de démonstration peut occuper jusqu'à 135Mo de plus (la taille de chaque collection vous sera indiquée avant l'installation). * La documentation en ligne nécessite 4Mo de plus. * L'option permettant à Greenstone d'exporter des collections \"CD exporting\" nécessite 24Mo de plus. Entrez le répertoire d'installation de Greenstone. Un répertoire gsdl sera créé dans ce répertoire." itext34=" Entrez le répertoire existant cgi pour les fichiers exécutables [/usr/local/apache/cgi-bin]" itext59=" Cette installation nécessite l'utilitaire Gnu 'make' qui n'a pu être trouvé sur cet ordinateur. Veuillez entrer le chemin d'accès vers Gnu make" itextdoccols=" La collection Greenstone de démonstration a été installée. Souhaitez-vous installer d'autres collections à partir du CD-ROM d'installation? [y]" itextdec_dls=" Sous-ensemble de la collection Bibliothèque de Développement (dls-e) - 38MB [y]" itextdec_wrdpdf=" Démonstration MSWord et PDF (wrdpdf-e) - 4MB [y]" itextdec_gsarch=" Collection des Archives de Greenstone (gsarch-e) - 9MB [y]" itextdec_cltbib=" Collection bibliographie (cltbib-e) - 9MB [y]" itextdec_cltext=" Supplément bibliographie (cltext-e) - 1MB [y]" itextdec_marc=" Exemple MARC (MARC-e) - 2MB [y]" itextdec_oai=" Démo OAI (OAI-e) - 19MB [y]" itextdec_image=" Collection d'images simple (image-e) - 1MB [y]" itextdec_authen=" Démonstration de formatage et d'authentification (authen-e) - 12MB [y]" itextdec_garish=" Version Garish de la collection de démonstration (garish) - 12MB [y]" itextdec_isis=" Exemple CDS/ISIS (isis-e) - 2MB [y]" itextdec_dspace=" Exemple DSpace (dspace-e) - 6MB [y]" # ------------------------------------------------------------------------------ # RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "x$gsdllang" = "xr" -o "x$gsdllang" = "xrussian" ]; then gsdllangcode=ru itext0="Greenstone ÎÅ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ" itext1="Install.sh ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÚÍÅÝÁÅÔÓÑ" itext2="ïûéâëá: îÅ×ÏÚÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÐÏÌÏÖÅÎÉÅ" itext3cd="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone × ÷ÁÛÕ ÓÉÓÔÅÍÕ. ðÒÉ ÖÅÌÁÎÉÉ ÷Ù ÍÏÖÅÔÅ ÐÒÏÓÍÏÔÒÅÔØ ÄÏËÕÍÅÎÔ Install.pdf, ËÏÔÏÒÙÊ ÒÁÓÐÏÌÏÖÅÎ × ÄÉÒÅËÔÏÒÉÉ docs ÎÁ ÄÁÎÎÏÍ CD-ROM, ÄÏ ÐÒÏÄÏÌÖÅÎÉÑ ÉÎÓÔÁÌÌÑÃÉÉ." itext3web="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone ÎÁ ×ÁÛ ËÏÍÐØÀÔÅÒ. ðÒÉ ÖÅÌÁÎÉÉ ÍÏÖÅÔÅ ÚÁÇÒÕÚÉÔØ É ÐÒÏÇÌÑÄÅÔØ òÕËÏ×ÏÄÓÔ×Ï ÐÏ ÕÓÔÁÎÏ×ËÅ Greenstone (Install.pdf) ÐÅÒÅÄ ÐÒÏÄÏÌÖÅÎÉÅÍ ÕÓÔÁÎÏ×ËÉ." itext3=" úÁÍÅÔØÔÅ, ÞÔÏ ËÏÇÄÁ ÐÏÓÔÕÐÁÅÔ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ××ÏÄ, ÎÁÖÁÔÉÅ ËÌÁ×ÉÛÉ \"enter\" ×ÙÂÉÒÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÚÁÄÁÎÎÏÅ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ [] × ËÏÎÃÅ ËÁÖÄÏÇÏ ×ÏÐÒÏÓÁ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ËÁËÏÊ ×ÁÒÉÁÎÔ ×ÙÂÒÁÔØ, ÉÓÐÏÌØÚÕÊÔÅ ÔÏÔ, ËÏÔÏÒÙÊ ÄÁÎ ÐÏ ÕÍÏÌÞÁÎÉÀ. úÁÍÅÔØÔÅ ÔÁËÖÅ, ÞÔÏ Install.sh ×ÙÄÁÅÔ ÎÁ ÐÅÞÁÔØ ÉÎÆÏÒÍÁÃÉÀ ÌÀÂÙÈ ËÏÍÁÎÄ, ËÏÔÏÒÙÅ ÐÏÓÔÕÐÁÀÔ × ÷ÁÛÕ ÓÉÓÔÅÍÕ × ÆÏÒÍÅ \"--> Install.sh: [command]\". ðÏ×ÓÀÄÕ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÙÐÏÌÎÅÎÎÁÑ ÷ÁÍÉ ÐÒÏÃÅÄÕÒÁ ÉÎÓÔÁÌÌÑÃÉÉ, ÕÓÔÁÎÏ×ÉÌÁ ÷ÅÂ-ÓÅÒ×ÅÒ × ÷ÁÛÕ ÓÉÓÔÅÍÕ. äÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË ×ÙÈÏÄ ÄÁÎÎÏÇÏ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÓËÒÉÐÔÁ ÂÕÄÅÔ ÚÁÐÉÓÁÎ × ÆÁÊÌÅ, ÎÁÚÙ×ÁÅÍÏÍ INSTALL_RECORD, × ÉÒÅËÔÏÒÉÉ, ËÏÔÏÒÕÀ ÷Ù ×ÙÂÒÁÌÉ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ Greenstone. ðÒÏÄÏÌÖÉÔØ? [y]" itext4=" ÷ ËÁËÕÀ ÄÉÒÅËÔÏÒÉÀ ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ Greenstone? õÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÕÞÁÓÔËÅ Ó ÄÏÓÔÁÔÏÞÎÙÍ Ó×ÏÂÏÄÎÙÍ ÐÒÏÓÔÒÁÎÓÔ×ÏÍ ÎÁ ÄÉÓËÅ ÄÌÑ ÉÎÓÔÁÌÑÃÉÏÎÎÙÈ ×ÁÒÉÁÎÔÏ×, ËÏÔÏÒÙÅ ÷Ù ÎÁÍÅÒÅ×ÁÅÔÅÓØ ×ÙÂÒÁÔØ." itext5=" * éÎÓÔÁÌÌÑÃÉÑ ÂÉÎÁÒÎÏÇÏ Linux ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 70 Mb." itext6=" * ëÏÍÐÉÌÑÃÉÑ Greenstone ÉÚ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 155 Mb. * ðÒÏÉÚ×ÏÌØÎÙÅ ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ËÏÌÌÅËÃÉÉ Greenstone ÍÏÇÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÏ 135 Mb (÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÎÁÔØ ÒÁÚÍÅÒ ËÁÖÄÏÊ ÉÎÄÉ×ÉÄÕÁÌØÎÏÊ ËÏÌÌÅËÃÉÉ ÐÅÒÅÄ ÔÅÍ, ËÁË ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÅÅ). * ïÎÌÁÊÎÏ×ÁÑ ÄÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÄÁÌØÎÅÊÛÉÈ 4 Mb. * æÕÎËÃÉÑ ÄÏÓÔÕÐÎÏÓÔÉ Greenstone \"CD exporting\" ÔÒÅÂÕÅÔ ÅÝÅ 24 Mb. ÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ × ÎÅÅ Greenstone. äÉÒÅËÔÏÒÉÑ gsdl ÂÕÄÅÔ ÓÏÚÄÁÎÁ × ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ." itext34=" ÷×ÅÄÉÔÅ ÓÕÝÅÓÔ×ÕÀÝÕÀ cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ [/usr/local/apache/cgi-bin]" itext59=" üÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÔÒÅÂÕÅÔ GNU, ËÏÔÏÒÙÊ ÎÅ ÂÙÌ ÏÂÎÁÒÕÖÅÎ × ÷ÁÛÅÊ ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÐÕÔØ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ GNU." itextdoccols=" äÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ ËÏÌÌÅËÃÉÑ Greenstone ÂÙÌÁ ÕÓÔÁÎÏ×ÌÅÎÁ. èÏÔÉÔÅ ÌÉ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÌÀÂÙÅ ÄÒÕÇÉÅ ËÏÌÌÅËÃÉÉ ÉÚ ÉÎÓÔÁÌÑÃÉÏÎÎÏÇÏ CD-ROM? [y]" itextdec_dls=" óÕÂËÏÌÌÅËÃÉÑ âÉÂÌÉÏÔÅËÉ ÒÁÚ×ÉÔÉÑ (dls-e) - 38MB [y]" itextdec_wrdpdf=" äÅÍÏÎÓÔÒÁÃÉÑ MSWord É PDF (wrdpdf-e) - 4MB [y]" itextdec_gsarch=" ëÏÌÌÅËÃÉÑ ÁÒÈÉ×Ï× Greenstone (gsarch-e) - 9MB [y]" itextdec_cltbib=" âÉÂÌÉÏÇÒÁÆÉÞÅÓËÁÑ ËÏÌÌÅËÃÉÑ (cltbib-e) - 9MB [y]" itextdec_cltext=" ðÒÉÌÏÖÅÎÉÅ ÂÉÂÌÉÏÇÒÁÆÉÉ (cltext-e) - 1MB [y]" itextdec_marc=" ðÒÉÍÅÒ MARC (MARC-e) - 2MB [y]" itextdec_oai=" äÅÍÏÎÓÔÒÁÃÉ-ÏÎÎÁÑ ËÏÌÌÅËÃÉÑ OAI (OAI-e) - 19MB [y]" itextdec_image=" ðÒÏÓÔÁÑ ËÏÌÌÅËÃÉÑ ÉÚÏÂÒÁÖÅÎÉÊ (image-e) - 1MB [y]" itextdec_authen=" äÅÍÏÎÓÔÒÁÃÉÑ ÆÏÒÍÁÔÉÒÏ×Á-ÎÉÑ É ÁÕÔÅÎÔÉÆÉËÁÃÉÉ (authen-e) - 12MB [y]" itextdec_garish=" òÅÚËÁÑ ×ÅÒÓÉÑ ÄÅÍÏÎÓÔÒÁÃÉÏÎ-ÎÏÊ ËÏÌÌÅËÃÉÉ (garish) - 12MB [y]" itextdec_isis=" ðÒÉÍÅÒ CDS/ISIS (isis-e) - 2MB [y]" itextdec_dspace=" ðÒÉÍÅÒ DSpace (dspace-e) - 6MB [y]" # ------------------------------------------------------------------------------ # SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "x$gsdllang" = "xs" -o "x$gsdllang" = "xspanish" ]; then gsdllangcode=es itext0="Greenstone no ha sido instalado." itext1="Install.sh deberá correrse desde el directorio en el que reside." itext2="ERROR: No se pudo localizar " itext3cd="Este guión instalará Greenstone en su sistema. Le recomendamos que lea el documento install.pdf que reside en el directorio de documentos de este CD-ROM antes de continuar con la instalación." itext3web="Este programa va a instalar Greenstone en su sistema. Se recomienda obtener y revisar la Guía de Instalación de Greenstone (Install.pdf) antes de continuar." itext3=" Recuerde que cuando se le pida que ingrese la información, al oprimir \"ingresar\" usted seleccionará los ajustes por omisión (que aparecen entre corchetes [] al final de cada pregunta). Si no está seguro de cuál opción seleccionar utilice los ajustes por omisión. Recuerde asimismo que Install.sh imprime la información de cualquier comando que se ejecute en su sistema en la siguiente forma: \"--> Install.sh: [comando]\". Durante todo el proceso de instalación se asume que usted ya tiene un servidor Web instalado en su sistema. Como referencia para un uso posterior los resultados de este guión de instalación se registrarán en un archivo llamado INSTALL_RECORD en el directorio en el que usted decidió instalar Greenstone. ¿Desea continuar? [y]" itext4=" ¿En qué directorio se instalará Greenstone? Asegúrese de que este directorio esté en una partición con suficiente espacio libre en el disco para las opciones que usted pretende instalar." itext5=" * La instalación de un binario Linux requiere aproximadamente 70 MB." itext6=" * La compilación de Greenstone desde un código fuente requiere aproximadamente 155 MB. * También pueden usarse colecciones muestra opcionales hasta un total de 135 MB (se le indicará el tamaño de cada colección individual antes de instalarla). * La documentación en línea requiere de otros 4 MB. * La función \"exportar a un CD\" de Greenstone requerirá de otros 24 MB. Ingrese el directorio para instalar Greenstone. Se creará un directorio gsdl en este directorio." itext34=" Ingrese un directorio ejecutable cgi existente [/usr/local/apache/cgi-bin]" itext59="Esta instalación requiere una utilería make GNU, el cual podría no encontrarse en su sistema. Por favor ingrese la ruta hacia la utilería make GNU." itextdoccols=" La colección de muestra Greenstone ha sido instalada. ¿Le gustaría instalar alguna otra colección del CD-ROM de instalación? [y]" itextdec_dls=" Subconjunto de la Biblioteca para el Desarrollo (dls-e) - 38MB [y]" itextdec_wrdpdf=" Demostración en MSWord y PDF (wrdpdf-e) - 4MB [y]" itextdec_gsarch=" Colección de Archivos Greenstone (gsarch-e) - 9MB [y]" itextdec_cltbib=" Colección bibliográfica (cltbib-e) - 9MB [y]" itextdec_cltext=" Suplemento bibliográfico (cltext-e) - 1MB [y]" itextdec_marc=" Colección de muestra MARC (MARC-e) - 2MB [y]" itextdec_oai=" Colección de muestra OAI (OAI-e) - 19MB [y]" itextdec_image=" Colección de imágenes sencillas (image-e) - 1MB [y]" itextdec_authen=" Demostración de formateo y autenticación (authen-e) - 12MB [y]" itextdec_garish=" Versión Garish de la colección de muestra (garish) - 12MB [y]" itextdec_isis=" Colección de muestra CDS/ISIS (isis-e) - 2MB [y]" itextdec_dspace=" Colección de muestra DSpace (dspace-e) - 6MB [y]" # ------------------------------------------------------------------------------ # ENGLISH STRINGS # ------------------------------------------------------------------------------ else gsdllangcode=en itext0="Greenstone was not installed" itext1="Install.sh must be run from the directory in which it resides" itext2="ERROR: Could not locate " itext3cd="This script will install Greenstone on your system. You may want to skim through the Install.pdf document that resides in the docs directory on this cd-rom before continuing with the installation." itext3web="This script will install Greenstone on your system. You may want to download and skim through the Greenstone Installer's Guide (Install.pdf) before continuing with the installation" itext3=" Note that when prompted for input, hitting \"enter\" will select the default (given in square brackets [] at the end of each question). If you're unsure which option to select, use the default. Note also that Install.sh prints out information on any commands it runs on your system in the form \"--> Install.sh: [command]\". It is assumed throughout this installation procedure that you have a webserver installed on your system. For later reference the output of this install script will be recorded in a file called INSTALL_RECORD in the directory into which you choose to install Greenstone. Continue? [y]" itext4=" Which directory should Greenstone be installed to? Make sure that this directory is on a partition with sufficient free disk space for the installation options you intend selecting." itext5=" * A linux binary installation requires approximately 70Mb." itext6=" * Compiling Greenstone from source code requires approximately 155Mb. * Optional Greenstone demonstration collections may use up to a further 135Mb (you'll be told the size of each individual collection before you install it). * Online documentation requires a further 4Mb. * Enabling Greenstone's \"CD exporting\" function requires a further 24Mb. Enter directory to install Greenstone into. A gsdl directory will be created in this directory." itext34=" Enter existing cgi executable directory [/usr/local/apache/cgi-bin]" itext59=" This installation requires GNU make which could not be detected on your system. Please enter the path to gnu make" itextdoccols=" The Greenstone demonstration collection has been installed. Would you like to install any other collections from the installation cd-rom? [y]" itextdec_dls=" Development Library Subset collection (dls-e) - 38MB? [y]" itextdec_wrdpdf=" MSWord and PDF demonstration (wrdpdf-e) - 4MB? [y]" itextdec_gsarch=" Greenstone Archives collection (gsarch-e) - 9MB? [y]" itextdec_cltbib=" Bibliography collection (cltbib-e) - 9MB? [y]" itextdec_cltext=" Bibliography supplement (cltext-e) - 1MB? [y]" itextdec_marc=" MARC example (MARC-e) - 2MB? [y]" itextdec_oai=" OAI demo collection (oai-e) - 19MB? [y]" itextdec_image=" Simple image collection (image-e) - 1MB? [y]" itextdec_authen=" Formatting and authentication demo (authen-e) - 12MB? [y]" itextdec_garish=" Garish version of demo collection (garish) - 12MB? [y]" itextdec_isis=" CDS/ISIS example collection (isis-e) - 2MB? [y]" itextdec_dspace=" DSpace example collection (dspace-e) - 6MB? [y]" fi # ============================================================================== # INSTALLATION CODE # ============================================================================== cmd_cp="cp" cmd_cpr="cp -r" cmd_chmod="chmod" cmd_mkdir="mkdir -p" cmd_ln="ln -s" cmd_mv="mv" cmd_rm="rm -i" cmd_rmr="rm -r" thisdir=`pwd` cd_dir=`(cd .. && pwd)` # script must be run from within cdrom/unix directory if [ ! -f "${thisdir}/Install.sh" ]; then echo "$itext1" echo "$itext0" exit 1 fi # check that various important directories are on the cd if [ ! -d "${cd_dir}/gsdl" ]; then echo echo "${itext2}${cd_dir}/gsdl" echo "$itext0" exit 1 fi if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then echo echo "${itext2}${cd_dir}/Unix/bin/linux" echo "$itext0" exit 1 fi # install to /usr/local by default if user is "root", otherwise # default to users home directory gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` if [ "$gsdlos" = "linux" ]; then logname=`whoami` else logname="" fi if [ "x$logname" = "x" ]; then logname=`logname` fi gsdlhome="/home/${logname}" if [ "$logname" = "root" ]; then gsdlhome="/usr/local" fi installpdf=$itext3cd if [ "$iscdrom" = "no" ]; then installpdf=$itext3web fi echo "$installpdf" echo "$itext3" printf "%s" "> " read ans log="${log}${itext3} > $ans " if [ "x$ans" != "x" -a "x$ans" != "xy" ]; then echo "$itext0" exit 0 fi # check we've got gnu make (we assume gnu make will always be used on linux) make="make" if [ "$gsdlos" != "linux" ]; then # if gmake exists, use it whichgmake=`which gmake 2> /dev/null` if [ -x "$whichgmake" ]; then make="gmake" else # try plain old "make" make_ver=`make -v 2> /dev/null | sed -n 's/^GNU.*/GNU/p'` if [ "$make_ver" != "GNU" ]; then echo "$itext59" log="${log}$itext59" printf "%s" "> " read ans make="$ans" fi fi fi # get gsdlhome msg="$itext4" if [ "$gsdlos" = "linux" ]; then msg="${msg}$itext5" fi msg="${msg}$itext6 [${gsdlhome}]" echo "$msg" printf "%s" "> " read ans log="${log}${msg} > $ans " if [ "x$ans" != "x" ]; then gsdlhome="$ans" fi # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext7=" Avertissement: Le répertoire ${gsdlhome} n'existe pas. Voulez-vous le créer? [y]" itext8="ERREUR: la création du répertoire $gsdlhome a échoué" # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext7=" ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: äÉÒÅËÔÏÒÉÑ ${gsdlhome} ÎÅ ÓÕÝÅÓÔ×ÕÅÔ. óÏÚÄÁÔØ ÅÅ? [y]" itext8="ïûéâëá: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $gsdlhome." # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext7=" Advertencia: El directorio ${gsdlhome} no existe. ¿Desea crearlo? [y]" itext8="ERROR: no se pudo crear el directorio $gsdlhome." # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext7=" Warning: The ${gsdlhome} directory does not exist. Create it? [y]" itext8="ERROR: failed to create $gsdlhome directory" fi if [ ! -d "$gsdlhome" ]; then echo "$itext7" printf "%s" "> " read ans log="${log}${itext7} > $ans " if [ "x$ans" = "x" ]; then ans="y" fi if [ "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]" echo "$msg" log="${log}${msg} " $cmd_mkdir "$gsdlhome" if [ ! -d "$gsdlhome" ]; then echo "$itext8" echo "$itext0" exit 1 fi else echo "$itext0" exit 0 fi fi # from now on $gsdlhome includes the "/gsdl" gsdlhome="${gsdlhome}/gsdl" # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext9=" Si cette installation échoue ou est annulée, n'oubliez pas d'exécuter le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer l'installation partielle. Continuer? [y]" itext10=" Installation de la hiérarchie des répertoires à partir de ${gsdlhome}" itext11=" Souhaitez-vous installer la documentation Greenstone sur votre disque dur? La documentation occupe environ 4Mo d'espace disque. Si vous n'installez pas la documentation, vous pourrez toujours la consulter à partir du répertoire 'docs' du CD-ROM [y]" itext12=" Souhaitez-vous installer la fonctionnalité Greenstone pour exporter? Cette fonctionnalité vous permet d'exporter une collection Greenstone dans un format adapté pour graver un CD-ROM auto-installable sous Windows. Ce module occupe environ 23Mo d'espace disque [n]" itext18="Initialisation des permissions ..." itext19=" Afin de permettre la construction de collection par les utilisateurs finaux, le programme cgi Greenstone doit pouvoir écrire dans les répertoires ${gsdlhome}/collect et ${gsdlhome}/tmp répertoires. Sur la plupart des systèmes, cela veut dire que ces répertoires doivent permettre l'écriture. Permettre l'écriture dans ces répertoires? [y]" itext20=" Vous pouvez soit installer les fichiers [b]inaires exécutables sous Linux (i386 seulement), soit installer et [c]ompiler le code source de Greenstone." itext21="Entrez \"[b]\" ou \"c\"" itext22="Installation des fichiers binaires exécutables sous Linux" itext23="Installation du code source" itext24="configuration ..." itext25="compilation ..." itext26="installation ..." itext27="ERREUR: La compilation a échoué" itext28=" Greenstone a besoin d'un répertoire cgi (pour les exécutables) valide (normalement appelé cgi-bin sur les systèmes Unix) pour exécuter. Ce peut être soit: 1. Le répertoire cgi-bin Greenstone par défaut (${gsdlhome}/cgi-bin). Dans ce cas vous devrez configurer votre serveur Web pour considérer ce répertoire comme étant son répertoire cgi pour les fichiers exécutables. Pour Apache, vous pouvez utiliser la directive 'ScriptAlias' (les détails concernant la configuration de votre serveur Web seront affichés à la fin de cette procédure d'installation)." itext29=" Veuillez noter que vous aurez certainement besoin de l'aide de votre administrateur système pour reconfigurer votre serveur Web." itext30=" 2. Un répertoire cgi-bin existant. Normallement un répertoire cgi-bin est créé au moment de l'installation de votre serveur web. Généralement c'est soit /home/httpd/cgi-bin, soit /usr/local/apache/cgi-bin, soit /var/lib/apache/cgi-bin." itext31=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir leur propre répertoire cgi-bin in /home/username/public_html/cgi-bin." itext32="Entrez \"[1]\" or \"2\"" itext33=" N'oubliez pas de configurer votre serveur Web pour considérer ${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites pas, vous serez à nouveau prévenu à la fin de cette procédure d'installation." itext37="Exécutez le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer une installation partielle." itext42=" Pour pouvoir exécuter Greenstone, le répertoire $gsdlhome et tout son contenu doit être accessible à partir du Web. Pour que cela soit possible, vous pouvez soit: 1. Configurer le serveur Web pour que le répertoire $gsdlhome soit lui-même accessible à partir du Web." itext43=" 2. Indiquer un répertoire Web déjà accessible à partir du Web dans lequel un lien symbolique (ln -s) vers $gsdlhome sera créé. Lorsqu'un serveur Web est installé, un répertoire accessible à partir du web est toujours créé (le serveur Web Apache utilise la directive DocumentRoot pour définir ce répertoire). En général, ce répertoire est appelé /home/httpd/html, ou bien /usr/local/apache/htdocs, ou encore /var/lib/apache/htdocs." itext44=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir leur propre répertoire accessible à partir du Web. Ces répertoires sont créés à partir du répertoire /home/username/public_html." itext45=" Veuillez noter que le serveur Web devra être configuré pour accepter les liens symboliques à partir de ce répertoire. Pour le serveur Apache cela signifie que ce répertoire doit être configuré avec les options SymLinksIfOwnerMatch et FollowSymLinks (La plupart des installations Apache sont configurées de cette façon par défaut)" itext46=" N'oubliez pas de configurer le serveur Web pour que le répertoire $gsdlhome soit accessible à partir du Web. On vous le rappellera encore une fois à la fin la fin de la procédure d'installation." # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext9=" åÓÌÉ ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÂÙÌÁ ÎÅÕÄÁÞÎÏÊ ÉÌÉ ÏÔÍÅÎÅÎÁ, ××ÅÄÉÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh), ÞÔÏÂÙ ÏÞÉÓÔÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ. ðÒÏÄÏÌÖÉÔØ? [y]" itext10=" éÎÓÔÁÌÌÑÃÉÑ ÓÔÒÕËÔÕÒÙ ÄÉÒÅËÔÏÒÉÉ Greenstone × ${gsdlhome}" itext11=" èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÄÏËÕÍÅÎÔÁÃÉÀ Greenstone ÎÁ ÷ÁÛ ÖÅÓÔËÉÊ ÄÉÓË? äÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 4 Mb ÐÒÏÓÔÒÁÎÓÔ×Á. åÓÌÉ ÷Ù ÎÅ ÈÏÔÉÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÅÅ, Õ ÷ÁÓ ÏÓÔÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ Ë ÎÅÊ ÉÚ ÄÉÒÅËÔÏÒÉÉ ÄÏËÕÍÅÎÔÏ× CD-ROM) [y]" itext12=" èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÐÏÄÄÅÒÖËÕ ÆÕÎËÃÉÊ Greenstone \"ÜËÓÐÏÒÔ ËÏÍÐÁËÔ-ÄÉÓËÁ\"? üÔÁ ÆÕÎËÃÉÑ ÐÏÚ×ÏÌÑÅÔ ÷ÁÍ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ËÏÌÌÅËÃÉÀ Greenstone × ÆÏÒÍÅ, ÐÏÄÈÏÄÑÝÅÊ ÄÌÑ Á×ÔÏÕÓÔÁÎÏ×ËÉ Windows CD-ROM. üÔÏÔ ÐÁËÅÔ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 23 íâ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á [n]" itext18="õÓÔÁÎÏ×ËÁ ÒÁÚÒÅÛÅÎÉÊ..." itext19=" äÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÌÌÅËÃÉÉ, ÄÏÓÔÕÐÎÏÊ ÄÌÑ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ, cgi ÐÒÏÇÒÁÍÍÁ Greenstone ÄÏÌÖÎÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ×ÐÉÓÁÔØÓÑ × ÄÉÒÅËÔÏÒÉÉ ${gsdlhome}/collect É ${gsdlhome}/tmp. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ÏÎÉ ÄÏÌÖÎÙ ÂÙÔØ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙ. óÄÅÌÁÔØ ÜÔÉ ÄÉÒÅËÔÏÒÉÉ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙÍÉ? [y]" itext20=" ÷Ù ÍÏÖÅÔÅ ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ ÐÒÅÄËÏÍÐÉÌÉÒÕÅÍÙÅ, ÓÔÁÔÉÞÅÓËÉ Ó×ÑÚÁÎÎÙÅ [b] Ä×ÏÉÞÎÙÅ ËÏÄÙ linux (ÔÏÌØËÏ i386) ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ É [c] ËÏÍÐÉÌÉÒÏ×ÁÔØ ÉÓÈÏÄÎÕÀ ÐÒÏÇÒÁÍÍÕ Greenstone" itext21="÷×ÅÄÉÔÅ \"[b]\" ÉÌÉ \"c\"" itext22="éÎÓÔÁÌÌÑÃÉÑ Ä×ÏÉÞÎÙÈ ËÏÄÏ× linux" itext23="éÎÓÔÁÌÌÑÃÉÑ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ" itext24="ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ..." itext25="ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ..." itext26="éÎÓÔÁÌÑÃÉÑ..." itext27="ïûéâëá: ëÏÍÐÉÌÑÃÉÑ ÎÅ ÕÄÁÌÁÓØ" itext28=" Greenstone ÎÕÖÎÁ ÐÒÉÇÏÄÎÁÑ ÉÓÐÏÌÎÉÔÅÌØÎÁÑ ÄÉÒÅËÔÏÒÉÑ (× unix ÓÉÓÔÅÍÁÈ ÏÂÙÞÎÏ ÎÁÚÙ×ÁÅÍÁÑ cgi-bin), ÉÚ ËÏÔÏÒÏÊ ÏÎ ÚÁÐÕÓËÁÅÔÓÑ. üÔÏ ÍÏÖÅÔ ÂÙÔØ ÌÉÂÏ: 1. õÓÔÁÎÏ×ËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÉÒÅËÔÏÒÉÉ Greenstone cgi-bin (${gsdlhome}/cgi-bin). åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÐÏ ÕÍÏÌÞÁÎÉÀ Greenstone, ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÕ ÄÉÒÅËÔÏÒÉÀ ËÁË cgi ÉÓÐÏÌÎÉÍÕÀ. äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÷Ù ÉÓÐÏÌØÚÕÅÔÅ ÄÉÒÅËÔÉ×Õ ScriptAlias, ÞÔÏÂÙ ×ÙÐÏÌÎÉÔØ ÜÔÏ (ÐÏÄÒÏÂÎÏÓÔÉ Ï ÔÏÍ, ËÁË ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ, ÂÕÄÕÔ ÄÁÎÙ × ËÏÎÃÅ ÜÔÏÊ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ)." itext29=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÷Ù ÂÕÄÅÔÅ ×ÅÒÏÑÔÎÏ ÎÕÖÄÁÔØÓÑ × ÐÏÍÏÝÉ ÷ÁÛÅÇÏ ÓÉÓÔÅÍÎÏÇÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ, ÞÔÏÂÙ ÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ" itext30=" 2. óÕÝÅÓÔ×ÕÀÝÁÑ ÄÉÒÅËÔÏÒÉÑ cgi-bin. ïÂÙÞÎÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÓÏÚÄÁÅÔÓÑ ÐÒÉ ÉÎÓÔÁÌÌÑÃÉÉ ×ÁÛÅÇÏ ÷ÅÂ-ÓÅÒ×ÅÒÁ. ëÁË ÐÒÁ×ÉÌÏ, ÜÔÏ ÍÏÖÅÔ ÂÙÔØ /home/httpd/cgi-bin, ÉÌÉ /usr/local/apache/cgi-bin, ÉÌÉ /var/lib/apache/cgi-bin." itext31=" íÎÏÇÉÅ ÓÉÓÔÅÍÙ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÙÊ cgi-bin × /home/username/public_html/cgi-bin." itext32="÷×ÅÄÉÔÅ \"[1]\" ÉÌÉ \"2\"" itext33=" îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÏÂÒÁÔÉÔØ ${gsdlhome}/cgi-bin × cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ. îÅ ×ÏÌÎÕÊÔÅÓØ, ËÏÇÄÁ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ." itext37="éÓÐÏÌØÚÕÊÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh) ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÄÁÌÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ." itext42=" þÔÏÂÙ Greenstone ÍÏÇ ÂÙÔØ ÚÁÐÕÝÅÎ, ÄÉÒÅËÔÏÒÉÑ $gsdlhome É ×ÓÅ ÅÅ ÓÏÄÅÒÖÉÍÏÅ ÄÏÌÖÎÙ ÂÙÔØ ÄÏÓÔÕÐÎÙ ÉÚ ÓÅÔÉ. þÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÏÓÕÝÅÓÔ×ÉÍÙÍ, ÷Ù ÍÏÖÅÔÅ ÉÌÉ: 1. óËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $gsdlhome Ñ×ÌÑÌÓÑ Á×ÔÏÍÁÔÉÞÅÓËÉ ÄÏÓÔÕÐÎÙÍ ÉÚ ÓÅÔÉ." itext43=" 2.ïÂÅÓÐÅÞÉÔØ ÓÕÝÅÓÔ×ÕÀÝÕÀ ÄÏÓÔÕÐÎÕÀ ÄÉÒÅËÔÏÒÉÀ, ÉÚ ËÏÔÏÒÏÊ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ (ln -s) ÂÕÄÅÔ ÓÄÅÌÁÎÁ Ë $gsdlhome. ëÏÇÄÁ ×ÁÛ ÓÅÒ×ÅÒ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ, ÄÉÒÅËÔÏÒÉÑ, ÄÏÓÔÕÐÎÁÑ ÉÚ ÓÅÔÉ, ÂÕÄÅÔ ÓÏÚÄÁÎÁ (÷ÅÂ-ÓÅÒ×ÅÒ Apache ÉÓÐÏÌØÚÕÅÔ ÄÉÒÅËÔÉ×Õ DocumentRoot ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. ïÂÙÞÎÏ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÅÊ ÍÏÇÌÉ ÂÙ ÂÙÔØ /home/httpd/html, ÉÌÉ /usr/local/apache/htdocs, ÉÌÉ /var/lib/apache/htdocs." itext44=" íÎÏÇÉÅ ÓÉÓÔÅÍ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÕÀ ÄÏÓÔÕÐÎÕÀ ÉÚ ÓÅÔÉ ÄÉÒÅËÔÏÒÉÀ × /home/username/public_html." itext45=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ×ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÂÕÄÅÔ ÄÏÌÖÅÎ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎ ÔÁË, ÞÔÏÂÙ ÐÏÚ×ÏÌÉÔØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ÉÚÎÕÔÒÉ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. äÌÑ ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ÄÁÎÎÁÑ ÄÉÒÅËÔÏÒÉÑ ÄÏÌÖÎÁ ÆÏÒÍÉÒÏ×ÁÔØÓÑ Ó ÐÏÍÏÝØÀ SymLinksIfOwnerMatch ÉÌÉ ×ÁÒÉÁÎÔÁ FollowSymLinks (ÂÏÌØÛÉÎÓÔ×Ï ÉÎÓÔÁÌÌÑÃÉÊ Apache ÆÏÒÍÉÒÕÀÔ ÜÔÏÔ ÐÕÔØ ÐÏ ÕÍÏÌÞÁÎÉÀ)." itext46=" îÅ ÚÁÂÕÄØÔÅ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÆÏÒÍÉÒÏ×ÁÔØ ×ÁÛ webserver, ÞÔÏÂÙ $gsdlhome ÂÙÌ ÄÏÓÔÕÐÅÎ ÉÚ ÓÅÔÉ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÄÁÎÎÏÊ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ." # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext9=" Si no se puede realizar la instalación o ésta se cancela, corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes instaladas. ¿Desea continuar? [y]" itext10=" Instalación de la estructura de directorios Greenstone en ${gsdlhome}" itext11=" ¿Le gustaría instalar la documentación de Greenstone en su disco duro? Los documentos ocuparán aproximadamente 4 MB de espacio. Si decide no instalarlos aún podrá tener acceso a ellos desde el directorio de docs del CD-ROM) [y]" itext12=" ¿Le gustaría instalar el soporte para la función \"exportar a CD\" de Greenstone? Esta función le permite exportar una colección Greenstone en una forma que permita escribir en ella a un CD-ROM para Windows que se podrá instalar automáticamente. Este paquete utilizará aproximadamente 23 MB de espacio en el disco duro [n]" itext18="Estableciendo los permisos..." itext19=" Con el fin de que el usuario final pueda crear y construir una colección, el programa cgi de Greenstone deberá ser capaz de escribir en los directorios ${gsdlhome}/collect y ${gsdlhome}/tmp. En la mayoría de los sistemas esto significa que deberá poderse escribir en ellos globalmente. ¿Desea que se pueda escribir en estos directorios globalmente? [y]" itext20=" Usted puede instalar los [b]inarios de Linux vinculados estáticamente que se han compilado previamente (únicamente i386) o instalar y [c]ompilar el código fuente de Greenstone." itext21="Escriba \"[b]\" o \"c\"" itext22="Instalación de los binarios de Linux" itext23="Instalación del código fuente" itext24="configurando..." itext25="compilando..." itext26="instalando..." itext27="ERROR: No se pudo compilar." itext28=" Greenstone necesita un directorio ejecutable cgi que sea válido (normalmente llamado cgi-bin en los sistemas UNIX) desde el cual se pueda correr. Este puede ser: 1. El directorio cgi-bin por omisión de Greenstone (${gsdlhome}/cgi-bin). Si usted utiliza esta opción entonces necesitará configurar su servidor Web para que trate a este directorio como un directorio ejecutable cgi. En el caso del servidor Web Apache se utiliza la directiva ScriptAlias para poder hacer esto (los detalles de la forma de configurar su servidor Web aparecerán al final de este proceso de instalación)." itext29=" Recuerde que probablemente necesitará ayuda de su administrador de sistemas para reconfigurar su servidor Web." itext30=" 2. Un directorio cgi-bin existente. Normalmente se crea un directorio cgi-bin al momento de instalar su servidor Web. En términos generales este puede ser /home/httpd/cgi-bin, /usr/local/apache/cgi-bin o /var/lib/apache/cgi-bin." itext31=" Muchos sistemas también le permiten a sus usuarios tener sus propios directorios individuales cgi-bin en /home/username/public_html/cgi-bin." itext32="Escriba \"[1]\" o \"2\"" itext33=" No olvide configurar su servidor Web para que trate a ${gsdlhome}/cgi-bin como un directorio ejecutable cgi. No se preocupe, esto se le recordará nuevamente al final del proceso de instalación." itext37="Corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes instaladas." itext42=" Para que Greenstone pueda funcionar, el directorio $gsdlhome y todos sus contenidos deberán ser accesibles desde la Web. Para lograr esto usted puede: 1. Configurar su servidor Web de tal manera que el mismo $gsdlhome sea accesible desde la Web." itext43=" 2. Proporcionar un directorio existente que sea accesible desde la Web, a través del cual se creará un vínculo simbólico (ln -s) con $gsdlhome. Cuando instaló su servidor seguramente se creó un directorio accesible desde la Web (el servidor Apache utiliza la directiva DocumentRoot para definir este directorio). En términos generales este directorio podrá ser /home/httpd/html, /usr/local/apache/htdocs o /var/lib/apache/htdocs." itext44=" Muchos sistemas también le permiten a los usuarios tener sus propios directorios individuales accesibles desde la Web en /home/username/public_html." itext45=" Recuerde que necesitará configurar su servidor Web para permitir la creación de vínculos simbólicos desde el interior de este directorio. En el caso del servidor Apache esto significa que dicho directorio deberá configurarse con la opción SymLinksIfOwnerMatch o FollowSymLinks (la mayoría de las instalaciones Apache se configuran de esta manera por omisión)." itext46=" No olvide configurar su servidor Web para hacer que $gsdlhome sea accesible desde la Web. Se le recordará esto nuevamente al final del proceso de instalación." # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext9=" If this installation fails or is cancelled, run the uninstall script (${gsdlhome}/Uninstall.sh) to clean up the partial installation. Continue? [y]" itext10=" Installing Greenstone directory structure to ${gsdlhome}" itext11=" Would you like to install the Greenstone documentation to your hard drive? The docs will use about 4Mb of space. If you choose not to install them you can still access them from within the docs directory of the cd-rom) [y]" itext12=" Would you like to install support for Greenstone's \"CD exporting\" function? This function allows you to export a Greenstone collection in a form suitable for writing to a self-installing Windows cd-rom. This package will use approximately 23Mb of disk space [n]" itext18="Setting permissions ..." itext19=" In order for end-user collection building to be enabled the Greenstone cgi program must be able to write to the ${gsdlhome}/collect and ${gsdlhome}/tmp directories. On most systems this means they must be globally writable. Make these directories globally writable? [y]" itext20=" You may either install pre-compiled, statically linked linux [b]inaries (i386 only) or install and [c]ompile the Greenstone source code" itext21="Enter \"[b]\" or \"c\"" itext22="Installing linux binaries" itext23="Installing source code" itext24="configuring ..." itext25="compiling ..." itext26="installing ..." itext27="ERROR: Compilation failed" itext28=" Greenstone needs a valid cgi executable directory (normally called cgi-bin on unix systems) from which to run. This may be either: 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin). If you use the Greenstone default you will need to configure your webserver to treat this directory as a cgi executable directory. For the Apache webserver you use the ScriptAlias directive to do this (details of how to configure your webserver will be displayed at the end of this installation procedure)." itext29=" Note that you will probably need help from your system administrator to reconfigure your webserver." itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory is created when your webserver is installed. Typically, this might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or /var/lib/apache/cgi-bin." itext31=" Many systems also allow individual users to have their own cgi-bin in /home/username/public_html/cgi-bin." itext32="Enter \"[1]\" or \"2\"" itext33=" Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin as a cgi executable directory. Don't worry, you'll be reminded of this again at the end of the installation procedure" itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh) to clean up the partial installation." itext42=" In order for Greenstone to run, the $gsdlhome directory and all it contains must be accessible from the web. To make this happen you may either: 1. Configure your webserver so that $gsdlhome is itself accessible from the web." itext43=" 2. Provide an existing web accessible directory from which a symbolic link (ln -s) will be made to $gsdlhome. When your server was installed a web accessible directory will have been created (the Apache webserver uses the DocumentRoot directive to define this directory). Typically this directory might be /home/httpd/html, or /usr/local/apache/htdocs, or /var/lib/apache/htdocs." itext44=" Many systems also allow individual users to have their own web accessible directory in /home/username/public_html." itext45=" Note that your web server will need to be configured to allow symbolic links from within this directory. For the Apache server that means this directory must be configured with the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache installations are configured this way by default)." itext46=" Don't forget to configure your webserver to make $gsdlhome accessible from the web. You'll be reminded of this again at the end of this installation procedure." fi msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]" echo "$msg" log="${log}${msg} " $cmd_mkdir "$gsdlhome" if [ ! -d "$gsdlhome" ]; then echo "$itext8" echo "$itext0" exit 1 fi # set permissions on gsdlhome directory msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]" echo "$msg" log="${log}${msg} " $cmd_chmod u+rwx "$gsdlhome" # create initial Uninstall.sh cd "$gsdlhome" echo "#!/bin/sh" > Uninstall.sh echo "" >> Uninstall.sh echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh echo "read ans" >> Uninstall.sh echo "if [ \"x\$ans\" = \"x\" -o \"x\$ans\" = \"xy\" ]; then" >> Uninstall.sh echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh echo " exec $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh echo "fi" >> Uninstall.sh $cmd_chmod u+x Uninstall.sh cd "$thisdir" # create initial INSTALL_RECORD echo "$log" >> "${gsdlhome}/INSTALL_RECORD" echo "$itext9" echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" != "x" -a "x$ans" != "xy" ]; then msg="$itext0" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" exit 0 fi echo "$itext10" echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD" # copy gsdl directory across msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome" # copy setup shell scripts across too msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome" # make sure we have a tmp directory if [ ! -d "$gsdlhome/tmp" ]; then msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mkdir "${gsdlhome}/tmp" fi # make collect directory writable so we can install collections msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod u+rwx "$gsdlhome/collect" if [ "$iscdrom" = "yes" ]; then # do we want docs directory? echo "$itext11" echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then docs="yes" docs_dir="${cd_dir}/docs" if [ "$gsdllangcode" = "fr" ]; then docs_dir="${docs_dir}/french" elif [ "$gsdllangcode" = "ru" ]; then docs_dir="${docs_dir}/russian" elif [ "$gsdllangcode" = "es" ]; then docs_dir="${docs_dir}/spanish" else docs_dir="${docs_dir}/english" fi msg="--> Install.sh: [$cmd_cpr \"${docs_dir}\" \"$gsdlhome/docs\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${docs_dir}" "$gsdlhome/docs" fi # do we want the "CD exporting" stuff? echo "$itext12" echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "xY" -o "x$ans" = "xy" ]; then export="yes" msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod u+rw "${gsdlhome}/bin" msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mkdir "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows" msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows" fi # which collections do we want cd "${cd_dir}/collect" echo "$itextdoccols" echo "$itextdoccols" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then # Documented example collections have a customised home.dm $cmd_cp "${cd_dir}/collect/home.dm" "${gsdlhome}/macros" # dls-e echo "$itextdec_dls" echo "$itextdec_dls" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dls-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/dls-e" "${gsdlhome}/collect" fi # wrdpdf-e echo "$itextdec_wrdpdf" echo "$itextdec_wrdpdf" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wrdpdf-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/wrdpdf-e" "${gsdlhome}/collect" fi # gsarch-e echo "$itextdec_gsarch" echo "$itextdec_gsarch" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/gsarch-e" "${gsdlhome}/collect" fi # cltbib-e echo "$itextdec_cltbib" echo "$itextdec_cltbib" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltbib-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/cltbib-e" "${gsdlhome}/collect" fi # cltext-e echo "$itextdec_cltext" echo "$itextdec_cltext" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltext-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/cltext-e" "${gsdlhome}/collect" fi # MARC-e echo "$itextdec_marc" echo "$itextdec_marc" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/MARC-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/MARC-e" "${gsdlhome}/collect" fi # oai-e echo "$itextdec_oai" echo "$itextdec_oai" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/oai-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/oai-e" "${gsdlhome}/collect" fi # image-e echo "$itextdec_image" echo "$itextdec_image" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/image-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/image-e" "${gsdlhome}/collect" fi # authen-e echo "$itextdec_authen" echo "$itextdec_authen" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/authen-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/authen-e" "${gsdlhome}/collect" fi # garish-e echo "$itextdec_garish" echo "$itextdec_garish" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/garish\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/garish" "${gsdlhome}/collect" fi # isis-e echo "$itextdec_isis" echo "$itextdec_isis" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/isis-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/isis-e" "${gsdlhome}/collect" fi # dspace-e echo "$itextdec_dspace" echo "$itextdec_dspace" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dspace-e\" \"${gsdlhome}/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/collect/dspace-e" "${gsdlhome}/collect" fi fi fi # set permissions msg=" $itext18 --> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"] --> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod -R u+rw "$gsdlhome" $cmd_chmod a+x "${gsdlhome}/bin/script/"* # certain files in gsdl/etc need to be globally writable msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/error.txt\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/error.txt" msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/key.db" msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/users.db" msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/main.cfg" msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/history.db" msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+w "$gsdlhome/etc/usage.txt" # should gsdl/collect and gsdl/tmp be globally writable? echo "$itext19" echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod -R a+w "$gsdlhome/collect" msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod -R a+w "$gsdlhome/tmp" fi # binaries or source code? compile="yes" if [ "$gsdlos" = "linux" ]; then echo "$itext20" echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD" found=no while [ "$found" = "no" ]; do echo "$itext21" echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xb" ]; then compile="no" # install binaries msg=" $itext22 --> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin" msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+x "${gsdlhome}/bin/linux/"* msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod -R u+rw "${gsdlhome}/bin/linux" # move library executable to cgi-bin msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin" # move oaiserver executable to cgi-bin msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/oaiserver\" \"${gsdlhome}/cgi-bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mv "${gsdlhome}/bin/linux/oaiserver" "${gsdlhome}/cgi-bin" found="yes" elif [ "x$ans" = "xc" ]; then found="yes" fi done fi if [ "$compile" = "yes" ]; then # install source msg=" $itext23 --> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/src/src" "$gsdlhome" msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome" msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome" msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod -R u+rw "$gsdlhome" msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_chmod a+x "${gsdlhome}/configure" # compile it msg="--> Install.sh: [cd $gsdlhome]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" cd "$gsdlhome" msg="$itext24 --> Install.sh: [./configure]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" ./configure msg="$itext25 --> Install.sh: [make]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $make msg="$itext26 --> Install.sh: [make install]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $make install msg="--> Install.sh: [cd $thisdir]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" cd "$thisdir" # check that things compiled ok if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then msg="$itext27 $itext0 $itext37" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" exit 1 fi fi # try to find out hostname if [ "$gsdlos" = "linux" ]; then gsdlhost=`hostname -f` if [ "x$gsdlhost" = "x" ]; then gsdlhost=`hostname -i` fi fi if [ "x$gsdlhost" = "x" ]; then gsdlhost=`hostname` fi if [ "x$gsdlhost" = "x" ]; then gsdlhost="your-computer-name" fi # get cgi-bin directory echo "$itext28" echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD" if [ "$logname" != "root" ]; then echo "$itext29" echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD" fi echo "$itext30" echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD" if [ "$logname" != "root" ]; then echo "$itext31" echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD" fi found=no remind_cgi="no" remind_cgi_nomove="no" while [ "$found" = "no" ]; do echo "$itext32" echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "x1" ]; then found="option1" cgi_bin="${gsdlhome}/cgi-bin" # default gsdl cgi-bin, do nothing echo "$itext33" echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD" remind_cgi="yes" elif [ "x$ans" = "x2" ]; then found="option2" # external cgi-bin echo "$itext34" echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" ]; then cgi_bin="/usr/local/apache/cgi-bin" else cgi_bin="$ans" fi # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext35="Avertissement: Le répertoire ${cgi_bin} n'existe pas. Voulez-vous le créer? [y]" itext36="N'oubliez pas de configurer votre serveur Web pour considérer ${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites pas, on vous le rappellera encore une fois à la fin la fin de la procédure d'installation." itext38="ERREUR: la création du répertoire $cgi_bin a échoué" itext39=" Impossible d'écrire dans le répertoire $cgi_bin . Vous devrez copier le contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin une fois cette installation terminée. On vous le rappellera encore une fois à la fin la fin de la procédure d'installation." itext40=" Installation des programmes cgi Greenstone dans $cgi_bin" # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext35="ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: ${cgi_bin} ÄÉÒÅËÔÏÒÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ. óÏÚÄÁÔØ ÅÅ? [y]" itext36="îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏÂÙ ÓÄÅÌÁÔØ $cgi_bin × ËÁÞÅÓÔ×Å cgi ×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÉ. îÅ ×ÏÌÎÕÊÔÅÓØ, ÅÓÌÉ × ËÏÎÃÅ ÉÎÓÔÁÌÌÑÃÉÉ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á." itext38="ïûéâëá: ÎÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $cgi_bin" itext39=" îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÓËÏÐÉÒÏ×ÁÔØ ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin ÐÏÓÌÅ ÞÅÇÏ ÉÎÓÔÁÌÌÑÃÉÑ ÂÕÄÅÔ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÉÎÓÔÁÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ." itext40=" éÎÓÔÁÌÌÑÃÉÑ cgi-ÐÒÏÇÒÁÍÍÙ Greenstone × $cgi_bin" # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext35="Advertencia: El directorio ${cgi_bin} no existe. ¿Desea crearlo? [y]" itext36="No olvide configurar su servidor Web para que trate a $cgi_bin como un directorio ejecutable cgi. No se preocupe, esto se le recordará nuevamente al final del proceso de instalación." itext38="ERROR: El directorio $cgi_bin no se pudo crear." itext39=" No se puede escribir en el directorio $cgi_bin. Usted necesitará copiar los contenidos de ${gsdlhome}/cgi-bin en $cgi_bin después de que la instalación esté completa. Se le recordará esto nuevamente al final del proceso de instalación." itext40=" Instalación de los programas cgi de Greenstone en $cgi_bin" # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext35="Warning: The ${cgi_bin} directory does not exist. Create it? [y]" itext36="Don't forget to configure your webserver to treat $cgi_bin as a cgi executable directory. Don't worry, you'll be reminded of this again at the end of the installation procedure" itext38="ERROR: failed to create $cgi_bin directory" itext39=" Unable to write to $cgi_bin directory. You will need to copy the contents of ${gsdlhome}/cgi-bin to $cgi_bin after this installation is completed. You'll be reminded of this again at the end of the installation procedure." itext40=" Installing Greenstone cgi programs in $cgi_bin" fi if [ ! -d "$cgi_bin" ]; then echo "$itext35" echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "xy" ]; then msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mkdir "$cgi_bin" if [ -d "$cgi_bin" ]; then echo "$itext36" echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD" remind_cgi="yes" else msg="$itext38 $itext0 $itext37" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" exit 1 fi fi fi if [ ! -w "$cgi_bin" ]; then echo "$itext39" echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD" remind_cgi_nomove="yes" else # install cgi-bin stuff (update the uninstall script first) cd "$gsdlhome" echo "#!/bin/sh" > Uninstall.sh echo "" >> Uninstall.sh echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh echo "read ans" >> Uninstall.sh echo "if [ \"x\$ans\" = \"x\" -o \"\x$ans\" = \"xy\" ]; then" >> Uninstall.sh echo " exec $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh echo "fi" >> Uninstall.sh $cmd_chmod u+x Uninstall.sh cd "$thisdir" msg="$itext40 --> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin" msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin" msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/oaiserver\" \"$cgi_bin\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_mv "${gsdlhome}/cgi-bin/oaiserver" "$cgi_bin" fi fi done # web address of cgi-bin web_cgi="http://${gsdlhost}/cgi-bin" if [ "$found" = "option1" ]; then web_cgi="http://${gsdlhost}/gsdl/cgi-bin" fi # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext41=" Veuillez entrer l'adresse Web du répertoire $cgi_bin. En général, c'est http://localhost/cgi-bin, ou http://127.0.0.1/cgi-bin, ou http://votre-ordinateur-nom/cgi-bin, ou http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]" # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext41=" ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÷ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ïÂÙÞÎÏ ÜÔÏ ÍÏÖÅÔ ÂÙÔØ http://localhost/cgi-bin, ÉÌÉ http://127.0.0.1/cgi-bin, ÉÌÉ http://your-computer-name/cgi-bin ÉÌÉ http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]." # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext41=" Por favor ingrese la dirección Web del directorio $cgi_bin. En términos generales éste puede ser http://localhost/cgi-bin, http://127.0.0.1/cgi-bin, http://your-computer-name/cgi-bin o http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]" # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext41=" Please enter the web address of the $cgi_bin directory. Typically this might be http://localhost/cgi-bin, or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin, or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]" fi echo "$itext41" echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" != "x" ]; then web_cgi="$ans" fi # get public_html directory echo "$itext42" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" if [ "$logname" != "root" ]; then echo "$itext29" echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD" fi echo "$itext43" echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD" if [ "$logname" != "root" ]; then echo "$itext44" echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD" fi echo "$itext45" echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD" found="no" remind_ph="no" remind_ph_nolink="no" while [ "$found" = "no" ]; do echo "$itext32" echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" = "x" -o "x$ans" = "x1" ]; then found="yes" public_html="$gsdlhome" # no link echo "$itext46" echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD" remind_ph="yes" elif [ "x$ans" = "x2" ]; then found="yes" # external public_html echo public_html="/home/${logname}/public_html" if [ "$logname" = "root" ]; then public_html="/usr/local/apache/htdocs" fi # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext47="Entrez le répertoire qui est accessible à partir du Web [${public_html}]" # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext47="÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ, ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ ÄÏÓÔÕÐÎÏÊ ÉÚ ÓÅÔÉ [${public_html}]" # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext47="Ingrese un directorio que también sea accesible desde la Web [${public_html}]" # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext47="Enter directory that is also accessible from the web [${public_html}]" fi echo "$itext47" echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" "> " read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" != "x" ]; then public_html="$ans" fi # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext48=" Impossible d'écrire dans le répertoire $public_html. Vous devrez créer un lien symbolique appelé gsdl de $public_html vers $gsdlhome après cette installation. On vous le rappellera encore une fois à la fin de la procédure d'installation." # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext48=" îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÀ $public_html. ÷ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ ÓÏÚÄÁÔØ Ó×ÑÚØ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $public_html Ë $gsdlhome ÐÏÓÌÅ ÔÏÇÏ, ËÁË ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ." # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext48=" No se puede escribir en el directorio $public_html. Usted necesita crear un vínculo llamado gsdl de $public_html a $gsdlhome después de terminar la instalación. Se le recordará esto nuevamente al final del proceso de instalación." # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext48=" Unable to write to $public_html directory. You will need to create a link called gsdl from $public_html to $gsdlhome after this installation is completed. You'll be reminded of this again at the end of the installation procedure." fi # create link to gsdl (and update Uninstall.sh) if [ -w "$public_html" ]; then cd "$gsdlhome" echo "#!/bin/sh" > Uninstall.sh echo "" >> Uninstall.sh echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh echo "read ans" >> Uninstall.sh echo "if [ \"x\$ans\" = \"x\" -o \"\x$ans\" = \"xy\" ]; then" >> Uninstall.sh echo " exec $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh echo "fi" >> Uninstall.sh $cmd_chmod u+x Uninstall.sh cd "$thisdir" msg="--> Install.sh: [cd \"$public_html\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" cd "$public_html" msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" $cmd_ln "$gsdlhome" gsdl msg="--> Install.sh: [cd \"$thisdir\"]" echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" cd "$thisdir" else echo "$itext48" echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD" old_ph=$public_html remind_ph_nolink="yes" fi public_html="${public_html}/gsdl" fi done # ------------------------------------------------------------------------------ # MORE FRENCH STRINGS # ------------------------------------------------------------------------------ if [ "$gsdllangcode" = "fr" ]; then itext49=" Entrez l'adresse Web du répertoire $public_html. Elle peut être un url relatif (c.a.d. \"/gsdl\") ou un url complet (c.a.d. \"http://${gsdlhost}/gsdl\") [/gsdl]" itext50=" Un mot de passe est nécessaire pour pouvoir utiliser des collections construites par des utilisateurs finaux ou pour afficher des pages permettant l'administration. Un utilisateur ayant pour nom utilisateur \"admin\" sera créé avec le mot de passe que vous allez entrer (c.a.d. que pour afficher les pages qui nécessite d'authentifier l'utilisateur, vous devrez entrer \"admin\" comme nom d'utilisateur et le mot de passe que vous allez donner ici). " itext51=" L'installation de Greenstone a réussi." itext52=" * N'oubliez pas de configurer le serveur Web pour considérer le répertoire $cgi_bin comme étant le répertoire des exécutables cgi." itext53=" Pour le serveur Apache, vous devrez ajouter la directive ScriptAlias suivante dans le fichier de configuration httpd.conf" itext54=" * N'oubliez pas de déplacer le contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin " itext55=" * N'oubliez pas de configurer le serveur Web pour considérer le répertoire $gsdlhome comme accessible par le Web." itext56=" Pour le serveur Apache, vous devrez ajouter au fichier de configuration httpd.conf la directive Alias suivante." itext57=" N'oubliez pas de créer un lien symbolique appelé gsdl de $old_ph vers ${gsdlhome}. " itext58="Les messages affichés lors de l'exécution de ce script ont été enregistré dans ${gsdlhome}/INSTALL_RECORD. Vous pouvez enlever Greenstone de votre ordinateur à tout moment en exécutant le script ${gsdlhome}/Uninstall.sh. Utilisez Greenstone en rentrant l'adresse ${web_cgi}/library dans votre navigateur. " # ------------------------------------------------------------------------------ # MORE RUSSIAN STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "ru" ]; then itext49=" ÷×ÅÄÉÔÅ ×ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $public_html. üÔÏ ÍÏÖÅÔ ÂÙÔØ ÏÔÎÏÓÉÔÅÌØÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"/gsdl\") ÉÌÉ ÖÅ ÐÏÌÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"http://${gsdlhost}/gsdl\") [/gsdl]" itext50=" þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÔÒÏÅÎÉÅ ËÏÌÌÅËÃÉÉ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ ÉÌÉ ÉÍÅÔØ Õ×ÅÒÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÉ ÁÄÍÉÎÉÓÔÒÁÔÉ×ÎÙÈ ÓÔÒÁÎÉÃ, ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÐÁÒÏÌØ. ðÏÌØÚÏ×ÁÔÅÌØ Ó ÉÍÅÎÅÍ \"admin\" ÂÕÄÅÔ ÓÏÚÄÁÎ ÄÌÑ ÷ÁÓ Ó ÐÁÒÏÌÅÍ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÔÅ (ÔÏ ÅÓÔØ ÄÌÑ ×ÈÏÄÁ × ÌÀÂÙÅ ÓÔÒÁÎÉÃÙ, ÔÒÅÂÕÀÝÉÅ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÅÄÉÔÅ ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ \"admin\" É ÐÁÒÏÌØ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÌÉ). " itext51=" õÓÔÁÎÏ×ËÁ Greenstone ÚÁËÏÎÞÅÎÁ ÕÓÐÅÛÎÏ." itext52=" * îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $cgi_bin Ñ×ÌÑÌÁÓØ cgi-×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÅÊ." itext53=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ ÓÌÅÄÕÀÝÅÊ ÄÉÒÅËÔÉ×Ù ScriptAlias Ë ÷ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf." itext54=" * îÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÍÅÓÔÉÔØ ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin. " itext55=" * îÅ ÚÁÂÕÄØÔÅ ÔÁË ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÄÉÒÅËÔÏÒÉÑ $gsdlhome ÂÙÌÁ ÄÏÓÔÕÐÎÁ ÉÚ ÓÅÔÉ." itext56=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ ÄÉÒÅËÔÉ×Ù Alias Ë ×ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf." itext57=" * îÅ ÚÁÂÕÄØÔÅ ÓÏÚÄÁÔØ ÓÓÙÌËÕ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $old_ph Ë ${gsdlhome}. " itext58="÷ÙÈÏÄ ÜÔÏÇÏ ÓËÒÉÐÔÁ ÂÙÌ ÚÁÐÉÓÁÎ ÄÌÑ ÷ÁÓ × ${gsdlhome}/INSTALL_RECORD. ÷Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ Greenstone ÉÚ ÷ÁÛÅÊ ÓÉÓÔÅÍÙ × ÌÀÂÏÅ ×ÒÅÍÑ, ××ÅÄÑ ÓËÒÉÐÔ ${gsdlhome}/Uninstall.sh. äÏÓÔÕÐ Ë Greenstone ÕËÁÚÁÎÉÅÍ ÷ÅÂ-ÂÒÁÕÚÅÒÁ × ${web_cgi}/library. " # ------------------------------------------------------------------------------ # MORE SPANISH STRINGS # ------------------------------------------------------------------------------ elif [ "$gsdllangcode" = "es" ]; then itext49=" Ingrese la dirección Web del directorio $public_html. Ésta puede ser un url relativo (p. ej. \"/gsdl\") o un url completo (p. ej. \"http://${gsdlhost}/gsdl\") [/gsdl]" itext50=" Con el fin de usar la función que le permite al usuario final crear una colección o para tener acceso a ciertas partes de las páginas de administración usted deberá contar con una contraseña. Se creará para usted un usuario con el nombre \"admin\" y la contraseña que usted elija (es decir, para ingresar a las páginas que requieran de autenticación de usuario ingrese el nombre del usuario \"admin\" y la contraseña que usted haya elegido). " itext51=" La instalación de Greenstone se realizó con éxito." itext52=" * No olvide configurar su servidor Web para que trate a $cgi_bin como un directorio ejecutable cgi." itext53=" En el caso del servidor Apache esto significa añadir la siguiente directiva ScriptAlias a su archivo de configuración httpd.conf." itext54=" * No olvide mover los contenidos de ${gsdlhome}/cgi-bin a $cgi_bin. " itext55=" * No olvide configurar su servidor Web para que trate a $gsdlhome como un directorio accesible desde la Web." itext56=" En el caso del servidor Apache esto significa añadir la siguiente directiva Alias a su archivo de configuración httpd.conf." itext57=" * No olvide crear un vínculo llamado gsdl de $old_ph a ${gsdlhome}. " itext58="Los resultados de este guión han sido registrados para su uso posterior en ${gsdlhome}/INSTALL_RECORD. Usted podrá quitar el programa Greenstone de su sistema en cualquier momento que lo desee con solo ejecutar el guión ${gsdlhome}/Uninstall.sh. Para tener acceso a Greenstone apunte el navegador hacia ${web_cgi}/library. " # ------------------------------------------------------------------------------ # MORE ENGLISH STRINGS # ------------------------------------------------------------------------------ else itext49=" Enter the web address of the $public_html directory. This may be a relative url (e.g. \"/gsdl\") or a complete url (e.g. \"http://${gsdlhost}/gsdl\") [/gsdl]" itext50=" In order to use end-user collection building or to access certain parts of the administration pages you must have a password. A user with the username \"admin\" will be created for you with the password you provide (i.e. to enter any pages requiring user authentication enter the \"admin\" username and the password you set here). " itext51=" Greenstone installation completed successfully." itext52=" * Don't forget to configure your webserver to treat $cgi_bin as a cgi executable directory." itext53=" For the Apache webserver this means adding the following ScriptAlias directive to your httpd.conf configuration file." itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin to $cgi_bin " itext55=" * Don't forget to configure your webserver to treat $gsdlhome as a web accessible directory." itext56=" For the Apache webserver this means adding the following Alias directive to your httpd.conf configuration file." itext57=" * Don't forget to create a link called gsdl from $old_ph to ${gsdlhome}. " itext58="The output of this script has been recorded for you at ${gsdlhome}/INSTALL_RECORD. You may remove Greenstone from your system at any time by running the ${gsdlhome}/Uninstall.sh script. Access Greenstone by pointing a web browser at ${web_cgi}/library " fi # get httpprefix echo "$itext49" echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD" printf "%s" ">" httpprefix="/gsdl" read ans echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD" if [ "x$ans" != "x" ]; then httpprefix="$ans" fi # get initial password echo "$itext50" echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD" pw=`"${gsdlhome}/bin/${gsdlos}/getpw"` tmp="[admin] true administrator,colbuilder ${pw} admin ----------------------------------------------------------------------" echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db" $cmd_chmod a+rw "${gsdlhome}/etc/users.db" # add the dummy "demo" user with "demo" password for the authen-e collection (CD-ROM only) if [ "$iscdrom" = "yes" ]; then demouser="[demo] Dummy \"demo\" user with \"demo\" password for authen-e collection true demo Tpp90HTz/jz9w demo ----------------------------------------------------------------------" echo "$demouser" | ${gsdlhome}/bin/${gsdlos}/txt2db -append "${gsdlhome}/etc/users.db" $cmd_chmod a+rw "${gsdlhome}/etc/users.db" fi # enable the admin pages cd "$gsdlhome" sed "s|status\(.*\)disabled|status\1enabled|" etc/main.cfg > tmp123.txt && $cmd_mv tmp123.txt etc/main.cfg # set the default setup script language to be the installation language sed "s|gsdllang=\"\"|gsdllang=\"${gsdllangcode}\"|" setup.bash > tmp123.txt && $cmd_mv tmp123.txt setup.bash sed "s|setenv GSDLLANG .*|setenv GSDLLANG ${gsdllangcode}|" setup.csh > tmp123.txt && $cmd_mv tmp123.txt setup.csh $cmd_chmod a+x setup.* # set the default interface language to be the installation language echo >> etc/main.cfg echo "cgiarg shortname=l argdefault=$gsdllangcode" >> etc/main.cfg # create a symbolic link "strings.rb" to the appropriate resource bundle cd "$gsdlhome/perllib" $cmd_rm -f strings.rb $cmd_ln "strings_$gsdllangcode.rb" strings.rb # set the GLI script language to be the installation language cd "$gsdlhome/gli" sed "s|glilang=.*|glilang=$gsdllangcode|" clean.sh > tmp123.txt && $cmd_mv tmp123.txt clean.sh sed "s|glilang=.*|glilang=$gsdllangcode|" document.sh > tmp123.txt && $cmd_mv tmp123.txt document.sh sed "s|glilang=.*|glilang=$gsdllangcode|" gli.sh > tmp123.txt && $cmd_mv tmp123.txt gli.sh sed "s|glilang=.*|glilang=$gsdllangcode|" makegli.sh > tmp123.txt && $cmd_mv tmp123.txt makegli.sh $cmd_chmod a+x *.sh $cmd_rm -f *.bat # set the default GLI interface language to be the installation language sed "s|Argument name=\"general.locale\">.*<|Argument name=\"general.locale\">$gsdllangcode<|" classes/xml/config.xml > tmp123.txt && $cmd_mv tmp123.txt classes/xml/config.xml # edit gsdlsite.cfg cd "$cgi_bin" sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg # success echo "$itext51" echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD" if [ "$remind_cgi" = "yes" ]; then echo "$itext52" echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD" apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"` cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"` cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"` msg="$itext53 ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\" AllowOverride None Options None Order allow,deny Allow from all " echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" fi if [ "$remind_cgi_nomove" = "yes" ]; then echo "$itext54" echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD" fi if [ "$remind_ph" = "yes" ]; then echo "$itext55" echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD" apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"` public_html_slash=`echo "$public_html" | sed "s|/*$|/|"` public_html_noslash=`echo "$public_html" | sed "s|/*$||"` msg="$itext56 Alias ${apache_httpprefix} \"${public_html_slash}\" Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all " echo "$msg" echo "$msg" >> "${gsdlhome}/INSTALL_RECORD" fi if [ "$remind_ph_nolink" = "yes" ]; then echo "$itext57" echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD" fi echo "$itext58" echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD" # write VERSION file for automatic updating in the future echo "Version: 2.74" > "${gsdlhome}/VERSION" if [ "$iscdrom" = "yes" ]; then echo "Media: CD" >> "${gsdlhome}/VERSION" else echo "Media: Web" >> "${gsdlhome}/VERSION" fi echo "OS: $gsdlos" >> "${gsdlhome}/VERSION" echo "Language: $gsdllangcode" >> "${gsdlhome}/VERSION" if [ "$docs" = "yes" ]; then echo "Option: Documentation" >> "${gsdlhome}/VERSION" fi if [ "$export" = "yes" ]; then echo "Option: Export to CD" >> "${gsdlhome}/VERSION" fi if [ "$compile" = "yes" ]; then echo "Option: Web Library" >> "${gsdlhome}/VERSION" else echo "Option: Source" >> "${gsdlhome}/VERSION" fi exit 0