blob: 4cf331e7f4de51cdf689d6363b04b61bc3ad1492 (
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
37
38
39
40
41
42
43
44
45
|
# $FreeBSD$
PORTNAME= nomad
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.3
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= compiler go
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR= src/github.com/hashicorp/nomad
USE_RC_SUBR= nomad
USERS= nomad
GROUPS= nomad
do-build:
@cd ${WRKSRC}/src/github.com/hashicorp/nomad && \
${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/nomad
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/hashicorp/nomad/bin/nomad ${STAGEDIR}${PREFIX}/bin/nomad
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/nomad
${INSTALL_DATA} ${WRKSRC}/src/github.com/hashicorp/nomad/dist/client.hcl \
${STAGEDIR}${PREFIX}/etc/nomad/client.hcl.sample
${INSTALL_DATA} ${WRKSRC}/src/github.com/hashicorp/nomad/dist/server.hcl \
${STAGEDIR}${PREFIX}/etc/nomad/server.hcl.sample
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
BUILD_ENV= CC=clang
.endif
.include <bsd.port.post.mk>
|