sys-cluster/nomad: security cleanup

Bug: https://bugs.gentoo.org/895628
Signed-off-by: John Helmert III <ajak@gentoo.org>
This commit is contained in:
John Helmert III
2023-11-16 20:22:50 -08:00
parent 961114da9f
commit 6d56efc73f
3 changed files with 0 additions and 92 deletions

View File

@@ -1,6 +1,2 @@
DIST nomad-1.4.3-deps.tar.xz 380318008 BLAKE2B 76dcb628d70d94019870e8837770f06b270c12f06f29bccc8394992c0bb04856e58bfcb5cbcc439b9401ad9433935d7480db5a7201d3b120d6374418fb347f67 SHA512 d634f3400d48e452ceeac43754bda5970b5bfe41a3478e50752cc3b93fcaef881b8781920647417bd16d780fea0387769c946680308f0f926520cc7f5ceb649c
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

View File

@@ -1,44 +0,0 @@
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
GIT_COMMIT=f464aca721d222ae9c1f3df643b3c3aaa20e2da7
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
}

View File

@@ -1,44 +0,0 @@
# 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
}