Nomad 0.9.2 addresses CVE-2019-12618 (hashicorp/nomad#5728). Removes yarn build error -- no longer required as the assets are vendored, so it's possible to build this on i686. Removes nonvidia patch. The changes are upstream in 0.9.2. Closes: #12169 [via git-merge-pr]
27 lines
805 B
Bash
27 lines
805 B
Bash
# Template file for 'nomad'
|
|
pkgname=nomad
|
|
version=0.9.2
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/hashicorp/${pkgname}"
|
|
go_build_tags="ui release"
|
|
_git_commit=23c4597dbb6d1d46e020301b0f63db5cff80d3f0
|
|
go_ldflags="-X ${go_import_path}/version.GitCommit=${_git_commit}"
|
|
hostmakedepends="git"
|
|
short_desc="Cluster scheduler designed to easily integrate into existing workflows"
|
|
maintainer="iaroki <iaroki@protonmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://www.nomadproject.io/"
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
|
checksum=5e3172cc51a925818c3bc892a2e99ee7da235b88ac2bdab3633a6a6289f0c692
|
|
patch_args="-Np1"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) go_build_tags+=" nonvidia" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsconf dist/server.hcl
|
|
vsconf dist/client.hcl
|
|
}
|