mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
c27d4e377f
All ports now should use MPL[10|11|20] license. Approved by: portmgr (blanket)
37 lines
730 B
Makefile
37 lines
730 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= serf
|
|
PORTVERSION= 0.8.1
|
|
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} 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>
|