1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/etcd/Makefile
Vanilla I. Shu 8ff2fb8c2c Upgrade to 0.2.0
PR:		ports/185554
Submitted by:	maintainer
2014-01-10 13:42:59 +00:00

41 lines
943 B
Makefile

# $FreeBSD$
PORTNAME= etcd
PORTVERSION= 0.2.0
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= f04fdf1
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS ETCDCTL
DOCS_DESC= Install etcd README file
ETCDCTL_DESC= Install etcdctl commandline tool
ETCDCTL_RUN_DEPENDS= etcdctl:${PORTSDIR}/devel/etcdctl
post-patch:
@${REINPLACE_CMD} -e 's|$$VER|${DISTVERSION}|' ${WRKSRC}/scripts/release-version
@${REINPLACE_CMD} -e '/VER=/d' ${WRKSRC}/scripts/release-version
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>