From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CF00138359 for ; Sat, 19 Sep 2020 02:47:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACDE0E077F; Sat, 19 Sep 2020 02:47:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 900A2E077F for ; Sat, 19 Sep 2020 02:47:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DFCC33BEE9 for ; Sat, 19 Sep 2020 02:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88B4C361 for ; Sat, 19 Sep 2020 02:47:01 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1600483524.d2dc209a90b44b4584be558867c6a48f43712ce3.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/nomad/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/nomad/Manifest sys-cluster/nomad/nomad-0.12.4.ebuild X-VCS-Directories: sys-cluster/nomad/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: d2dc209a90b44b4584be558867c6a48f43712ce3 X-VCS-Branch: master Date: Sat, 19 Sep 2020 02:47:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 607e5087-8eee-436e-9beb-d500fc0592a4 X-Archives-Hash: 34dce301ef03194de95dff4054c278c3 commit: d2dc209a90b44b4584be558867c6a48f43712ce3 Author: William Hubbs gentoo org> AuthorDate: Sat Sep 19 02:36:12 2020 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Sep 19 02:45:24 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2dc209a sys-cluster/nomad: 0.12.4 bump Closes: https://bugs.gentoo.org/742467 Signed-off-by: William Hubbs gentoo.org> sys-cluster/nomad/Manifest | 1 + sys-cluster/nomad/nomad-0.12.4.ebuild | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest index f6174e5dded..7f47c9ab945 100644 --- a/sys-cluster/nomad/Manifest +++ b/sys-cluster/nomad/Manifest @@ -1 +1,2 @@ DIST nomad-0.12.3.tar.gz 51432205 BLAKE2B 77090f387e25f226c8d05b6ea16abfac0f4b710a40a3e7e5455bd6c8b7992080980967d4ebb92257348968dddbb45d2e5c3b58f143ae1205742bf08f0dec2a71 SHA512 17d361db11104ddbbae12a17301005c8eca3650e3fdda8f2fd6db8474728f31a2b6f828f2fba7e7d9d132b08cfb070799273353a17f5f66baa4dc5a0492562f8 +DIST nomad-0.12.4.tar.gz 51468076 BLAKE2B 42ca90649263dae6aaa29921853816b6172b285f2675a3fe68aca423bd15213924263433e01d870fa502cfc53372cb6f30f810c7aaadfe63970f91c4bb630912 SHA512 2fb12f96a14772d0a382f40aa686d61823630d49778365447410e7c4a4d7f3cbff275fdeea823f3c397642ce7aeae3618c295d4b08ea884dc51190960f33110e 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 00000000000..b295320f634 --- /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 +}