1 |
commit: 41e5be70e544079f6e9669a55d870444496455ce |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 19:27:47 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 19:31:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41e5be70 |
7 |
|
8 |
sys-cluster/nomad: 1.0.4 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.4.ebuild | 45 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest |
17 |
index 0c1fecc7cd7..33e78cfa5e2 100644 |
18 |
--- a/sys-cluster/nomad/Manifest |
19 |
+++ b/sys-cluster/nomad/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST nomad-0.12.8.tar.gz 51472616 BLAKE2B 17316e4305edc5a74d640d1bd46e1f997ae43727a6c6dcc5df19af64c659a9b00e4fa2c45c92d70ff70b465278b1bb5c03d81d041facf89549faba17d86efa96 SHA512 c4615043bd1ce3c28cc9a564d58cc0ebbd197b4761763f4d4106fc8d36678c1d8b5b697a38c5ec1093d7d3973b700cd5f32415ec10b8c00546aa1707dea25231 |
22 |
DIST nomad-1.0.1.tar.gz 51101330 BLAKE2B ee955890e7d3cb093c05f91bb4ad4c33f65048875fbf626b8c40975b21c81b8c9802288cc90953a7639ae8b03ba01f1f65320d711bf884aa27c80bfcecccb73b SHA512 07032f965c5826882a4ce0acd7ef2a5d74cc5f0c439b030a4787e60c474070797c5f88d84353e5d423c1d0f6ac411119fd40eebb57848d4eecd8394477fbffa2 |
23 |
+DIST nomad-1.0.4.tar.gz 39538107 BLAKE2B ff72d527e23ce01a6ef0201e3606f4f66933f3c205123a32f503947710de3221476ce738b92becb147a8570c65bb5f4707fad480889197f605840197cfa13155 SHA512 935c8a6924434548f65b162c15f9ca14383546a1e0cea0694312f323d776d92863357f82c7ab53408e76c5c966986c0a511eda8a35043cf21c1020634c6e2ae4 |
24 |
|
25 |
diff --git a/sys-cluster/nomad/nomad-1.0.4.ebuild b/sys-cluster/nomad/nomad-1.0.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..dc33a113797 |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/nomad/nomad-1.0.4.ebuild |
30 |
@@ -0,0 +1,45 @@ |
31 |
+# Copyright 2020-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit go-module systemd |
36 |
+GIT_COMMIT=149b150fb2d87766b8462346d68b72831f622047 |
37 |
+ |
38 |
+DESCRIPTION="A simple and flexible workload orchestrator" |
39 |
+HOMEPAGE="https://nomadproject.io" |
40 |
+SRC_URI="https://github.com/hashicorp/nomad/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MPL-2.0" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="nvidia" |
46 |
+ |
47 |
+RESTRICT+=" test" |
48 |
+ |
49 |
+src_compile() { |
50 |
+ local go_ldflags go_tags |
51 |
+ go_ldflags="-X github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}" |
52 |
+ go_tags="codegen_generated $(usex nvidia '' 'nonvidia')" |
53 |
+ CGO_ENABLED=1 \ |
54 |
+ go build \ |
55 |
+ -ldflags "${go_ldflags}" \ |
56 |
+ -mod=vendor \ |
57 |
+ -tags "${go_tags}" \ |
58 |
+ -trimpath \ |
59 |
+ -o bin/${PN} || die "compile failed" |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin bin/${PN} |
64 |
+ systemd_dounit dist/systemd/nomad.service |
65 |
+ insinto /etc/nomad.d |
66 |
+ newins dist/client.hcl client.hcl.example |
67 |
+ newins dist/server.hcl server.hcl.example |
68 |
+ einstalldocs |
69 |
+ dodoc CHANGELOG.md |
70 |
+ keepdir /var/lib/nomad /var/log/nomad |
71 |
+ newconfd "${FILESDIR}/nomad.confd" nomad |
72 |
+ newinitd "${FILESDIR}/nomad.initd" nomad |
73 |
+ insinto /etc/logrotate.d |
74 |
+ newins "${FILESDIR}/nomad.logrotated" nomad |
75 |
+} |