Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/nomad/
Date: Sat, 26 Dec 2020 00:20:29
Message-Id: 1608942016.750ef5fc6f8ab806b37a471adc488b79168aa38c.williamh@gentoo
1 commit: 750ef5fc6f8ab806b37a471adc488b79168aa38c
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 00:19:57 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 00:20:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=750ef5fc
7
8 sys-cluster/nomad: 1.0.1 bump
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 sys-cluster/nomad/Manifest | 1 +
13 sys-cluster/nomad/nomad-1.0.1.ebuild | 45 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest
17 index 6e34eeeba82..6cac13f91a5 100644
18 --- a/sys-cluster/nomad/Manifest
19 +++ b/sys-cluster/nomad/Manifest
20 @@ -2,3 +2,4 @@ DIST nomad-0.12.3.tar.gz 51432205 BLAKE2B 77090f387e25f226c8d05b6ea16abfac0f4b71
21 DIST nomad-0.12.4.tar.gz 51468076 BLAKE2B 42ca90649263dae6aaa29921853816b6172b285f2675a3fe68aca423bd15213924263433e01d870fa502cfc53372cb6f30f810c7aaadfe63970f91c4bb630912 SHA512 2fb12f96a14772d0a382f40aa686d61823630d49778365447410e7c4a4d7f3cbff275fdeea823f3c397642ce7aeae3618c295d4b08ea884dc51190960f33110e
22 DIST nomad-0.12.5.tar.gz 51464001 BLAKE2B 825160a751481972335c4f37ef0514ddeb676a13a210f0faa43d06f1601bb794edf72402b0dfcf96426611e20eb530a5f077b97b331ce07e5fb6b3d3c7598130 SHA512 a3ffff37f3342de041696b1d6e39661d809e5cb82d27d9b2ba67a33a8698eb4afca929679093ec0d23f364a41307e669a6948e58429b97f49ec046d01f8d97f7
23 DIST nomad-0.12.8.tar.gz 51472616 BLAKE2B 17316e4305edc5a74d640d1bd46e1f997ae43727a6c6dcc5df19af64c659a9b00e4fa2c45c92d70ff70b465278b1bb5c03d81d041facf89549faba17d86efa96 SHA512 c4615043bd1ce3c28cc9a564d58cc0ebbd197b4761763f4d4106fc8d36678c1d8b5b697a38c5ec1093d7d3973b700cd5f32415ec10b8c00546aa1707dea25231
24 +DIST nomad-1.0.1.tar.gz 51101330 BLAKE2B ee955890e7d3cb093c05f91bb4ad4c33f65048875fbf626b8c40975b21c81b8c9802288cc90953a7639ae8b03ba01f1f65320d711bf884aa27c80bfcecccb73b SHA512 07032f965c5826882a4ce0acd7ef2a5d74cc5f0c439b030a4787e60c474070797c5f88d84353e5d423c1d0f6ac411119fd40eebb57848d4eecd8394477fbffa2
25
26 diff --git a/sys-cluster/nomad/nomad-1.0.1.ebuild b/sys-cluster/nomad/nomad-1.0.1.ebuild
27 new file mode 100644
28 index 00000000000..cf4c35f5278
29 --- /dev/null
30 +++ b/sys-cluster/nomad/nomad-1.0.1.ebuild
31 @@ -0,0 +1,45 @@
32 +# Copyright 2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit go-module systemd
37 +GIT_COMMIT=52ec2e19f1d6e383b30a495b9bcdece315adac17
38 +
39 +DESCRIPTION="A simple and flexible workload orchestrator "
40 +HOMEPAGE="https://nomadproject.io"
41 +SRC_URI="https://github.com/hashicorp/nomad/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="MPL-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE="nvidia"
47 +
48 +RESTRICT+=" test"
49 +
50 +src_compile() {
51 + local go_ldflags go_tags
52 + go_ldflags="-X github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}"
53 + go_tags="codegen_generated $(usex nvidia '' 'nonvidia')"
54 + CGO_ENABLED=1 \
55 + go build \
56 + -ldflags "${go_ldflags}" \
57 + -mod=vendor \
58 + -tags "${go_tags}" \
59 + -trimpath \
60 + -o bin/${PN} || die "compile failed"
61 +}
62 +
63 +src_install() {
64 + dobin bin/${PN}
65 + systemd_dounit dist/systemd/nomad.service
66 + insinto /etc/nomad.d
67 + newins dist/client.hcl client.hcl.example
68 + newins dist/server.hcl server.hcl.example
69 + einstalldocs
70 +dodoc CHANGELOG.md
71 + keepdir /var/lib/nomad /var/log/nomad
72 + newconfd "${FILESDIR}/nomad.confd" nomad
73 + newinitd "${FILESDIR}/nomad.initd" nomad
74 + insinto /etc/logrotate.d
75 + newins "${FILESDIR}/nomad.logrotated" nomad
76 +}