mports maintainer hacks - MidnightBSD/src GitHub Wiki

Rust Ports

New port add the following initially to makefile

USES= cargo
CARGO_CRATES=  # Leave empty initially
make clean
make extract
make cargo-crates > Makefile.crates

Non-standard locations for cargo locks

CARGO_CARGOTOML= path/to/Cargo.toml CARGO_CARGOLOCK= path/to/Cargo.lock

Update flow

PORTNAME=    kanidm-client
USE_GITHUB=  yes
GH_ACCOUNT=  kanidm
GH_TAGNAME=  abc123  # Specific commit
USES=        cargo
# After modifying GH_TAGNAME:
rm Makefile.crates
make clean
make extract
make cargo-crates > Makefile.crates
make makesum