aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/serf/Makefile
blob: b3f1e80b7e1c1b43eebde38ab422b0ec673ac828 (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
# $FreeBSD$

PORTNAME=   serf
PORTVERSION=    0.8.3
DISTVERSIONPREFIX=  v
CATEGORIES= sysutils
PKGNAMEPREFIX=  hashicorp-

MAINTAINER= swills@FreeBSD.org
COMMENT=    Service discovery and configuration made easy

LICENSE=    MPL20

BUILD_DEPENDS=  go:lang/go

USE_GITHUB= yes

GH_ACCOUNT= hashicorp
GH_SUBDIR:= src/github.com/${GH_ACCOUNT}/${PORTNAME}

USE_RC_SUBR=    serf

USERS=      serf
GROUPS=     serf

PLIST_FILES=    bin/serf

do-build:
    @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \
        ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC}:${WRKSRC}/vendor/ \
        go build -o bin/${PORTNAME} ./cmd/serf/

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>