MFen:
porters-handbook: book.sgml 1.936 -> 1.946 Obtained from: The FreeBSD Simplified Chinese Project Merging work done by: delphij, loader
This commit is contained in:
parent
d74e792ea9
commit
d12a66827f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32800
1 changed files with 97 additions and 43 deletions
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.936
|
||||
Original Revision: 1.946
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -3542,9 +3542,13 @@ ${MANPREFIX}/man/de/man3/baz.3.gz</programlisting>
|
|||
<makevar>WITHOUT_<replaceable>*</replaceable></makevar></title>
|
||||
|
||||
<para>这些变量是为系统管理员准备的。 许多这样的变量被标准化并置于
|
||||
<filename>ports/Mk/bsd.*.mk</filename>; 也有一些没有,
|
||||
这可能会比较令人困惑。 如果您需要增加类似的配置变量,
|
||||
请考虑使用下表中的变量。</para>
|
||||
<ulink url="http://www.freebsd.org/cgi/cvsweb.cgi/ports/KNOBS?rev=HEAD&content-type=text/x-cvsweb-markup"><filename>ports/KNOBS</filename></ulink>
|
||||
文件。</para>
|
||||
|
||||
<para>在创建一个 port 的时候,不要使用某个应用程序专有的 knob
|
||||
名称,比如对于 Avahi 这个 port,应该用
|
||||
<makevar>WITHOUT_MDNS</makevar> 而不是
|
||||
<makevar>WITHOUT_AVAHI_MDNS</makevar>。</para>
|
||||
|
||||
<note>
|
||||
<para>您不应假定每一个
|
||||
|
@ -3561,7 +3565,7 @@ ${MANPREFIX}/man/de/man3/baz.3.gz</programlisting>
|
|||
</note>
|
||||
|
||||
<table frame="none">
|
||||
<title><makevar>WITH_<replaceable>*</replaceable></makevar>
|
||||
<title>常见的 <makevar>WITH_<replaceable>*</replaceable></makevar>
|
||||
和 <makevar>WITHOUT_<replaceable>*</replaceable></makevar>
|
||||
变量</title>
|
||||
|
||||
|
@ -3575,33 +3579,6 @@ ${MANPREFIX}/man/de/man3/baz.3.gz</programlisting>
|
|||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><makevar>WITH_APACHE2</makevar></entry>
|
||||
|
||||
<entry>如果定义了这个变量, 则使用
|
||||
<filename role="package">www/apache20</filename>
|
||||
而不是默认的
|
||||
<filename role="package">www/apache13</filename>。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>WITH_BERKELEY_DB</makevar></entry>
|
||||
|
||||
<entry>这个变量表示所用的 Berkeley 数据库软件包版本, 例如
|
||||
<filename role="package">databases/db41</filename>。
|
||||
<makevar>WITH_BDB_VER</makevar> 可以取的值包括
|
||||
2、 3、 4、 41 和 42。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>WITH_MYSQL</makevar></entry>
|
||||
|
||||
<entry>这个变量用于指定所用的 MySQL 数据库软件包的版本, 例如
|
||||
<filename role="package">databases/mysql40-server</filename>。
|
||||
<makevar>WANT_MYSQL_VER</makevar> 可以取的值,
|
||||
包括 323、 40、 41 和 50。</entry>
|
||||
</row>
|
||||
|
||||
<row id="knobs-without-nls">
|
||||
<entry><makevar>WITHOUT_NLS</makevar></entry>
|
||||
|
||||
|
@ -3618,16 +3595,8 @@ ${MANPREFIX}/man/de/man3/baz.3.gz</programlisting>
|
|||
<row>
|
||||
<entry><makevar>WITH_OPENSSL_PORT</makevar></entry>
|
||||
|
||||
<entry>使用通过 <filename role="package">security/openssl</filename>
|
||||
安装, 并代替原先随基本系统安装的 OpenSSL 版本。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>WITH_POSTGRESQL</makevar></entry>
|
||||
|
||||
<entry>这个变量用于指定所需的 PostGreSQL 数据库软件包的版本, 例如
|
||||
<filename role="package">databases/postgresql72</filename>。
|
||||
</entry>
|
||||
<entry>从 <filename role="package">security/openssl</filename>
|
||||
安装 OpenSSL,即使基本系统中的版本是最新的。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
|
@ -4308,7 +4277,7 @@ PORTVERSION= 1.0</programlisting>
|
|||
(默认参数为 <literal>--prefix=${PREFIX}
|
||||
--infodir=${PREFIX}/${INFO_PATH}
|
||||
--mandir=${MANPREFIX}/man
|
||||
${CONFIGURE_TARGET}</literal>),
|
||||
--build=${CONFIGURE_TARGET}</literal>),
|
||||
应通过 <makevar>CONFIGURE_ARGS</makevar> 来指定这些参数。
|
||||
类似地, 可以通过
|
||||
<makevar>CONFIGURE_ENV</makevar> 变量来传递一些环境变量。</para>
|
||||
|
@ -7731,6 +7700,57 @@ CFLAGS+= -DLUA_VERSION_STRING="${VER_STR}"
|
|||
<programlisting>USE_XFCE= mcsmanager configenv</programlisting>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="using-databases">
|
||||
<title>使用数据库</title>
|
||||
|
||||
<table frame="none">
|
||||
<title>ports 中有关数据库的变量</title>
|
||||
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Variable</entry>
|
||||
|
||||
<entry>Means</entry>
|
||||
</row>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><makevar>USE_BDB</makevar></entry>
|
||||
|
||||
<entry>如果这个变量为 <literal>yes</literal>,
|
||||
则把 <filename role="package">databases/db41</filename>
|
||||
列为依赖关系。 这个变量还可以被设置成的值有: 2,3,40,41,
|
||||
42,43,45,46 或者 47。你可以声明可接受值的范围,
|
||||
<makevar>USE_BDB</makevar>=42+ 将寻找已安装的最高版本,
|
||||
如果没有找到则退回到 42。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>USE_MYSQL</makevar></entry>
|
||||
|
||||
<entry>如果这个变量为 <literal>yes</literal>,
|
||||
则把 <filename role="package">databases/mysql50-server</filename>
|
||||
列为依赖关系。还有一个相关的变量,<makevar>WANT_MYSQL_VER</makevar>,
|
||||
可以设置的值有 323,40,41,50,51 或者 60。</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><makevar>USE_PGSQL</makevar></entry>
|
||||
|
||||
<entry>如果设置成 <literal>yes</literal>,则把
|
||||
<filename role="package">databases/postgresql82</filename>
|
||||
列为依赖关系。还有一个相关的变量,<makevar>WANT_PGSQL_VER</makevar>,
|
||||
可以设置的值有 73,74,80,81,82 或 83。</entry>
|
||||
</row>
|
||||
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="rc-scripts">
|
||||
<title>启动和停止服务 (rc 脚本)</title>
|
||||
|
||||
|
@ -11169,6 +11189,12 @@ Reference: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-00
|
|||
<entry>700109</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>MFC 了内核 NFS locked 客户端之后的
|
||||
7.0-STABLE。</entry>
|
||||
<entry>700110</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>8.0-CURRENT。 分拆了宽字符和单字节字符
|
||||
ctype。</entry>
|
||||
|
@ -11389,6 +11415,34 @@ Reference: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-00
|
|||
<entry>移除 sgtty 之后的 8.0-CURRENT。</entry>
|
||||
<entry>800039</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>增加了内核级 NFS lockd 客户端的 8.0-CURRENT。</entry>
|
||||
<entry>800040</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>增加了 arc4random_buf(3) 和 arc4random_uniform(3)
|
||||
之后的 8.0-CURRENT。</entry>
|
||||
<entry>800041</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>增加了 cpuctl(4) 之后的 8.0-CURRENT。</entry>
|
||||
<entry>800042</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>修改 bpf(4) 使用单一的设备节点而不是克隆之后的 8.0-CURRENT。</entry>
|
||||
<entry>800043</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>在提交了 vimage 项目第一步之后的
|
||||
8.0-CURRENT。把全局变量重命名为虚拟化带
|
||||
V_ 前缀并用宏映射到原来的全局名称。</entry>
|
||||
<entry>800044</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>引入 MPSAFE TTY 层之后的 8.0-CURRENT,
|
||||
包括对相关驱动和工具的修改。</entry>
|
||||
<entry>800045</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue