source: trunk/gsdl/Install.sh@ 6772

Last change on this file since 6772 was 6772, checked in by mdewsnip, 20 years ago

Added a couple of missing newlines.

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 70.7 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5
6# set iscdrom variable to "yes" for a cdrom installation
7iscdrom="yes"
8
9# This string will always be in English so is not translated
10echo "Which version of Greenstone do you want installed: "
11echo "[E]nglish, [F]rench, [R]ussian or [S]panish?"
12printf "%s" "> "
13read ans
14ans=`echo $ans | tr 'A-Z' 'a-z'`
15
16
17# ------------------------------------------------------------------------------
18# FRENCH STRINGS
19# ------------------------------------------------------------------------------
20if [ "$ans" == "f" ] || [ "$ans" == "french" ]; then
21
22 itext0="Greeenstone n'a pu être installé"
23
24 itext1="Install.h doit être exécuté à partir du répertoire dans lequel il réside."
25
26 itext2="ERREUR: n'a pu trouver l'emplacement "
27
28 itext3cd="Ce script va installer Greenstone sur votre système. Vous pourriez
29parcourir le document Install.pdf présent dans le repertoire des
30documents de ce CD ROM avant de poursuivre avec l'installation."
31
32 itext3web="-- Missing translation --"
33
34 itext3="Notez que lorsque l'on vous demande de taper une réponse, appuyer
35sur \"entrer\" sélectionnera le choix par défaut (indiqué entre
36crochets [] à la fin de chaque question). Si vous hésitez sur
37l'option à choisir, choisissez l'option par défaut.
38
39Notez aussi que Install.sh affiche des informations concernant la
40commande exécutée sur votre système sous la forme:
41\"--> Install.sh: [command]\".
42
43Dans cette installation, il est supposé que vous ayez déjà un
44serveur Web installé sur votre système.
45
46Afin de le consulter ultérieurement, le texte affiché lors de
47l'installation, celui ci est enregistré dans un fichier appelé
48INSTALL_RECORD qui sera placé dans le répertoire à partir duquel
49vous avez choisi d'installer Greenstone.
50
51Continuer? [y]"
52
53 itext4="
54Dans quel répertoire voulez-vous installer Greenstone?
55Assurez-vous que ce répertoire est sur une partition avec suffisamment
56d'espace disque pour les options que vous avez l'intention de choisir."
57
58 itext5="
59 * Une installation binaire pour Linux nécessite environ 40Mo."
60
61 itext6="
62 * La compilation du code source de Greenstone nécessite environ 155Mo.
63 * L'installation facultative des collections Greenstone de
64 démonstration peut occuper jusqu'à 200Mo de plus (la taille de
65 chaque collection vous sera indiquée avant l'installation).
66 * La documentation en ligne nécessite 4Mo de plus.
67 * L'option permettant à Greenstone d'exporter des collections
68 \"CD exporting\" nécessite 24Mo de plus.
69Entrez le répertoire d'installation de Greenstone. Un répertoire gsdl
70sera créé dans ce répertoire. [${gsdlhome}]"
71
72 itext7="
73Avertissement: Le répertoire ${gsdlhome} n'existe pas.
74Voulez-vous le créer? [y]"
75
76 itext8="ERREUR: la création du répertoire $gsdlhome a échoué"
77
78 itext9="
79Si cette installation échoue ou est annulée, n'oubliez pas d'exécuter
80le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
81l'installation partielle.
82Continuer? [y]"
83
84 itext10="
85Installation de la hiérarchie des répertoires à partir de ${gsdlhome}"
86
87 itext11="
88Souhaitez-vous installer la documentation Greenstone sur votre disque
89dur? La documentation occupe environ 4Mo d'espace disque. Si vous
90n'installez pas la documentation, vous pourrez toujours la consulter à
91partir du répertoire 'docs' du CD-ROM [y]"
92
93 itext12="
94Souhaitez-vous installer la fonctionnalité Greenstone pour exporter?
95Cette fonctionnalité vous permet d'exporter une collection Greenstone
96dans un format adapté pour graver un CD-ROM auto-installable sous
97Windows. Ce module occupe environ 23Mo d'espace disque [n]"
98
99 itext18="Initialisation des permissions ..."
100
101 itext19="
102Afin de permettre la construction de collection par les utilisateurs
103finaux, le programme cgi Greenstone doit pouvoir écrire dans les
104répertoires ${gsdlhome}/collect et ${gsdlhome}/tmp répertoires.
105Sur la plupart des systèmes, cela veut dire que ces répertoires doivent
106permettre l'écriture. Permettre l'écriture dans ces répertoires? [y]"
107
108 itext20="
109Vous pouvez soit installer les fichiers [b]inaires exécutables sous
110Linux (i386 seulement), soit installer et [c]ompiler le code source
111de Greenstone."
112
113 itext21="Entrez \"[b]\" ou \"c\""
114
115 itext22="Installation des fichiers binaires exécutables sous Linux"
116
117 itext23="Installation du code source"
118
119 itext24="configuration ..."
120
121 itext25="compilation ..."
122
123 itext26="installation ..."
124
125 itext27="ERREUR: La compilation a échoué"
126
127 itext28="
128
129Greenstone a besoin d'un répertoire cgi (pour les exécutables) valide
130(normalement appelé cgi-bin sur les systèmes Unix) pour exécuter.
131Ce peut être soit:
132 1. Le répertoire cgi-bin Greenstone par défaut (${gsdlhome}/cgi-bin).
133 Dans ce cas vous devrez configurer votre serveur Web pour considérer
134 ce répertoire comme étant son répertoire cgi pour les fichiers
135 exécutables. Pour Apache, vous pouvez utiliser la directive
136 'ScriptAlias' (les détails concernant la configuration de votre
137 serveur Web seront affichés à la fin de cette procédure
138 d'installation)."
139
140 itext29=" Veuillez noter que vous aurez certainement besoin de l'aide de votre
141 administrateur système pour reconfigurer votre serveur Web."
142
143 itext30=" 2. Un répertoire cgi-bin existant. Normallement un répertoire cgi-bin
144 est créé au moment de l'installation de votre serveur web.
145 Généralement c'est soit /home/httpd/cgi-bin, soit
146 /usr/local/apache/cgi-bin, soit /var/lib/apache/cgi-bin."
147
148 itext31=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir
149 leur propre répertoire cgi-bin in /home/username/public_html/cgi-bin."
150
151 itext32="Entrez \"[1]\" or \"2\""
152
153 itext33="
154N'oubliez pas de configurer votre serveur Web pour considérer
155${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en
156faites pas, vous serez à nouveau prévenu à la fin de cette procédure
157d'installation."
158
159 itext34="
160Entrez le répertoire existant cgi pour les fichiers exécutables
161[/usr/local/apache/cgi-bin]"
162
163 itext35="Avertissement: Le répertoire ${cgi_bin} n'existe pas.
164Voulez-vous le créer? [y]"
165
166 itext36="N'oubliez pas de configurer votre serveur Web pour considérer
167${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites
168pas, on vous le rappellera encore une fois à la fin la fin de la procédure
169d'installation."
170
171 itext37="Exécutez le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
172une installation partielle."
173
174 itext38="ERREUR: la création du répertoire $cgi_bin a échoué"
175
176 itext39="
177Impossible d'écrire dans le répertoire $cgi_bin . Vous devrez copier le
178contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin une
179fois cette installation terminée. On vous le rappellera encore une fois à
180la fin la fin de la procédure d'installation."
181
182 itext40="
183Installation des programmes cgi Greenstone dans $cgi_bin"
184
185 itext41="
186Veuillez entrer l'adresse Web du répertoire $cgi_bin. En général, c'est
187http://localhost/cgi-bin, ou http://127.0.0.1/cgi-bin, ou
188http://votre-ordinateur-nom/cgi-bin, ou http://nnn.nnn.nnn.nn/cgi-bin.
189[$web_cgi]"
190
191 itext42="
192
193Pour pouvoir exécuter Greenstone, le répertoire $gsdlhome et tout son
194contenu doit être accessible à partir du Web.
195Pour que cela soit possible, vous pouvez soit:
196 1. Configurer le serveur Web pour que le répertoire $gsdlhome soit
197 lui-même accessible à partir du Web."
198
199 itext43=" 2. Indiquer un répertoire Web déjà accessible à partir du Web dans
200 lequel un lien symbolique (ln -s) vers $gsdlhome sera créé.
201 Lorsqu'un serveur Web est installé, un répertoire accessible à partir
202 du web est toujours créé (le serveur Web Apache utilise la directive
203 DocumentRoot pour définir ce répertoire). En général, ce répertoire
204 est appelé /home/httpd/html, ou bien /usr/local/apache/htdocs, ou
205 encore /var/lib/apache/htdocs."
206
207 itext44=" De nombreux systèmes permettent aux utilisateurs individuels
208 d'avoir leur propre répertoire accessible à partir du Web. Ces
209 répertoires sont créés à partir du répertoire
210 /home/username/public_html."
211
212 itext45=" Veuillez noter que le serveur Web devra être configuré pour
213 accepter les liens symboliques à partir de ce répertoire. Pour
214 le serveur Apache cela signifie que ce répertoire doit être
215 configuré avec les options SymLinksIfOwnerMatch et FollowSymLinks
216 (La plupart des installations Apache sont configurées de cette façon
217 par défaut)"
218
219 itext46="
220N'oubliez pas de configurer le serveur Web pour que le répertoire $gsdlhome
221soit accessible à partir du Web. On vous le rappellera encore une fois à la
222fin la fin de la procédure d'installation."
223
224 itext47="Entrez le répertoire qui est accessible à partir du Web [${public_html}]"
225
226 itext48="
227Impossible d'écrire dans le répertoire $public_html. Vous devrez créer un
228lien symbolique appelé gsdl de $public_html vers $gsdlhome après cette
229installation. On vous le rappellera encore une fois à la fin de la
230procédure d'installation."
231
232 itext49="
233Entrez l'adresse Web du répertoire $public_html. Elle peut être un url
234relatif (c.a.d. \"/gsdl\") ou un url complet (c.a.d.
235\"http://${hostname}/gsdl\") [/gsdl]"
236
237 itext50="
238Un mot de passe est nécessaire pour pouvoir utiliser des collections
239construites par des utilisateurs finaux ou pour afficher des pages
240permettant l'administration.
241Un utilisateur ayant pour nom utilisateur \"admin\" sera créé avec le
242mot de passe que vous allez entrer (c.a.d. que pour afficher les pages
243qui nécessite d'authentifier l'utilisateur, vous devrez entrer \"admin\"
244comme nom d'utilisateur et le mot de passe que vous allez donner ici).
245"
246
247 itext51="
248
249L'installation de Greenstone a réussi."
250
251 itext52=" * N'oubliez pas de configurer le serveur Web pour considérer le
252 répertoire $cgi_bin comme étant le répertoire des exécutables cgi."
253
254 itext53=" Pour le serveur Apache, vous devrez ajouter la directive
255 ScriptAlias suivante dans le fichier de configuration httpd.conf"
256
257 itext54=" * N'oubliez pas de déplacer le contenu du répertoire
258 ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin
259"
260
261 itext55=" * N'oubliez pas de configurer le serveur Web pour considérer le
262 répertoire $gsdlhome comme accessible par le Web."
263
264 itext56=" Pour le serveur Apache, vous devrez ajouter au fichier de
265 configuration httpd.conf la directive Alias suivante."
266
267 itext57=" N'oubliez pas de créer un lien symbolique appelé gsdl de $old_ph
268 vers ${gsdlhome}.
269"
270
271 itext58="Les messages affichés lors de l'exécution de ce script ont été enregistré
272dans ${gsdlhome}/INSTALL_RECORD.
273Vous pouvez enlever Greenstone de votre ordinateur à tout moment en
274exécutant le script ${gsdlhome}/Uninstall.sh.
275Utilisez Greenstone en rentrant l'adresse ${web_cgi}/library
276dans votre navigateur.
277"
278
279 itext59="
280Cette installation nécessite l'utilitaire Gnu 'make' qui n'a pu être trouvé
281sur cet ordinateur. Veuillez entrer le chemin d'accès vers Gnu make"
282
283 itextdoccols="
284La collection Greenstone de démonstration a été installée. Souhaitez-vous
285installer d'autres collections à partir du CD-ROM d'installation? [y]"
286
287 itextdec_dls="
288-- Missing translation --"
289
290 itextdec_wrdpdf="
291-- Missing translation --"
292
293 itextdec_gsarch="
294-- Missing translation --"
295
296 itextdec_cltbib="
297-- Missing translation --"
298
299 itextdec_cltext="
300-- Missing translation --"
301
302 itextdec_marc="
303-- Missing translation --"
304
305 itextdec_oai="
306-- Missing translation --"
307
308 itextdec_image="
309-- Missing translation --"
310
311 itextdec_authen="
312-- Missing translation --"
313
314 itextdec_garish="
315-- Missing translation --"
316
317 itextdec_isis="
318-- Missing translation --"
319
320
321# ------------------------------------------------------------------------------
322# RUSSIAN STRINGS
323# ------------------------------------------------------------------------------
324elif [ "$ans" == "r" ] || [ "$ans" == "russian" ]; then
325
326 itext0="Greenstone ÎÅ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ"
327
328 itext1="Install.sh ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÚÍÅÝÁÅÔÓÑ"
329
330 itext2="ïûéâëá: îÅ×ÏÚÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÐÏÌÏÖÅÎÉÅ"
331
332 itext3cd="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone × ÷ÁÛÕ ÓÉÓÔÅÍÕ. ðÒÉ ÖÅÌÁÎÉÉ ÷Ù ÍÏÖÅÔÅ
333ÐÒÏÓÍÏÔÒÅÔØ ÄÏËÕÍÅÎÔ Install.pdf, ËÏÔÏÒÙÊ ÒÁÓÐÏÌÏÖÅÎ × ÄÉÒÅËÔÏÒÉÉ docs
334ÎÁ ÄÁÎÎÏÍ CD-ROM, ÄÏ ÐÒÏÄÏÌÖÅÎÉÑ ÉÎÓÔÁÌÌÑÃÉÉ."
335
336 itext3web="-- Missing translation --"
337
338 itext3="
339úÁÍÅÔØÔÅ, ÞÔÏ ËÏÇÄÁ ÐÏÓÔÕÐÁÅÔ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ××ÏÄ, ÎÁÖÁÔÉÅ ËÌÁ×ÉÛÉ
340\"enter\" ×ÙÂÉÒÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÚÁÄÁÎÎÏÅ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ [] ×
341ËÏÎÃÅ ËÁÖÄÏÇÏ ×ÏÐÒÏÓÁ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ËÁËÏÊ ×ÁÒÉÁÎÔ ×ÙÂÒÁÔØ,
342ÉÓÐÏÌØÚÕÊÔÅ ÔÏÔ, ËÏÔÏÒÙÊ ÄÁÎ ÐÏ ÕÍÏÌÞÁÎÉÀ.
343
344úÁÍÅÔØÔÅ ÔÁËÖÅ, ÞÔÏ Install.sh ×ÙÄÁÅÔ ÎÁ ÐÅÞÁÔØ ÉÎÆÏÒÍÁÃÉÀ ÌÀÂÙÈ
345ËÏÍÁÎÄ, ËÏÔÏÒÙÅ ÐÏÓÔÕÐÁÀÔ × ÷ÁÛÕ ÓÉÓÔÅÍÕ × ÆÏÒÍÅ
346\"--> Install.sh: [command]\".
347
348ðÏ×ÓÀÄÕ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÙÐÏÌÎÅÎÎÁÑ ÷ÁÍÉ ÐÒÏÃÅÄÕÒÁ ÉÎÓÔÁÌÌÑÃÉÉ,
349ÕÓÔÁÎÏ×ÉÌÁ ÷ÅÂ-ÓÅÒ×ÅÒ × ÷ÁÛÕ ÓÉÓÔÅÍÕ.
350
351äÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË ×ÙÈÏÄ ÄÁÎÎÏÇÏ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÓËÒÉÐÔÁ ÂÕÄÅÔ
352ÚÁÐÉÓÁÎ × ÆÁÊÌÅ, ÎÁÚÙ×ÁÅÍÏÍ INSTALL_RECORD, × ÉÒÅËÔÏÒÉÉ, ËÏÔÏÒÕÀ ÷Ù
353×ÙÂÒÁÌÉ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ Greenstone.
354
355ðÒÏÄÏÌÖÉÔØ? [y]"
356
357 itext4="
358÷ ËÁËÕÀ ÄÉÒÅËÔÏÒÉÀ ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ Greenstone? õÄÏÓÔÏ×ÅÒØÔÅÓØ,
359ÞÔÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÕÞÁÓÔËÅ Ó ÄÏÓÔÁÔÏÞÎÙÍ Ó×ÏÂÏÄÎÙÍ
360ÐÒÏÓÔÒÁÎÓÔ×ÏÍ ÎÁ ÄÉÓËÅ ÄÌÑ ÉÎÓÔÁÌÑÃÉÏÎÎÙÈ ×ÁÒÉÁÎÔÏ×, ËÏÔÏÒÙÅ ÷Ù
361ÎÁÍÅÒÅ×ÁÅÔÅÓØ ×ÙÂÒÁÔØ."
362
363 itext5="
364 * éÎÓÔÁÌÌÑÃÉÑ ÂÉÎÁÒÎÏÇÏ Linux ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 40 Mb."
365
366 itext6="
367 * ëÏÍÐÉÌÑÃÉÑ Greenstone ÉÚ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ
368 155 Mb.
369 * ðÒÏÉÚ×ÏÌØÎÙÅ ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ËÏÌÌÅËÃÉÉ Greenstone ÍÏÇÕÔ
370 ÉÓÐÏÌØÚÏ×ÁÔØ ÄÏ 200 Mb (÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÎÁÔØ ÒÁÚÍÅÒ ËÁÖÄÏÊ
371 ÉÎÄÉ×ÉÄÕÁÌØÎÏÊ ËÏÌÌÅËÃÉÉ ÐÅÒÅÄ ÔÅÍ, ËÁË ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÅÅ).
372 * ïÎÌÁÊÎÏ×ÁÑ ÄÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÄÁÌØÎÅÊÛÉÈ 4 Mb.
373 * æÕÎËÃÉÑ ÄÏÓÔÕÐÎÏÓÔÉ Greenstone \"CD exporting\" ÔÒÅÂÕÅÔ ÅÝÅ 24 Mb.
374÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ × ÎÅÅ Greenstone. äÉÒÅËÔÏÒÉÑ gsdl
375ÂÕÄÅÔ ÓÏÚÄÁÎÁ × ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. [${gsdlhome}]"
376
377 itext7="
378ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: äÉÒÅËÔÏÒÉÑ ${gsdlhome} ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
379óÏÚÄÁÔØ ÅÅ? [y]"
380
381 itext8="ïûéâëá: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $gsdlhome."
382
383 itext9="
384åÓÌÉ ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÂÙÌÁ ÎÅÕÄÁÞÎÏÊ ÉÌÉ ÏÔÍÅÎÅÎÁ, ××ÅÄÉÔÅ
385ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh), ÞÔÏÂÙ ÏÞÉÓÔÉÔØ
386ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ.
387ðÒÏÄÏÌÖÉÔØ? [y]"
388
389 itext10="
390éÎÓÔÁÌÌÑÃÉÑ ÓÔÒÕËÔÕÒÙ ÄÉÒÅËÔÏÒÉÉ Greenstone × ${gsdlhome}"
391
392 itext11="
393èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÄÏËÕÍÅÎÔÁÃÉÀ Greenstone ÎÁ ÷ÁÛ ÖÅÓÔËÉÊ ÄÉÓË?
394äÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 4 Mb ÐÒÏÓÔÒÁÎÓÔ×Á. åÓÌÉ ÷Ù ÎÅ
395ÈÏÔÉÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÅÅ, Õ ÷ÁÓ ÏÓÔÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ
396Ë ÎÅÊ ÉÚ ÄÉÒÅËÔÏÒÉÉ ÄÏËÕÍÅÎÔÏ× CD-ROM) [y]"
397
398 itext12="
399èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÐÏÄÄÅÒÖËÕ ÆÕÎËÃÉÊ Greenstone \"ÜËÓÐÏÒÔ
400ËÏÍÐÁËÔ-ÄÉÓËÁ\"? üÔÁ ÆÕÎËÃÉÑ ÐÏÚ×ÏÌÑÅÔ ÷ÁÍ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ËÏÌÌÅËÃÉÀ
401Greenstone × ÆÏÒÍÅ, ÐÏÄÈÏÄÑÝÅÊ ÄÌÑ Á×ÔÏÕÓÔÁÎÏ×ËÉ Windows CD-ROM. üÔÏÔ
402ÐÁËÅÔ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 23 íâ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á [n]"
403
404 itext18="õÓÔÁÎÏ×ËÁ ÒÁÚÒÅÛÅÎÉÊ..."
405
406 itext19="
407äÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÌÌÅËÃÉÉ, ÄÏÓÔÕÐÎÏÊ ÄÌÑ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ, cgi
408ÐÒÏÇÒÁÍÍÁ Greenstone ÄÏÌÖÎÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ×ÐÉÓÁÔØÓÑ × ÄÉÒÅËÔÏÒÉÉ
409${gsdlhome}/collect É ${gsdlhome}/tmp. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ
410ÏÚÎÁÞÁÅÔ, ÞÔÏ ÏÎÉ ÄÏÌÖÎÙ ÂÙÔØ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙ. óÄÅÌÁÔØ ÜÔÉ
411ÄÉÒÅËÔÏÒÉÉ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙÍÉ? [y]"
412
413 itext20="
414÷Ù ÍÏÖÅÔÅ ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ ÐÒÅÄËÏÍÐÉÌÉÒÕÅÍÙÅ, ÓÔÁÔÉÞÅÓËÉ Ó×ÑÚÁÎÎÙÅ
415[b] Ä×ÏÉÞÎÙÅ ËÏÄÙ linux (ÔÏÌØËÏ i386) ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ É
416[c] ËÏÍÐÉÌÉÒÏ×ÁÔØ ÉÓÈÏÄÎÕÀ ÐÒÏÇÒÁÍÍÕ Greenstone"
417
418 itext21="÷×ÅÄÉÔÅ \"[b]\" ÉÌÉ \"c\""
419
420 itext22="éÎÓÔÁÌÌÑÃÉÑ Ä×ÏÉÞÎÙÈ ËÏÄÏ× linux"
421
422 itext23="éÎÓÔÁÌÌÑÃÉÑ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ"
423
424 itext24="ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ..."
425
426 itext25="ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ..."
427
428 itext26="éÎÓÔÁÌÑÃÉÑ..."
429
430 itext27="ïûéâëá: ëÏÍÐÉÌÑÃÉÑ ÎÅ ÕÄÁÌÁÓØ"
431
432 itext28="
433
434Greenstone ÎÕÖÎÁ ÐÒÉÇÏÄÎÁÑ ÉÓÐÏÌÎÉÔÅÌØÎÁÑ ÄÉÒÅËÔÏÒÉÑ (× unix ÓÉÓÔÅÍÁÈ
435ÏÂÙÞÎÏ ÎÁÚÙ×ÁÅÍÁÑ cgi-bin), ÉÚ ËÏÔÏÒÏÊ ÏÎ ÚÁÐÕÓËÁÅÔÓÑ.
436üÔÏ ÍÏÖÅÔ ÂÙÔØ ÌÉÂÏ:
437 1. õÓÔÁÎÏ×ËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÉÒÅËÔÏÒÉÉ Greenstone cgi-bin
438 (${gsdlhome}/cgi-bin). åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÐÏ ÕÍÏÌÞÁÎÉÀ Greenstone,
439 ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÓÄÅÌÁÔØ
440 ÜÔÕ ÄÉÒÅËÔÏÒÉÀ ËÁË cgi ÉÓÐÏÌÎÉÍÕÀ. äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÷Ù
441 ÉÓÐÏÌØÚÕÅÔÅ ÄÉÒÅËÔÉ×Õ ScriptAlias, ÞÔÏÂÙ ×ÙÐÏÌÎÉÔØ ÜÔÏ (ÐÏÄÒÏÂÎÏÓÔÉ
442 Ï ÔÏÍ, ËÁË ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ, ÂÕÄÕÔ ÄÁÎÙ × ËÏÎÃÅ ÜÔÏÊ
443 ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ)."
444
445 itext29=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÷Ù ÂÕÄÅÔÅ ×ÅÒÏÑÔÎÏ ÎÕÖÄÁÔØÓÑ × ÐÏÍÏÝÉ
446 ÷ÁÛÅÇÏ ÓÉÓÔÅÍÎÏÇÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ, ÞÔÏÂÙ ÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ
447 ÷ÅÂ-ÓÅÒ×ÅÒ"
448
449 itext30=" 2. óÕÝÅÓÔ×ÕÀÝÁÑ ÄÉÒÅËÔÏÒÉÑ cgi-bin. ïÂÙÞÎÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ
450 ÓÏÚÄÁÅÔÓÑ ÐÒÉ ÉÎÓÔÁÌÌÑÃÉÉ ×ÁÛÅÇÏ ÷ÅÂ-ÓÅÒ×ÅÒÁ. ëÁË ÐÒÁ×ÉÌÏ, ÜÔÏ ÍÏÖÅÔ
451 ÂÙÔØ /home/httpd/cgi-bin, ÉÌÉ /usr/local/apache/cgi-bin, ÉÌÉ
452 /var/lib/apache/cgi-bin."
453
454 itext31=" íÎÏÇÉÅ ÓÉÓÔÅÍÙ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ
455 ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÙÊ cgi-bin × /home/username/public_html/cgi-bin."
456
457 itext32="÷×ÅÄÉÔÅ \"[1]\" ÉÌÉ \"2\""
458
459 itext33="
460îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÏÂÒÁÔÉÔØ
461${gsdlhome}/cgi-bin × cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ. îÅ ×ÏÌÎÕÊÔÅÓØ, ËÏÇÄÁ
462÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
463
464 itext34="
465÷×ÅÄÉÔÅ ÓÕÝÅÓÔ×ÕÀÝÕÀ cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ [/usr/local/apache/cgi-bin]"
466
467 itext35="ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: ${cgi_bin} ÄÉÒÅËÔÏÒÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
468óÏÚÄÁÔØ ÅÅ? [y]"
469
470 itext36="îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏÂÙ
471ÓÄÅÌÁÔØ $cgi_bin × ËÁÞÅÓÔ×Å cgi ×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÉ. îÅ ×ÏÌÎÕÊÔÅÓØ,
472ÅÓÌÉ × ËÏÎÃÅ ÉÎÓÔÁÌÌÑÃÉÉ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á."
473
474 itext37="éÓÐÏÌØÚÕÊÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh)
475ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÄÁÌÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ."
476
477 itext38="ïûéâëá: ÎÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $cgi_bin"
478
479 itext39="
480îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÓËÏÐÉÒÏ×ÁÔØ
481ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin ÐÏÓÌÅ ÞÅÇÏ ÉÎÓÔÁÌÌÑÃÉÑ ÂÕÄÅÔ
482ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÉÎÓÔÁÌÑÃÉÏÎÎÏÊ
483ÐÒÏÃÅÄÕÒÙ."
484
485 itext40="
486éÎÓÔÁÌÌÑÃÉÑ cgi-ÐÒÏÇÒÁÍÍÙ Greenstone × $cgi_bin"
487
488 itext41="
489ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÷ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ïÂÙÞÎÏ ÜÔÏ ÍÏÖÅÔ
490ÂÙÔØ http://localhost/cgi-bin, ÉÌÉ http://127.0.0.1/cgi-bin, ÉÌÉ
491http://your-computer-name/cgi-bin ÉÌÉ http://nnn.nnn.nnn.nn/cgi-bin.
492[$web_cgi]."
493
494 itext42="
495
496þÔÏÂÙ Greenstone ÍÏÇ ÂÙÔØ ÚÁÐÕÝÅÎ, ÄÉÒÅËÔÏÒÉÑ $gsdlhome É ×ÓÅ ÅÅ
497ÓÏÄÅÒÖÉÍÏÅ ÄÏÌÖÎÙ ÂÙÔØ ÄÏÓÔÕÐÎÙ ÉÚ ÓÅÔÉ.
498þÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÏÓÕÝÅÓÔ×ÉÍÙÍ, ÷Ù ÍÏÖÅÔÅ ÉÌÉ:
499 1. óËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $gsdlhome Ñ×ÌÑÌÓÑ
500 Á×ÔÏÍÁÔÉÞÅÓËÉ ÄÏÓÔÕÐÎÙÍ ÉÚ ÓÅÔÉ."
501
502 itext43=" 2.ïÂÅÓÐÅÞÉÔØ ÓÕÝÅÓÔ×ÕÀÝÕÀ ÄÏÓÔÕÐÎÕÀ ÄÉÒÅËÔÏÒÉÀ, ÉÚ
503 ËÏÔÏÒÏÊ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ (ln -s) ÂÕÄÅÔ ÓÄÅÌÁÎÁ Ë $gsdlhome.
504 ëÏÇÄÁ ×ÁÛ ÓÅÒ×ÅÒ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ, ÄÉÒÅËÔÏÒÉÑ, ÄÏÓÔÕÐÎÁÑ ÉÚ ÓÅÔÉ,
505 ÂÕÄÅÔ ÓÏÚÄÁÎÁ (÷ÅÂ-ÓÅÒ×ÅÒ Apache ÉÓÐÏÌØÚÕÅÔ ÄÉÒÅËÔÉ×Õ
506 DocumentRoot ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. ïÂÙÞÎÏ ÜÔÏÊ
507 ÄÉÒÅËÔÏÒÉÅÊ ÍÏÇÌÉ ÂÙ ÂÙÔØ /home/httpd/html, ÉÌÉ
508 /usr/local/apache/htdocs, ÉÌÉ /var/lib/apache/htdocs."
509
510 itext44=" íÎÏÇÉÅ ÓÉÓÔÅÍ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ
511 ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÕÀ ÄÏÓÔÕÐÎÕÀ ÉÚ ÓÅÔÉ ÄÉÒÅËÔÏÒÉÀ
512 × /home/username/public_html."
513
514 itext45=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ×ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÂÕÄÅÔ
515 ÄÏÌÖÅÎ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎ ÔÁË, ÞÔÏÂÙ ÐÏÚ×ÏÌÉÔØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ
516 ÉÚÎÕÔÒÉ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. äÌÑ ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ
517 ÄÁÎÎÁÑ ÄÉÒÅËÔÏÒÉÑ ÄÏÌÖÎÁ ÆÏÒÍÉÒÏ×ÁÔØÓÑ Ó ÐÏÍÏÝØÀ
518 SymLinksIfOwnerMatch ÉÌÉ ×ÁÒÉÁÎÔÁ FollowSymLinks (ÂÏÌØÛÉÎÓÔ×Ï
519 ÉÎÓÔÁÌÌÑÃÉÊ Apache ÆÏÒÍÉÒÕÀÔ ÜÔÏÔ ÐÕÔØ ÐÏ ÕÍÏÌÞÁÎÉÀ)."
520
521 itext46="
522îÅ ÚÁÂÕÄØÔÅ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÆÏÒÍÉÒÏ×ÁÔØ
523×ÁÛ webserver, ÞÔÏÂÙ $gsdlhome ÂÙÌ ÄÏÓÔÕÐÅÎ ÉÚ ÓÅÔÉ. ÷ÁÍ ÂÕÄÅÔ
524ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÄÁÎÎÏÊ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ."
525
526 itext47="÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ, ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ ÄÏÓÔÕÐÎÏÊ ÉÚ ÓÅÔÉ [${public_html}]"
527
528 itext48="
529îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÀ $public_html. ÷ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ
530ÓÏÚÄÁÔØ Ó×ÑÚØ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $public_html Ë $gsdlhome ÐÏÓÌÅ
531ÔÏÇÏ, ËÁË ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ
532ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
533
534 itext49="
535÷×ÅÄÉÔÅ ×ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $public_html. üÔÏ ÍÏÖÅÔ ÂÙÔØ
536ÏÔÎÏÓÉÔÅÌØÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"/gsdl\") ÉÌÉ ÖÅ ÐÏÌÎÙÊ URL
537(ÎÁÐÒÉÍÅÒ, \"http://${hostname}/gsdl\") [/gsdl]"
538
539 itext50="
540þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÔÒÏÅÎÉÅ ËÏÌÌÅËÃÉÉ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ ÉÌÉ
541ÉÍÅÔØ Õ×ÅÒÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÉ ÁÄÍÉÎÉÓÔÒÁÔÉ×ÎÙÈ ÓÔÒÁÎÉÃ, ÷ÁÍ
542ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÐÁÒÏÌØ. ðÏÌØÚÏ×ÁÔÅÌØ Ó ÉÍÅÎÅÍ \"admin\" ÂÕÄÅÔ
543ÓÏÚÄÁÎ ÄÌÑ ÷ÁÓ Ó ÐÁÒÏÌÅÍ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÔÅ (ÔÏ ÅÓÔØ ÄÌÑ ×ÈÏÄÁ
544× ÌÀÂÙÅ ÓÔÒÁÎÉÃÙ, ÔÒÅÂÕÀÝÉÅ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÅÄÉÔÅ
545ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ \"admin\" É ÐÁÒÏÌØ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÌÉ).
546"
547
548 itext51="
549
550õÓÔÁÎÏ×ËÁ Greenstone ÚÁËÏÎÞÅÎÁ ÕÓÐÅÛÎÏ."
551
552 itext52=" * îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË,
553 ÞÔÏÂÙ $cgi_bin Ñ×ÌÑÌÁÓØ cgi-×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÅÊ."
554
555 itext53=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
556 ÓÌÅÄÕÀÝÅÊ ÄÉÒÅËÔÉ×Ù ScriptAlias Ë ÷ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ
557 ÆÁÊÌÕ httpd.conf."
558
559 itext54=" * îÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÍÅÓÔÉÔØ ÓÏÄÅÒÖÁÎÉÅ
560 ${gsdlhome}/cgi-bin × $cgi_bin.
561"
562
563 itext55=" * îÅ ÚÁÂÕÄØÔÅ ÔÁË ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ
564 ÔÁË, ÞÔÏÂÙ ÄÉÒÅËÔÏÒÉÑ $gsdlhome ÂÙÌÁ ÄÏÓÔÕÐÎÁ ÉÚ ÓÅÔÉ."
565
566 itext56=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
567 ÄÉÒÅËÔÉ×Ù Alias Ë ×ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf."
568
569 itext57=" * îÅ ÚÁÂÕÄØÔÅ ÓÏÚÄÁÔØ ÓÓÙÌËÕ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ
570 $old_ph Ë ${gsdlhome}.
571"
572
573 itext58="÷ÙÈÏÄ ÜÔÏÇÏ ÓËÒÉÐÔÁ ÂÙÌ ÚÁÐÉÓÁÎ ÄÌÑ ÷ÁÓ ×
574${gsdlhome}/INSTALL_RECORD.
575÷Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ Greenstone ÉÚ ÷ÁÛÅÊ ÓÉÓÔÅÍÙ × ÌÀÂÏÅ ×ÒÅÍÑ,
576××ÅÄÑ ÓËÒÉÐÔ ${gsdlhome}/Uninstall.sh.
577äÏÓÔÕÐ Ë Greenstone ÕËÁÚÁÎÉÅÍ ÷ÅÂ-ÂÒÁÕÚÅÒÁ × ${web_cgi}/library.
578"
579
580 itext59="
581üÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÔÒÅÂÕÅÔ GNU, ËÏÔÏÒÙÊ ÎÅ ÂÙÌ ÏÂÎÁÒÕÖÅÎ × ÷ÁÛÅÊ
582ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÐÕÔØ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ GNU."
583
584 itextdoccols="
585äÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ ËÏÌÌÅËÃÉÑ Greenstone ÂÙÌÁ ÕÓÔÁÎÏ×ÌÅÎÁ. èÏÔÉÔÅ ÌÉ
586÷Ù ÕÓÔÁÎÏ×ÉÔØ ÌÀÂÙÅ ÄÒÕÇÉÅ ËÏÌÌÅËÃÉÉ ÉÚ ÉÎÓÔÁÌÑÃÉÏÎÎÏÇÏ CD-ROM? [y]"
587
588 itextdec_dls="
589-- Missing translation --"
590
591 itextdec_wrdpdf="
592-- Missing translation --"
593
594 itextdec_gsarch="
595-- Missing translation --"
596
597 itextdec_cltbib="
598-- Missing translation --"
599
600 itextdec_cltext="
601-- Missing translation --"
602
603 itextdec_marc="
604-- Missing translation --"
605
606 itextdec_oai="
607-- Missing translation --"
608
609 itextdec_image="
610-- Missing translation --"
611
612 itextdec_authen="
613-- Missing translation --"
614
615 itextdec_garish="
616-- Missing translation --"
617
618 itextdec_isis="
619-- Missing translation --"
620
621
622# ------------------------------------------------------------------------------
623# SPANISH STRINGS
624# ------------------------------------------------------------------------------
625elif [ "$ans" == "s" ] || [ "$ans" == "spanish" ]; then
626
627 itext0="Greenstone no ha sido instalado."
628
629 itext1="Install.sh deberá correrse desde el directorio en el que reside."
630
631 itext2="ERROR: No se pudo localizar "
632
633 itext3cd="Este guión instalará Greenstone en su sistema. Le recomendamos que
634lea el documento install.pdf que reside en el directorio de documentos
635de este CD-ROM antes de continuar con la instalación."
636
637 itext3web="-- Missing translation --"
638
639 itext3="
640Recuerde que cuando se le pida que ingrese la información, al oprimir
641\"ingresar\" usted seleccionará los ajustes por omisión (que aparecen
642entre corchetes [] al final de cada pregunta). Si no está seguro de
643cuál opción seleccionar utilice los ajustes por omisión.
644
645Recuerde asimismo que Install.sh imprime la información de cualquier
646comando que se ejecute en su sistema en la siguiente forma:
647\"--> Install.sh: [comando]\".
648
649Durante todo el proceso de instalación se asume que usted ya tiene un
650servidor Web instalado en su sistema.
651
652Como referencia para un uso posterior los resultados de este guión de
653instalación se registrarán en un archivo llamado INSTALL_RECORD en el
654directorio en el que usted decidió instalar Greenstone.
655
656¿Desea continuar? [y]"
657
658 itext4="
659¿En qué directorio se instalará Greenstone? Asegúrese de que este
660directorio esté en una partición con suficiente espacio libre en el
661disco para las opciones que usted pretende instalar."
662
663 itext5="
664 * La instalación de un binario Linux requiere aproximadamente 40 MB."
665
666 itext6="
667 * La compilación de Greenstone desde un código fuente requiere
668 aproximadamente 155 MB.
669 * También pueden usarse colecciones muestra opcionales hasta un total
670 de 200 MB (se le indicará el tamaño de cada colección individual
671 antes de instalarla).
672 * La documentación en línea requiere de otros 4 MB.
673 * La función \"exportar a un CD\" de Greenstone requerirá de otros 24 MB.
674Ingrese el directorio para instalar Greenstone. Se creará un directorio
675gsdl en este directorio. [${gsdlhome}]"
676
677 itext7="
678Advertencia: El directorio ${gsdlhome} no existe.
679¿Desea crearlo? [y]"
680
681 itext8="ERROR: no se pudo crear el directorio $gsdlhome."
682
683 itext9="
684Si no se puede realizar la instalación o ésta se cancela, corra el guión
685de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes
686instaladas.
687¿Desea continuar? [y]"
688
689 itext10="
690Instalación de la estructura de directorios Greenstone en ${gsdlhome}"
691
692 itext11="
693¿Le gustaría instalar la documentación de Greenstone en su disco duro?
694Los documentos ocuparán aproximadamente 4 MB de espacio. Si decide no
695instalarlos aún podrá tener acceso a ellos desde el directorio de
696docs del CD-ROM) [y]"
697
698 itext12="
699¿Le gustaría instalar el soporte para la función \"exportar a CD\" de
700Greenstone? Esta función le permite exportar una colección Greenstone
701en una forma que permita escribir en ella a un CD-ROM para Windows que
702se podrá instalar automáticamente. Este paquete utilizará
703aproximadamente 23 MB de espacio en el disco duro [n]"
704
705 itext18="Estableciendo los permisos..."
706
707 itext19="
708Con el fin de que el usuario final pueda crear y construir una
709colección, el programa cgi de Greenstone deberá ser capaz de escribir
710en los directorios ${gsdlhome}/collect y ${gsdlhome}/tmp. En la
711mayoría de los sistemas esto significa que deberá poderse escribir en
712ellos globalmente.
713¿Desea que se pueda escribir en estos directorios globalmente? [y]"
714
715 itext20="
716Usted puede instalar los [b]inarios de Linux vinculados estáticamente
717que se han compilado previamente (únicamente i386) o instalar y
718[c]ompilar el código fuente de Greenstone."
719
720 itext21="Escriba \"[b]\" o \"c\""
721
722 itext22="Instalación de los binarios de Linux"
723
724 itext23="Instalación del código fuente"
725
726 itext24="configurando..."
727
728 itext25="compilando..."
729
730 itext26="instalando..."
731
732 itext27="ERROR: No se pudo compilar."
733
734 itext28="
735
736Greenstone necesita un directorio ejecutable cgi que sea válido
737(normalmente llamado cgi-bin en los sistemas UNIX) desde el cual se
738pueda correr.
739Este puede ser:
740 1. El directorio cgi-bin por omisión de Greenstone
741 (${gsdlhome}/cgi-bin). Si usted utiliza esta opción entonces
742 necesitará configurar su servidor Web para que trate a este
743 directorio como un directorio ejecutable cgi. En el caso del
744 servidor Web Apache se utiliza la directiva ScriptAlias para poder
745 hacer esto (los detalles de la forma de configurar su servidor Web
746 aparecerán al final de este proceso de instalación)."
747
748 itext29=" Recuerde que probablemente necesitará ayuda de su administrador
749 de sistemas para reconfigurar su servidor Web."
750
751 itext30=" 2. Un directorio cgi-bin existente. Normalmente se crea un
752 directorio cgi-bin al momento de instalar su servidor Web. En
753 términos generales este puede ser /home/httpd/cgi-bin,
754 /usr/local/apache/cgi-bin o /var/lib/apache/cgi-bin."
755
756 itext31=" Muchos sistemas también le permiten a sus usuarios tener sus
757 propios directorios individuales cgi-bin en
758 /home/username/public_html/cgi-bin."
759
760 itext32="Escriba \"[1]\" o \"2\""
761
762 itext33="
763No olvide configurar su servidor Web para que trate a ${gsdlhome}/cgi-bin
764como un directorio ejecutable cgi. No se preocupe, esto se le recordará
765nuevamente al final del proceso de instalación."
766
767 itext34="
768Ingrese un directorio ejecutable cgi existente [/usr/local/apache/cgi-bin]"
769
770 itext35="Advertencia: El directorio ${cgi_bin} no existe.
771¿Desea crearlo? [y]"
772
773 itext36="No olvide configurar su servidor Web para que trate a $cgi_bin como
774un directorio ejecutable cgi. No se preocupe, esto se le recordará
775nuevamente al final del proceso de instalación."
776
777 itext37="Corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para
778eliminar las partes instaladas."
779
780 itext38="ERROR: El directorio $cgi_bin no se pudo crear."
781
782 itext39="
783No se puede escribir en el directorio $cgi_bin. Usted necesitará copiar
784los contenidos de ${gsdlhome}/cgi-bin en $cgi_bin después de que la
785instalación esté completa. Se le recordará esto nuevamente al final del
786proceso de instalación."
787
788 itext40="
789Instalación de los programas cgi de Greenstone en $cgi_bin"
790
791 itext41="
792Por favor ingrese la dirección Web del directorio $cgi_bin. En términos
793generales éste puede ser http://localhost/cgi-bin,
794http://127.0.0.1/cgi-bin, http://your-computer-name/cgi-bin o
795http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
796
797 itext42="
798
799Para que Greenstone pueda funcionar, el directorio $gsdlhome y todos sus
800contenidos deberán ser accesibles desde la Web.
801Para lograr esto usted puede:
802 1. Configurar su servidor Web de tal manera que el mismo $gsdlhome sea
803 accesible desde la Web."
804
805
806 itext43=" 2. Proporcionar un directorio existente que sea accesible desde la
807 Web, a través del cual se creará un vínculo simbólico (ln -s) con
808 $gsdlhome. Cuando instaló su servidor seguramente se creó un
809 directorio accesible desde la Web (el servidor Apache utiliza la
810 directiva DocumentRoot para definir este directorio). En términos
811 generales este directorio podrá ser /home/httpd/html,
812 /usr/local/apache/htdocs o /var/lib/apache/htdocs."
813
814 itext44=" Muchos sistemas también le permiten a los usuarios tener sus
815 propios directorios individuales accesibles desde la Web
816 en /home/username/public_html."
817
818 itext45=" Recuerde que necesitará configurar su servidor Web para permitir
819 la creación de vínculos simbólicos desde el interior de este
820 directorio. En el caso del servidor Apache esto significa que
821 dicho directorio deberá configurarse con la opción
822 SymLinksIfOwnerMatch o FollowSymLinks (la mayoría de las
823 instalaciones Apache se configuran de esta manera por omisión)."
824
825 itext46="
826No olvide configurar su servidor Web para hacer que $gsdlhome sea
827accesible desde la Web. Se le recordará esto nuevamente al final del
828proceso de instalación."
829
830 itext47="Ingrese un directorio que también sea accesible desde la Web [${public_html}]"
831
832 itext48="
833No se puede escribir en el directorio $public_html. Usted necesita
834crear un vínculo llamado gsdl de $public_html a $gsdlhome después de
835terminar la instalación. Se le recordará esto nuevamente al final del
836proceso de instalación."
837
838 itext49="
839Ingrese la dirección Web del directorio $public_html. Ésta puede ser
840un url relativo (p. ej. \"/gsdl\") o un url completo (p. ej.
841\"http://${hostname}/gsdl\") [/gsdl]"
842
843 itext50="
844Con el fin de usar la función que le permite al usuario final crear una
845colección o para tener acceso a ciertas partes de las páginas de
846administración usted deberá contar con una contraseña. Se creará para
847usted un usuario con el nombre \"admin\" y la contraseña que usted
848elija (es decir, para ingresar a las páginas que requieran de
849autenticación de usuario ingrese el nombre del usuario \"admin\" y la
850contraseña que usted haya elegido).
851"
852
853 itext51="
854
855La instalación de Greenstone se realizó con éxito."
856
857 itext52=" * No olvide configurar su servidor Web para que trate a $cgi_bin
858 como un directorio ejecutable cgi."
859
860 itext53=" En el caso del servidor Apache esto significa añadir la siguiente
861 directiva ScriptAlias a su archivo de configuración httpd.conf."
862
863 itext54=" * No olvide mover los contenidos de ${gsdlhome}/cgi-bin a $cgi_bin.
864"
865
866 itext55=" * No olvide configurar su servidor Web para que trate a $gsdlhome
867 como un directorio accesible desde la Web."
868
869 itext56=" En el caso del servidor Apache esto significa añadir la siguiente
870 directiva Alias a su archivo de configuración httpd.conf."
871
872 itext57=" * No olvide crear un vínculo llamado gsdl de $old_ph a ${gsdlhome}.
873"
874
875 itext58="Los resultados de este guión han sido registrados para su uso
876posterior en ${gsdlhome}/INSTALL_RECORD.
877Usted podrá quitar el programa Greenstone de su sistema en cualquier
878momento que lo desee con solo ejecutar el guión
879${gsdlhome}/Uninstall.sh.
880Para tener acceso a Greenstone apunte el navegador hacia
881${web_cgi}/library.
882"
883
884 itext59="Esta instalación requiere una utilería make GNU, el cual podría no
885encontrarse en su sistema. Por favor ingrese la ruta hacia la
886utilería make GNU."
887
888 itextdoccols="
889La colección de muestra Greenstone ha sido instalada. ¿Le gustaría instalar
890alguna otra colección del CD-ROM de instalación? [y]"
891
892 itextdec_dls="
893-- Missing translation --"
894
895 itextdec_wrdpdf="
896-- Missing translation --"
897
898 itextdec_gsarch="
899-- Missing translation --"
900
901 itextdec_cltbib="
902-- Missing translation --"
903
904 itextdec_cltext="
905-- Missing translation --"
906
907 itextdec_marc="
908-- Missing translation --"
909
910 itextdec_oai="
911-- Missing translation --"
912
913 itextdec_image="
914-- Missing translation --"
915
916 itextdec_authen="
917-- Missing translation --"
918
919 itextdec_garish="
920-- Missing translation --"
921
922 itextdec_isis="
923-- Missing translation --"
924
925
926# ------------------------------------------------------------------------------
927# ENGLISH STRINGS
928# ------------------------------------------------------------------------------
929else
930
931 itext0="Greenstone was not installed"
932
933 itext1="Install.sh must be run from the directory in which it resides"
934
935 itext2="ERROR: Could not locate "
936
937 itext3cd="This script will install Greenstone on your system. You may want
938to skim through the Install.pdf document that resides in the docs
939directory on this cd-rom before continuing with the installation."
940
941 itext3web="This script will install Greenstone on your system. You may
942want to download and skim through the Greenstone Installer's Guide
943(Install.pdf) before continuing with the installation"
944
945 itext3="
946Note that when prompted for input, hitting \"enter\" will select
947the default (given in square brackets [] at the end of each question).
948If you're unsure which option to select, use the default.
949
950Note also that Install.sh prints out information on any commands
951it runs on your system in the form \"--> Install.sh: [command]\".
952
953It is assumed throughout this installation procedure that you
954have a webserver installed on your system.
955
956For later reference the output of this install script will be
957recorded in a file called INSTALL_RECORD in the directory into
958which you choose to install Greenstone.
959
960Continue? [y]"
961
962 itext4="
963Which directory should Greenstone be installed to?
964Make sure that this directory is on a partition with sufficient
965free disk space for the installation options you intend selecting."
966
967 itext5="
968 * A linux binary installation requires approximately
969 40Mb."
970
971 itext6="
972 * Compiling Greenstone from source code requires
973 approximately 155Mb.
974 * Optional Greenstone demonstration collections may use up
975 to a further 200Mb (you'll be told the size of each individual
976 collection before you install it).
977 * Online documentation requires a further 4Mb.
978 * Enabling Greenstone's \"CD exporting\" function requires a
979 further 24Mb.
980Enter directory to install Greenstone into. A gsdl directory
981will be created in this directory. [${gsdlhome}]"
982
983 itext7="
984Warning: The ${gsdlhome} directory does not exist.
985Create it? [y]"
986
987 itext8="ERROR: failed to create $gsdlhome directory"
988
989 itext9="
990If this installation fails or is cancelled, run the uninstall
991script (${gsdlhome}/Uninstall.sh) to clean up the partial
992installation.
993Continue? [y]"
994
995 itext10="
996Installing Greenstone directory structure to ${gsdlhome}"
997
998 itext11="
999Would you like to install the Greenstone documentation to your
1000hard drive? The docs will use about 4Mb of space. If you choose
1001not to install them you can still access them from within the
1002docs directory of the cd-rom) [y]"
1003
1004 itext12="
1005Would you like to install support for Greenstone's \"CD exporting\"
1006function? This function allows you to export a Greenstone collection
1007in a form suitable for writing to a self-installing Windows cd-rom.
1008This package will use approximately 23Mb of disk space [n]"
1009
1010 itext18="Setting permissions ..."
1011
1012 itext19="
1013In order for end-user collection building to be enabled the
1014Greenstone cgi program must be able to write to the
1015${gsdlhome}/collect and ${gsdlhome}/tmp directories.
1016On most systems this means they must be globally writable.
1017Make these directories globally writable? [y]"
1018
1019 itext20="
1020You may either install pre-compiled, statically linked linux [b]inaries
1021(i386 only) or install and [c]ompile the Greenstone source code"
1022
1023 itext21="Enter \"[b]\" or \"c\""
1024
1025 itext22="Installing linux binaries"
1026
1027 itext23="Installing source code"
1028
1029 itext24="configuring ..."
1030
1031 itext25="compiling ..."
1032
1033 itext26="installing ..."
1034
1035 itext27="ERROR: Compilation failed"
1036
1037 itext28="
1038
1039Greenstone needs a valid cgi executable directory (normally called
1040cgi-bin on unix systems) from which to run.
1041This may be either:
1042 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin).
1043 If you use the Greenstone default you will need to configure
1044 your webserver to treat this directory as a cgi executable
1045 directory. For the Apache webserver you use the ScriptAlias
1046 directive to do this (details of how to configure your webserver
1047 will be displayed at the end of this installation procedure)."
1048
1049 itext29=" Note that you will probably need help from your system
1050 administrator to reconfigure your webserver."
1051
1052 itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory
1053 is created when your webserver is installed. Typically, this
1054 might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or
1055 /var/lib/apache/cgi-bin."
1056
1057 itext31=" Many systems also allow individual users to have their own
1058 cgi-bin in /home/username/public_html/cgi-bin."
1059
1060 itext32="Enter \"[1]\" or \"2\""
1061
1062 itext33="
1063Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin
1064as a cgi executable directory. Don't worry, you'll be
1065reminded of this again at the end of the installation
1066procedure"
1067
1068 itext34="
1069Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
1070
1071 itext35="Warning: The ${cgi_bin} directory does not exist.
1072Create it? [y]"
1073
1074 itext36="Don't forget to configure your webserver to treat $cgi_bin
1075as a cgi executable directory. Don't worry, you'll be
1076reminded of this again at the end of the installation
1077procedure"
1078
1079 itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh)
1080to clean up the partial installation."
1081
1082 itext38="ERROR: failed to create $cgi_bin directory"
1083
1084 itext39="
1085Unable to write to $cgi_bin directory. You will need
1086to copy the contents of ${gsdlhome}/cgi-bin
1087to $cgi_bin after this installation is completed.
1088You'll be reminded of this again at the end of the
1089installation procedure."
1090
1091 itext40="
1092Installing Greenstone cgi programs in $cgi_bin"
1093
1094 itext41="
1095Please enter the web address of the $cgi_bin
1096directory. Typically this might be http://localhost/cgi-bin,
1097or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,
1098or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
1099
1100 itext42="
1101
1102In order for Greenstone to run, the $gsdlhome
1103directory and all it contains must be accessible from the web.
1104To make this happen you may either:
1105 1. Configure your webserver so that $gsdlhome
1106 is itself accessible from the web."
1107
1108 itext43=" 2. Provide an existing web accessible directory from which
1109 a symbolic link (ln -s) will be made to $gsdlhome.
1110 When your server was installed a web accessible directory
1111 will have been created (the Apache webserver uses the
1112 DocumentRoot directive to define this directory). Typically
1113 this directory might be /home/httpd/html, or /usr/local/apache/htdocs,
1114 or /var/lib/apache/htdocs."
1115
1116 itext44=" Many systems also allow individual users to have their own
1117 web accessible directory in /home/username/public_html."
1118
1119 itext45=" Note that your web server will need to be configured to allow
1120 symbolic links from within this directory. For the Apache
1121 server that means this directory must be configured with
1122 the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache
1123 installations are configured this way by default)."
1124
1125 itext46="
1126Don't forget to configure your webserver to make $gsdlhome
1127accessible from the web. You'll be reminded of this again
1128at the end of this installation procedure."
1129
1130 itext47="Enter directory that is also accessible from the web [${public_html}]"
1131
1132 itext48="
1133Unable to write to $public_html directory. You will need
1134to create a link called gsdl from $public_html to
1135$gsdlhome after this installation is completed. You'll be
1136reminded of this again at the end of the installation
1137procedure."
1138
1139 itext49="
1140Enter the web address of the $public_html directory.
1141This may be a relative url (e.g. \"/gsdl\") or a
1142complete url (e.g. \"http://${hostname}/gsdl\") [/gsdl]"
1143
1144 itext50="
1145In order to use end-user collection building or to access certain
1146parts of the administration pages you must have a password.
1147A user with the username \"admin\" will be created for you with
1148the password you provide (i.e. to enter any pages requiring user
1149authentication enter the \"admin\" username and the password you
1150set here).
1151"
1152
1153 itext51="
1154
1155Greenstone installation completed successfully."
1156
1157 itext52=" * Don't forget to configure your webserver to treat
1158 $cgi_bin as a cgi executable directory."
1159
1160 itext53=" For the Apache webserver this means adding the following
1161 ScriptAlias directive to your httpd.conf configuration file."
1162
1163 itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin
1164 to $cgi_bin
1165"
1166
1167 itext55=" * Don't forget to configure your webserver to treat
1168 $gsdlhome as a web accessible directory."
1169
1170 itext56=" For the Apache webserver this means adding the following
1171 Alias directive to your httpd.conf configuration file."
1172
1173 itext57=" * Don't forget to create a link called gsdl from $old_ph
1174 to ${gsdlhome}.
1175"
1176
1177 itext58="The output of this script has been recorded for you at
1178${gsdlhome}/INSTALL_RECORD.
1179You may remove Greenstone from your system at any time by running
1180the ${gsdlhome}/Uninstall.sh script.
1181Access Greenstone by pointing a web browser at
1182${web_cgi}/library
1183"
1184
1185 itext59="
1186This installation requires GNU make which could not be detected
1187on your system. Please enter the path to gnu make"
1188
1189 itextdoccols="
1190The Greenstone demonstration collection has been installed. Would you
1191like to install any other collections from the installation cd-rom? [y]"
1192
1193 itextdec_dls="
1194Install the documented Development Library Subset collection (dls-e) - 11MB? [y]"
1195
1196 itextdec_wrdpdf="
1197Install the documented MSWord and PDF demonstration (wrdpdf-e) - 4MB? [y]"
1198
1199 itextdec_gsarch="
1200Install the documented Greenstone Archives collection (gsarch-e) - 9MB? [y]"
1201
1202 itextdec_cltbib="
1203Install the documented bibliography collection (cltbib-e) - 9MB? [y]"
1204
1205 itextdec_cltext="
1206Install the documented bibliography supplement (cltext-e) - 1MB? [y]"
1207
1208 itextdec_marc="
1209Install the documented MARC example (MARC-e) - 2MB? [y]"
1210
1211 itextdec_oai="
1212Install the documented OAI demo collection (oai-e) - 19MB? [y]"
1213
1214 itextdec_image="
1215Install the documented simple image collection (image-e) - 1MB? [y]"
1216
1217 itextdec_authen="
1218Install the documented formatting and authentication demo (authen-e) - 12MB? [y]"
1219
1220 itextdec_garish="
1221Install the documented garish version of demo collection (garish) - 12MB? [y]"
1222
1223 itextdec_isis="
1224Install the documented CDS/ISIS example collection (isis-e) - 2MB? [y]"
1225
1226fi
1227
1228
1229# ==============================================================================
1230# INSTALLATION CODE
1231# ==============================================================================
1232
1233cmd_cp="cp"
1234cmd_cpr="cp -r"
1235cmd_chmod="chmod"
1236cmd_mkdir="mkdir -p"
1237cmd_ln="ln -s"
1238cmd_mv="mv"
1239cmd_rm="rm -i"
1240cmd_rmr="rm -r"
1241
1242thisdir=`pwd`
1243cd ..
1244cd_dir=`pwd`
1245cd "$thisdir"
1246
1247
1248# script must be run from within cdrom/unix directory
1249if [ ! -f "${thisdir}/Install.sh" ]; then
1250 echo "$itext1"
1251 echo "$itext0"
1252 exit 1
1253fi
1254
1255# check that various important directories are on the cd
1256if [ ! -d "${cd_dir}/gsdl" ]; then
1257 echo
1258 echo "${itext2}${cd_dir}/gsdl"
1259 echo "$itext0"
1260 exit 1
1261fi
1262if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
1263 echo
1264 echo "${itext2}${cd_dir}/Unix/bin/linux"
1265 echo "$itext0"
1266 exit 1
1267fi
1268
1269# install to /usr/local by default if user is "root", otherwise
1270# default to users home directory
1271gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1272if [ "$gsdlos" = "linux" ]; then
1273 logname=`whoami`
1274else
1275 logname=""
1276fi
1277if [ "$logname" = "" ]; then
1278 logname=`logname`
1279fi
1280gsdlhome="/home/${logname}"
1281if [ "$logname" = "root" ]; then
1282 gsdlhome="/usr/local"
1283fi
1284
1285installpdf=$itext3cd
1286if [ $iscdrom = "no" ]; then
1287 installpdf=$itext3web
1288fi
1289
1290echo "$installpdf"
1291echo "$itext3"
1292printf "%s" "> "
1293read ans
1294log="${log}${itext3}
1295> $ans
1296"
1297if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1298 echo "$itext0"
1299 exit 0
1300fi
1301
1302# check we've got gnu make (we assume gnu make will always be used on linux)
1303make="make"
1304if [ "$gsdlos" != "linux" ]; then
1305 # if gmake exists, use it
1306 whichgmake=`which gmake 2> /dev/null`
1307 if [ -x "$whichgmake" ]; then
1308 make="gmake"
1309 else
1310 # try plain old "make"
1311 make_ver=`make -v 2> /dev/null | sed -n 's/^GNU.*/GNU/p'`
1312 if [ "$make_ver" != "GNU" ]; then
1313 echo "$itext59"
1314 log="${log}$itext59"
1315 printf "%s" "> "
1316 read ans
1317 make="$ans"
1318 fi
1319 fi
1320fi
1321
1322# get gsdlhome
1323msg="$itext4"
1324if [ "$gsdlos" = "linux" ]; then
1325msg="${msg}$itext5"
1326fi
1327msg="${msg}$itext6"
1328echo "$msg"
1329printf "%s" "> "
1330read ans
1331log="${log}${msg}
1332> $ans
1333"
1334if [ "$ans" != "" ]; then
1335 gsdlhome="$ans"
1336fi
1337
1338if [ ! -d "$gsdlhome" ]; then
1339 echo "$itext7"
1340 printf "%s" "> "
1341 read ans
1342 log="${log}${itext7}
1343> $ans
1344"
1345 if [ "$ans" = "" ]; then
1346 ans="y"
1347 fi
1348 if [ "$ans" = "y" ]; then
1349 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
1350 echo "$msg"
1351 log="${log}${msg}
1352"
1353 $cmd_mkdir "$gsdlhome"
1354 if [ ! -d "$gsdlhome" ]; then
1355 echo "$itext8"
1356 echo "$itext0"
1357 exit 1
1358 fi
1359 else
1360 echo "$itext0"
1361 exit 0
1362 fi
1363fi
1364
1365# from now on $gsdlhome includes the "/gsdl"
1366gsdlhome="${gsdlhome}/gsdl"
1367
1368msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
1369echo "$msg"
1370log="${log}${msg}
1371"
1372$cmd_mkdir "$gsdlhome"
1373if [ ! -d "$gsdlhome" ]; then
1374 echo "$itext8"
1375 echo "$itext0"
1376 exit 1
1377fi
1378# set permissions on gsdlhome directory
1379msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
1380echo "$msg"
1381log="${log}${msg}
1382"
1383$cmd_chmod u+rwx "$gsdlhome"
1384
1385# create initial Uninstall.sh
1386cd "$gsdlhome"
1387echo "#!/bin/sh" > Uninstall.sh
1388echo "" >> Uninstall.sh
1389echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1390echo "read ans" >> Uninstall.sh
1391echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1392echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh
1393echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1394echo "fi" >> Uninstall.sh
1395$cmd_chmod u+x Uninstall.sh
1396cd "$thisdir"
1397
1398# create initial INSTALL_RECORD
1399echo "$log" >> "${gsdlhome}/INSTALL_RECORD"
1400
1401echo "$itext9"
1402echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD"
1403printf "%s" "> "
1404read ans
1405echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1406if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1407 msg="$itext0"
1408 echo "$msg"
1409 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1410 exit 0
1411fi
1412
1413echo "$itext10"
1414echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD"
1415
1416# copy gsdl directory across
1417msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
1418echo "$msg"
1419echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1420$cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
1421
1422# copy setup shell scripts across too
1423msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
1424echo "$msg"
1425echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1426$cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
1427
1428# make sure we have a tmp directory
1429if [ ! -d "$gsdlhome/tmp" ]; then
1430 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
1431 echo "$msg"
1432 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1433 $cmd_mkdir "${gsdlhome}/tmp"
1434fi
1435
1436# make collect directory writable so we can install collections
1437msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
1438echo "$msg"
1439echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1440$cmd_chmod u+rwx "$gsdlhome/collect"
1441
1442if [ $iscdrom = "yes" ]; then
1443 # do we want docs directory?
1444 echo "$itext11"
1445 echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD"
1446 printf "%s" "> "
1447 read ans
1448 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1449 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1450 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/docs\" \"$gsdlhome\"]"
1451 echo "$msg"
1452 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1453 $cmd_cpr "${cd_dir}/docs" "$gsdlhome"
1454 fi
1455
1456 # do we want the "CD exporting" stuff?
1457 echo "$itext12"
1458 echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD"
1459 printf "%s" "> "
1460 read ans
1461 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1462 if [ "$ans" = "Y" ] || [ "$ans" = "y" ]; then
1463 msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]"
1464 echo "$msg"
1465 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1466 $cmd_chmod u+rw "${gsdlhome}/bin"
1467
1468 msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"
1469 echo "$msg"
1470 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1471 $cmd_mkdir "${gsdlhome}/bin/windows"
1472
1473 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]"
1474 echo "$msg"
1475 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1476 $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows"
1477
1478 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]"
1479 echo "$msg"
1480 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1481 $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows"
1482
1483 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]"
1484 echo "$msg"
1485 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1486 $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows"
1487
1488 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]"
1489 echo "$msg"
1490 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1491 $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows"
1492
1493 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]"
1494 echo "$msg"
1495 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1496 $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows"
1497
1498 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]"
1499 echo "$msg"
1500 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1501 $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows"
1502
1503 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]"
1504 echo "$msg"
1505 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1506 $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows"
1507
1508 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]"
1509 echo "$msg"
1510 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1511 $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows"
1512 fi
1513
1514
1515 # which collections do we want
1516 cd "${cd_dir}/collect"
1517 echo "$itextdoccols"
1518 echo "$itextdoccols" >> "${gsdlhome}/INSTALL_RECORD"
1519 printf "%s" "> "
1520 read ans
1521 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1522 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1523
1524 # dls-e
1525 echo "$itextdec_dls"
1526 echo "$itextdec_dls" >> "${gsdlhome}/INSTALL_RECORD"
1527 printf "%s" "> "
1528 read ans
1529 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1530 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1531
1532 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dls-e\" \"${gsdlhome}/collect\"]"
1533 echo "$msg"
1534 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1535 $cmd_cpr "${cd_dir}/collect/dls-e" "${gsdlhome}/collect"
1536 fi
1537
1538 # wrdpdf-e
1539 echo "$itextdec_wrdpdf"
1540 echo "$itextdec_wrdpdf" >> "${gsdlhome}/INSTALL_RECORD"
1541 printf "%s" "> "
1542 read ans
1543 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1544 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1545
1546 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wrdpdf-e\" \"${gsdlhome}/collect\"]"
1547 echo "$msg"
1548 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1549 $cmd_cpr "${cd_dir}/collect/wrdpdf-e" "${gsdlhome}/collect"
1550 fi
1551
1552 # gsarch-e
1553 echo "$itextdec_gsarch"
1554 echo "$itextdec_gsarch" >> "${gsdlhome}/INSTALL_RECORD"
1555 printf "%s" "> "
1556 read ans
1557 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1558 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1559
1560 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch-e\" \"${gsdlhome}/collect\"]"
1561 echo "$msg"
1562 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1563 $cmd_cpr "${cd_dir}/collect/gsarch-e" "${gsdlhome}/collect"
1564 fi
1565
1566 # cltbib-e
1567 echo "$itextdec_cltbib"
1568 echo "$itextdec_cltbib" >> "${gsdlhome}/INSTALL_RECORD"
1569 printf "%s" "> "
1570 read ans
1571 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1572 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1573
1574 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltbib-e\" \"${gsdlhome}/collect\"]"
1575 echo "$msg"
1576 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1577 $cmd_cpr "${cd_dir}/collect/cltbib-e" "${gsdlhome}/collect"
1578 fi
1579
1580 # cltext-e
1581 echo "$itextdec_cltext"
1582 echo "$itextdec_cltext" >> "${gsdlhome}/INSTALL_RECORD"
1583 printf "%s" "> "
1584 read ans
1585 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1586 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1587
1588 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltext-e\" \"${gsdlhome}/collect\"]"
1589 echo "$msg"
1590 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1591 $cmd_cpr "${cd_dir}/collect/cltext-e" "${gsdlhome}/collect"
1592 fi
1593
1594 # MARC-e
1595 echo "$itextdec_marc"
1596 echo "$itextdec_marc" >> "${gsdlhome}/INSTALL_RECORD"
1597 printf "%s" "> "
1598 read ans
1599 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1600 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1601
1602 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/MARC-e\" \"${gsdlhome}/collect\"]"
1603 echo "$msg"
1604 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1605 $cmd_cpr "${cd_dir}/collect/MARC-e" "${gsdlhome}/collect"
1606 fi
1607
1608 # oai-e
1609 echo "$itextdec_oai"
1610 echo "$itextdec_oai" >> "${gsdlhome}/INSTALL_RECORD"
1611 printf "%s" "> "
1612 read ans
1613 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1614 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1615
1616 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/oai-e\" \"${gsdlhome}/collect\"]"
1617 echo "$msg"
1618 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1619 $cmd_cpr "${cd_dir}/collect/oai-e" "${gsdlhome}/collect"
1620 fi
1621
1622 # image-e
1623 echo "$itextdec_image"
1624 echo "$itextdec_image" >> "${gsdlhome}/INSTALL_RECORD"
1625 printf "%s" "> "
1626 read ans
1627 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1628 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1629
1630 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/image-e\" \"${gsdlhome}/collect\"]"
1631 echo "$msg"
1632 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1633 $cmd_cpr "${cd_dir}/collect/image-e" "${gsdlhome}/collect"
1634 fi
1635
1636 # authen-e
1637 echo "$itextdec_authen"
1638 echo "$itextdec_authen" >> "${gsdlhome}/INSTALL_RECORD"
1639 printf "%s" "> "
1640 read ans
1641 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1642 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1643
1644 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/authen-e\" \"${gsdlhome}/collect\"]"
1645 echo "$msg"
1646 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1647 $cmd_cpr "${cd_dir}/collect/authen-e" "${gsdlhome}/collect"
1648 fi
1649
1650 # garish-e
1651 echo "$itextdec_garish"
1652 echo "$itextdec_garish" >> "${gsdlhome}/INSTALL_RECORD"
1653 printf "%s" "> "
1654 read ans
1655 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1656 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1657
1658 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/garish\" \"${gsdlhome}/collect\"]"
1659 echo "$msg"
1660 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1661 $cmd_cpr "${cd_dir}/collect/garish" "${gsdlhome}/collect"
1662 fi
1663
1664 # isis-e
1665 echo "$itextdec_isis"
1666 echo "$itextdec_isis" >> "${gsdlhome}/INSTALL_RECORD"
1667 printf "%s" "> "
1668 read ans
1669 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1670 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1671
1672 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/isis-e\" \"${gsdlhome}/collect\"]"
1673 echo "$msg"
1674 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1675 $cmd_cpr "${cd_dir}/collect/isis-e" "${gsdlhome}/collect"
1676 fi
1677 fi
1678fi
1679
1680# set permissions
1681msg="
1682$itext18
1683--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]
1684--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]"
1685echo "$msg"
1686echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1687$cmd_chmod -R u+rw "$gsdlhome"
1688$cmd_chmod a+x "${gsdlhome}/bin/script/"*
1689
1690# certain files in gsdl/etc need to be globally writable
1691msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/error.txt\"]"
1692echo "$msg"
1693echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1694$cmd_chmod a+w "$gsdlhome/etc/error.txt"
1695msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]"
1696echo "$msg"
1697echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1698$cmd_chmod a+w "$gsdlhome/etc/key.db"
1699msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]"
1700echo "$msg"
1701echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1702$cmd_chmod a+w "$gsdlhome/etc/users.db"
1703msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]"
1704echo "$msg"
1705echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1706$cmd_chmod a+w "$gsdlhome/etc/main.cfg"
1707msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]"
1708echo "$msg"
1709echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1710$cmd_chmod a+w "$gsdlhome/etc/history.db"
1711msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]"
1712echo "$msg"
1713echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1714$cmd_chmod a+w "$gsdlhome/etc/usage.txt"
1715
1716
1717# should gsdl/collect and gsdl/tmp be globally writable?
1718echo "$itext19"
1719echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD"
1720printf "%s" "> "
1721read ans
1722echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1723if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1724 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
1725 echo "$msg"
1726 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1727 $cmd_chmod -R a+w "$gsdlhome/collect"
1728 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]"
1729 echo "$msg"
1730 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1731 $cmd_chmod -R a+w "$gsdlhome/tmp"
1732fi
1733
1734# binaries or source code?
1735compile="yes"
1736if [ "$gsdlos" = "linux" ]; then
1737 echo "$itext20"
1738 echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD"
1739
1740 found=no
1741 while [ "$found" = "no" ]; do
1742 echo "$itext21"
1743 echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD"
1744 printf "%s" "> "
1745 read ans
1746 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1747 if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
1748 compile="no"
1749 # install binaries
1750 msg="
1751$itext22
1752--> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]"
1753 echo "$msg"
1754 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1755 $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
1756 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
1757 echo "$msg"
1758 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1759 $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
1760 msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
1761 echo "$msg"
1762 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1763 $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
1764
1765 # move library executable to cgi-bin
1766 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
1767 echo "$msg"
1768 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1769 $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
1770
1771 # move XML.tgz to perllib/cpan and untar it (if we're using perl 5.8 or
1772 # greater we use a different tgz package since modules compiled for older
1773 # perls aren't binary compatible with newer ones)
1774 xml_tgz="XML.tgz"
1775 perl_version_major=`perl -v | sed -n 's/.*v\([0-9]*\).*/\1/p'`
1776 perl_version_minor=`perl -v | sed -n 's/.*v[0-9]*\.\([0-9]*\).*/\1/p'`
1777 if [ $perl_version_major -ge 5 ] && [ $perl_version_minor -ge 8 ]; then
1778 xml_tgz="XML-5.8.tgz"
1779 fi
1780 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/${xml_tgz}\" \"${gsdlhome}/perllib/cpan\"]"
1781 echo "$msg"
1782 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1783 $cmd_mv "${gsdlhome}/bin/linux/${xml_tgz}" "${gsdlhome}/perllib/cpan"
1784 cd "${gsdlhome}/perllib/cpan"
1785 msg="--> Install.sh: [gzip -dc $xml_tgz | tar -xf -]"
1786 echo "$msg"
1787 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1788 gzip -dc $xml_tgz | tar -xf -
1789
1790 found="yes"
1791 elif [ "$ans" = "c" ]; then
1792 found="yes"
1793 fi
1794 done
1795fi
1796
1797if [ "$compile" = "yes" ]; then
1798 # install source
1799 msg="
1800$itext23
1801--> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
1802 echo "$msg"
1803 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1804 $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
1805 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
1806 echo "$msg"
1807 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1808 $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
1809 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
1810 echo "$msg"
1811 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1812 $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
1813 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
1814 echo "$msg"
1815 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1816 $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
1817 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]"
1818 echo "$msg"
1819 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1820 $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome"
1821 msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
1822 echo "$msg"
1823 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1824 $cmd_chmod -R u+rw "$gsdlhome"
1825 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
1826 echo "$msg"
1827 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1828 $cmd_chmod a+x "${gsdlhome}/configure"
1829 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
1830 echo "$msg"
1831 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1832 $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
1833
1834 # compile it
1835 msg="--> Install.sh: [cd $gsdlhome]"
1836 echo "$msg"
1837 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1838 cd "$gsdlhome"
1839 msg="$itext24
1840
1841--> Install.sh: [./configure]"
1842 echo "$msg"
1843 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1844 ./configure
1845 msg="$itext25
1846
1847--> Install.sh: [make]"
1848 echo "$msg"
1849 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1850 $make
1851 msg="$itext26
1852
1853--> Install.sh: [make install]"
1854 echo "$msg"
1855 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1856 $make install
1857 msg="--> Install.sh: [cd $thisdir]"
1858 echo "$msg"
1859 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1860 cd "$thisdir"
1861
1862 # check that things compiled ok
1863 if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
1864 msg="$itext27
1865$itext0
1866$itext37"
1867 echo "$msg"
1868 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1869 exit 1
1870 fi
1871fi
1872
1873
1874# try to find out hostname
1875if [ "$gsdlos" = "linux" ]; then
1876 hostname=`hostname -f`
1877 if [ "$hostname" = "" ]; then
1878 hostname=`hostname -i`
1879 fi
1880fi
1881if [ "$hostname" = "" ]; then
1882 hostname=`hostname`
1883fi
1884if [ "$hostname" = "" ]; then
1885 hostname="your-computer-name"
1886fi
1887
1888
1889# get cgi-bin directory
1890echo "$itext28"
1891echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD"
1892if [ "$logname" != "root" ]; then
1893 echo "$itext29"
1894 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
1895fi
1896echo "$itext30"
1897echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD"
1898if [ "$logname" != "root" ]; then
1899 echo "$itext31"
1900 echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD"
1901fi
1902found=no
1903remind_cgi="no"
1904remind_cgi_nomove="no"
1905while [ "$found" = "no" ]; do
1906 echo "$itext32"
1907 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
1908 printf "%s" "> "
1909 read ans
1910 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1911 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
1912 found="option1"
1913 cgi_bin="${gsdlhome}/cgi-bin"
1914 # default gsdl cgi-bin, do nothing
1915
1916 echo "$itext33"
1917 echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD"
1918 remind_cgi="yes"
1919 elif [ "$ans" = "2" ]; then
1920 found="option2"
1921 # external cgi-bin
1922
1923 echo "$itext34"
1924 echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD"
1925 printf "%s" "> "
1926 read ans
1927 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1928 if [ "$ans" = "" ]; then
1929 cgi_bin="/usr/local/apache/cgi-bin"
1930 else
1931 cgi_bin="$ans"
1932 fi
1933
1934 if [ ! -d "$cgi_bin" ]; then
1935
1936 echo "$itext35"
1937 echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD"
1938 printf "%s" "> "
1939 read ans
1940 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1941 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1942 msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
1943 echo "$msg"
1944 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1945 $cmd_mkdir "$cgi_bin"
1946 if [ -d "$cgi_bin" ]; then
1947 echo "$itext36"
1948 echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD"
1949 remind_cgi="yes"
1950 else
1951 msg="$itext38
1952$itext0
1953$itext37"
1954 echo "$msg"
1955 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1956 exit 1
1957 fi
1958 fi
1959 fi
1960
1961 if [ ! -w "$cgi_bin" ]; then
1962 echo "$itext39"
1963 echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD"
1964 remind_cgi_nomove="yes"
1965 else
1966 # install cgi-bin stuff (update the uninstall script first)
1967 cd "$gsdlhome"
1968 echo "#!/bin/sh" > Uninstall.sh
1969 echo "" >> Uninstall.sh
1970 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
1971 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
1972 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1973 echo "read ans" >> Uninstall.sh
1974 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1975 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1976 echo "fi" >> Uninstall.sh
1977 $cmd_chmod u+x Uninstall.sh
1978 cd "$thisdir"
1979
1980 msg="$itext40
1981--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
1982 echo "$msg"
1983 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1984 $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
1985 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
1986 echo "$msg"
1987 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1988 $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
1989 fi
1990 fi
1991done
1992
1993# web address of cgi-bin
1994web_cgi="http://${hostname}/cgi-bin"
1995if [ "$found" = "option1" ]; then
1996 web_cgi="http://${hostname}/gsdl/cgi-bin"
1997fi
1998
1999echo "$itext41"
2000echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD"
2001printf "%s" "> "
2002read ans
2003echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2004if [ "$ans" != "" ]; then
2005 web_cgi="$ans"
2006fi
2007
2008# get public_html directory
2009echo "$itext42"
2010echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2011if [ "$logname" != "root" ]; then
2012 echo "$itext29"
2013 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
2014fi
2015echo "$itext43"
2016echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD"
2017if [ "$logname" != "root" ]; then
2018 echo "$itext44"
2019 echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD"
2020fi
2021echo "$itext45"
2022echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD"
2023found="no"
2024remind_ph="no"
2025remind_ph_nolink="no"
2026while [ "$found" = "no" ]; do
2027 echo "$itext32"
2028 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
2029 printf "%s" "> "
2030 read ans
2031 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2032 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
2033 found="yes"
2034 public_html="$gsdlhome"
2035 # no link
2036 echo "$itext46"
2037 echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD"
2038 remind_ph="yes"
2039 elif [ "$ans" = "2" ]; then
2040 found="yes"
2041 # external public_html
2042 echo
2043 public_html="/home/${logname}/public_html"
2044 if [ "$logname" = "root" ]; then
2045 public_html="/usr/local/apache/htdocs"
2046 fi
2047
2048 echo "$itext47"
2049 echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD"
2050 printf "%s" "> "
2051 read ans
2052 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2053 if [ "$ans" != "" ]; then
2054 public_html="$ans"
2055 fi
2056
2057 # create link to gsdl (and update Uninstall.sh)
2058 if [ -w "$public_html" ]; then
2059 cd "$gsdlhome"
2060 echo "#!/bin/sh" > Uninstall.sh
2061 echo "" >> Uninstall.sh
2062 echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh
2063 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
2064 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
2065 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
2066 echo "read ans" >> Uninstall.sh
2067 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
2068 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
2069 echo "fi" >> Uninstall.sh
2070 $cmd_chmod u+x Uninstall.sh
2071 cd "$thisdir"
2072
2073 msg="--> Install.sh: [cd \"$public_html\"]"
2074 echo "$msg"
2075 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2076 cd "$public_html"
2077 msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
2078 echo "$msg"
2079 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2080 $cmd_ln "$gsdlhome" gsdl
2081 msg="--> Install.sh: [cd \"$thisdir\"]"
2082 echo "$msg"
2083 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2084 cd "$thisdir"
2085 else
2086 echo "$itext48"
2087 echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD"
2088 old_ph=$public_html
2089 remind_ph_nolink="yes"
2090 fi
2091 public_html="${public_html}/gsdl"
2092 fi
2093done
2094
2095# get httpprefix
2096echo "$itext49"
2097echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD"
2098printf "%s" ">"
2099httpprefix="/gsdl"
2100read ans
2101echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2102if [ "$ans" != "" ]; then
2103 httpprefix="$ans"
2104fi
2105
2106# get initial password
2107echo "$itext50"
2108echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD"
2109pw=`"${gsdlhome}/bin/${gsdlos}/getpw"`
2110tmp="[admin]
2111<comment>
2112<enabled>true
2113<groups>administrator,colbuilder
2114<password>${pw}
2115<username>admin
2116----------------------------------------------------------------------"
2117echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
2118$cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2119
2120# edit gsdlsite.cfg
2121cd "$cgi_bin"
2122sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2123sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2124sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2125
2126# success
2127echo "$itext51"
2128echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD"
2129if [ "$remind_cgi" = "yes" ]; then
2130 echo "$itext52"
2131 echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD"
2132
2133 apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2134 cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
2135 cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
2136
2137 msg="$itext53
2138
2139 ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\"
2140 <Directory \"${cgi_bin_noslash}\">
2141 AllowOverride None
2142 Options None
2143 Order allow,deny
2144 Allow from all
2145 </Directory>
2146"
2147 echo "$msg"
2148 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2149fi
2150if [ "$remind_cgi_nomove" = "yes" ]; then
2151 echo "$itext54"
2152 echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD"
2153fi
2154if [ "$remind_ph" = "yes" ]; then
2155 echo "$itext55"
2156 echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD"
2157
2158 apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2159 public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
2160 public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
2161
2162 msg="$itext56
2163
2164 Alias ${apache_httpprefix} \"${public_html_slash}\"
2165 <Directory \"${public_html_noslash}\">
2166 Options Indexes MultiViews FollowSymLinks
2167 AllowOverride None
2168 Order allow,deny
2169 Allow from all
2170 </Directory>
2171"
2172 echo "$msg"
2173 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2174fi
2175if [ "$remind_ph_nolink" = "yes" ]; then
2176 echo "$itext57"
2177 echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD"
2178fi
2179echo "$itext58"
2180echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD"
2181
2182exit 0
Note: See TracBrowser for help on using the repository browser.