* [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
@ 2022-12-25 21:32 Adam Pimentel
0 siblings, 0 replies; 5+ messages in thread
From: Adam Pimentel @ 2022-12-25 21:32 UTC (permalink / raw
To: gentoo-commits
commit: 3a7aea9dfccabfca58a173e752ab136e52457b1f
Author: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sun Dec 25 21:31:23 2022 +0000
Commit: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
CommitDate: Sun Dec 25 21:31:23 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3a7aea9d
net-p2p/p2pool: stop build script from overriding users CFLAGS and CXXFLAGS
Closes: https://bugs.gentoo.org/887903
Closes: https://bugs.gentoo.org/887905
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>
net-p2p/p2pool/files/flags.cmake | 14 ++++++++++++++
net-p2p/p2pool/p2pool-2.6-r1.ebuild | 5 +++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/net-p2p/p2pool/files/flags.cmake b/net-p2p/p2pool/files/flags.cmake
new file mode 100644
index 000000000..ed7e75499
--- /dev/null
+++ b/net-p2p/p2pool/files/flags.cmake
@@ -0,0 +1,14 @@
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+set(CMAKE_CXX_STANDARD 14)
+
+set(CMAKE_C_STANDARD 99)
+set(CMAKE_C_STANDARD_REQUIRED ON)
+
+set(GENERAL_FLAGS "-pthread")
+
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GENERAL_FLAGS}")
+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${GENERAL_FLAGS}")
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GENERAL_FLAGS}")
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${GENERAL_FLAGS}")
diff --git a/net-p2p/p2pool/p2pool-2.6-r1.ebuild b/net-p2p/p2pool/p2pool-2.6-r1.ebuild
index 5b1d81a5e..960bce71a 100644
--- a/net-p2p/p2pool/p2pool-2.6-r1.ebuild
+++ b/net-p2p/p2pool/p2pool-2.6-r1.ebuild
@@ -69,8 +69,9 @@ src_unpack() {
src_prepare() {
default
- # 884447: remove -s from OPTIMIZATION_FLAGS
- sed -i 's/-s\>//' cmake/flags.cmake || die
+ # Stop their script from overriding flags:
+ cp "${FILESDIR}"/flags.cmake cmake/flags.cmake || die
+ die
cmake_src_prepare
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
@ 2024-08-14 1:02 Adam Pimentel
0 siblings, 0 replies; 5+ messages in thread
From: Adam Pimentel @ 2024-08-14 1:02 UTC (permalink / raw
To: gentoo-commits
commit: 9c02f33b33796fe6b2f8eb291fae68fde44e56ff
Author: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Wed Aug 14 01:01:44 2024 +0000
Commit: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
CommitDate: Wed Aug 14 01:01:44 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c02f33b
net-p2p/p2pool: version bump and CFLAGS fixes
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>
net-p2p/p2pool/Manifest | 6 +++
net-p2p/p2pool/files/flags.cmake | 45 ++++++++++++----
net-p2p/p2pool/p2pool-4.0.ebuild | 10 +++-
.../{p2pool-4.0.ebuild => p2pool-4.1.ebuild} | 62 ++++++++++++++++------
4 files changed, 96 insertions(+), 27 deletions(-)
diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest
index eb3221a12..68169a012 100644
--- a/net-p2p/p2pool/Manifest
+++ b/net-p2p/p2pool/Manifest
@@ -1,2 +1,8 @@
DIST p2pool-4.0_shasums.asc 2038 BLAKE2B f8f20875a9fa4771753b1eade7c609be761f007ac32a0641109d87890bdd7f2123f11a203d56ffcca5b74b16667e0d8288479688938935434b86875c6c72959c SHA512 bf4a933a81ce9bd48bf293a26d3e4e75b82c67fcfd48d79c57dd86aaac2c2cd54def43b47b05222e0b93fd61623d2c116c403531500a93d45059bca4a0dd3cb4
+<<<<<<< Updated upstream
DIST p2pool-4.0.tar.xz 127772256 BLAKE2B 77de14bd19f43483fa7da0e65f8a27d5f6cf8c2daf5d8d5e07be373c752794bd35c421fd812b65328acd22004766ff235e9ad6e7e613d08ca3c27ac95153cbc3 SHA512 ea37993d13342b303902e6aa6acb090a908ba99ae304d9415480ff39a3647c84a963ab80b317c9c78a9f11631e0ca9547a08c6e0c23b83892037b63d4beef7a2
+=======
+DIST p2pool-4.0_source.tar.xz 127772256 BLAKE2B 77de14bd19f43483fa7da0e65f8a27d5f6cf8c2daf5d8d5e07be373c752794bd35c421fd812b65328acd22004766ff235e9ad6e7e613d08ca3c27ac95153cbc3 SHA512 ea37993d13342b303902e6aa6acb090a908ba99ae304d9415480ff39a3647c84a963ab80b317c9c78a9f11631e0ca9547a08c6e0c23b83892037b63d4beef7a2
+DIST p2pool-4.1_shasums.asc 2007 BLAKE2B 29dfa3e0620f1ce88ed4a0dcad45f0d5b0eb00d2dd063fe83feb9d027e8e58b6e15cdc9244832a9d6f406a3ee3c8fe2b710554336b93d5af71d17b17acd3b0f5 SHA512 a17784e5ec3d181c0218016c2bb69b5b467f33eac3dea0a31e146703b02d6de202bc6f6628abda439aa9846b7e86773d0ae1440453d0a9a5532a097ad5d974f8
+DIST p2pool-4.1_source.tar.xz 127754740 BLAKE2B 6d46920d5fe116f65950bb9dd2fee7feed45f911817302a6c5047602431febac1abacd508fa6f64a84303014212426994a64a26db124501127aee5aed5da1825 SHA512 c0d90fa6b1390a9e0744772b574ab48f78a95980a263d03970adcf51bf7abdf40cefdcafb95daca16c004674b593647f48960bfc8c2630f4852d1c0a9c3b0bb0
+>>>>>>> Stashed changes
diff --git a/net-p2p/p2pool/files/flags.cmake b/net-p2p/p2pool/files/flags.cmake
index ed7e75499..367863e89 100644
--- a/net-p2p/p2pool/files/flags.cmake
+++ b/net-p2p/p2pool/files/flags.cmake
@@ -1,14 +1,37 @@
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
-set(CMAKE_CXX_EXTENSIONS OFF)
-set(CMAKE_CXX_STANDARD 14)
-
-set(CMAKE_C_STANDARD 99)
-set(CMAKE_C_STANDARD_REQUIRED ON)
-
set(GENERAL_FLAGS "-pthread")
+if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
+
+ if (ARMv8)
+ set(GENERAL_FLAGS "${GENERAL_FLAGS} -mfix-cortex-a53-835769 -mfix-cortex-a53-843419")
+ endif()
+
+ set(WARNING_FLAGS "-Wall -Wextra -Wcast-qual -Wlogical-op -Wundef -Wformat=2 -Wpointer-arith -Werror")
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.5.0)
+ set(WARNING_FLAGS "${WARNING_FLAGS} -Wstrict-overflow=2")
+ endif()
+
+ if (STATIC_BINARY)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
+ else()
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
+ endif()
+
+elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang)
+
+ if (ARMv8)
+ set(GENERAL_FLAGS "${GENERAL_FLAGS} -mfix-cortex-a53-835769")
+ endif()
+
+ set(WARNING_FLAGS "-Wall -Wextra -Wno-undefined-internal -Wunreachable-code-aggressive -Wmissing-prototypes -Wmissing-variable-declarations -Werror")
+
+endif()
+
+if (DISABLE_WARNINGS)
+ set(WARNING_FLAGS "-w")
+endif()
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GENERAL_FLAGS}")
-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${GENERAL_FLAGS}")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GENERAL_FLAGS} ${WARNING_FLAGS}")
+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${GENERAL_FLAGS} ${WARNING_FLAGS}")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GENERAL_FLAGS}")
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${GENERAL_FLAGS}")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GENERAL_FLAGS} ${WARNING_FLAGS}")
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${GENERAL_FLAGS} ${WARNING_FLAGS}")
diff --git a/net-p2p/p2pool/p2pool-4.0.ebuild b/net-p2p/p2pool/p2pool-4.0.ebuild
index b4dbe4ef2..0b1c5ce15 100644
--- a/net-p2p/p2pool/p2pool-4.0.ebuild
+++ b/net-p2p/p2pool/p2pool-4.0.ebuild
@@ -17,6 +17,7 @@ SRC_URI="
LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
+#IUSE="grpc"
DEPEND="
dev-libs/libsodium
@@ -44,12 +45,19 @@ src_unpack() {
mv -T "${WORKDIR}"/${PN} "${WORKDIR}"/${P} || die
}
+src_prepare(){
+ rm "${S}/cmake/flags.cmake" || die
+ cp "${FILESDIR}/flags.cmake" "${S}/cmake/flags.cmake" || die
+ cmake_src_prepare
+ default_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DWITH_RANDOMX=OFF
-DWITH_GRPC=OFF
+ #-DWITH_GRPC=$(usex grpc)
)
-
cmake_src_configure
}
diff --git a/net-p2p/p2pool/p2pool-4.0.ebuild b/net-p2p/p2pool/p2pool-4.1.ebuild
similarity index 51%
copy from net-p2p/p2pool/p2pool-4.0.ebuild
copy to net-p2p/p2pool/p2pool-4.1.ebuild
index b4dbe4ef2..fd912d246 100644
--- a/net-p2p/p2pool/p2pool-4.0.ebuild
+++ b/net-p2p/p2pool/p2pool-4.1.ebuild
@@ -1,6 +1,7 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+#TODO: verify hell script is safe
#TODO: enable/fix GRPC dependency and add it as USE flag (https://github.com/SChernykh/p2pool/issues/313)
EAPI=8
@@ -10,13 +11,14 @@ 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.tar.xz -> ${P}.tar.xz
+ https://github.com/SChernykh/p2pool/releases/download/v${PV}/p2pool_source.tar.xz -> ${P}_source.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"
DEPEND="
dev-libs/libsodium
@@ -26,30 +28,60 @@ BDEPEND="
verify-sig? ( sec-keys/openpgp-keys-schernykh )
"
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/SChernykh.asc
+
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
+ #what we want to do is `verify-sig_verify_signed_checksums ${P}_shasums.asc sha512 p2pool_source.tar.xz`
+ verify-sig_verify_message "${DISTDIR}/${P}_shasums.asc" "${WORKDIR}/p2pool_shasums.txt"
+
+ #start of hell script
+ hellscript_stage=0
+ tr -d '\r' < p2pool_shasums.txt | while IFS='' read -r LINE; do
+ if [ "$hellscript_stage" -eq 0 ] && [ "$LINE" = "Name: p2pool_source.tar.xz" ]; then
+ hellscript_stage=1
+ continue
+ fi
+ if [ "$hellscript_stage" -eq 1 ]; then
+ hellscript_sizestring="Size: $(cat ${DISTDIR}/${P}_source.tar.xz | wc -c) bytes"
+ if [ "${LINE:0:"${#hellscript_sizestring}"}" = "$hellscript_sizestring" ]; then
+ hellscript_stage=2
+ continue
+ else
+ die
+ fi
+ fi
+ if [ "$hellscript_stage" -eq 2 ]; then
+ hellscript_shaprefix="SHA256: "
+ if [ "${LINE:0:"${#hellscript_shaprefix}"}" = "$hellscript_shaprefix" ]; then
+ echo "$(echo "${LINE:"${#hellscript_shaprefix}"}" | tr '[:upper:]' '[:lower:]') ${DISTDIR}/${P}_source.tar.xz" \
+ > "${WORKDIR}/src_shasum.txt"
+ else
+ die
+ fi
+ break
+ fi
+ done
+ verify-sig_verify_unsigned_checksums "${WORKDIR}/src_shasum.txt" sha256 "${DISTDIR}/${P}_source.tar.xz"
+ #end of hell script
fi
- unpack ${P}.tar.xz
+ unpack ${P}_source.tar.xz
mv -T "${WORKDIR}"/${PN} "${WORKDIR}"/${P} || die
}
+src_prepare(){
+ rm "${S}/cmake/flags.cmake" || die
+ cp "${FILESDIR}/flags.cmake" "${S}/cmake/flags.cmake" || die
+ cmake_src_prepare
+ default_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DWITH_RANDOMX=OFF
-DWITH_GRPC=OFF
+ #-DWITH_GRPC=$(usex grpc)
)
-
cmake_src_configure
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
@ 2025-04-29 15:41 Filip Kobierski
0 siblings, 0 replies; 5+ messages in thread
From: Filip Kobierski @ 2025-04-29 15:41 UTC (permalink / raw
To: gentoo-commits
commit: f4c4640b0dedf564946b8cd5a3971dc67b989ceb
Author: Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Tue Apr 29 15:29:33 2025 +0000
Commit: Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Tue Apr 29 15:41:03 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f4c4640b
net-p2p/p2pool: add 4.4-r1 with improvements
1. USE=daemon with openrc scripts
- disabled by default, the behaviour does not change
2. adjust DEPENDs
- openssl is not needed if USE=ssl
- czmq is not linked to FWICT
- add libsodium & randomx
3. Adjust style to be shorter
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
net-p2p/p2pool/files/p2pool.confd | 26 +++++++++
net-p2p/p2pool/files/p2pool.initd | 47 +++++++++++++++++
net-p2p/p2pool/metadata.xml | 3 ++
net-p2p/p2pool/p2pool-4.4-r1.ebuild | 102 ++++++++++++++++++++++++++++++++++++
4 files changed, 178 insertions(+)
diff --git a/net-p2p/p2pool/files/p2pool.confd b/net-p2p/p2pool/files/p2pool.confd
new file mode 100644
index 000000000..c85f275e7
--- /dev/null
+++ b/net-p2p/p2pool/files/p2pool.confd
@@ -0,0 +1,26 @@
+# /etc/conf.d/p2pool: config file for /etc/init.d/p2pool
+
+# Wallet address to recieve the payouts.
+# Note that it needs to be the primary address (start with 4)
+P2POOL_WALLET=""
+
+# IP address of your Monero node
+#P2POOL_HOST="127.0.0.1"
+
+#P2POOL_USER="monero"
+#P2POOL_GROUP="monero"
+
+#P2POOL_DATADIR="/var/lib/p2pool"
+#P2POOL_LOGLEVEL=1
+
+#P2POOL_NICE=5
+#P2POOL_IONICE=2:4 # See START-STOP-DAEMON(8) for details
+
+#P2POOL_UMASK=007
+
+# Uncomment to have a persistent log.
+# This is not recommended as it does not rotate.
+#P2POOL_KEEPLOG=1
+
+# Extra options passed to the daemon
+#P2POOL_OPTS="--mini"
diff --git a/net-p2p/p2pool/files/p2pool.initd b/net-p2p/p2pool/files/p2pool.initd
new file mode 100644
index 000000000..d70274e56
--- /dev/null
+++ b/net-p2p/p2pool/files/p2pool.initd
@@ -0,0 +1,47 @@
+#!/sbin/openrc-run
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Decentralized Monero mining pool daemon"
+command="/usr/bin/${RC_SVCNAME}"
+command_background=1
+command_progress=1
+pidfile="/run/${RC_SVCNAME}.pid"
+retry="SIGTERM/30/SIGKILL/5" # shutting down takes 30s
+
+P2POOL_HOST=${P2POOL_HOST:-127.0.0.1}
+P2POOL_DATADIR=${P2POOL_DATADIR:-/var/lib/p2pool}
+P2POOL_LOGLEVEL=${P2POOL_LOGLEVEL:-1}
+P2POOL_NICE=${P2POOL_NICE:-5}
+P2POOL_IONICE=${P2POOL_IONICE:-2:4}
+
+command_args="--wallet ${P2POOL_WALLET} \
+ --loglevel ${P2POOL_LOGLEVEL} \
+ --data-dir ${P2POOL_DATADIR} \
+ ${P2POOL_OPTS}\
+"
+command_user="${P2POOL_USER:-monero}:${P2POOL_GROUP:-monero}"
+umask=${P2POOL_UMASK:-007}
+start_stop_daemon_args="--nicelevel ${P2POOL_NICE} --ionice ${P2POOL_IONICE}"
+
+
+depend() {
+ need net
+ [ ${P2POOL_HOST} = "127.0.0.1" ] && need monerod
+}
+
+start_pre() {
+ if [ -z ${P2POOL_WALLET} ]; then
+ eerror "p2pool cannot be started without a wallet address"
+ eerror "Please set P2POOL_WALLET in /etc/conf.d/p2pool"
+ false
+ fi
+ einfo "Will mine for wallet ${P2POOL_WALLET}"
+ checkpath --owner ${P2POOL_USER}:${P2POOL_GROUP} \
+ --directory ${P2POOL_DATADIR}
+
+ if [ -z $P2POOL_KEEPLOG ]; then
+ rm --force "${P2POOL_DATADIR}/p2pool.log"
+ fi
+
+}
diff --git a/net-p2p/p2pool/metadata.xml b/net-p2p/p2pool/metadata.xml
index f6c627271..c4ff3cf03 100644
--- a/net-p2p/p2pool/metadata.xml
+++ b/net-p2p/p2pool/metadata.xml
@@ -5,6 +5,9 @@
<email>adam.pimentel46@gmail.com</email>
<name>Adam Pimentel</name>
</maintainer>
+ <use>
+ <flag name="daemon">Install OpenRC scripts allowing for running p2pool as a system service</flag>
+ </use>
<upstream>
<bugs-to>https://github.com/SChernykh/p2pool/issues</bugs-to>
<changelog>https://github.com/SChernykh/p2pool/releases</changelog>
diff --git a/net-p2p/p2pool/p2pool-4.4-r1.ebuild b/net-p2p/p2pool/p2pool-4.4-r1.ebuild
new file mode 100644
index 000000000..512a37f5e
--- /dev/null
+++ b/net-p2p/p2pool/p2pool-4.4-r1.ebuild
@@ -0,0 +1,102 @@
+# 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.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="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(){
+ 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}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.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
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
@ 2025-05-06 16:42 Filip Kobierski
0 siblings, 0 replies; 5+ messages in thread
From: Filip Kobierski @ 2025-05-06 16:42 UTC (permalink / raw
To: gentoo-commits
commit: 4e931ab8c9b53431799abb079c79bb0c6282f33f
Author: Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Tue May 6 16:28:04 2025 +0000
Commit: Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Tue May 6 16:41:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e931ab8
net-p2p/p2pool: add 4.5-r1 with improved openrc service files
- conf.d: do not prefix umask
- init.d
- add name
- wait for shutdown one second longer
- sort variables (constants, read & generic, read & i2pd specific)
- quote variables & use := instead of :=
- use SSD_{,IO}NICE for setting niceness
- adjust whitespace
- use `return 1` instead of `false`
- simplify keeplog section
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
net-p2p/p2pool/files/p2pool-4.5-r1.confd | 27 ++++++++
net-p2p/p2pool/files/p2pool-4.5-r1.initd | 43 +++++++++++++
net-p2p/p2pool/p2pool-4.5-r1.ebuild | 102 +++++++++++++++++++++++++++++++
3 files changed, 172 insertions(+)
diff --git a/net-p2p/p2pool/files/p2pool-4.5-r1.confd b/net-p2p/p2pool/files/p2pool-4.5-r1.confd
new file mode 100644
index 000000000..2bb1a51c8
--- /dev/null
+++ b/net-p2p/p2pool/files/p2pool-4.5-r1.confd
@@ -0,0 +1,27 @@
+# /etc/conf.d/p2pool: config file for /etc/init.d/p2pool
+
+# Wallet address to recieve the payouts.
+# Note that it needs to be the primary address (start with 4)
+P2POOL_WALLET=""
+
+# IP address of your Monero node
+#P2POOL_HOST="127.0.0.1"
+
+#P2POOL_USER="monero"
+#P2POOL_GROUP="monero"
+
+#P2POOL_DATADIR="/var/lib/p2pool"
+#P2POOL_LOGLEVEL=1
+
+#P2POOL_NICE=5
+#P2POOL_IONICE=2:4 # See START-STOP-DAEMON(8) for details
+
+
+# Uncomment to have a persistent log.
+# This is not recommended as it does not rotate.
+#P2POOL_KEEPLOG=1
+
+# Extra options passed to the daemon
+#P2POOL_OPTS="--mini"
+
+#umask=007
\ No newline at end of file
diff --git a/net-p2p/p2pool/files/p2pool-4.5-r1.initd b/net-p2p/p2pool/files/p2pool-4.5-r1.initd
new file mode 100644
index 000000000..a881ad471
--- /dev/null
+++ b/net-p2p/p2pool/files/p2pool-4.5-r1.initd
@@ -0,0 +1,43 @@
+#!/sbin/openrc-run
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Decentralized Monero mining pool daemon"
+name="P2Pool daemon"
+command="/usr/bin/${RC_SVCNAME}"
+command_background=1
+command_progress=1
+pidfile="/run/${RC_SVCNAME}.pid"
+retry="SIGTERM/31/SIGKILL/5" # shutting down takes 30s
+
+command_user="${P2POOL_USER:-monero}:${P2POOL_GROUP:-monero}"
+umask="${P2POOL_UMASK:=007}"
+SSD_IONICELEVEL="${P2POOL_IONICE:=2:4}"
+SSD_NICELEVEL="${P2POOL_NICE:=5}"
+
+P2POOL_HOST="${P2POOL_HOST:=127.0.0.1}"
+P2POOL_DATADIR="${P2POOL_DATADIR:=/var/lib/p2pool}"
+P2POOL_LOGLEVEL="${P2POOL_LOGLEVEL:=1}"
+
+command_args="--wallet ${P2POOL_WALLET} \
+ --loglevel ${P2POOL_LOGLEVEL} \
+ --data-dir ${P2POOL_DATADIR} \
+ ${P2POOL_OPTS} \
+"
+
+depend() {
+ need net
+ [ ${P2POOL_HOST} = "127.0.0.1" ] && need monerod
+}
+
+start_pre() {
+ if [ ! ${P2POOL_WALLET} ]; then
+ eerror "p2pool cannot be started without a wallet address"
+ eerror "Please set P2POOL_WALLET in /etc/conf.d/p2pool"
+ return 1
+ fi
+ einfo "Will mine for wallet ${P2POOL_WALLET}"
+ checkpath --owner ${command_user} --directory ${P2POOL_DATADIR}
+
+ [ $P2POOL_KEEPLOG ] || rm -f "${P2POOL_DATADIR}"/p2pool.log
+}
diff --git a/net-p2p/p2pool/p2pool-4.5-r1.ebuild b/net-p2p/p2pool/p2pool-4.5-r1.ebuild
new file mode 100644
index 000000000..0003af673
--- /dev/null
+++ b/net-p2p/p2pool/p2pool-4.5-r1.ebuild
@@ -0,0 +1,102 @@
+# 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.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="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(){
+ 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
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/
@ 2025-06-21 15:05 Filip Kobierski
0 siblings, 0 replies; 5+ messages in thread
From: Filip Kobierski @ 2025-06-21 15:05 UTC (permalink / raw
To: gentoo-commits
commit: 94b358ff02222e8247f780e52c0a9080cc68f90e
Author: Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Sat Jun 21 14:25:46 2025 +0000
Commit: Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Sat Jun 21 15:05:11 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=94b358ff
net-p2p/p2pool: drop old
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
net-p2p/p2pool/files/p2pool.confd | 26 ---------
net-p2p/p2pool/files/p2pool.initd | 47 -----------------
net-p2p/p2pool/p2pool-4.5-r1.ebuild | 102 ------------------------------------
net-p2p/p2pool/p2pool-4.5.ebuild | 102 ------------------------------------
4 files changed, 277 deletions(-)
diff --git a/net-p2p/p2pool/files/p2pool.confd b/net-p2p/p2pool/files/p2pool.confd
deleted file mode 100644
index c85f275e7c..0000000000
--- a/net-p2p/p2pool/files/p2pool.confd
+++ /dev/null
@@ -1,26 +0,0 @@
-# /etc/conf.d/p2pool: config file for /etc/init.d/p2pool
-
-# Wallet address to recieve the payouts.
-# Note that it needs to be the primary address (start with 4)
-P2POOL_WALLET=""
-
-# IP address of your Monero node
-#P2POOL_HOST="127.0.0.1"
-
-#P2POOL_USER="monero"
-#P2POOL_GROUP="monero"
-
-#P2POOL_DATADIR="/var/lib/p2pool"
-#P2POOL_LOGLEVEL=1
-
-#P2POOL_NICE=5
-#P2POOL_IONICE=2:4 # See START-STOP-DAEMON(8) for details
-
-#P2POOL_UMASK=007
-
-# Uncomment to have a persistent log.
-# This is not recommended as it does not rotate.
-#P2POOL_KEEPLOG=1
-
-# Extra options passed to the daemon
-#P2POOL_OPTS="--mini"
diff --git a/net-p2p/p2pool/files/p2pool.initd b/net-p2p/p2pool/files/p2pool.initd
deleted file mode 100644
index d70274e568..0000000000
--- a/net-p2p/p2pool/files/p2pool.initd
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-description="Decentralized Monero mining pool daemon"
-command="/usr/bin/${RC_SVCNAME}"
-command_background=1
-command_progress=1
-pidfile="/run/${RC_SVCNAME}.pid"
-retry="SIGTERM/30/SIGKILL/5" # shutting down takes 30s
-
-P2POOL_HOST=${P2POOL_HOST:-127.0.0.1}
-P2POOL_DATADIR=${P2POOL_DATADIR:-/var/lib/p2pool}
-P2POOL_LOGLEVEL=${P2POOL_LOGLEVEL:-1}
-P2POOL_NICE=${P2POOL_NICE:-5}
-P2POOL_IONICE=${P2POOL_IONICE:-2:4}
-
-command_args="--wallet ${P2POOL_WALLET} \
- --loglevel ${P2POOL_LOGLEVEL} \
- --data-dir ${P2POOL_DATADIR} \
- ${P2POOL_OPTS}\
-"
-command_user="${P2POOL_USER:-monero}:${P2POOL_GROUP:-monero}"
-umask=${P2POOL_UMASK:-007}
-start_stop_daemon_args="--nicelevel ${P2POOL_NICE} --ionice ${P2POOL_IONICE}"
-
-
-depend() {
- need net
- [ ${P2POOL_HOST} = "127.0.0.1" ] && need monerod
-}
-
-start_pre() {
- if [ -z ${P2POOL_WALLET} ]; then
- eerror "p2pool cannot be started without a wallet address"
- eerror "Please set P2POOL_WALLET in /etc/conf.d/p2pool"
- false
- fi
- einfo "Will mine for wallet ${P2POOL_WALLET}"
- checkpath --owner ${P2POOL_USER}:${P2POOL_GROUP} \
- --directory ${P2POOL_DATADIR}
-
- if [ -z $P2POOL_KEEPLOG ]; then
- rm --force "${P2POOL_DATADIR}/p2pool.log"
- fi
-
-}
diff --git a/net-p2p/p2pool/p2pool-4.5-r1.ebuild b/net-p2p/p2pool/p2pool-4.5-r1.ebuild
deleted file mode 100644
index 0003af6738..0000000000
--- a/net-p2p/p2pool/p2pool-4.5-r1.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# 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.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="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(){
- 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
-}
diff --git a/net-p2p/p2pool/p2pool-4.5.ebuild b/net-p2p/p2pool/p2pool-4.5.ebuild
deleted file mode 100644
index 512a37f5e3..0000000000
--- a/net-p2p/p2pool/p2pool-4.5.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# 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.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="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(){
- 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}.confd ${PN}
- newinitd "${FILESDIR}"/${PN}.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
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-21 15:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-21 15:05 [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/, net-p2p/p2pool/files/ Filip Kobierski
-- strict thread matches above, loose matches on Subject: below --
2025-05-06 16:42 Filip Kobierski
2025-04-29 15:41 Filip Kobierski
2024-08-14 1:02 Adam Pimentel
2022-12-25 21:32 Adam Pimentel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox