diff options
Diffstat (limited to 'sys-cluster/nomad')
-rw-r--r-- | sys-cluster/nomad/Manifest | 2 | ||||
-rw-r--r-- | sys-cluster/nomad/nomad-0.12.4.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest index 73cd58087f7b..4f32dfb27e98 100644 --- a/sys-cluster/nomad/Manifest +++ b/sys-cluster/nomad/Manifest @@ -2,5 +2,7 @@ AUX nomad.confd 70 BLAKE2B e7cd65e529d1a8d99212a3267d3dc8d6f6d8b310f7cbda77e31f6 AUX nomad.initd 534 BLAKE2B 392ba0c199a401c278d47f2fb068831f331485d34eb6d81d7e14df60cbcc62f3ecc01a200e5a8ac00ab734789c07d6bcd73391e67d5141f04365c08935c07d62 SHA512 63920465cc4346e6d79b54afd0c0ad418a06c5f977edf8a49adb8b2895390cc13d48a18fc377de91c92449af5095347c36aecf67eda528da76209e77130f2b98 AUX nomad.logrotated 83 BLAKE2B 2c970621c10520b2aaa17172d9c99a741737393db9a6424278e12d8b6676492c97b628d4be419ab921f7cf7685bae1a5e93eb04efa2ca6242012cfde203e02da SHA512 0ebdbeab15b01145eb2b33e0c6fd43dde3e4ac8eae9d8aff81797688276530732f613a39cd658fa4f5c2e8c99d70e6255f814ca5f3cd2bc5de259be324ab2851 DIST nomad-0.12.3.tar.gz 51432205 BLAKE2B 77090f387e25f226c8d05b6ea16abfac0f4b710a40a3e7e5455bd6c8b7992080980967d4ebb92257348968dddbb45d2e5c3b58f143ae1205742bf08f0dec2a71 SHA512 17d361db11104ddbbae12a17301005c8eca3650e3fdda8f2fd6db8474728f31a2b6f828f2fba7e7d9d132b08cfb070799273353a17f5f66baa4dc5a0492562f8 +DIST nomad-0.12.4.tar.gz 51468076 BLAKE2B 42ca90649263dae6aaa29921853816b6172b285f2675a3fe68aca423bd15213924263433e01d870fa502cfc53372cb6f30f810c7aaadfe63970f91c4bb630912 SHA512 2fb12f96a14772d0a382f40aa686d61823630d49778365447410e7c4a4d7f3cbff275fdeea823f3c397642ce7aeae3618c295d4b08ea884dc51190960f33110e EBUILD nomad-0.12.3.ebuild 1152 BLAKE2B 5e46d8ab1d030bbbec3dc69ae154e2b362429c3256fd5689bed9ac5d108ac9d9a601a1e207a5b09f227d5ccff12ed4272a89b812cb21a0e9c94e4b0d5f3c1334 SHA512 7e922cd5d79af1d7d53f9304554ce11ff3dce19041b9a6571889888a081a3bd7f42f0ee284d12bd7ef5ab8cf71b0aceb148fb482d922bc57e4d5d994f3b1b1d8 +EBUILD nomad-0.12.4.ebuild 1152 BLAKE2B 91f68bb115152b3c49b094dcb88351e8fefa5837cb48128209e293e9811fe970a79090a9d4e076193ef7d9daf069793e3c633d8e2ccc7291c879ffe4cce30ba6 SHA512 43060c15c20ff40bef48f224d05474169f81948dc9844d6bac19c570e8ef89b52fa38a2a15c910377f10e33ac497c1cc2b9ea5f1bdab4119583e02b7e34feba4 MISC metadata.xml 324 BLAKE2B bff415652c0d5fd2e56766c32b6e5df0d9bd00808cee31a70dc36db2e558383e2c489a5315273a42b5fa14723aa88fc659a248589f0d849425cafb5f78ec75c9 SHA512 b8e9827b4c5dd03abac84db21aab8f2743e1421c45aab547bf754165767307e9f60b29b541ab7cc4242347f1510226896db815832d4780fb606c92f9d804c163 diff --git a/sys-cluster/nomad/nomad-0.12.4.ebuild b/sys-cluster/nomad/nomad-0.12.4.ebuild new file mode 100644 index 000000000000..b295320f634c --- /dev/null +++ b/sys-cluster/nomad/nomad-0.12.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd +GIT_COMMIT=ec7bf9de21bfe3623ff04b009f26aaf488bae2b1 + +DESCRIPTION="A simple and flexible workload orchestrator " +HOMEPAGE="https://nomadproject.io" +SRC_URI="https://github.com/hashicorp/nomad/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="nvidia" + +RESTRICT+=" test" + +src_compile() { + local go_ldflags go_tags + go_ldflags="-X github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}" + go_tags="codegen_generated $(usex nvidia '' 'nonvidia')" + CGO_ENABLED=1 \ + go build \ + -trimpath \ + -ldflags "${go_ldflags}" \ + -mod=vendor \ + -tags "${go_tags}" \ + -o bin/${PN} || die "compile failed" +} + +src_install() { + dobin bin/${PN} + systemd_dounit dist/systemd/nomad.service + insinto /etc/nomad.d + newins dist/client.hcl client.hcl.example + newins dist/server.hcl server.hcl.example + keepdir /var/lib/nomad /var/log/nomad + newconfd "${FILESDIR}/nomad.confd" nomad + newinitd "${FILESDIR}/nomad.initd" nomad + insinto /etc/logrotate.d + newins "${FILESDIR}/nomad.logrotated" nomad +} |