1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/sysutils/nomad/Makefile
2021-05-26 19:26:11 -07:00

30 lines
681 B
Makefile

PORTNAME= nomad
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
CATEGORIES= sysutils
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Cluster manager and scheduler
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
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>