aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-13 20:01:18 +0800
committerwg <wg@FreeBSD.org>2013-11-13 20:01:18 +0800
commit8e09a2f570d881d525c6e0c02319ea890634d9bb (patch)
treee983ab118889a85f2703be16e25e2310ed417c7c /devel
parent2df4fb2496d45248247b1317b3a93ea8ed0e0ce6 (diff)
downloadfreebsd-ports-gnome-8e09a2f570d881d525c6e0c02319ea890634d9bb.tar.gz
freebsd-ports-gnome-8e09a2f570d881d525c6e0c02319ea890634d9bb.tar.zst
freebsd-ports-gnome-8e09a2f570d881d525c6e0c02319ea890634d9bb.zip
devel/etcdctl: Simple commandline client for etcd
Etcdctl is a command line client for etcd. It can be used in scripts or for administrators to explore an etcd cluster. WWW: https://github.com/coreos/etcdctl#etcdctl PR: ports/183845 Submitted by: ports robakdesign.com
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/etcdctl/Makefile40
-rw-r--r--devel/etcdctl/distinfo2
-rw-r--r--devel/etcdctl/pkg-descr5
4 files changed, 48 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c91e1335f924..4f95c0954679 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -410,6 +410,7 @@
SUBDIR += eris
SUBDIR += esdl
SUBDIR += etcd
+ SUBDIR += etcdctl
SUBDIR += etl
SUBDIR += eventxx
SUBDIR += evolution-gconf-tools
diff --git a/devel/etcdctl/Makefile b/devel/etcdctl/Makefile
new file mode 100644
index 000000000000..c207148300af
--- /dev/null
+++ b/devel/etcdctl/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= etcdctl
+PORTVERSION= 0.1.2
+CATEGORIES= devel
+PKGNAMEPREFIX= coreos-
+
+MAINTAINER= ports@robakdesign.com
+COMMENT= Simple commandline client for etcd
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
+
+USE_GITHUB= yes
+GH_ACCOUNT= coreos
+GH_TAGNAME= v${PORTVERSION}
+GH_COMMIT= 0aa41af
+
+PLIST_FILES= bin/${PORTNAME}
+
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+DOCS_DESC= Install etcdctl README file
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$$VER|${DISTVERSION}|' ${WRKSRC}/scripts/release-version
+ @${REINPLACE_CMD} -e '/VER=/d' ${WRKSRC}/scripts/release-version
+ @${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/build
+
+do-build:
+ @(cd ${WRKSRC}; ${SH} build)
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>
diff --git a/devel/etcdctl/distinfo b/devel/etcdctl/distinfo
new file mode 100644
index 000000000000..e1c465dc1c0a
--- /dev/null
+++ b/devel/etcdctl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (etcdctl-0.1.2.tar.gz) = 63c949193196a6f888ec540d71a1c6d70cbccaa7b64b622ac1074e1dcc01fa5a
+SIZE (etcdctl-0.1.2.tar.gz) = 30845
diff --git a/devel/etcdctl/pkg-descr b/devel/etcdctl/pkg-descr
new file mode 100644
index 000000000000..2e7a31d61e95
--- /dev/null
+++ b/devel/etcdctl/pkg-descr
@@ -0,0 +1,5 @@
+Etcdctl is a command line client for etcd. It can
+be used in scripts or for administrators to explore
+an etcd cluster.
+
+WWW: https://github.com/coreos/etcdctl#etcdctl