nomad: update to 0.8.6.

Closes: #4935 [via git-merge-pr]
This commit is contained in:
Noel Cower 2018-11-19 19:31:27 -08:00 committed by Michael Aldridge
parent 736ebdf72d
commit c4a489659b
1 changed files with 25 additions and 4 deletions

View File

@ -1,14 +1,35 @@
# Template file for 'nomad' # Template file for 'nomad'
pkgname=nomad pkgname=nomad
version=0.8.4 version=0.8.6
revision=2 revision=1
build_style=go build_style=go
go_import_path="github.com/hashicorp/nomad" go_import_path="github.com/hashicorp/nomad"
hostmakedepends="git govendor"
short_desc="Cluster scheduler designed to easily integrate into existing workflows" short_desc="Cluster scheduler designed to easily integrate into existing workflows"
maintainer="iaroki <iaroki@protonmail.com>" maintainer="iaroki <iaroki@protonmail.com>"
license="MPL-2.0" license="MPL-2.0"
homepage="https://www.nomadproject.io/" homepage="https://www.nomadproject.io/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz" distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=8dfacd578f2be1ae6cc7af6b2749952f1646344cb95bde17f35eeb78faacd616 checksum=e69b447dcc2caeb3d5ecf904cf3c8f327a5185a84442ee4241a796d89f96e143
patch_args="-Np1"
broken="go-1.11/runtime.support_avx2" pre_build() {
# NOTE: This can probably be removed in nomad 0.9.x if Hashicorp updates
# their golang.org/x/crypto/blake2b dependency.
cd "$GOSRCPATH"
govendor fetch golang.org/x/sys/cpu@1b2967e3c290b7c545b3db0deeda16e9be4f98a2
govendor fetch golang.org/x/crypto/blake2b@de0752318171da717af4ce24d0a2e8626afaeb11
cd -
}
do_build() {
: ${go_package:=$go_import_path}
go build -o bin/nomad -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
}
do_install() {
vbin bin/nomad
vlicense LICENSE
vsconf dist/server.hcl
vsconf dist/client.hcl
}