Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142438152
D15327.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D15327.diff
View Options
Index: head/sysutils/Makefile
===================================================================
--- head/sysutils/Makefile
+++ head/sysutils/Makefile
@@ -434,6 +434,7 @@
SUBDIR += gnome-system-monitor
SUBDIR += gnome_subr
SUBDIR += goaccess
+ SUBDIR += gomplate
SUBDIR += google-compute-engine-oslogin
SUBDIR += goss
SUBDIR += gpart
Index: head/sysutils/gomplate/Makefile
===================================================================
--- head/sysutils/gomplate/Makefile
+++ head/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>
Index: head/sysutils/gomplate/distinfo
===================================================================
--- head/sysutils/gomplate/distinfo
+++ head/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
Index: head/sysutils/gomplate/pkg-descr
===================================================================
--- head/sysutils/gomplate/pkg-descr
+++ head/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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 11:20 PM (5 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27782161
Default Alt Text
D15327.diff (2 KB)
Attached To
Mode
D15327: New port: sysutils/gomplate
Attached
Detach File
Event Timeline
Log In to Comment