diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 05:11:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-28 05:11:40 +0100 |
commit | 2099ff9b640e648be67527e29760263a7c6274e5 (patch) | |
tree | 238358af0ba45fd8fcc6cd4679736d6c4f07f851 /sys-cluster/nomad/nomad-1.5.3.ebuild | |
parent | d198e0ebeee70707545d19ee3beb1de70802cc7c (diff) |
gentoo auto-resync : 28:04:2023 - 05:11:40
Diffstat (limited to 'sys-cluster/nomad/nomad-1.5.3.ebuild')
-rw-r--r-- | sys-cluster/nomad/nomad-1.5.3.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-cluster/nomad/nomad-1.5.3.ebuild b/sys-cluster/nomad/nomad-1.5.3.ebuild new file mode 100644 index 000000000000..1adb04ac4d08 --- /dev/null +++ b/sys-cluster/nomad/nomad-1.5.3.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=434f7a1745c6304d607562daa9a4a635def7153f + +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 +} |