1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/security/gopass/Makefile

49 lines
1.3 KiB
Makefile

# Created by: Sascha Holzleiter <sascha@root-login.org>
# $FreeBSD$
PORTNAME= gopass
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.6
PORTREVISION= 2
CATEGORIES= security
MAINTAINER= sascha@root-login.org
COMMENT= Rewrite of the pass password manager in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= Upstream only supports amd64
RUN_DEPENDS= git:devel/git \
gpg2:security/gnupg
USES= go
USE_GITHUB= yes
GH_ACCOUNT= gopasspw
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
PLIST_FILES= bin/gopass \
etc/bash_completion.d/gopass.sh \
share/zsh/site-functions/_gopass
pre-build:
${GREP} -FRl github.com/nsf/termbox-go \
${WRKSRC}/vendor/github.com/jroimartin/gocui/ | \
${XARGS} ${REINPLACE_CMD} -e \
s,github.com/nsf/termbox-go,github.com/gdamore/tcell/termbox,
post-install:
@${STAGEDIR}${PREFIX}/bin/gopass completion bash > ${WRKDIR}/gopass.comp.sh
@${STAGEDIR}${PREFIX}/bin/gopass completion zsh > ${WRKDIR}/gopass.comp.zsh
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKDIR}/gopass.comp.sh \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/gopass.sh
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKDIR}/gopass.comp.zsh \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_gopass
.include <bsd.port.mk>