1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/devel/etcdctl/Makefile
William Grzybowski cc7ae22d81 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
2013-11-13 12:01:18 +00:00

41 lines
919 B
Makefile

# $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>