diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-27 02:53:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-27 02:53:16 +0100 |
commit | f1aa825b8483db57bf28d0772acfa10aeebe83c3 (patch) | |
tree | d56ade77461ea49cbbb4943bd2e100eb6b97bb76 /app-admin/serf/serf-0.10.0.ebuild | |
parent | 0e83ee97d831abe38c8e764fb9bbfef9de04daf2 (diff) |
gentoo auto-resync : 27:08:2022 - 02:53:16
Diffstat (limited to 'app-admin/serf/serf-0.10.0.ebuild')
-rw-r--r-- | app-admin/serf/serf-0.10.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app-admin/serf/serf-0.10.0.ebuild b/app-admin/serf/serf-0.10.0.ebuild new file mode 100644 index 000000000000..540d5af97180 --- /dev/null +++ b/app-admin/serf/serf-0.10.0.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" +} |