1 |
scen 08/04/16 18:39:34 |
2 |
|
3 |
Added: apache-2.eclass.xml apache-module.eclass.xml |
4 |
depend.apache.eclass.xml |
5 |
Log: |
6 |
Initial commit: adding helper docs for apache-related eclasses (version 1.0, revision 1.1 of EN CVS) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 xml/htdocs/proj/it/apache/doc/apache-2.eclass.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/apache-2.eclass.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/apache-2.eclass.xml?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: apache-2.eclass.xml |
15 |
=================================================================== |
16 |
<?xml version='1.0' encoding='UTF-8'?> |
17 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/it/apache/doc/apache-2.eclass.xml,v 1.1 2008/04/16 18:39:33 scen Exp $ --> |
18 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
19 |
|
20 |
<guide link="/proj/it/apache/doc/apache-2.eclass.xml" lang="it"> |
21 |
<title>Documentazione per apache-2.eclass</title> |
22 |
|
23 |
<author title="Autore"> |
24 |
<mail link="apache-devs@g.o">apache-devs@g.o</mail> |
25 |
</author> |
26 |
<author title="Traduzione"> |
27 |
<mail link="scen"/> |
28 |
</author> |
29 |
|
30 |
<abstract> |
31 |
Documentazione auto-generata per apache-2.eclass |
32 |
</abstract> |
33 |
|
34 |
<license/> |
35 |
|
36 |
<version>1.0</version> |
37 |
<date>2008-03-23</date> |
38 |
|
39 |
<chapter> |
40 |
<title>NOME</title> |
41 |
<section> |
42 |
<body> |
43 |
|
44 |
<p> |
45 |
<c>apache-2.eclass</c> - Fornisce un insieme generale di funzioni per gli ebuild |
46 |
di apache-2.x |
47 |
</p> |
48 |
|
49 |
</body> |
50 |
</section> |
51 |
</chapter> |
52 |
|
53 |
<chapter> |
54 |
<title>DESCRIZIONE</title> |
55 |
<section> |
56 |
<body> |
57 |
|
58 |
<p> |
59 |
Questa eclass gestisce le funzioni delle ebuild di apache-2.x come la |
60 |
generazione LoadModule e il controllo di dipendenza tra i moduli. |
61 |
</p> |
62 |
|
63 |
</body> |
64 |
</section> |
65 |
</chapter> |
66 |
|
67 |
<chapter> |
68 |
<title>FUNZIONI</title> |
69 |
<section> |
70 |
<body> |
71 |
|
72 |
<dl> |
73 |
<dt><c>setup_mpm </c></dt> |
74 |
<dd> |
75 |
Questa funzione interna assicura che solo uno dei APACHE2_MPMS sia |
76 |
selezionato o un'impostazione predefinita basata su USE=threads sia |
77 |
selezionata se APACHE2_MPMS è vuoto |
78 |
</dd> |
79 |
<dt><c>check_module_critical </c></dt> |
80 |
<dd> |
81 |
Questa funzione interna avvisa l'utente riguardo a moduli critici per la |
82 |
configurazione predefinita di apache. |
83 |
</dd> |
84 |
<dt><c>check_module_depends </c></dt> |
85 |
<dd> |
86 |
Questa funzione interna assicura che tutte le dipendenze tra moduli siano |
87 |
soddisfatte con la selezione corrente di moduli |
88 |
</dd> |
89 |
<dt><c>setup_modules </c></dt> |
90 |
<dd> |
91 |
Questa funzione interna seleziona tutti i moduli built-in basati sulle flag |
92 |
USE e sulle flag USE_EXPAND APACHE2_MODULES |
93 |
</dd> |
94 |
<dt><c>generate_load_module </c></dt> |
95 |
<dd> |
96 |
Questa funzione interna genera le linee LoadModule per httpd.conf basandosi |
97 |
sulle selezione corrente dei moduli e MODULE_DEFINES |
98 |
</dd> |
99 |
<dt><c>check_upgrade </c></dt> |
100 |
<dd> |
101 |
Questa funzione interna controlla se il file di configurazione precedente |
102 |
per i moduli built-in esista in ROOT e ne previene l'aggiornamento, in |
103 |
questo caso. Si presuppone che gli utenti convertano questo file alla nuova |
104 |
variabile USE_EXPAND APACHE2_MODULES e lo rimuovano successivamente. |
105 |
</dd> |
106 |
<dt><c>apache-2_pkg_setup </c></dt> |
107 |
<dd> |
108 |
Questa funzione selezioni i moduli built-in, gli MPM e altre opzioni di |
109 |
configurazione, crea l'utente e il gruppo apache ed informa riguardo alla |
110 |
necessaria disponibilità di CONFIG_SYSVIPC (non è possibile dipendere dai |
111 |
sorgenti del kernel e pertanto non è possibile controllare automaticamente). |
112 |
</dd> |
113 |
<dt><c>apache-2_src_unpack </c></dt> |
114 |
<dd> |
115 |
Questa funzione applica patch, configura un layout personalizzato del |
116 |
file-system e ricompila gli script di configurazione. |
117 |
</dd> |
118 |
<dt><c>apache-2_src_compile </c></dt> |
119 |
<dd> |
120 |
Questa funzione aggiunge flag di compilazione ed esegue econf ed emake |
121 |
basandosi su MY_MPM e MY_CONF |
122 |
</dd> |
123 |
<dt><c>apache-2_src_install </c></dt> |
124 |
<dd> |
125 |
Questa funzione esegue `emake install' e genera, installa e adatta i file di |
126 |
configurazione specifici per gentoo trovati nell'archivio tarball |
127 |
</dd> |
128 |
<dt><c>apache-2_pkg_postinst </c></dt> |
129 |
<dd> |
130 |
Questa funzione crea i certificati di test se SSL è abilitato ed installa la |
131 |
webroot predefinita in /var/www/localhost se non esiste già. Vengono fatte |
132 |
qui queste operazioni perché la webroot predefinita è una copia dei file che |
133 |
esistono da altre parti e non si vuole vengano gestite/rimosse da portage |
134 |
quando apache viene aggiornato. |
135 |
</dd> |
136 |
<dt><c>apache-2_pkg_config </c></dt> |
137 |
<dd> |
138 |
Questa funzione installa -- e sovrascrive -- la webroot predefinita su |
139 |
/var/www/localhost |
140 |
</dd> |
141 |
</dl> |
142 |
|
143 |
</body> |
144 |
</section> |
145 |
</chapter> |
146 |
|
147 |
<chapter> |
148 |
<title>VARIABILI</title> |
149 |
<section> |
150 |
<body> |
151 |
|
152 |
<dl> |
153 |
<dt><c>GENTOO_DEVELOPER</c></dt> |
154 |
<dd> |
155 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene il |
156 |
nome dello sviluppatore gentoo che ha creato l'archivio tarball delle patch |
157 |
</dd> |
158 |
<dt><c>GENTOO_PATCHSTAMP</c></dt> |
159 |
<dd> |
160 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene la |
161 |
data di creazione dell'archivio tarball delle patch nel formato AAAAMMGG |
162 |
</dd> |
163 |
<dt><c>IUSE_MPMS_FORK</c></dt> |
164 |
<dd> |
165 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
166 |
elenco di MPM forking (ovvero non-threaded) |
167 |
</dd> |
168 |
<dt><c>IUSE_MPMS_THREAD</c></dt> |
169 |
<dd> |
170 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
171 |
elenco di MPM threaded |
172 |
</dd> |
173 |
<dt><c>IUSE_MODULES</c></dt> |
174 |
<dd> |
175 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
176 |
elenco di moduli built-in disponibili |
177 |
</dd> |
178 |
<dt><c>MODULE_CRITICAL</c></dt> |
179 |
<dd> |
180 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
181 |
elenco separato da spazi di moduli critici per l'installazione predefinita |
182 |
di apache. Un utente potrebbe ancora disabilitare questi moduli per |
183 |
installazioni minimali personalizzate a proprio rischio e pericolo. |
184 |
</dd> |
185 |
<dt><c>MODULE_DEPENDS</c></dt> |
186 |
<dd> |
187 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
188 |
elenco separato da spazi di token per le dipendenze, ciascuno con un modulo |
189 |
e il modulo da cui dipende separati da una virgola. |
190 |
</dd> |
191 |
<dt><c>MODULE_DEFINES</c></dt> |
192 |
<dd> |
193 |
Questa variabile ha bisogno di essere impostata nell'ebuild e contiene un |
194 |
elenco separato da spazi di token, ciascuno dei quali mappa un modulo ad un |
195 |
define runtime che può essere specificato in APACHE2_OPTS all'interno di |
196 |
/etc/conf.d/apache2 per abilitare questo particolare modulo. |
197 |
</dd> |
198 |
</dl> |
199 |
|
200 |
</body> |
201 |
</section> |
202 |
</chapter> |
203 |
|
204 |
<chapter> |
205 |
<title>VARIABILI ECLASS</title> |
206 |
<section> |
207 |
<body> |
208 |
|
209 |
<dl> |
210 |
<dt><c>GENTOO_PATCHNAME = "gentoo-${PF}"</c></dt> |
211 |
<dd> |
212 |
Questa variabile interna contiene il prefisso dell'archivio tarball delle |
213 |
patch |
214 |
</dd> |
215 |
<dt><c>GENTOO_PATCHDIR = "${WORKDIR}/${GENTOO_PATCHNAME}"</c></dt> |
216 |
<dd> |
217 |
Questa variabile interna contiene la directory di lavoro dove sono collocate |
218 |
le patch e i file di configurazione |
219 |
</dd> |
220 |
<dt><c>MY_MPM</c></dt> |
221 |
<dd> |
222 |
Questa variabile interna contiene gli MPM selezionati dopo una chiamata a |
223 |
setup_mpm() |
224 |
</dd> |
225 |
<dt><c>MY_CONF</c></dt> |
226 |
<dd> |
227 |
Questa variabile interna contiene le opzioni di econf per la selezione |
228 |
corrente del modulo dopo una chiamata a setup_modules() |
229 |
</dd> |
230 |
<dt><c>MY_MODS</c></dt> |
231 |
<dd> |
232 |
Questa variabile interna contiene un elenco ordinato separato da spazi dei |
233 |
moduli correntemente selezionati dopo una chiamata a setup_modules() |
234 |
</dd> |
235 |
</dl> |
236 |
|
237 |
</body> |
238 |
</section> |
239 |
</chapter> |
240 |
|
241 |
<chapter> |
242 |
<title>MANTENITORI</title> |
243 |
<section> |
244 |
<body> |
245 |
|
246 |
<p> |
247 |
apache-devs@g.o |
248 |
</p> |
249 |
|
250 |
</body> |
251 |
</section> |
252 |
</chapter> |
253 |
|
254 |
<chapter> |
255 |
<title>RIPORTARE BUGS</title> |
256 |
<section> |
257 |
<body> |
258 |
|
259 |
<p> |
260 |
Si prega di riportare eventuali bug tramite <uri |
261 |
link="http://bugs.gentoo.org">http://bugs.gentoo.org/</uri> |
262 |
</p> |
263 |
|
264 |
</body> |
265 |
</section> |
266 |
</chapter> |
267 |
|
268 |
<chapter> |
269 |
<title>FILE</title> |
270 |
<section> |
271 |
<body> |
272 |
|
273 |
<p> |
274 |
<c>/usr/portage/eclass/apache-2.eclass</c> |
275 |
</p> |
276 |
|
277 |
</body> |
278 |
</section> |
279 |
</chapter> |
280 |
|
281 |
<chapter> |
282 |
<title>VEDERE ANCHE</title> |
283 |
<section> |
284 |
<body> |
285 |
|
286 |
<p> |
287 |
<c>ebuild (5)</c> |
288 |
</p> |
289 |
|
290 |
</body> |
291 |
</section> |
292 |
</chapter> |
293 |
</guide> |
294 |
|
295 |
|
296 |
|
297 |
1.1 xml/htdocs/proj/it/apache/doc/apache-module.eclass.xml |
298 |
|
299 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/apache-module.eclass.xml?rev=1.1&view=markup |
300 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/apache-module.eclass.xml?rev=1.1&content-type=text/plain |
301 |
|
302 |
Index: apache-module.eclass.xml |
303 |
=================================================================== |
304 |
<?xml version='1.0' encoding='UTF-8'?> |
305 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/it/apache/doc/apache-module.eclass.xml,v 1.1 2008/04/16 18:39:33 scen Exp $ --> |
306 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
307 |
|
308 |
<guide link="/proj/en/apache/doc/apache-module.eclass.xml" lang="it"> |
309 |
<title>Documentazione per apache-module.eclass</title> |
310 |
|
311 |
<author title="Autore"> |
312 |
<mail link="apache-devs@g.o">apache-devs@g.o</mail> |
313 |
</author> |
314 |
<author title="Traduzione"> |
315 |
<mail link="scen"/> |
316 |
</author> |
317 |
|
318 |
<abstract> |
319 |
Documentazione auto-generata per apache-module.eclass |
320 |
</abstract> |
321 |
|
322 |
<license/> |
323 |
|
324 |
<version>1.0</version> |
325 |
<date>2008-03-23</date> |
326 |
|
327 |
<chapter> |
328 |
<title>NOME</title> |
329 |
<section> |
330 |
<body> |
331 |
|
332 |
<p> |
333 |
<c>apache-module.eclass</c> - Fornisce un insieme generale di funzioni per i |
334 |
moduli apache |
335 |
</p> |
336 |
|
337 |
</body> |
338 |
</section> |
339 |
</chapter> |
340 |
|
341 |
<chapter> |
342 |
<title>DESCRIZIONE</title> |
343 |
<section> |
344 |
<body> |
345 |
|
346 |
<p> |
347 |
Questa eclass gestisce i moduli apache in modo ottimale. |
348 |
</p> |
349 |
|
350 |
<p> |
351 |
Per far uso di questa eclass basta chiamare una delle funzioni need/want_apache |
352 |
descritte in depend.apache.eclass. Assicurarsi di usare la chiamata |
353 |
need/want_apache dopo aver definito le variabili DEPEND e RDEPEND. Notare |
354 |
inoltre che si può fare affidamento sull'automatismo RDEPEND=DEPEND che portage |
355 |
fa se si usa questa eclass. |
356 |
</p> |
357 |
|
358 |
<p> |
359 |
Vedere il Bug 107127 per maggiori informazioni. |
360 |
</p> |
361 |
|
362 |
<p> |
363 |
</p> |
364 |
|
365 |
</body> |
366 |
</section> |
367 |
</chapter> |
368 |
|
369 |
<chapter> |
370 |
<title>ESEMPIO</title> |
371 |
<section> |
372 |
<body> |
373 |
|
374 |
<p> |
375 |
</p> |
376 |
|
377 |
<p> |
378 |
Questo è un semplice esempio di un ebuild per mod_foo: |
379 |
</p> |
380 |
|
381 |
<p> |
382 |
</p> |
383 |
|
384 |
<pre caption="esempio"> |
385 |
APACHE2_MOD_CONF="42_mod_foo" |
386 |
APACHE2_MOD_DEFINE="FOO" |
387 |
need_apache2 |
388 |
</pre> |
389 |
|
390 |
<p> |
391 |
</p> |
392 |
|
393 |
<p> |
394 |
Un esempio più complicato per un modulo con locazioni non standard: |
395 |
</p> |
396 |
|
397 |
<p> |
398 |
</p> |
399 |
|
400 |
<pre caption="esempio"> |
401 |
APXS2_S="${S}/apache22/src" |
402 |
APACHE2_MOD_FILE="${APXS2_S}/${PN}.so" |
403 |
APACHE2_MOD_CONF="42_${PN}" |
404 |
APACHE2_MOD_DEFINE="FOO" |
405 |
DOCFILES="docs/*.html" |
406 |
need_apache2_2 |
407 |
</pre> |
408 |
|
409 |
<p> |
410 |
</p> |
411 |
|
412 |
<p> |
413 |
Una configurazione base di un modulo che carica solamente il modulo in apache: |
414 |
</p> |
415 |
|
416 |
<p> |
417 |
</p> |
418 |
|
419 |
<pre caption="esempio"> |
420 |
<IfDefine FOO> |
421 |
LoadModule foo_module modules/mod_foo.so |
422 |
</IfDefine> |
423 |
</pre> |
424 |
|
425 |
<p> |
426 |
</p> |
427 |
|
428 |
</body> |
429 |
</section> |
430 |
</chapter> |
431 |
|
432 |
<chapter> |
433 |
<title>FUNZIONI</title> |
434 |
<section> |
435 |
<body> |
436 |
|
437 |
<dl> |
438 |
<dt><c>apache-module_src_compile </c></dt> |
439 |
<dd> |
440 |
L'azione predefinita è chiamare ${APXS} con il valore di ${APXS2_ARGS}. Se |
441 |
un modulo richiede un'impostazione di compilazione differente da questa, |
442 |
usare ${APXS} nella propria routine src_compile. |
443 |
</dd> |
444 |
<dt><c>apache-module_src_install </c></dt> |
445 |
<dd> |
446 |
Installa i file nelle directory di apache. Il modulo è installato da una |
447 |
directory scelta come sopra (apache_cd_dir). In aggiunta, questa funzione |
448 |
può anche impostare i permessi d'esecuzione sui file elencati in |
449 |
${APACHE2_EXECFILES}. Il nome del file di configurazione è elencato in |
450 |
${APACHE2_MOD_CONF} senza l'estensione .conf, per cui se la propria |
451 |
configurazione è 55_mod_foo.conf, APACHE2_MOD_CONF dovrà essere 55_mod_foo. |
452 |
${DOCFILES} contiene l'elenco dei file che si vogliono rendere disponibili |
453 |
come documentazione. |
454 |
</dd> |
455 |
<dt><c>apache-module_pkg_postinst </c></dt> |
456 |
<dd> |
457 |
Stampa a video le informazioni riguardo al modulo installato e come |
458 |
abilitarlo. |
459 |
</dd> |
460 |
</dl> |
461 |
|
462 |
</body> |
463 |
</section> |
464 |
</chapter> |
465 |
|
466 |
<chapter> |
467 |
<title>VARIABILI</title> |
468 |
<section> |
469 |
<body> |
470 |
|
471 |
<dl> |
472 |
<dt><c>APXS2_S</c></dt> |
473 |
<dd> |
474 |
Percorso alla directory temporanea di compilazione. (Viene impostata al |
475 |
valore predefinito `${S}/src' se esiste, altrimenti a `${S}') |
476 |
</dd> |
477 |
<dt><c>APXS2_ARGS</c></dt> |
478 |
<dd> |
479 |
Argomenti da passare allo strumento apxs. (Viene impostata al valore |
480 |
predefinito `-c ${PN}.c') |
481 |
</dd> |
482 |
<dt><c>APACHE2_EXECFILES</c></dt> |
483 |
<dd> |
484 |
Elenco di file che verranno installati in ${APACHE_MODULE_DIR} a fianco di |
485 |
${APACHE2_MOD_FILE}. In aggiunta, questa funzione imposta inoltre i permessi |
486 |
di esecuzioni su tali file. |
487 |
</dd> |
488 |
<dt><c>APACHE2_MOD_CONF</c></dt> |
489 |
<dd> |
490 |
File di configurazione del modulo installato da src_install (senza il |
491 |
suffisso .conf e relativo a ${FILESDIR}). |
492 |
</dd> |
493 |
<dt><c>APACHE2_MOD_DEFINE</c></dt> |
494 |
<dd> |
495 |
Nome di un define (es. FOO) da usare in una espressione condizionale per il |
496 |
caricamento del modulo installato/del suo file di configurazione, |
497 |
definizioni multiple dovrebbero essere separate da spazi. |
498 |
</dd> |
499 |
<dt><c>APACHE2_MOD_FILE</c></dt> |
500 |
<dd> |
501 |
Nome del modulo che src_install installa, senza il suffisso .so. (Viene |
502 |
impostato al valore predefinito `${APXS2_S}/.libs/${PN}.so') |
503 |
</dd> |
504 |
<dt><c>APACHE2_VHOST_CONF</c></dt> |
505 |
<dd> |
506 |
File di configurazione del Virtual host installato da src_install (senza il |
507 |
suffisso .conf e relativo a ${FILESDIR}). |
508 |
</dd> |
509 |
<dt><c>DOCFILES</c></dt> |
510 |
<dd> |
511 |
Se la funzione src_install() esportata è in uso, e ${DOCFILES} è non-zero, |
512 |
vengono eseguite delle funzioni sed per suddividere la documentazione html |
513 |
(se c'è) dalla documentazione normale, e viene eseguito dodoc o dohtml |
514 |
</dd> |
515 |
</dl> |
516 |
|
517 |
</body> |
518 |
</section> |
519 |
</chapter> |
520 |
|
521 |
<chapter> |
522 |
<title>MANTENITORI</title> |
523 |
<section> |
524 |
<body> |
525 |
|
526 |
<p> |
527 |
apache-devs@g.o |
528 |
</p> |
529 |
|
530 |
</body> |
531 |
</section> |
532 |
</chapter> |
533 |
|
534 |
<chapter> |
535 |
<title>RIPORTARE BUG</title> |
536 |
<section> |
537 |
<body> |
538 |
|
539 |
<p> |
540 |
Si prega di riportare eventuali bug tramite <uri |
541 |
link="http://bugs.gentoo.org">http://bugs.gentoo.org/</uri> |
542 |
</p> |
543 |
|
544 |
</body> |
545 |
</section> |
546 |
</chapter> |
547 |
|
548 |
<chapter> |
549 |
<title>FILE</title> |
550 |
<section> |
551 |
<body> |
552 |
|
553 |
<p> |
554 |
<c>/usr/portage/eclass/apache-module.eclass</c> |
555 |
</p> |
556 |
|
557 |
</body> |
558 |
</section> |
559 |
</chapter> |
560 |
|
561 |
<chapter> |
562 |
<title>VEDERE ANCHE</title> |
563 |
<section> |
564 |
<body> |
565 |
|
566 |
<p> |
567 |
<c>ebuild (5)</c> |
568 |
</p> |
569 |
|
570 |
</body> |
571 |
</section> |
572 |
</chapter> |
573 |
</guide> |
574 |
|
575 |
|
576 |
|
577 |
1.1 xml/htdocs/proj/it/apache/doc/depend.apache.eclass.xml |
578 |
|
579 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/depend.apache.eclass.xml?rev=1.1&view=markup |
580 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/it/apache/doc/depend.apache.eclass.xml?rev=1.1&content-type=text/plain |
581 |
|
582 |
Index: depend.apache.eclass.xml |
583 |
=================================================================== |
584 |
<?xml version='1.0' encoding='UTF-8'?> |
585 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/it/apache/doc/depend.apache.eclass.xml,v 1.1 2008/04/16 18:39:33 scen Exp $ --> |
586 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
587 |
|
588 |
<guide link="/proj/it/apache/doc/depend.apache.eclass.xml" lang="it"> |
589 |
<title>Documentazione per depend.apache.eclass</title> |
590 |
|
591 |
<author title="Autore"> |
592 |
<mail link="apache-devs@g.o">apache-devs@g.o</mail> |
593 |
</author> |
594 |
<author title="Traduzione"> |
595 |
<mail link="scen"/> |
596 |
</author> |
597 |
|
598 |
<abstract> |
599 |
Documentazione auto-generata per depend.apache.eclass |
600 |
</abstract> |
601 |
|
602 |
<license/> |
603 |
|
604 |
<version>1.0</version> |
605 |
<date>2008-03-23</date> |
606 |
|
607 |
<chapter> |
608 |
<title>NOME</title> |
609 |
<section> |
610 |
<body> |
611 |
|
612 |
<p> |
613 |
<c>depend.apache.eclass</c> - Funzioni per permettere alle ebuild di dipendere |
614 |
da apache |
615 |
</p> |
616 |
|
617 |
</body> |
618 |
</section> |
619 |
</chapter> |
620 |
|
621 |
<chapter> |
622 |
<title>DESCRIZIONE</title> |
623 |
<section> |
624 |
<body> |
625 |
|
626 |
<p> |
627 |
Questa eclass gestisce le dipendenze nei confronti di apache in maniera |
628 |
ottimale e fornisce informazioni riguardo alla locazione di alcuni binari e |
629 |
file di configurazione. |
630 |
</p> |
631 |
|
632 |
<p> |
633 |
Per fare uso di questa eclass basta invocare una delle funzioni need/want_apache |
634 |
descritte successivamente. Assicurarsi di usare la chiamata need/want_apache |
635 |
dopo aver definito DEPEND e RDEPEND. Notare inoltre che si può fare affidamento |
636 |
sull'automatismo RDEPEND=DEPEND che portage fa se si usa questa eclass. |
637 |
</p> |
638 |
|
639 |
<p> |
640 |
Vedere il Bug 107127 per maggiori informazioni. |
641 |
</p> |
642 |
|
643 |
<p> |
644 |
</p> |
645 |
|
646 |
</body> |
647 |
</section> |
648 |
</chapter> |
649 |
|
650 |
<chapter> |
651 |
<title>ESEMPIO</title> |
652 |
<section> |
653 |
<body> |
654 |
|
655 |
<p> |
656 |
</p> |
657 |
|
658 |
<p> |
659 |
Questo è un esempio di un ebuild che dipende da apache: |
660 |
</p> |
661 |
|
662 |
<p> |
663 |
</p> |
664 |
|
665 |
<pre caption="esempio"> |
666 |
DEPEND="virtual/Perl-CGI" |
667 |
RDEPEND="${DEPEND}" |
668 |
need_apache2 |
669 |
</pre> |
670 |
|
671 |
<p> |
672 |
</p> |
673 |
|
674 |
<p> |
675 |
Un altro esempio che dimostra le opzioni IUSE non-standard per il supporto |
676 |
opzionale ad apache: |
677 |
</p> |
678 |
|
679 |
<p> |
680 |
</p> |
681 |
|
682 |
<pre caption="esempio"> |
683 |
DEPEND="server? ( virtual/Perl-CGI )" |
684 |
RDEPEND="${DEPEND}" |
685 |
want_apache2 server |
686 |
</pre> |
687 |
|
688 |
<p> |
689 |
</p> |
690 |
|
691 |
</body> |
692 |
</section> |
693 |
</chapter> |
694 |
|
695 |
<chapter> |
696 |
<title>FUNZIONI</title> |
697 |
<section> |
698 |
<body> |
699 |
|
700 |
<dl> |
701 |
<dt><c>want_apache [myiuse]</c></dt> |
702 |
<dd> |
703 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
704 |
per un supporto opzionale ad apache. Se il parametro myuse non viene fornito |
705 |
viene valorizzato in modo predefinito a apache2. |
706 |
</dd> |
707 |
<dt><c>want_apache2 [myiuse]</c></dt> |
708 |
<dd> |
709 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
710 |
per un supporto opzionale ad apache-2.x. Se il parametro myuse non viene |
711 |
fornito viene valorizzato in modo predefinito a apache2. |
712 |
</dd> |
713 |
<dt><c>want_apache2_2 [myiuse]</c></dt> |
714 |
<dd> |
715 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
716 |
per un supporto opzionale ad apache-2.2.x. Se il parametro myuse non viene |
717 |
fornito viene valorizzato in modo predefinito a apache2. |
718 |
</dd> |
719 |
<dt><c>need_apache </c></dt> |
720 |
<dd> |
721 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
722 |
per apache. |
723 |
</dd> |
724 |
<dt><c>need_apache2 </c></dt> |
725 |
<dd> |
726 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
727 |
per apache-2.x. |
728 |
</dd> |
729 |
<dt><c>need_apache2_2 </c></dt> |
730 |
<dd> |
731 |
Un'ebuild invoca tale funzione per ottenere le informazioni di dipendenza |
732 |
per apache-2.2.x. |
733 |
</dd> |
734 |
<dt><c>has_apache </c></dt> |
735 |
<dd> |
736 |
Un'ebuild invoca tale funzione per ottenere le variabili di runtime per una |
737 |
dipendenza indiretta di apache senza flag USE, nel caso want_apache non |
738 |
funzioni. NON invocare questa funzione in ambito ("scope", NdT) globale. |
739 |
</dd> |
740 |
<dt><c>has_apache_threads [myflag]</c></dt> |
741 |
<dd> |
742 |
Un'ebuild invoca tale funzione per assicurare che la "thread safety" sia |
743 |
abilitata se apache è stato compilato con un MPM threaded. Se il parametro |
744 |
myflag non viene fornito viene valorizzato in modo predefinito a threads. |
745 |
</dd> |
746 |
<dt><c>has_apache_threads_in <myforeign> [myflag]</c></dt> |
747 |
<dd> |
748 |
Un'ebuild invoca tale funzione per assicurare che la "thread safety" sia |
749 |
abilitata in un pacchetto esterno se apache è stato compilato con un MPM |
750 |
threaded. Se il parametro myflag non viene fornito viene valorizzato in modo |
751 |
predefinito a threads. |
752 |
</dd> |
753 |
</dl> |
754 |
|
755 |
</body> |
756 |
</section> |
757 |
</chapter> |
758 |
|
759 |
<chapter> |
760 |
<title>VARIABILI ECLASS</title> |
761 |
<section> |
762 |
<body> |
763 |
|
764 |
<dl> |
765 |
<dt><c>APACHE_VERSION</c></dt> |
766 |
<dd> |
767 |
Memorizza la versione di apache che verrà considerata nell'ebuild. Questa |
768 |
variabile viene impostata dalle funzioni want/need_apache. |
769 |
</dd> |
770 |
<dt><c>APXS</c></dt> |
771 |
<dd> |
772 |
Percorso dello strumento apxs. Questa variabile viene impostata dalle |
773 |
funzioni want/need_apache. |
774 |
</dd> |
775 |
<dt><c>APACHE_BIN</c></dt> |
776 |
<dd> |
777 |
Percorso del binario apache. Questa variabile viene impostata dalle funzioni |
778 |
want/need_apache. |
779 |
</dd> |
780 |
<dt><c>APACHE_CTL</c></dt> |
781 |
<dd> |
782 |
Percorso dello strumento apachectl. Questa variabile viene impostata dalle |
783 |
funzioni want/need_apache. |
784 |
</dd> |
785 |
<dt><c>APACHE_BASEDIR</c></dt> |
786 |
<dd> |
787 |
Percorso della directory root del server. Questa variabile viene impostata |
788 |
dalle funzioni want/need_apache. |
789 |
</dd> |
790 |
<dt><c>APACHE_CONFDIR</c></dt> |
791 |
<dd> |
792 |
Percorso della directory dei file di configurazione. Questa variabile viene |
793 |
impostata dalle funzioni want/need_apache. |
794 |
</dd> |
795 |
<dt><c>APACHE_MODULES_CONFDIR</c></dt> |
796 |
<dd> |
797 |
Percorso dove vengono collocati i file di configurazione dei moduli. Questa |
798 |
variabile viene impostata dalle funzioni want/need_apache. |
799 |
</dd> |
800 |
<dt><c>APACHE_VHOSTS_CONFDIR</c></dt> |
801 |
<dd> |
802 |
Percorso dove vengono collocati i file di configurazione degli host |
803 |
virtuali. Questa variabile viene impostata dalle funzioni want/need_apache. |
804 |
</dd> |
805 |
<dt><c>APACHE_MODULESDIR</c></dt> |
806 |
<dd> |
807 |
Percorso dove vengono installati i moduli. Questa variabile viene impostata |
808 |
dalle funzioni want/need_apache. |
809 |
</dd> |
810 |
<dt><c>APACHE_DEPEND = "www-servers/apache"</c></dt> |
811 |
<dd>Dipendenze per Apache</dd> |
812 |
<dt><c>APACHE2_DEPEND = "=www-servers/apache-2*"</c></dt> |
813 |
<dd>Dipendenze per Apache 2.x</dd> |
814 |
<dt><c>APACHE2_2_DEPEND = "=www-servers/apache-2.2*"</c></dt> |
815 |
<dd>Dipendenze per Apache 2.2.x</dd> |
816 |
</dl> |
817 |
|
818 |
</body> |
819 |
</section> |
820 |
</chapter> |
821 |
|
822 |
<chapter> |
823 |
<title>MANTENITORI</title> |
824 |
<section> |
825 |
<body> |
826 |
|
827 |
<p> |
828 |
apache-devs@g.o |
829 |
</p> |
830 |
|
831 |
</body> |
832 |
</section> |
833 |
</chapter> |
834 |
|
835 |
<chapter> |
836 |
<title>RIPORTARE BUGS</title> |
837 |
<section> |
838 |
<body> |
839 |
|
840 |
<p> |
841 |
Si prega di riportare eventuali bug tramite <uri |
842 |
link="http://bugs.gentoo.org">http://bugs.gentoo.org/</uri> |
843 |
</p> |
844 |
|
845 |
</body> |
846 |
</section> |
847 |
</chapter> |
848 |
|
849 |
<chapter> |
850 |
<title>FILE</title> |
851 |
<section> |
852 |
<body> |
853 |
|
854 |
<p> |
855 |
<c>/usr/portage/eclass/depend.apache.eclass</c> |
856 |
</p> |
857 |
|
858 |
</body> |
859 |
</section> |
860 |
</chapter> |
861 |
|
862 |
<chapter> |
863 |
<title>VEDERE ANCHE</title> |
864 |
<section> |
865 |
<body> |
866 |
|
867 |
<p> |
868 |
<c>ebuild (5)</c> |
869 |
</p> |
870 |
|
871 |
</body> |
872 |
</section> |
873 |
</chapter> |
874 |
</guide> |
875 |
|
876 |
|
877 |
|
878 |
-- |
879 |
gentoo-commits@l.g.o mailing list |