From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1434787-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 9790F158095
	for <garchives@archives.gentoo.org>; Fri,  9 Sep 2022 02:29:10 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D5384E0A52;
	Fri,  9 Sep 2022 02:29:09 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BB6B4E0A52
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Sep 2022 02:29:09 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 639F034114B
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Sep 2022 02:29:08 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id DC05E5A2
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Sep 2022 02:29:06 +0000 (UTC)
From: "Adam Pimentel" <adam.pimentel@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Adam Pimentel" <adam.pimentel@protonmail.com>
Message-ID: <1662690399.91660e2407206b2bb57d45c3717b1ceca210e18f.adam.pimentel@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-p2p/p2pool/p2pool-9999.ebuild
X-VCS-Directories: net-p2p/p2pool/
X-VCS-Committer: adam.pimentel
X-VCS-Committer-Name: Adam Pimentel
X-VCS-Revision: 91660e2407206b2bb57d45c3717b1ceca210e18f
X-VCS-Branch: dev
Date: Fri,  9 Sep 2022 02:29:06 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3e503092-ee2b-4d03-b00d-cd3c37f393ed
X-Archives-Hash: c8a9b2b64efb277d353b50a15496383b

commit:     91660e2407206b2bb57d45c3717b1ceca210e18f
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Fri Sep  9 02:26:04 2022 +0000
Commit:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
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."
+}