forked from Lainports/freebsd-ports
28 lines
815 B
Makefile
28 lines
815 B
Makefile
PORTNAME= restic
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.16.3
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= eduardo@FreeBSD.org
|
|
COMMENT= Fast, secure, efficient backup program
|
|
WWW= https://restic.net/
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
GO_MODULE= github.com/restic/restic
|
|
GO_TARGET= ./cmd/${PORTNAME}
|
|
|
|
PLIST_SUB= PORTNAME=${PORTNAME}
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/* ${STAGEDIR}${PREFIX}/share/man/man1
|
|
${INSTALL} -d ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/bash-completion.sh \
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.sh
|
|
${INSTALL} -d ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/zsh-completion.zsh \
|
|
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|