summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn M. Harris Jr. <johnmh@johnmh.me>2024-11-02 10:41:38 -0700
committerJohn M. Harris Jr. <johnmh@johnmh.me>2024-11-02 10:43:19 -0700
commit7f78e89ae0c3cdfb67acf5a43cab4341c2bf33e9 (patch)
tree42ca349a4f84f6fca6338bda4887efb380c9543a /net-p2p
parentnet-p2p/p2pool: new package, add 4.2 (diff)
downloadjohnmh-7f78e89ae0c3cdfb67acf5a43cab4341c2bf33e9.tar.gz
johnmh-7f78e89ae0c3cdfb67acf5a43cab4341c2bf33e9.tar.bz2
johnmh-7f78e89ae0c3cdfb67acf5a43cab4341c2bf33e9.zip
net-p2p/p2pool: add 9999
Signed-off-by: John M. Harris Jr. <johnmh@johnmh.me>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/p2pool/Manifest3
-rw-r--r--net-p2p/p2pool/files/flags.cmake2
-rw-r--r--net-p2p/p2pool/p2pool-9999.ebuild55
3 files changed, 58 insertions, 2 deletions
diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest
index 025ddbf..2f47882 100644
--- a/net-p2p/p2pool/Manifest
+++ b/net-p2p/p2pool/Manifest
@@ -1,6 +1,7 @@
AUX SChernykh.asc 3139 BLAKE2B 97d27eea4ae8a7822acbf0b5c1470dc711d66c461a35b4d6ea7737cb173d706466e75262c97581222bbb218838070f048840274dd4dfdb400b64a7be45429855 SHA512 d7674c286dd628e0f4a3146cd2b16dab690752db89713630dd1be43febca159be18623b25cdef15273de4c8c0eb16b289203c0130ef7ac03f0371b3767bcd121
-AUX flags.cmake 1289 BLAKE2B 6ca1cf99b270d2284c46c619339b34675741d0d5ad9a5429030f67d5de22532809650ef620aa18a0840a849608e437244138b0e67bf0e6ebea0b82daf15100e2 SHA512 0c8aec7e861cbf0a6f32a3fb50ccc32aa560f54bb56df0a64f2bacb2db183765a71a4984f60188007a208c94cff4fdf6497761a2b37f063836e5d4fb122b96c6
+AUX flags.cmake 1304 BLAKE2B 131c862180014314866a3c2b91728f21707c191ca847896d20450cea955f26bf7c73bdf4787414b2959086b4fde4eaaa9771cef4a84051523bb53c3e00652b9f SHA512 6e51aa175178d9d53ef4f63897d5a65da95849bc16d7532c76ca9ea0bcbb7b8535d9f7f8145fa8ac7869fbd2b5cb48a5e62736a8a097317a62c1bb37b3895452
DIST p2pool-4.2.tar.xz 121447812 BLAKE2B 9dfb0c5b0ad343a621a58d5a6a158a4a767628281b8a8c08699c879c2b7e0b0765e353bba289922b0d3ab91ae046fed195f9f4f87c58983abacf71169af58b16 SHA512 abc5f737ac00bc5db673a15e06ed81cad307d12872ff8d85ccab985d6b82c828f488c450e35fdf818d41ad663783c41f895cd7cfe4c2b458271acb6f3b40ac2b
DIST p2pool-4.2_shasums.asc 2007 BLAKE2B 0a401e95a592a16a8ff64a53d5a9d8b22ab79e26c6c60a567771419ba36bd3f885082086d94adac782bc1a4c23399ec278a522ba7e5ff5827f9ae2f9d0fd35fd SHA512 3e3df42ea813ace80a4657295e3fcd752762dc221b583adde38621cbae56455a75ef1b5008edd5a789357ded2df2c0b97141d02d43b56d019371bc9eca6303b1
EBUILD p2pool-4.2.ebuild 2405 BLAKE2B 4cd0f073fc7626b9fcbb9673fbc0e64bf3d84325399da899911ff9fa936eb5709214fa6496481512f277a3f6adf38947e89fbf99911f15d0c33ad7b6d0b360f0 SHA512 1d741f7deecf9730111ba297fd85a7b648d6f07831916a6330daf7dc247e3f7ca0e8cc54591b5447cdf9dc4bfd5d92442fceb7a74c765e741d722831c3595b54
+EBUILD p2pool-9999.ebuild 1416 BLAKE2B 20a1d4943d23b1c22f438c181a5f5a560b17d54773b0676329d018a5960854a1422803f93043301a32fc66eb01a5f50192434feb23409c9e4325ec05fa880374 SHA512 339436cdb424326ae94580a5b05d5934bddc2525cb8392093ee2cd9bce2bad28cb20bfea63b6a5eaa467226654058b40178344b9dd8780d0ad15b0fc841d3bda
MISC metadata.xml 333 BLAKE2B 0c027c873212fa73a268b6e43f581ba2d717b14493652cd4d4bc3d9f3ed6a71ee8637fac430809e548dba118ab7b16b72de04f11d734a6057461d4313f2697b1 SHA512 f84e0adfddeda1b93539e1de7858267abe961dde66fa3582d54a6d2fbc4a54cef3d9ebe374c807c489581d0125f960ee8bb056f3f1128750d000c0a61e5d64d1
diff --git a/net-p2p/p2pool/files/flags.cmake b/net-p2p/p2pool/files/flags.cmake
index 367863e..1254ecf 100644
--- a/net-p2p/p2pool/files/flags.cmake
+++ b/net-p2p/p2pool/files/flags.cmake
@@ -13,7 +13,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
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++")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lssl -lcrypto -static-libgcc -static-libstdc++")
endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang)
diff --git a/net-p2p/p2pool/p2pool-9999.ebuild b/net-p2p/p2pool/p2pool-9999.ebuild
new file mode 100644
index 0000000..b78a2e2
--- /dev/null
+++ b/net-p2p/p2pool/p2pool-9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2024 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"
+EGIT_REPO_URI="https://github.com/SChernykh/p2pool.git"
+
+LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT"
+SLOT="0"
+
+DEPEND="
+ dev-libs/libsodium
+ net-libs/czmq
+"
+
+src_prepare() {
+ default
+
+ # 884447: remove -s from OPTIMIZATION_FLAGS
+ sed -i 's/-s\>//' cmake/flags.cmake || die
+
+ cmake_src_prepare
+}
+
+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 visible unless you use a wallet that supports P2Pool."
+ ewarn "See https://p2pool.io/#help and https://github.com/SChernykh/p2pool for more information."
+}