docs/99835: [patch] works on zh_TW's porter's handbook

看板FB_doc作者時間19年前 (2006/07/06 17:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
>Number: 99835 >Category: docs >Synopsis: [patch] works on zh_TW's porter's handbook >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 06 09:30:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Cheng-Lung Sung >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: FreeBSD @ Taiwan >Environment: System: FreeBSD.csie.nctu.edu.tw 6.1-STABLE FreeBSD 6.1-STABLE #9: Thu May 11 14:31:45 CST 2006 root@FreeBSD.csie.nctu.edu.tw:/home/usr.obj/usr/src/sys/FREEBSD i386 >Description: - add one missing subsection "Use the exec statement in wrapper scripts" (translated). - add one missing table "Useful variables for porting Apache modules" (translated). - sync table "Variables for ports that use Apache" - sync subsection "PEAR modules". (docs/99733, docs/99734) >How-To-Repeat: >Fix: Index: book.sgml =================================================================== RCS file: /home/dcvs/doc/zh_TW.Big5/books/porters-handbook/book.sgml,v retrieving revision 1.6 diff -u -r1.6 book.sgml --- book.sgml 6 Jul 2006 07:56:11 -0000 1.6 +++ book.sgml 6 Jul 2006 09:25:50 -0000 @@ -5307,29 +5307,137 @@ <tbody> <row> - <entry>USE_APACHE</entry> + <entry><makevar>USE_APACHE</makevar></entry> - <entry>The port requires Apache.</entry> + <entry>The port requires Apache. Possible values: + <literal>yes</literal> (gets any version), + <literal>1.3</literal>, <literal>2.0</literal>, + <literal>2.2</literal>, <literal>2.0+</literal>, + etc. Default dependency is on version + <literal>1.3</literal>.</entry> </row> <row> - <entry>WITH_APACHE2</entry> + <entry><makevar>WITH_APACHE2</makevar></entry> <entry>The port requires Apache 2.0. Without this variable, - the port will depend on Apache 1.3.</entry> + the port will depend on Apache 1.3. This variable is + deprecated and should not be used anymore.</entry> </row> <row> - <entry>APXS</entry> + <entry><makevar>APXS</makevar></entry> - <entry>Full path to the <command>apxs</command> binary - (read-only variable).</entry> + <entry>Full path to the <command>apxs</command> binary. + Can be overriden in your port.</entry> + </row> + + <row> + <entry><makevar>HTTPD</makevar></entry> + + <entry>Full path to the <command>httpd</command> binary. + Can be overriden in your port.</entry> + </row> + + <row> + <entry><makevar>APACHE_VERSION</makevar></entry> + + <entry>The version of present Apache installation (read-only + variable). This variable is only available after inclusion + of <filename>bsd.port.pre.mk</filename>. Possible values: + <literal>13</literal>, <literal>20</literal>, + <literal>22</literal>.</entry> + </row> + + <row> + <entry><makevar>APACHEMODDIR</makevar></entry> + + <entry>Directory for Apache modules. This variable is + automatically expanded in pkg-plist.</entry> + </row> + + <row> + <entry><makevar>APACHEINCLUDEDIR</makevar></entry> + + <entry>Directory for Apache headers. This variable is + automatically expanded in pkg-plist.</entry> + </row> + + <row> + <entry><makevar>APACHEETCDIR</makevar></entry> + + <entry>Directory for Apache configuration files. This + variable is automatically expanded in pkg-plist.</entry> </row> </tbody> </tgroup> </table> + <table frame="none"> + <title>port Apache 璅∠떄弡末函骄霈簧㕑</title> + + <tgroup cols="2"> + <tbody> + + <row> + <entry><makevar>MODULENAME</makevar></entry> + + <entry>璅∠떄讵迂舠 栞身潛妛 + <makevar>PORTNAME</makevar>. 蝭扬뺋嚗騊+ <literal>mod_hello</literal></entry> + </row> + + <row> + <entry><makevar>SHORTMODNAME</makevar></entry> + + <entry>蝪∪貖栋芋蝯枣邍蝔晞肂 芸讕啁甅霈簧㕑 + <makevar>MODULENAME</makevar> Y钟嚗铸뢍嫒骓隞亥Ꚇ鲳꺃舊+ 蝭扬뺋嚗騠<literal>hello</literal></entry> + </row> + + <row> + <entry><makevar>AP_FAST_BUILD</makevar></entry> + + <entry>雿輻欟 <command>apxs</command> + 靘疯楊霅臬辊摰殓ꎝ⒠肋璅∠떄舼/entry> + </row> + + <row> + <entry><makevar>AP_GENPLIST</makevar></entry> + + <entry>霁見堆벌銋蓤伨芸讕Y钟 + <filename>pkg-plist</filename>舼/entry> + </row> + + <row> + <entry><makevar>AP_INC</makevar></entry> + + <entry>函楊霅舀馂両誠乩뢀鲷澻枣闾璅⒤Í瑼鯏邜撠鹑楝敺肂</entry> + </row> + + <row> + <entry><makevar>AP_LIB</makevar></entry> + + <entry>函楊霅舀馂両誠乩뢀鲷澻枣闾賢벏摨急邜撠鹑楝敺肂</entry> + </row> + + <row> + <entry><makevar>AP_EXTRAS</makevar></entry> + + <entry>喟策 + <command>apxs</command> 憿菝꒖萠flags舼/entry> + </row> + + </tbody> + </tgroup> + </table> + + <para>Web 樯欟蝔鲳벏殓府摰殓ꎝ뀊+ <makevar>PREFIX</makevar><filename>/www/<replaceable>appname</replaceable></filename> + 嚗鉴邌弑뢍殓府殴身 Apache 撌脣궘其몆嚗颤妚霛뮖凵鲉怿Ⅱ圈鲀閬睻번depend on嚗褊+ Apahce弑蝙刻肅銋蔃迂撣霁鲛典铲隞緥鶞 Apache 萠Web 隡箸鲍其뢊瑁ꆌ舼/para> + </sect2> <sect2 id="php-variables"> @@ -5414,13 +5522,6 @@ <entry>Want the Apache module or the CGI version of PHP.</entry> </row> - - <row> - <entry><makevar>WANT_PHP_PEAR</makevar></entry> - - <entry>Want the PEAR framework.</entry> - </row> - </tbody> </tgroup> </table> @@ -5441,7 +5542,7 @@ <filename>pkg-plist</filename>.</para> <para>Include - <filename>&dollar;{PORTSDIR}/devel/pear-PEAR/Makefile.common</filename> + <filename>&dollar;{PORTSDIR}/devel/pear/bsd.pear.mk</filename> on the last line of the <filename>Makefile</filename>.</para> <example id="pear-makefile"> @@ -5468,7 +5569,7 @@ _DOCSDIR= . .include &lt;bsd.port.pre.mk&gt; -.include "&dollar;{PORTSDIR}/devel/pear-PEAR/Makefile.common" +.include "&dollar;{PORTSDIR}/devel/pear/bsd.pear.mk" .include &lt;bsd.port.post.mk&gt;</programlisting> </example> @@ -9155,6 +9229,22 @@ for their files.</para> </sect1> + <sect1 id="dads-sh-exec"> + <title>ꠠwrapper scripts 銝凋蝙ꠠ<function>exec</function> 餈啣邝</title> + + <para>交龐 port 箔몆瑁ꆌ嗡뮖蝔鲳벏鉴꺉鋆㏘몆銝胥肋 shell script嚗谊+ 繮府蝔鲳벏霁馂銋蓤伨閰눠script 胥뺌銝胥肋册붜嚗颤倶暻潮鲀閬盙Ⅱ摰梈府 script + 舐欟 <function>exec</function> 餈啣邝嚗践tatement嚗涩벌检뺋繮ꢀ嚗騼/para> + + <programlisting>#!/bin/sh +exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/foo.jar "$@"</programlisting> + + <para><function>exec</function> 餈啣邝隞交覀枞꺚栈ꢋ撘铴辖隞몆閰눠shell + 栈ꢋ摨蛴肂 亦鲁ꔠ<function>exec</function> 嚗颤倶暻潸府 shell 蝔鲳몏 + 撠欧鲃函ꢋ撘铴脪銵铸葉銝胧灋摮咓珯潸ꢘ園ꮔ嚗颤肙∠隑唳答鞎颱몆蝟餌絞鞈欧몐舼/para> + + </sect1> + <sect1 id="dads-uid-and-gids"> <title>UIDs and GIDs</title> >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
文章代碼(AID): #14hDWx00 (FB_doc)
文章代碼(AID): #14hDWx00 (FB_doc)