From: "Adam Pimentel" <adam.pimentel@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/
Date: Sun, 20 Jul 2025 20:49:30 +0000 (UTC) [thread overview]
Message-ID: <1753044552.58f59cc8ad2bb6a72f6d643a08d05d574053b1e2.adam.pimentel@gentoo> (raw)
commit: 58f59cc8ad2bb6a72f6d643a08d05d574053b1e2
Author: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sun Jul 20 20:49:12 2025 +0000
Commit: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
CommitDate: Sun Jul 20 20:49:12 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58f59cc8
net-p2p/p2pool: version bump
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>
net-p2p/p2pool/Manifest | 2 +
net-p2p/p2pool/p2pool-4.9.ebuild | 107 +++++++++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest
index d15c53c9ee..d78e892bb5 100644
--- a/net-p2p/p2pool/Manifest
+++ b/net-p2p/p2pool/Manifest
@@ -2,3 +2,5 @@ DIST p2pool-4.5.tar.xz 116891264 BLAKE2B 70c878f17e679b152213aec26404bee66534c42
DIST p2pool-4.5_shasums.asc 2007 BLAKE2B 0fb2d4594a016bf5dae48c6c4fb549c0957bb80fac27b0053ddb098884c9ba90ba5f25e1e62b745ece64d561658aab4147c5fba872b2483bf27b8707ccac3ab7 SHA512 e8af1df9364065bfffc49cc46e278500719a5a431d76cf6124d047724fefda4ca0a52810c8a6f60c085074957b7f96235fb09b4658963a7d25b5e2fa6df4ddd1
DIST p2pool-4.8.tar.xz 116005828 BLAKE2B 19043dceb8ea47f22e51ee663959ee6d62a4dcef492c82bb3126c8e9f4093e953669807682e6f4baa24049a8bd24304ee019156dc8bbea01e5ea1375a6bbefa1 SHA512 e2c36b202316371d01a0e28cccbf2c46ce228e86cb1a15d756b6d28bf28aa63aee2bd3fa9c8096dac6f94cc595bf7316fa16be88404d679474a16eae12c03143
DIST p2pool-4.8_shasums.asc 2007 BLAKE2B b9a61434a3fcf78bcb3b0f2d384419f25238c13f4ed561b48fe54dc2bc981755fde67ca3d489c0c31cf8f3239468140e093a411b7eb2852bb9bf37ca30531229 SHA512 4c9fecabb08d330089af0782f1b76bb2ed64c37f0ef43563ad63e0b9cded45a3702d8fe1095acd708f2360f04ba7e77375dfffc15df51637ac7da61c88d07f0a
+DIST p2pool-4.9.tar.xz 115362220 BLAKE2B e3c478c04f8bd1275ea8e36823fc12fd9e073be7bccef3defa2288f7465d4c0888b7a0faf4a3cc43ee622a8f2fb5f5d90c0fb8d1f95b2c3cc3d8951d260c20f6 SHA512 c82db3bcf18fe6c0942e2a773ca4d637aa44f5c4dbfb126cfe154010dc59359a9d6a0d2c7967c727f5076388a22fc91bd20baa4838192c388ce74f88c2804013
+DIST p2pool-4.9_shasums.asc 2158 BLAKE2B 24c5552b0c50aba67b8e8bf0050c6e0a181f3dd00eb8f12b5df8537de38e6f46af3cd8a0299fbd65d0a6cca576b7cd2965aa9695a68b8878b65153190289a4ce SHA512 70626132b0c38ca3d9233836768b6acb56a1a0ea652307db75af1bc12655a57fc913e658b7089c813969fd7686d95534a1498a9ce03d1575d4f40657eba9929e
diff --git a/net-p2p/p2pool/p2pool-4.9.ebuild b/net-p2p/p2pool/p2pool-4.9.ebuild
new file mode 100644
index 0000000000..23dea2c3cc
--- /dev/null
+++ b/net-p2p/p2pool/p2pool-4.9.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+#TODO: enable/fix GRPC/TLS dependency and add it as USE flag (https://github.com/SChernykh/p2pool/issues/313)
+# These features build fine in cmake outside of portage, I can't figure out how to link them here for the life of me.
+# It's probably better to just re-write the CMakeLists.txt to dynamicially link with gRPC
+
+EAPI=8
+
+inherit cmake verify-sig
+
+DESCRIPTION="Decentralized pool for Monero mining"
+HOMEPAGE="https://p2pool.io"
+SRC_URI="
+ https://github.com/SChernykh/p2pool/releases/download/v${PV}/p2pool_source-v${PV}.tar.xz -> ${P}.tar.xz
+ verify-sig? ( https://github.com/SChernykh/p2pool/releases/download/v${PV}/sha256sums.txt.asc -> ${P}_shasums.asc )
+"
+
+LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+#IUSE="grpc tls"
+IUSE="daemon"
+
+DEPEND="
+ dev-libs/libsodium:=
+ dev-libs/libuv:=
+ dev-libs/randomx
+ net-libs/zeromq:=
+ net-misc/curl
+ daemon? (
+ acct-group/monero
+ acct-user/monero
+ )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/patchelf
+ verify-sig? ( sec-keys/openpgp-keys-schernykh )
+"
+
+src_unpack() {
+ if use verify-sig; then
+ local VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/SChernykh.asc
+ pushd "${DISTDIR}" > /dev/null || die
+ verify-sig_verify_message ${P}_shasums.asc - | \
+ tr \\r \\n | \
+ tr '[:upper:]' '[:lower:]' | \
+ sed -n '/p2pool_source/,$p' | \
+ grep -m 1 sha256: | \
+ sed "s/sha256: \(.*\)/\1 ${P}.tar.xz/" | \
+ verify-sig_verify_unsigned_checksums - sha256 ${P}.tar.xz
+ assert
+ popd || die
+ fi
+ unpack ${P}.tar.xz
+ mv -T "${WORKDIR}"/{${PN},${P}} || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSTATIC_BINARY=OFF
+ -DSTATIC_LIBS=OFF
+ -DWITH_GRPC=OFF #$(usex grpc)
+ -DWITH_TLS=OFF #$(usex tls)
+ )
+ cmake_src_configure
+}
+
+src_install(){
+ # remove insecure RUNPATHs
+ patchelf --remove-rpath "${BUILD_DIR}"/p2pool || die
+ dobin "${BUILD_DIR}"/p2pool
+
+ if use daemon; then
+ # data-dir
+ keepdir /var/lib/${PN}
+ fowners monero:monero /var/lib/${PN}
+ fperms 0755 /var/lib/${PN}
+
+ # OpenRC
+ newconfd "${FILESDIR}"/${PN}-4.5-r1.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}-4.5-r1.initd ${PN}
+ fi
+}
+
+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 visible unless you use a wallet that supports P2Pool."
+ ewarn "See https://p2pool.io/#help and https://github.com/SChernykh/p2pool for more information."
+
+ if use daemon; then
+ einfo "p2pool supports just OpenRC daemon right now."
+ einfo "To launch it set your wallet address in /etc/conf.d/${PN} and run"
+ einfo " # rc-service p2pool start"
+ fi
+}
next reply other threads:[~2025-07-20 20:49 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-20 20:49 Adam Pimentel [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-08-24 20:01 [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/ Adam Pimentel
2025-06-21 15:05 Filip Kobierski
2025-05-08 13:50 Filip Kobierski
2025-05-06 16:42 Filip Kobierski
2025-05-05 2:00 Adam Pimentel
2025-04-29 15:41 Filip Kobierski
2025-03-02 15:14 Takuya Wakazono
2025-03-02 1:33 Adam Pimentel
2025-02-14 0:59 Adam Pimentel
2025-02-12 2:47 Adam Pimentel
2024-10-06 1:28 Adam Pimentel
2024-08-16 1:50 Lucio Sauer
2024-08-14 8:47 Ronny Gutbrod
2024-08-13 0:42 Lucio Sauer
2024-08-01 20:24 Adam Pimentel
2024-07-18 9:19 David Roman
2024-07-16 14:36 Adam Pimentel
2024-01-04 22:51 Adam Pimentel
2023-11-26 21:05 Adam Pimentel
2023-10-31 16:03 Adam Pimentel
2023-10-05 13:18 David Roman
2023-09-30 16:35 Adam Pimentel
2023-09-08 7:40 Adam Pimentel
2023-09-04 17:01 Adam Pimentel
2023-09-01 15:52 Adam Pimentel
2023-08-31 23:53 Adam Pimentel
2023-08-31 23:24 Adam Pimentel
2023-07-01 0:22 Adam Pimentel
2023-06-01 23:50 Adam Pimentel
2023-04-30 17:06 Adam Pimentel
2023-04-01 12:35 Anna Vyalkova
2023-04-01 7:42 Adam Pimentel
2023-03-01 19:20 Adam Pimentel
2023-02-03 4:21 Adam Pimentel
2023-01-27 21:06 Adam Pimentel
2022-12-18 0:08 Adam Pimentel
2022-12-10 7:56 Viorel Munteanu
2022-12-05 17:59 Adam Pimentel
2022-12-05 16:33 Adam Pimentel
2022-12-05 9:20 [gentoo-commits] repo/proj/guru:master " Viorel Munteanu
2022-12-04 12:37 ` [gentoo-commits] repo/proj/guru:dev " Viorel Munteanu
2022-12-04 16:56 Adam Pimentel
2022-12-01 14:36 Adam Pimentel
2022-12-01 14:30 Adam Pimentel
2022-12-01 14:30 Adam Pimentel
2022-11-29 13:09 Adam Pimentel
2022-11-28 17:21 Adam Pimentel
2022-11-09 22:45 Adam Pimentel
2022-09-09 22:03 Adam Pimentel
2022-09-09 2:29 Adam Pimentel
2022-09-09 2:29 Adam Pimentel
2022-09-09 2:01 Adam Pimentel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1753044552.58f59cc8ad2bb6a72f6d643a08d05d574053b1e2.adam.pimentel@gentoo \
--to=adam.pimentel@protonmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox