Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2018 20:34:01 +0000 (UTC)
From:      Sean Chittenden <seanc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r469692 - in head/sysutils: . gomplate
Message-ID:  <201805112034.w4BKY1H2052507@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: seanc
Date: Fri May 11 20:34:00 2018
New Revision: 469692
URL: https://svnweb.freebsd.org/changeset/ports/469692

Log:
  New port: sysutils/gomplate
  
  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.
  
  Reviewed by:	swills, mat
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D15327

Added:
  head/sysutils/gomplate/
  head/sysutils/gomplate/Makefile   (contents, props changed)
  head/sysutils/gomplate/distinfo   (contents, props changed)
  head/sysutils/gomplate/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Fri May 11 20:30:18 2018	(r469691)
+++ head/sysutils/Makefile	Fri May 11 20:34:00 2018	(r469692)
@@ -434,6 +434,7 @@
     SUBDIR += gnome-system-monitor
     SUBDIR += gnome_subr
     SUBDIR += goaccess
+    SUBDIR += gomplate
     SUBDIR += google-compute-engine-oslogin
     SUBDIR += goss
     SUBDIR += gpart

Added: head/sysutils/gomplate/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/gomplate/Makefile	Fri May 11 20:34:00 2018	(r469692)
@@ -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>

Added: head/sysutils/gomplate/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/gomplate/distinfo	Fri May 11 20:34:00 2018	(r469692)
@@ -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

Added: head/sysutils/gomplate/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/gomplate/pkg-descr	Fri May 11 20:34:00 2018	(r469692)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805112034.w4BKY1H2052507>