blob: 20efe2679c04ca959c09ffbd526b3324536d6993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
PORTNAME= restic
DISTVERSIONPREFIX= v
DISTVERSION= 0.15.1
PORTREVISION= 2
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}${MANPREFIX}/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>
|