1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/etcd/Makefile
Steve Wills ee8c1de755 - Update to 0.3.0
- Add LICENSE
- Fix options for DOCS installation
- Removed option for client port

PR:		ports/187626
Submitted by:	Bartek Rutkowski <ports@robakdesign.com> (maintainer)
2014-03-17 16:02:56 +00:00

46 lines
986 B
Makefile

# $FreeBSD$
PORTNAME= etcd
PORTVERSION= 0.3.0
CATEGORIES= devel
PKGNAMEPREFIX= coreos-
MAINTAINER= ports@robakdesign.com
COMMENT= Highly-available key value store and service discovery
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
GH_ACCOUNT= coreos
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= a643476
PLIST_FILES= bin/bench \
bin/etcd
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
DOCS_DESC= Install etcd 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
do-build:
cd ${WRKSRC}; ${SH} build
do-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/bin/bench ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/bin/etcd ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>