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