diff options
author | Sean Chittenden <seanc@FreeBSD.org> | 2018-05-11 20:34:00 +0000 |
---|---|---|
committer | Sean Chittenden <seanc@FreeBSD.org> | 2018-05-11 20:34:00 +0000 |
commit | f60413669da9f57e7f96d3695008f343b9f340a6 (patch) | |
tree | 98a651b23cac8b02b1ad88b67e15c674c6b17de1 /sysutils/gomplate | |
parent | 906cb4b9e38fe9e4c0753d0a8a60fcc46b0b045c (diff) | |
download | ports-f60413669da9f57e7f96d3695008f343b9f340a6.tar.gz ports-f60413669da9f57e7f96d3695008f343b9f340a6.zip |
Notes
Diffstat (limited to 'sysutils/gomplate')
-rw-r--r-- | sysutils/gomplate/Makefile | 36 | ||||
-rw-r--r-- | sysutils/gomplate/distinfo | 5 | ||||
-rw-r--r-- | sysutils/gomplate/pkg-descr | 9 |
3 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/gomplate/Makefile b/sysutils/gomplate/Makefile new file mode 100644 index 000000000000..a5d360e9e24a --- /dev/null +++ b/sysutils/gomplate/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= gomplate +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.0 +CATEGORIES= sysutils + +MAINTAINER= seanc@FreeBSD.org +COMMENT= Command-line tool for rendering templates before executing binaries + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= go:lang/go + +USE_GITHUB= yes +GH_ACCOUNT= hairyhenderson +GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} +GH_TAG_COMMIT= ce4b3e3 + +PLIST_FILES= bin/gomplate + +post-extract: + @${CP} -RpP ${WRKSRC}/vendor/* ${WRKSRC}/src/ + +do-build: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \ + ${LOCALBASE}/bin/go build \ + -ldflags "-w -s -X github.com/${GH_ACCOUNT}/${PORTNAME}/version.GitCommit=${GH_TAG_COMMIT} -X github.com/${GH_ACCOUNT}/${PORTNAME}/version.Version=${DISTVERSION}" \ + -o ${PORTNAME} \ + ./cmd/gomplate + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/sysutils/gomplate/distinfo b/sysutils/gomplate/distinfo new file mode 100644 index 000000000000..13911c8bc249 --- /dev/null +++ b/sysutils/gomplate/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1525624959 +SHA256 (hairyhenderson-gomplate-v2.5.0_GH0.tar.gz) = c0d885281327c209fe5460a35555bdb60f4eb132e733e5d8537693d016b0cf43 +SIZE (hairyhenderson-gomplate-v2.5.0_GH0.tar.gz) = 3884996 +SHA256 (spf13-cobra-c439c4fa_GH0.tar.gz) = 6ac84ca2528ac4a1e5e0947fe7c84b0cfba5bef1a0ec62d3c4e7ba80f344ddc5 +SIZE (spf13-cobra-c439c4fa_GH0.tar.gz) = 100782 diff --git a/sysutils/gomplate/pkg-descr b/sysutils/gomplate/pkg-descr new file mode 100644 index 000000000000..b1d2b62f6f80 --- /dev/null +++ b/sysutils/gomplate/pkg-descr @@ -0,0 +1,9 @@ +Gomplate is a template-based CLI tool. gomplate supports additional +template datasources such as: JSON, YAML, AWS EC2 metadata, BoltDB, +sockaddr, Hashicorp Consul, and Hashicorp Vault secrets. + +Gomplate lets you process templates which also include shell-like +variables. Also there are some useful built-in functions that can be +used to make templates even more expressive. + +WWW: https://gomplate.hairyhenderson.ca |