freebsd-ports/security/sops/Makefile
Yuri Victorovich 164ee0ed7b New port: security/sops: Editor of encrypted files that supports YAML, JSON and BINARY formats
PR:		225267
Submitted by:	Dmitri Goutnik <dg@syrec.org>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D14111
2018-01-31 04:19:02 +00:00

35 lines
722 B
Makefile

# $FreeBSD$
PORTNAME= sops
DISTVERSION= 3.0.2
CATEGORIES= security editors
MAINTAINER= dg@syrec.org
COMMENT= Editor of encrypted files that supports YAML, JSON and BINARY formats
LICENSE= MPL20
BUILD_DEPENDS= go>=1.8:lang/go
USE_GITHUB= yes
GH_ACCOUNT= mozilla
GH_SUBDIR= src/go.mozilla.org/${PORTNAME}
PLIST_FILES= bin/sops
OPTIONS_DEFINE= DOCS
PORTDOCS= README.rst CHANGELOG.rst
do-build:
@cd ${WRKSRC}/${GH_SUBDIR} && \
${SETENV} GOPATH=${WRKSRC} go build -o ${PORTNAME} ./cmd/sops
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>