diff options
author | William Hubbs <williamh@gentoo.org> | 2023-08-08 15:12:11 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2023-08-08 15:12:11 -0500 |
commit | 51aa45d2c61a6838d5e8d93d318f19b70eecb6b7 (patch) | |
tree | c7110598f879c3d9505536bc405a7c16a4a748fd /sys-cluster/nomad | |
parent | dev-python/tox: Bump to 4.7.0 (diff) | |
download | gentoo-51aa45d2c61a6838d5e8d93d318f19b70eecb6b7.tar.gz gentoo-51aa45d2c61a6838d5e8d93d318f19b70eecb6b7.tar.bz2 gentoo-51aa45d2c61a6838d5e8d93d318f19b70eecb6b7.zip |
sys-cluster/nomad: add 1.6.1
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster/nomad')
-rw-r--r-- | sys-cluster/nomad/Manifest | 2 | ||||
-rw-r--r-- | sys-cluster/nomad/nomad-1.6.1.ebuild | 44 |
2 files changed, 46 insertions, 0 deletions
diff --git a/sys-cluster/nomad/Manifest b/sys-cluster/nomad/Manifest index 3dbb90366f1d..c6ff8b67a393 100644 --- a/sys-cluster/nomad/Manifest +++ b/sys-cluster/nomad/Manifest @@ -2,3 +2,5 @@ DIST nomad-1.4.3-deps.tar.xz 380318008 BLAKE2B 76dcb628d70d94019870e8837770f06b2 DIST nomad-1.4.3.tar.gz 23243041 BLAKE2B dec5cb10993b45da906e98446531679543befd820b5dde226a4ea12e817408330cc80806e5b85c54d968fe110249bc266bb9426cc6f59e64c0c0ce78a4e5b884 SHA512 abc4b6b62e5693d7efd80a29726b21544fe3c8b03099f5cb2e1aa6707f512ea6f744c250996bc8d3f3f70bb4eaf6177d7640c8decb503800bee5397d9c0b4140 DIST nomad-1.5.3-deps.tar.xz 413102012 BLAKE2B 038953b122a194c56c5c9436d76099022da18dd6b5b639d0b2fcee321a24c23bc6deee63e27638ab79996728a83f9ba9b8d2151265ed6fbbe613d2402c84c88b SHA512 0b483b66fa1ed8f1b38ae77db3aef008341416ffc24abb29121560634bb31a7282e26333bb8330386049bea60eb8ae3ef58eab37785eb2446e9d55029b6ecb46 DIST nomad-1.5.3.tar.gz 23976676 BLAKE2B 4d237e2610b3c2e9c887d115474b628ba81814fb1c2e89e387b63329072817c9f3768557d33e98f199e9f16e08cc81797d31a7570e18fa0d6c450aa6e0799969 SHA512 c058c367cfd632f9f6801aaabf79ed5ba6f70e69de0480e15be84f40ebea78433f10aed82e54339231df1063ab2a8b150a0185c1bc9127174347a9d5c71ffe1d +DIST nomad-1.6.1-deps.tar.xz 357940588 BLAKE2B 956b9e7b89cca7e0678f1e8b0b64134f34d5a0d6e017d971891ae1847628e9f125a0ab86bbb6d0902ef33a68aaeedb9e904d3617bb5fb1b86f125f0b12854722 SHA512 fba689dc8644219013c17162389d396740a5801953e1e052f246f503444f8867f99ec9a2047add0e07876b2cff7e6928e6bd66c2ba4277ab825c58ba7cff6e4a +DIST nomad-1.6.1.tar.gz 24346334 BLAKE2B 9c97469e91dd8aa7c5487edc51a6cd8d64a7920a1c385d52339eb6dc552efb79d5f87d91d377cd373088e6284e719a84b765115c8c4e78ba067d81f0869f0909 SHA512 d85450980813b584e5147a7626827b5b2213f7304cee027b46ec116999e9858bd20eea1fd482acaf8feb57b3dc13ae84834a472f1bbc4da8ec18ab926c283860 diff --git a/sys-cluster/nomad/nomad-1.6.1.ebuild b/sys-cluster/nomad/nomad-1.6.1.ebuild new file mode 100644 index 000000000000..b07ee3abb437 --- /dev/null +++ b/sys-cluster/nomad/nomad-1.6.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd +GIT_COMMIT=515895c7690cdc72278018dc5dc58aca41204ccc + +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 +} |