mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
6ca11dabc8
- Fix pkg name prefix to include a dash - Add an option to install etcdctl PR: ports/183921 Submitted by: maintainer
42 lines
959 B
Makefile
42 lines
959 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= etcd
|
|
PORTVERSION= 0.1.2
|
|
PORTREVISION= 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= 5589b6f
|
|
|
|
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>
|