I have access to a pre-release of clamav - I am trying to update the port to make it build. The first errors I got, without the CARGO directives shown in the diff, was:
```
FAILED: x86_64-unknown-freebsd/release/libclamav_rust.a /wrkdirs/usr/ports/security/clamav/work/.build/x86_64-unknown-freebsd/release/libclamav_rust.a
cd /wrkdirs/usr/ports/security/clamav/work/clamav-1.0.1/libclamav_rust && /usr/local/bin/cmake -E env CARGO_CMD=build CARGO_TARGET_DIR=/wrkdirs/usr/ports/security/clamav/work/.build MAINTAINER_MODE=OFF RUSTFLAGS="" /usr/local/bin/cargo build --target x86_64-unknown-freebsd --release --target-dir /wrkdirs/usr/ports/security/clamav/work/.build
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Name does not resolve; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Name does not resolve; class=Net (12)
error: failed to get `flate2` as a dependency of package `clamav_rust v0.0.1 (/wrkdirs/usr/ports/security/clamav/work/clamav-1.0.1/libclamav_rust)`
Caused by:
failed to load source for dependency `flate2`
Caused by:
Unable to update registry `crates-io`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
failed to resolve address for github.com: Name does not resolve; class=Net (12)
```
This is output from `poudriere testport` on FreeBDS 13.1 with a recent clone of the ports tree. Following on from docs: https://docs.freebsd.org/en/books/porters-handbook/book/#using-cargo I tried `USES= cargo` and `make cargo-crates`, followed by `make distinfo`
However, now `distinfo` does not contain anything for `clamav-1.0.1`. I am not convinced this is the way.
Help please.