Nicola Vitale e4a037aebd
sysutils/rustic: Add new port
Rustic is a backup tool that provides fast, encrypted, deduplicated backups.

It reads and writes the restic repo format described in the design document and
can be used as a restic replacement in most cases.

It is implemented in Rust, a performant, memory-efficient, and reliable
cross-platform systems programming language.

Stability

Rustic currently is in beta state and misses regression tests. It is not
recommended to use it for production backups, yet.

https://rustic.cli.rs/
2026-02-12 22:16:32 +01:00

39 lines
1.2 KiB
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PORTNAME= rustic
DISTVERSIONPREFIX= v
DISTVERSION= 0.11.0
CATEGORIES= sysutils
MAINTAINER= nivit@FreeBSD.org
COMMENT= Fast, encrypted, and deduplicated backups powered by Rust
WWW= https://rustic.cli.rs/
LICENSE= APACHE20 BSD0CLAUSE BSD2CLAUSE BSD3CLAUSE BSL CC0-1.0 CDLA20 \
MIT MPL20 UNICODE UNLICENSE ZLIB
LICENSE_COMB= multi
LICENSE_NAME_CDLA20= Community Data License Agreement Permissive, Version 2.0
LICENSE_NAME_UNICODE= Unicode Terms of Use
LICENSE_TEXT_CDLA20= See https://cdla.dev/permissive-2-0/
LICENSE_TEXT_UNICODE= See https://spdx.org/licenses/Unicode-TOU.html
LICENSE_PERMS_CDLA20= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_UNICODE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libzstd.so:archivers/zstd
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= rustic-rs
OPTIONS_DEFINE= EXAMPLES
post-patch:
${REINPLACE_CMD} -e 's|\[/config/\](/config)|[examples](${EXAMPLESDIR})|1' \
-e 's|\[\(services\)/\](/config/services/)|[examples/\1/](${EXAMPLESDIR}/\1)|1' \
${WRKSRC}/config/README.md
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/config && \
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! ( -name *.md -or -name *.bak )")
.include <bsd.port.mk>