commit:     91660e2407206b2bb57d45c3717b1ceca210e18f
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Fri Sep  9 02:26:04 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Sep  9 02:26:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=91660e24

net-p2p/p2pool: add 9999

Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>

 net-p2p/p2pool/p2pool-9999.ebuild | 47 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/net-p2p/p2pool/p2pool-9999.ebuild 
b/net-p2p/p2pool/p2pool-9999.ebuild
new file mode 100644
index 000000000..63dce5078
--- /dev/null
+++ b/net-p2p/p2pool/p2pool-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake git-r3
+
+DESCRIPTION="Decentralized pool for Monero mining"
+HOMEPAGE="https://p2pool.io https://github.com/SChernykh/p2pool";
+
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/SChernykh/p2pool.git";
+
+LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT"
+SLOT="0"
+
+DEPEND="
+       dev-libs/libsodium
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_RANDOMX=OFF
+       )
+
+       cmake_src_configure
+}
+
+src_install(){
+       dobin "${BUILD_DIR}/p2pool"
+}
+
+pkg_postinst() {
+       #Some important wisdom taken from P2Pool documentation
+       ewarn "P2Pool for Monero is now installed."
+       ewarn "You can run it by doing 'p2pool --host 127.0.0.1 --wallet 
YOUR_PRIMARY_ADDRESS'"
+       ewarn "Where 127.0.0.1 is the address of a local monero node (e.g. 
monerod)"
+       ewarn ""
+       ewarn "Once configured, point your RandomX miner (e.g. XMRig) at p2pool"
+       ewarn "For example 'xmrig -o 127.0.0.1:3333'"
+       ewarn ""
+       ewarn "You MUST use your primary address when using p2pool, just like 
solo mining."
+       ewarn "If you want privacy, create a new mainnet wallet for P2Pool 
mining."
+       ewarn ""
+       ewarn "Rewards will not be visibile unless you use a wallet that 
supports P2Pool."
+       ewarn "See https://p2pool.io/#help and 
https://github.com/SChernykh/p2pool for more information."
+}

Reply via email to