# HG changeset patch # User Da Risk # Date 1608054519 14400 # Node ID 115a8fb29060797ccf0d6ce0a9373af457931ef8 # Parent 2dec9f3e7ad54128d1e1b049da71374190456f85 bump sys-cluster nomad diff -r 2dec9f3e7ad5 -r 115a8fb29060 sys-cluster/nomad/Manifest --- a/sys-cluster/nomad/Manifest Tue Sep 29 22:38:38 2020 -0400 +++ b/sys-cluster/nomad/Manifest Tue Dec 15 13:48:39 2020 -0400 @@ -3,3 +3,4 @@ DIST nomad-0.11.0.tar.gz 52708805 BLAKE2B 50a2c3ffc7b7f3c0ebcb05a69fe96146b649528aeb6fdf050541cd34d46a290a9da76bfe37495537b5d82fddb0d890ab48ea82544a0c28e5cc6d223750dd9f5a SHA512 1578edf4862caba5ce62a412151c9d4fae94285250895644b38df1ee33ed368c073bc467f71da482a215a4b8059930f50a519d8456159c4f0696fbbd70a9fbb5 DIST nomad-0.11.1.tar.gz 53172787 BLAKE2B 5d89c6c708903f84bf1b3e21749eea2c81a2227f411c8fa7137cb63faf1ced7e4181487cdde62c4d1f7fb799e59743621e505b4ae1fb4a102bfb6c59eee44c82 SHA512 ca959206644a30899b9cc6c60d57a1fde3719a3f78a3d53fd0d7885d8ca60a1c4f86d8253ad7750fb7671b0efea8d4c3a6b178aac6067348060e90589d430448 DIST nomad-0.12.4.tar.gz 51468076 BLAKE2B 42ca90649263dae6aaa29921853816b6172b285f2675a3fe68aca423bd15213924263433e01d870fa502cfc53372cb6f30f810c7aaadfe63970f91c4bb630912 SHA512 2fb12f96a14772d0a382f40aa686d61823630d49778365447410e7c4a4d7f3cbff275fdeea823f3c397642ce7aeae3618c295d4b08ea884dc51190960f33110e +DIST nomad-0.12.8.tar.gz 51472616 BLAKE2B 17316e4305edc5a74d640d1bd46e1f997ae43727a6c6dcc5df19af64c659a9b00e4fa2c45c92d70ff70b465278b1bb5c03d81d041facf89549faba17d86efa96 SHA512 c4615043bd1ce3c28cc9a564d58cc0ebbd197b4761763f4d4106fc8d36678c1d8b5b697a38c5ec1093d7d3973b700cd5f32415ec10b8c00546aa1707dea25231 diff -r 2dec9f3e7ad5 -r 115a8fb29060 sys-cluster/nomad/nomad-0.12.8.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sys-cluster/nomad/nomad-0.12.8.ebuild Tue Dec 15 13:48:39 2020 -0400 @@ -0,0 +1,45 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd +GIT_COMMIT=99fa2774301199ee20e661c7c1832a6ee1d5c553 + +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 ui $(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 + einstalldocs +dodoc CHANGELOG.md + 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 +}