From owner-svn-ports-all@freebsd.org Fri May 11 20:34:02 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BBC9FCB941; Fri, 11 May 2018 20:34:02 +0000 (UTC) (envelope-from seanc@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C9CE6A40B; Fri, 11 May 2018 20:34:02 +0000 (UTC) (envelope-from seanc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D109148BC; Fri, 11 May 2018 20:34:02 +0000 (UTC) (envelope-from seanc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4BKY15g052511; Fri, 11 May 2018 20:34:01 GMT (envelope-from seanc@FreeBSD.org) Received: (from seanc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4BKY1H2052507; Fri, 11 May 2018 20:34:01 GMT (envelope-from seanc@FreeBSD.org) Message-Id: <201805112034.w4BKY1H2052507@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: seanc set sender to seanc@FreeBSD.org using -f From: Sean Chittenden Date: Fri, 11 May 2018 20:34:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469692 - in head/sysutils: . gomplate X-SVN-Group: ports-head X-SVN-Commit-Author: seanc X-SVN-Commit-Paths: in head/sysutils: . gomplate X-SVN-Commit-Revision: 469692 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2018 20:34:02 -0000 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 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