1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/etcd33/Makefile
2018-06-15 21:17:41 +00:00

50 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= etcd
PORTVERSION= 3.3.8
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= coreos-
PKGNAMESUFFIX= 33
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Highly-available key value store and service discovery
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
CONFLICTS_INSTALL=coreos-etcdctl-0.* coreos-etcd-* coreos-etcd31-* coreos-etcd32-*
USES= go
GO_PKGNAME= github.com/coreos/etcd
GO_TARGET= github.com/coreos/etcd \
github.com/coreos/etcdctl
USE_GITHUB= yes
GH_ACCOUNT= coreos
PLIST_FILES= bin/etcd \
bin/etcdctl
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
DOCS_DESC= Install etcd README file
post-extract:
@${MV} ${WRKSRC}/cmd/vendor ${WRKDIR}/src
@${RM} ${GO_WRKDIR_SRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
@${LN} -s ${WRKSRC} ${GO_WRKDIR_SRC}/github.com/${GH_ACCOUNT}/etcd
@${LN} -s ${WRKSRC}/etcdctl ${GO_WRKDIR_SRC}/github.com/${GH_ACCOUNT}/etcdctl
post-patch:
${REINPLACE_CMD} -i '' "s@#cgo LDFLAGS: -ldl@@g;" ${GO_WRKDIR_SRC}/github.com/coreos/pkg/dlopen/dlopen.go
do-install:
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/etcd ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/etcdctl ${STAGEDIR}${PREFIX}/bin/
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>