diff options
author | Zac Medico <zmedico@gentoo.org> | 2022-10-17 19:04:36 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2022-10-17 19:05:09 -0700 |
commit | c138b16f9983438cbdb424c13a68ffc57da7d52e (patch) | |
tree | 2bce3bc2aa993389e457ec9b6d6e2fc509f365c8 /app-admin/serf | |
parent | app-admin/consul-template: add 0.29.5 (diff) | |
download | gentoo-c138b16f9983438cbdb424c13a68ffc57da7d52e.tar.gz gentoo-c138b16f9983438cbdb424c13a68ffc57da7d52e.tar.bz2 gentoo-c138b16f9983438cbdb424c13a68ffc57da7d52e.zip |
app-admin/serf: add 0.10.1
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-admin/serf')
-rw-r--r-- | app-admin/serf/Manifest | 2 | ||||
-rw-r--r-- | app-admin/serf/serf-0.10.1.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/serf/Manifest b/app-admin/serf/Manifest index 7d67866ffe57..a66d0d5bd131 100644 --- a/app-admin/serf/Manifest +++ b/app-admin/serf/Manifest @@ -1,4 +1,6 @@ DIST serf-0.10.0-deps.tar.xz 24363004 BLAKE2B f0fed10ffa8ff536263f6fde5a87e9584c35a681e7821a91d123aa8bd149ca1b9024d454f8163de458e4b928e887736c3247661afbc3f46b2ba38bef09d4516d SHA512 73815e512fda8aa00241bff84e1ee2414106a4b1a6189e66aa80967152acafde56eeafd15b87cbaefcbedc093f1c42cfb19b9d5776473c4c580416c2b671931a DIST serf-0.10.0.tar.gz 446394 BLAKE2B 627e9ee776e217db09dde4bb22d1f317c884f887d918ba69de9bb65160eb00280c1ae5f53119570732f462c35381bd24a81405761b8ec63193295b6245298049 SHA512 53cb42b4a5f94fbb9e099739af0e31bb00cc261ea16325c3e5b9f081bb31299b5b8e42bc92d0f83ae78e511854589a95ab011930f373c1ad148c152b73adf485 +DIST serf-0.10.1-deps.tar.xz 24356192 BLAKE2B f635b7f4ea496aeac3148132ff0c4fcd2de037a2fc4c7c0c3943f2531b816a8002eb1e14a2204a30c206630f94400f953ae872e18bd2164c1d688f80961d54b8 SHA512 401e5bb706b3bf6521401ad4d40b02b331e71c6a0886796002046c83dffcffc735b803634d96bff5220d1069f418881daa9432412c4bcf6b7f3b37036d1a3a20 +DIST serf-0.10.1.tar.gz 447396 BLAKE2B a5b1aadf2e7d9b807406d8bd1d2db799f7a629a4db3abb3558c405b7bf81b5bef618157e51887ac631f3b42ca9eab3107ead8ead938ed0a1267299b2c47e0a18 SHA512 50febac6a634b7e19e58a2591371228fe7c1865673f48d082ed57cff1ac9c404d6a3b328d85b82cb92f05973a34396b824fdd9cb81f3e12c586b3f56d6734fa8 DIST serf-0.9.8-deps.tar.xz 24178272 BLAKE2B 6a82fa025245f0c393b55d87a10195a9ed5f314b3cb772b54b01b858b9f6b393991cc206f269b39efe9a9061aeff948191ae48070eb7c1e5bf77781c97173952 SHA512 ec12d4b27044f58e897984adb3855413e2d3a624f62dffe981353bb5bfbbcbe64501080ef543bc446633716bbfe3ef29c3c93c44db8599b5639e2ef8d20d8eee DIST serf-0.9.8.tar.gz 444968 BLAKE2B 023413f75444f8e785bd7c5029e84ef58abca1c227f69dd8c16111c30afb38ff331e39cd8c30539f133229829bb9517516ff0e18e49b2dc9fb53df2ed40224b3 SHA512 1501ad6587f77840f7ad95d2886aafa3c28ffa533e862df0ebe5a4822078de09370c2ca1826d47dc6ff84e8598fb3711125a16e399a935ac39bad887e532c402 diff --git a/app-admin/serf/serf-0.10.1.ebuild b/app-admin/serf/serf-0.10.1.ebuild new file mode 100644 index 000000000000..540d5af97180 --- /dev/null +++ b/app-admin/serf/serf-0.10.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +KEYWORDS="~amd64" +EGO_PN="github.com/hashicorp/serf" +DESCRIPTION="Service orchestration and management tool" +HOMEPAGE="https://www.serfdom.io/" +SRC_URI="https://github.com/hashicorp/serf/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +SLOT="0" +LICENSE="MPL-2.0 Apache-2.0 BSD MIT" +IUSE="" +RESTRICT+=" test" +BDEPEND="" +RDEPEND=" + acct-user/serf + acct-group/serf" + +src_prepare() { + default + sed -e 's|\(^VERSION[[:space:]]*:=\).*|\1'${PV}'|' \ + -e 's|\(GITSHA[[:space:]]*:=\).*|\1'${PV}'|' \ + -e 's|\(GITBRANCH[[:space:]]*:=\).*|\1'${PV}'|' \ + -i GNUmakefile || die +} + +src_compile() { + mkdir -p ./bin + go build -o ./bin/serf ./cmd/serf || die +} + +src_install() { + local x + + dobin "${S}/bin/${PN}" + + keepdir /etc/serf.d + insinto /etc/serf.d + + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners serf:serf "${x}" + done + + newinitd "${FILESDIR}/serf.initd" "${PN}" + newconfd "${FILESDIR}/serf.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/serf.service" +} |