diff options
author | Craig Andrews <candrews@gentoo.org> | 2021-06-13 22:28:22 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2021-06-13 22:49:38 -0400 |
commit | 0bde5fabdc2e11c724fbee901dc636b0eefb61ed (patch) | |
tree | ac652a047727ab2950ec5d86b2023d51314391a0 /net-p2p/energi3/energi3-3.0.8.ebuild | |
parent | acct-user/energi3: user for net-p2p/energi3 (diff) | |
download | gentoo-0bde5fabdc2e11c724fbee901dc636b0eefb61ed.tar.gz gentoo-0bde5fabdc2e11c724fbee901dc636b0eefb61ed.tar.bz2 gentoo-0bde5fabdc2e11c724fbee901dc636b0eefb61ed.zip |
net-p2p/energi3: Official golang implementation of the Energi Core
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-p2p/energi3/energi3-3.0.8.ebuild')
-rw-r--r-- | net-p2p/energi3/energi3-3.0.8.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net-p2p/energi3/energi3-3.0.8.ebuild b/net-p2p/energi3/energi3-3.0.8.ebuild new file mode 100644 index 000000000000..a9db495bfc42 --- /dev/null +++ b/net-p2p/energi3/energi3-3.0.8.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +DESCRIPTION="Official golang implementation of the Energi Core" +HOMEPAGE="https://www.energi.world/" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/energicryptocurrency/${PN}.git" + EGIT_SUBMODULES=() + inherit git-r3 +else + SRC_URI="https://github.com/energicryptocurrency/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +IUSE="" +RDEPEND="acct-user/energi3" + +src_compile() { + GOPATH="${WORKDIR}/${P}/vendor/" emake geth +} + +src_install() { + einstalldocs + dobin build/bin/energi3 + systemd_dounit "${FILESDIR}/energi3.service" +} + +pkg_postinst() { + elog "Run the service: systemctl start energi3" + elog "Attach to the service: energi3 attach --datadir /var/lib/energi3/" + elog "The user attaching must be a member of the 'energi3' group" +} |