Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -1188,6 +1188,7 @@ SUBDIR += softether-devel SUBDIR += softhsm SUBDIR += softhsm2 + SUBDIR += sops SUBDIR += spass SUBDIR += spike-proxy SUBDIR += spybye Index: head/security/sops/Makefile =================================================================== --- head/security/sops/Makefile +++ head/security/sops/Makefile @@ -0,0 +1,35 @@ +# $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 Index: head/security/sops/distinfo =================================================================== --- head/security/sops/distinfo +++ head/security/sops/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1516534413 +SHA256 (mozilla-sops-3.0.2_GH0.tar.gz) = c370664e8d9892ea7a5cdde371b3a5e83df7b546b1b0ec0c8d549a109365312d +SIZE (mozilla-sops-3.0.2_GH0.tar.gz) = 27517828 Index: head/security/sops/pkg-descr =================================================================== --- head/security/sops/pkg-descr +++ head/security/sops/pkg-descr @@ -0,0 +1,7 @@ +SOPS is a wrapper around a text editor that transparently takes care of the +encryption and decryption. It supports YAML, JSON and BINARY formats and +encrypts with AWS KMS and PGP. When encrypting YAML and JSON, the content of +the file is manipulated as a tree where keys are stored in cleartext, and +values are encrypted. + +WWW: https://github.com/mozilla/sops