Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-p2p/p2pool/
Date: Fri, 09 Sep 2022 20:02:53
Message-Id: 1662690399.91660e2407206b2bb57d45c3717b1ceca210e18f.tastytea@gentoo
1 commit: 91660e2407206b2bb57d45c3717b1ceca210e18f
2 Author: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
3 AuthorDate: Fri Sep 9 02:26:04 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Fri Sep 9 02:26:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=91660e24
7
8 net-p2p/p2pool: add 9999
9
10 Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>
11
12 net-p2p/p2pool/p2pool-9999.ebuild | 47 +++++++++++++++++++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/net-p2p/p2pool/p2pool-9999.ebuild b/net-p2p/p2pool/p2pool-9999.ebuild
16 new file mode 100644
17 index 000000000..63dce5078
18 --- /dev/null
19 +++ b/net-p2p/p2pool/p2pool-9999.ebuild
20 @@ -0,0 +1,47 @@
21 +# Copyright 2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit cmake git-r3
27 +
28 +DESCRIPTION="Decentralized pool for Monero mining"
29 +HOMEPAGE="https://p2pool.io https://github.com/SChernykh/p2pool"
30 +
31 +SRC_URI=""
32 +EGIT_REPO_URI="https://github.com/SChernykh/p2pool.git"
33 +
34 +LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT"
35 +SLOT="0"
36 +
37 +DEPEND="
38 + dev-libs/libsodium
39 +"
40 +
41 +src_configure() {
42 + local mycmakeargs=(
43 + -DWITH_RANDOMX=OFF
44 + )
45 +
46 + cmake_src_configure
47 +}
48 +
49 +src_install(){
50 + dobin "${BUILD_DIR}/p2pool"
51 +}
52 +
53 +pkg_postinst() {
54 + #Some important wisdom taken from P2Pool documentation
55 + ewarn "P2Pool for Monero is now installed."
56 + ewarn "You can run it by doing 'p2pool --host 127.0.0.1 --wallet YOUR_PRIMARY_ADDRESS'"
57 + ewarn "Where 127.0.0.1 is the address of a local monero node (e.g. monerod)"
58 + ewarn ""
59 + ewarn "Once configured, point your RandomX miner (e.g. XMRig) at p2pool"
60 + ewarn "For example 'xmrig -o 127.0.0.1:3333'"
61 + ewarn ""
62 + ewarn "You MUST use your primary address when using p2pool, just like solo mining."
63 + ewarn "If you want privacy, create a new mainnet wallet for P2Pool mining."
64 + ewarn ""
65 + ewarn "Rewards will not be visibile unless you use a wallet that supports P2Pool."
66 + ewarn "See https://p2pool.io/#help and https://github.com/SChernykh/p2pool for more information."
67 +}