mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
41 lines
1003 B
Makefile
41 lines
1003 B
Makefile
COMMENT= fast, efficient and secure backup program
|
|
|
|
MODGO_MODNAME= github.com/restic/restic
|
|
MODGO_VERSION= v0.19.0
|
|
|
|
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}; ${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>
|