PORTNAME=	sops
DISTVERSIONPREFIX=	v
DISTVERSION=	3.7.1
CATEGORIES=	security editors

MAINTAINER=	dmgk@FreeBSD.org
COMMENT=	Editor of encrypted files that supports YAML, JSON and BINARY formats

LICENSE=	MPL20

USES=		go:modules

GO_MODULE=	go.mozilla.org/sops/v3
GO_TARGET=	./cmd/sops

PLIST_FILES=	bin/sops
PORTDOCS=	README.rst CHANGELOG.rst

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
