Index: head/sysutils/serf/Makefile =================================================================== --- head/sysutils/serf/Makefile (revision 505624) +++ head/sysutils/serf/Makefile (revision 505625) @@ -1,36 +1,28 @@ # $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 -USES= go +USES= go:modules USE_GITHUB= yes - GH_ACCOUNT= hashicorp -GH_SUBDIR:= src/github.com/${GH_ACCOUNT}/${PORTNAME} +GO_TARGET= ./cmd/${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