> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/porters-handbook/di-5-zhang-pei-zhi-makefile/5.9.portscout.md).

# 5.9.PORTSCOUT

Portscout 是 FreeBSD Ports Collection 的自动化 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
