freebsd-ports/sysutils/restic/Makefile
Joseph Mingrone 573cd23216 sysutils/restic: Update to 0.8.1, add options, new maintainer
- Install man pages
- Add options for bash and zsh completions

Upstream changes: https://github.com/restic/restic/releases

PR:		224806
Submitted by:	gregf@hugops.pw (new maintainer)
Approved by:	wg@FreeBSD.org (old maintainer)
Differential Revision:	https://reviews.freebsd.org/D13722
2018-01-03 19:01:31 +00:00

38 lines
911 B
Makefile

# $FreeBSD$
PORTNAME= restic
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
CATEGORIES= sysutils
MAINTAINER= gregf@hugops.pw
COMMENT= Fast, secure, efficient backup program
LICENSE= BSD2CLAUSE
USES= go
USE_GITHUB= yes
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= ${GO_PKGNAME}/cmd/${PORTNAME}
OPTIONS_SUB= yes
PLIST_SUB= PORTNAME=${PORTNAME}
OPTIONS_DEFINE= BASH ZSH
OPTIONS_DEFAULT= BASH ZSH
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/* ${STAGEDIR}${MANPREFIX}/man/man1
post-install-BASH-on:
${INSTALL} -d ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
${INSTALL_SCRIPT} ${WRKSRC}/doc/bash-completion.sh \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.sh
post-install-ZSH-on:
${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>