aboutsummaryrefslogtreecommitdiffstats
path: root/devel/etcd/Makefile
blob: 24377cd1e195a505cb90a7d7d4261c6a1dbeed2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $FreeBSD$

PORTNAME=   etcd
PORTVERSION=    2.2.4
DISTVERSIONPREFIX=  v
CATEGORIES= devel
PKGNAMEPREFIX=  coreos-

MAINTAINER= robak@FreeBSD.org
COMMENT=    Highly-available key value store and service discovery

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go

CONFLICTS_INSTALL=coreos-etcdctl-0.* etcd

USE_GITHUB= yes
GH_ACCOUNT= coreos

PLIST_FILES=    bin/etcd \
        bin/etcdctl
PORTDOCS=   README.md

OPTIONS_DEFINE= DOCS
DOCS_DESC=  Install etcd README file

do-build:
    cd ${WRKSRC}; ${SH} build

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/etcd ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/etcdctl ${STAGEDIR}${PREFIX}/bin/

do-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>