From 84faf46fcaa235124249098a80ee91d192de92ba Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 5 Dec 2006 02:36:13 +0000 Subject: [PATCH] Synchornize with English revisions + typo fixes. handbook/boot/chapter.sgml: typo fixes handbook/config/chapter.sgml: 1.223 -> 1.225 handbook/desktop/chapter.sgml: 1.66 -> 1.67 handbook/install/chapter.sgml: 1.337 -> 1.338 handbook/mirrors/chapter.sgml: 1.420 -> 1.421 handbook/x11/chapter.sgml: 1.177 -> 1.178 porters-handbook/book.sgml: 1.769 -> 1.772 Obtained from: The FreeBSD Simplified Chinese Project --- zh_CN.GB2312/books/handbook/boot/chapter.sgml | 30 +++---- .../books/handbook/config/chapter.sgml | 29 ++++--- .../books/handbook/desktop/chapter.sgml | 6 +- .../books/handbook/install/chapter.sgml | 4 +- .../books/handbook/mirrors/chapter.sgml | 10 ++- zh_CN.GB2312/books/handbook/x11/chapter.sgml | 4 +- zh_CN.GB2312/books/porters-handbook/book.sgml | 80 ++++++++++++++++++- 7 files changed, 126 insertions(+), 37 deletions(-) diff --git a/zh_CN.GB2312/books/handbook/boot/chapter.sgml b/zh_CN.GB2312/books/handbook/boot/chapter.sgml index 7ecc88fa09..e58a1aeae7 100644 --- a/zh_CN.GB2312/books/handbook/boot/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/boot/chapter.sgml @@ -614,12 +614,12 @@ boot: 这个变量是在 loader 里面设置的。 - 自动重启队列 + 自动重启过程 - 自动重启队列保证了可用的文件系统是稳定的。 - 如果不是,且 &man.fsck.8; 不能修复这些错误, - &man.init.8; 会进入单用户模式 - 以便系统管理员直接解决问题。 + 自动重启过程会确认系统中可用的文件系统处于健康的状态。 + 如果不是, 而且使用 &man.fsck.8; 也无法修复这些问题, + &man.init.8; 会进入 单用户模式 + 以便系统管理员直接修正这些问题。 @@ -628,12 +628,12 @@ boot: 控制台 此模式可以通过 - 自动重启队列或者通过带有 + 自动重启过程 或者通过带有 选项的用户引导或通过在 loader 里设置 boot_single 变量等多种方式来达到。 - 也可以在多用户模式下调动无 reboot()选项和 - halt () 选项的 &man.shutdown.8; + 也可以在多用户模式下调动无重启 () 选项和停机 + () 选项的 &man.shutdown.8; 命令来进入单用户模式。 如果系统 控制台 在文件 @@ -683,19 +683,19 @@ console none unknown off insecure - shutdown 队列 + 关机 (shutdown) 过程 shutdown - 由命令 &man.shutdown.8; 的控制, + 由命令 &man.shutdown.8; 的发起的关机过程中, &man.init.8; 会试着运行 /etc/rc.shutdown 脚本, - 给所有进程发送 TERM 信号,然后给不按时停止的进程发送 - KILL信号。 + 给所有进程发送 TERM 信号, 最后给不按时停止的进程发送 + KILL 信号。 - 在支持电源管理的体系上关闭 FreeBSD 系统的电源,只要简单的使用命令 - shutdown -p now 立即关闭电源。使用命令 - shutdown -r now 重启 FreeBSD。要执行 &man.shutdown.8; + 在支持电源管理的平台上关闭 FreeBSD 系统的电源, 只要简单地使用命令 + shutdown -p now 即可。 此外, 可以用命令 + shutdown -r now 来重启 FreeBSD。 要执行 &man.shutdown.8; 您必须是 root 用户或 operator 组的成员。 也可以使用 &man.halt.8; 和 &man.reboot.8; 命令来关闭系统, 请参看它们的联机手册以获得更多的信息。 diff --git a/zh_CN.GB2312/books/handbook/config/chapter.sgml b/zh_CN.GB2312/books/handbook/config/chapter.sgml index b5c497dae0..fd9ff61f93 100644 --- a/zh_CN.GB2312/books/handbook/config/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/config/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Chinese Documentation Project - Original Revision: 1.223 + Original Revision: 1.225 $FreeBSD$ --> @@ -1499,18 +1499,21 @@ cron.* /var/log/cron sysctl.conf sysctl - sysctl.conf 看起来很像 - rc.conf。它用 variable=value - 的形式来设定值。指定的值在系统进入多用户模式之后被设定。 - 并不是所有的变量都可以在这个模式下设定。 + sysctl.conf 和 + rc.conf 这两个文件的风格很接近。 其中的配置均为 + 变量=值 + 这样的形式。 在这个文件中配置的值, 均会在系统进入多用户模式之后进行实际的修改操作。 + 需要注意的是, 并不是所有的变量都能够在多用户模式下修改。 - 一个简单的例子举明了在 sysctl.conf - 中关闭了重要的退出信号的日志并且让 Linux 程序知道他们其实运行在 - &os; 下面: + 如果希望关闭对收到致命的信号退出的进程进行记录, + 并阻止普通用户看到其他用户的进程, 可以在 sysctl.conf + 中进行下列配置: - kern.logsigexit=0 # Do not log fatal signal exits (e.g. sig 11) -compat.linux.osname=&os; -compat.linux.osrelease=4.3-STABLE + # 不记录由于致命信号导致的进程退出 (例如信号 11,访问越界) +kern.logsigexit=0 + +# 阻止用户看到以其他用户 UID 身份执行的进程。 +security.bsd.see_other_uids=0 @@ -1873,10 +1876,10 @@ device_probe_and_attach: cbb0 attach returned 12 在大型生产服务器上, 可能会轻易地用掉数千个文件描述符, 具体用量取决于服务的类型和并行启动的服务数量。 - 在早期版本的 &os; 中, kern.maxfile 的默认值, + 在早期版本的 &os; 中, kern.maxfiles 的默认值, 是根据您内核配置文件中的 选项计算的。 kern.maxfiles 这个数值, - 会与 成比例增减。 + 会随 成比例地增减。 当编译定制的内核时, 按照您系统的用途来修改这个值是个好主意。 这个数字同时还决定内核的许多预设的限制值。 有时, 尽管并不会真的有 256 个用户同时连接一台生产服务器, diff --git a/zh_CN.GB2312/books/handbook/desktop/chapter.sgml b/zh_CN.GB2312/books/handbook/desktop/chapter.sgml index 398843e6fa..6a7bf06074 100644 --- a/zh_CN.GB2312/books/handbook/desktop/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/desktop/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Chinese Project - Original Revision: 1.66 + Original Revision: 1.67 $FreeBSD$ --> @@ -557,7 +557,7 @@ 安装 OpenOffice.org 方法如下: - &prompt.root; pkg_add -r openoffice + &prompt.root; pkg_add -r openoffice.org 如果您正在使用 &os; 的 -RELEASE 版本, 一般来说这样做是没问题的。 @@ -581,7 +581,7 @@ package,您仍旧可以选择编译 port。然而, 您必须记住它的要求以及大量的磁盘空间和相当长的时间编译。 - &prompt.root; cd /usr/ports/editors/openoffice.org-2.0 + &prompt.root; cd /usr/ports/editors/openoffice.org-2 &prompt.root; make install clean diff --git a/zh_CN.GB2312/books/handbook/install/chapter.sgml b/zh_CN.GB2312/books/handbook/install/chapter.sgml index 982f3129d8..ac51841d2e 100644 --- a/zh_CN.GB2312/books/handbook/install/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/install/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Simplified Chinese Project - Original Revision: 1.337 + Original Revision: 1.338 $FreeBSD$ --> @@ -2016,7 +2016,7 @@ installation menus to retry whichever operations have failed. 本范例中的IP地址属于一个C类地址 (192.168.0.0 - - 192.168.255.255)。默认的子网掩码为 + 192.168.0.255)。默认的子网掩码为 (255.255.255.0)。 diff --git a/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml b/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml index 8954d9c761..5d6b4fc048 100644 --- a/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/mirrors/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Chinese Documentation Project - Original Revision: 1.420 + Original Revision: 1.421 $FreeBSD$ --> @@ -2623,6 +2623,14 @@ doc/zh_* 最后, www 树上不会有任何特定发行版的标签。 + + RELENG_6_2_0_RELEASE + + + FreeBSD 6.2 + + + RELENG_6_1_0_RELEASE diff --git a/zh_CN.GB2312/books/handbook/x11/chapter.sgml b/zh_CN.GB2312/books/handbook/x11/chapter.sgml index 4131563b68..43b542a9ca 100644 --- a/zh_CN.GB2312/books/handbook/x11/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/x11/chapter.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Simplified Chinese Project - Original Revision: 1.177 + Original Revision: 1.178 $FreeBSD$ --> @@ -663,7 +663,7 @@ EndSection x11-fonts/ttmkfdir 中找到。 &prompt.root; cd /usr/X11R6/lib/X11/fonts/TrueType -&prompt.root; ttmkfdir > fonts.dir +&prompt.root; ttmkfdir -o fonts.dir 现在把 &truetype; 字体目录添加到字体路径中。 这和上面 Type1 字体的步骤是一样的, diff --git a/zh_CN.GB2312/books/porters-handbook/book.sgml b/zh_CN.GB2312/books/porters-handbook/book.sgml index 41c5fecaef..fcf815ebbb 100644 --- a/zh_CN.GB2312/books/porters-handbook/book.sgml +++ b/zh_CN.GB2312/books/porters-handbook/book.sgml @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Simplified Chinese Project - Original Revision: 1.769 + Original Revision: 1.772 $FreeBSD$ --> @@ -3674,6 +3674,42 @@ RUN_DEPENDS+= bar:${PORTSDIR}/bar/bar + + 自动激活的特性 + + 在使用 GNU configure 脚本时, 一定要小心有些特性会由其自动检测而激活。 + 您应通过明确地指定相应的 + --without-xxx--disable-xxx + 参数到 CONFIGURE_ARGS 来禁用不希望的特性。 + + + 处理选项时的错误做法 + .if defined(WITH_FOO) +LIB_DEPENDS+= foo.0:${PORTSDIR}/devel/foo +CONFIGURE_ARGS+= --enable-foo +.endif + + + 在前面的例子中, 假设系统中已经安装了 libfoo 库。 用户可能并不希望应用程序使用 libfoo, + 因此他在 make config 对话框中关掉了这个选项。 + 但是, 应用程序的 configure 脚本检测到了系统中存在这个库, + 并将其加入到了最终可执行文件支持的功能中。 现在, 如果用户决定从系统中卸载 libfoo 时, + ports 系统就无法保护这个应用程序免遭破坏了 (因为没有记录 libfoo 的依赖关系)。 + + + 处理选项时的正确做法 + .if defined(WITH_FOO) +LIB_DEPENDS+= foo.0:${PORTSDIR}/devel/foo +CONFIGURE_ARGS+= --enable-foo +.else +CONFIGURE_ARGS+= --disable-foo +.endif + + + 在第二个例子中, libfoo 库被明确禁用。 即使系统中已经安装了这个库, + configure 脚本也不会启用相应的功能了。 + + @@ -6436,6 +6472,44 @@ PLIST_SUB+= VERSION="${VER_STR}" 而无需 WX_PREMK 的参与。 + + + 额外的 <command>configure</command> 参数 + + 某些 GNU configure 脚本在只设置了 + WX_CONFIG 环境变量时, 无法自动找到 + wxWidgets, 而需要使用额外的参数来加以指定。 + 您可以使用 WX_CONF_ARGS 变量来给出这些参数。 + + + 可用于 <makevar>WX_CONF_ARGS</makevar> 的值 + + + + + 可用值 + + 结果 + + + + + + absolute + + --with-wx-config=${WX_CONFIG} + + + + relative + + --with-wx=${X11BASE} + --with-wx-config=${WX_CONFIG:T} + + + +
+
@@ -9962,6 +10036,10 @@ Reference: <http://www.freebsd.org/ports/portaudit/74a9541d-5d6c-11d8-80e3-00 加入了 libelf 之后的 7.0-CURRENT。 700025 + + 对音效相关的 sysctl 进行大幅调整之后的 7.0-CURRENT。 + 700026 +