commit:     a3e5de620fc08dfcf2330afa81642f3592f067ef
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 26 18:55:34 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct 26 18:55:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3e5de62

sys-cluster/nomad: add 1.4.1

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 sys-cluster/nomad/Manifest           |  2 ++
 sys-cluster/nomad/nomad-1.4.1.ebuild | 44 ++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest
index 1d5e117082e7..5f1e8f0effa1 100644
--- a/sys-cluster/nomad/Manifest
+++ b/sys-cluster/nomad/Manifest
@@ -1,2 +1,4 @@
 DIST nomad-1.2.6-vendor.tar.xz 8019208 BLAKE2B 
f972a84d201328f95e13a68fdc6dc0f0db5aff6d7ff98f5478ef310c6349fb4c0d9e5aa9c638ae81fb9f2776fa4d252c3b1daed091d3b9ae6d86a75d79e2ac0e
 SHA512 
8d53eaa771847d862f14c3fad286fe42b5c4426b242b18d2b900e4807221e6624b8bb129f34c560078d8863ce19b58c6637d2cc806950fffb5140b8d44f44c8f
 DIST nomad-1.2.6.tar.gz 29585632 BLAKE2B 
1b9ecbb11ddc59f8078831c6d41b8547a572c3b8475a21d65b8333204bdd2a6ee646cc7c5ec2bdffaee6c1b3cdf2dc30a667464695057e49c2bca41128b61452
 SHA512 
93a3ed9b0d992ba25cb126496cb9ed250195d8b8011312ebc4cffdf5f9f8786bc43cbe18cefc820597b8a117a05f6118e2e4a88e25e738c1bd309c5504e93ed9
+DIST nomad-1.4.1-deps.tar.xz 374031840 BLAKE2B 
8859181e7e5bbf74367f2e9231c80869b91394d831d367d0dbad77cec1822e399d0436f93f4e66c3079c47687a366dac6fe926b7cd3906f8ce1539b40e860085
 SHA512 
c422fc115c062482d8ea85f9271c3be9fcdccbd67cc6cc3a2c26f1df77f2686ea90df7e118e82dd9f496af4c8482e11d6eb3130fd69e3e797d684c2d41e4da0c
+DIST nomad-1.4.1.tar.gz 22931445 BLAKE2B 
b21eed2e85a618738f8ade32b993799d0cf2e3afaf7abfd174ad9cd93b54360bc27089fda4a37eafb1487c36ae93c087208eaa1078fecaf61d8e01fa992983d5
 SHA512 
80da494a595339242f77182ee47a124b75277a609e845b9e7fa20f0d9f89b1d4044e18f4d44ade7fe9e4feb06d1bdf71ca9d733ec6270af8ae062374a4ee01a2

diff --git a/sys-cluster/nomad/nomad-1.4.1.ebuild 
b/sys-cluster/nomad/nomad-1.4.1.ebuild
new file mode 100644
index 000000000000..83f65f816da5
--- /dev/null
+++ b/sys-cluster/nomad/nomad-1.4.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd
+GIT_COMMIT=2aa7e66bdb526e25f59883952d74dad7ea9a014e
+
+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"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="ui"
+
+RESTRICT=" test"
+
+src_compile() {
+       local go_ldflags go_tags
+       go_ldflags="-X 
github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}"
+       go_tags="codegen_generated"
+       go_tags+="$(usex ui ',ui' '' )"
+       CGO_ENABLED=1 \
+               ego build \
+               -ldflags "${go_ldflags}" \
+               -tags "${go_tags}" \
+               -trimpath \
+               -o bin/${PN}
+}
+
+src_install() {
+       dobin bin/${PN}
+       systemd_dounit "${FILESDIR}"/nomad.service
+       keepdir /etc/nomad.d
+       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
+}

Reply via email to