默认情况下,为所有 FreeBSD 端口关闭 DOCS、NLS 和 Examples 选项

默认情况下,为所有 FreeBSD 端口关闭 DOCS、NLS 和 Examples 选项

搬运工手册“5.12.1.3. 默认选项”中说DOCSNLS、 和EXAMPLES默认情况下对所有端口都是打开的。我希望将它们关闭,因此我必须在make config-recursive每个端口期间手动取消选中它们。我怎样才能默认关闭它们?

答案1

您可以使用制作配置文件。看一个旧的公告:

The following variables can be used in make.conf to configure options.
They are processed in the order listed below, i.e. later variables
override the effects of previous variables.  Options saved using the
options dialog are processed right before OPTIONS_SET_FORCE.

OPTIONS_SET     - List of options to enable for all ports.
OPTIONS_UNSET       - List of options to disable for all ports. 
${UNIQUENAME}_SET   - List of options to enable for a specific port.
${UNIQUENAME}_UNSET - List of options to disable for a specific port.

OPTIONS_SET_FORCE   - List of options to enable for all ports.
OPTIONS_UNSET_FORCE - List of options to disable for all ports.
${UNIQUENAME}_SET_FORCE - List of options to enable for a specific port.
${UNIQUENAME}_UNSET_FORCE
            - List of options to disable for a specific port.

To know the UNIQUENAME of a port you can run "make -V UNIQUENAME" in
a port directory.

An example configuration is given below.

OPTIONS_SET=    NLS # enable NLS for all ports unless configured
            # otherwise using the option dialog
OPTIONS_UNSET=  DOCS    # aka NOPORTDOCS

# configuration for xorg-server overriding the configuration from the
# option dialog
xorg-server_SET_FORCE=  AIGLX
xorg-server_UNSET_FORCE=HAL SUID

相关内容