Files
ports/sysutils/restic/Makefile
T
2025-09-23 09:25:31 +00:00

41 lines
1.0 KiB
Makefile

COMMENT= fast, efficient and secure backup program
MODGO_MODNAME= github.com/restic/restic
MODGO_VERSION= v0.18.1
DISTNAME= restic-${MODGO_VERSION}
CATEGORIES= sysutils
HOMEPAGE= https://restic.net/
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
# BSD
PERMIT_PACKAGE= Yes
WANTLIB += c pthread
MODULES= lang/go
TEST_DEPENDS= lang/python/3
do-test:
ln -fs ${LOCALBASE}/bin/python3 ${WRKDIR}/bin/python
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MODGO_CMD} test ${MODGO_FLAGS:N-v} -count 1 ./...
do-install:
${MODGO_INSTALL_TARGET}
${INSTALL_DATA_DIR} ${PREFIX}/man/man1 \
${PREFIX}/share/bash-completion/completions \
${PREFIX}/share/fish/vendor_completions.d \
${PREFIX}/share/zsh/site-functions
cd ${PREFIX}; bin/restic generate \
--man man/man1 \
--bash-completion share/bash-completion/completions/restic \
--fish-completion share/fish/vendor_completions.d/restic.fish \
--zsh-completion share/zsh/site-functions/restic
.include "modules.inc"
.include <bsd.port.mk>