# 5.9.PORTSCOUT

Portscout 是 FreeBSD Ports 的自动化 distfile 检查工具，详细描述见 [Portscout: the FreeBSD Ports Distfile Scanner](https://docs.freebsd.org/en/books/porters-handbook/keeping-up/#distfile-survey)。

`PORTSCOUT` 定义了 Portscout distfile 扫描器受限的特殊条件。

设置 `PORTSCOUT` 时的情况包括：

* 当需要忽略特定版本的 distfile 时。例如，排除版本 *8.2* 和版本 *8.3* 的 distfile 版本检查，因为已知它们存在问题，可以添加：

  ```makefile
  PORTSCOUT=	skipv:8.2,8.3
  ```
* 当需要完全禁用 distfile 版本检查时。例如，如果一个 Port 永远不会再更新，可以添加：

  ```makefile
  PORTSCOUT=	ignore:1
  ```
* 当必须检查特定版本或特定主次版本的 distfile 时。例如，如果只有版本 *0.6.4* 需要监控，因为较新版本与 FreeBSD 存在兼容性问题，可以添加：

  ```makefile
  PORTSCOUT=	limit:^0\.6\.4
  ```
* 当列出可用版本的 URL 与下载 URL 不同时时。例如，限制 distfile 版本检查仅限于 [databases/pgtune](https://cgit.freebsd.org/ports/tree/databases/pgtune/) Port 的下载页面，可以添加：

  ```makefile
  PORTSCOUT=	site:http://www.renpy.org/dl/release/
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://porters-handbook.bsdcn.org/di-5-zhang-pei-zhi-makefile/5.9.portscout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
