1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/sysutils/nomad/Makefile
2019-10-25 18:51:57 +00:00

35 lines
813 B
Makefile

# $FreeBSD$
PORTNAME= nomad
DISTVERSIONPREFIX= v
DISTVERSION= 0.10.0
CATEGORIES= sysutils
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Cluster manager and scheduler
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= On i386: go compiler crashes: https://github.com/golang/go/issues/23763
USES= go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR= src/github.com/hashicorp/nomad
USE_RC_SUBR= nomad
GO_BUILDFLAGS= -tags ui \
-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}"
USERS= nomad
GROUPS= nomad
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/nomad
${INSTALL_DATA} ${WRKSRC}/dist/client.hcl ${STAGEDIR}${PREFIX}/etc/nomad/client.hcl.sample
${INSTALL_DATA} ${WRKSRC}/dist/server.hcl ${STAGEDIR}${PREFIX}/etc/nomad/server.hcl.sample
.include <bsd.port.mk>