aboutsummaryrefslogtreecommitdiffstats
path: root/devel/etcd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/etcd/Makefile')
-rw-r--r--devel/etcd/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/etcd/Makefile b/devel/etcd/Makefile
new file mode 100644
index 000000000000..615407fac01f
--- /dev/null
+++ b/devel/etcd/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME= etcd
+PORTVERSION= 0.1.1
+CATEGORIES= devel
+PKGNAMEPREFIX= coreos
+
+MAINTAINER= ports@robakdesign.com
+COMMENT= Highly-available key value store and service discovery
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
+
+USE_GITHUB= yes
+GH_ACCOUNT= coreos
+GH_TAGNAME= v${PORTVERSION}
+GH_COMMIT= 7b28904
+
+PLIST_FILES+= bin/${PORTNAME}
+
+PORTDOCS= README.md
+
+NO_BUILD= yes
+
+OPTIONS_DEFINE= DOCS
+
+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
+
+pre-install:
+ @(cd ${WRKSRC}; ${SH} build)
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>