diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-27 03:04:42 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-27 03:04:42 -0500 |
| commit | c6e6588bafac78d585ece24e4dabdf99f3af211d (patch) | |
| tree | e68bccff68681d3201cf21c1a5682ad5abbfd4f3 /net-p2p | |
| parent | 8a7e9bb6193b9b54ffb149bdf92c9689a3798e00 (diff) | |
| download | baldeagleos-repo-c6e6588bafac78d585ece24e4dabdf99f3af211d.tar.gz baldeagleos-repo-c6e6588bafac78d585ece24e4dabdf99f3af211d.tar.xz baldeagleos-repo-c6e6588bafac78d585ece24e4dabdf99f3af211d.zip | |
Adding metadata
Diffstat (limited to 'net-p2p')
| -rw-r--r-- | net-p2p/monero/Manifest | 1 | ||||
| -rw-r--r-- | net-p2p/monero/files/monero-0.18.5.0-unbundle-dependencies.patch | 72 | ||||
| -rw-r--r-- | net-p2p/monero/monero-0.18.5.0.ebuild | 144 | ||||
| -rw-r--r-- | net-p2p/p2pool/Manifest | 2 | ||||
| -rw-r--r-- | net-p2p/p2pool/p2pool-4.17.ebuild | 107 |
5 files changed, 326 insertions, 0 deletions
diff --git a/net-p2p/monero/Manifest b/net-p2p/monero/Manifest index dd70467be7af..6f12583b839a 100644 --- a/net-p2p/monero/Manifest +++ b/net-p2p/monero/Manifest @@ -1 +1,2 @@ DIST monero-0.18.4.6.tar.gz 14120513 BLAKE2B 0b97cf0fbf76cdf74a470675e8a31a274cd75f65673e3b88782690d99f26f4bf25ebfcf88a2e02db8f198ffc6ad02f29ea1735ddc2e7f728383034653a7694bb SHA512 7304ce8a4db98bb94f5269e35b49eda6b56ba2e63fd4a270d79df8f21a64201e520a89a1cba25533fa0245111ea6214007cb8eb4bca7a43e74e1ddfe8d8ab2ad +DIST monero-0.18.5.0.tar.gz 14139041 BLAKE2B ff381aab2f9ec5de845ca6c85ac37a274fbcfeb11ccd6347fcfeb96d7886315a24791eea4941e2406a7a88c54689c1c7d7f8dc731fc7d871044cfb2aa9c8b692 SHA512 683a41bed5172059b313191bf5171746787faee13628c857d0db021e08ebbd3a70d95c07587e780bb2b65e24415e676ec705d0123ffd4f6405218ede5f11a18b diff --git a/net-p2p/monero/files/monero-0.18.5.0-unbundle-dependencies.patch b/net-p2p/monero/files/monero-0.18.5.0-unbundle-dependencies.patch new file mode 100644 index 000000000000..999d77351ac9 --- /dev/null +++ b/net-p2p/monero/files/monero-0.18.5.0-unbundle-dependencies.patch @@ -0,0 +1,72 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 001fd0220..84fec3fe7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -461,7 +461,7 @@ endif() + # elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*") + # set(BSDI TRUE) + +-include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include) ++include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external ) + + if(APPLE) + cmake_policy(SET CMP0042 NEW) +@@ -1251,7 +1251,6 @@ if(PROTOKIT_LIBRARY) + set(ZMQ_LIB "${ZMQ_LIB};${PROTOKIT_LIBRARY}") + endif() + +-include(external/supercop/functions.cmake) # place after setting flags and before src directory inclusion + add_subdirectory(contrib) + add_subdirectory(src) + +diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt +index 5bdd5d9b4..316f62d2a 100644 +--- a/external/CMakeLists.txt ++++ b/external/CMakeLists.txt +@@ -44,4 +44,3 @@ endif() + add_subdirectory(db_drivers) + add_subdirectory(easylogging++) + add_subdirectory(qrcodegen) +-add_subdirectory(randomx EXCLUDE_FROM_ALL) +diff --git a/src/crypto/CMakeLists.txt b/src/crypto/CMakeLists.txt +index 595c7f966..35b80de9a 100644 +--- a/src/crypto/CMakeLists.txt ++++ b/src/crypto/CMakeLists.txt +@@ -55,6 +55,7 @@ list(APPEND crypto_sources CryptonightR_template.S) + endif() + + include_directories(${RANDOMX_INCLUDE}) ++include_directories(SYSTEM /usr/include/monero) + + set(crypto_headers) + +@@ -98,5 +99,3 @@ endif() + set_property(SOURCE CryptonightR_template.S PROPERTY LANGUAGE C) + set_property(SOURCE CryptonightR_template.S PROPERTY XCODE_EXPLICIT_FILE_TYPE sourcecode.asm) + +-# Must be done last, because it references libraries in this directory +-add_subdirectory(wallet) +diff --git a/src/crypto/wallet/crypto.h b/src/crypto/wallet/crypto.h +index cee0ca18e..ca7dae077 100644 +--- a/src/crypto/wallet/crypto.h ++++ b/src/crypto/wallet/crypto.h +@@ -30,7 +30,6 @@ + #pragma once + + #include <cstddef> +-#include "crypto/wallet/ops.h" + + namespace crypto { + namespace wallet { +diff --git a/src/device/CMakeLists.txt b/src/device/CMakeLists.txt +index e4f1159b5..5543e6f8a 100644 +--- a/src/device/CMakeLists.txt ++++ b/src/device/CMakeLists.txt +@@ -73,7 +73,6 @@ target_link_libraries(device + cncrypto + cryptonote_format_utils_basic + ringct_basic +- wallet-crypto + ${OPENSSL_CRYPTO_LIBRARIES} + ${Boost_SERIALIZATION_LIBRARY} + PRIVATE diff --git a/net-p2p/monero/monero-0.18.5.0.ebuild b/net-p2p/monero/monero-0.18.5.0.ebuild new file mode 100644 index 000000000000..f87ed44c6418 --- /dev/null +++ b/net-p2p/monero/monero-0.18.5.0.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER=doxygen + +inherit cmake docs systemd + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://www.getmonero.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/monero-project/monero.git" + EGIT_SUBMODULES=() +else + SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD MIT" +SLOT="0" +IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc cpu_flags_x86_aes" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" +RESTRICT="test" +# Test requires python's requests, psutil, deepdiff which are packaged +# but also monotonic & zmq which we do not have + +DEPEND=" + app-crypt/libmd + dev-libs/boost:=[nls] + dev-libs/libsodium:= + dev-libs/libbsd + dev-libs/openssl:= + dev-libs/randomx + dev-libs/rapidjson + dev-libs/supercop + net-dns/unbound:=[threads(+)] + net-libs/zeromq:= + daemon? ( + acct-group/monero + acct-user/monero + ) + readline? ( sys-libs/readline:= ) + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.18.5.0-unbundle-dependencies.patch +) + +src_prepare() { + # The build system does not recognize the release tarball (bug?) + # so we patch the GitVersion file. + # Change the release string from "unknown" to "gentoo-${PR}" + sed -i "s/unknown/gentoo-${PR}/g" cmake/GitVersion.cmake || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Update CMake to install built libraries (help wanted) + -DBUILD_SHARED_LIBS=OFF + -DBUILD_DOCUMENTATION=OFF # easier to do it manually + -DMANUAL_SUBMODULES=ON + -DUSE_CCACHE=OFF + -DNO_AES=$(usex !cpu_flags_x86_aes) + -DUSE_DEVICE_TREZOR=$(usex hw-wallet) + -DUSE_READLINE=$(usex readline) + ) + + use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF ) + + cmake_src_configure +} + +src_compile() { + local targets=( + $(usev daemon) + $(usev wallet-cli simplewallet) + $(usev wallet-rpc wallet_rpc_server) + ) + use tools && targets+=( + blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage} + ) + + cmake_build ${targets[@]} + + docs_compile +} + +src_install() { + einstalldocs + + # Install all binaries. + find "${BUILD_DIR}/bin/" -type f -executable -print0 | + while IFS= read -r -d '' line; do + dobin "$line" + done + + if use daemon; then + dodoc utils/conf/monerod.conf + + # data-dir + keepdir /var/lib/monero + fowners monero:monero /var/lib/monero + fperms 0755 /var/lib/monero + + # log-file dir + keepdir /var/log/monero + fowners monero:monero /var/log/monero + fperms 0755 /var/log/monero + + # /etc/monero/monerod.conf + insinto /etc/monero + doins "${FILESDIR}"/monerod.conf + + # OpenRC + newconfd "${FILESDIR}"/monerod-0.18.4.0.confd monerod + newinitd "${FILESDIR}"/monerod-0.18.4.0.initd monerod + + # systemd + systemd_dounit "${FILESDIR}"/monerod.service + fi +} + +pkg_postinst() { + if use daemon; then + elog "To get sync status and other stats run" + elog " $ monerod status" + elog + elog "The Monero blockchain can take up a lot of space (250 GiB) and is stored" + elog "in /var/lib/monero by default. You may want to enable pruning by adding" + elog "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" + elog "or move the data directory to another disk." + fi +} diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest index 2d7e070ac6ae..fcd27d38b45c 100644 --- a/net-p2p/p2pool/Manifest +++ b/net-p2p/p2pool/Manifest @@ -2,6 +2,8 @@ DIST p2pool-4.13.tar.xz 125016432 BLAKE2B 5261c6978aebe3e521aabcb97fdf445e06155a DIST p2pool-4.13_shasums.asc 2167 BLAKE2B e28695dec22e2118910fb888f2dc1f7e19fe9b53201bf4530f272cbca2e200d718dc9b30d5013dd8f9c17866ae4462d780bd372d46a5c73af0cc39c115e4dc59 SHA512 a39907166ffc477f943789795fe9aa5a3918912ae3d2bcd0dc5ac976971954059e0126361a0158612383d966ba0e19bee1131df9149bf6b1b6b4bab70825cdd6 DIST p2pool-4.14.tar.xz 125145364 BLAKE2B a89496682cef067c1d20b65503928b87633c45bc4847f7664c8d0f9fadb38eb8ee6d682c357d2148593cc0b1a91b7912855c749a36a43d2e87e6041e1999569b SHA512 22de875359692194c232e0a45c3444fdf7def2e57a850be13ad3288179616ebd077feee196d921f3cc1d7d4d1ce1914bd262ce312d248ab1d533560e192c4f25 DIST p2pool-4.14_shasums.asc 2167 BLAKE2B 3c55ce5024673fe4b6bc871409283033e2bb5625c9980e24cc5a5c00c5043219be4dc81633a30ea3c6ba39c9bf8e1b368d0d37feab7d56dce38b13a40e79aa1b SHA512 f83c461eac99b0626ddbbcaa08ca3c061d98377691aae3f5af8d2b0580c234f19635d4f5a7aedad036ec69f8bfc0b2d40a9e8091bfd4ba5131321109a682faac +DIST p2pool-4.17.tar.xz 128382948 BLAKE2B d470a42c3afa77ca4e40e48ab803628eea0df286323c94663d1412037ae9e97755c30399e5f1fec83f58a7f2f7a994b2fb973c32ed3cfaf1d1d819f280afe414 SHA512 d49922bbc564ae66f1a8360ddcc93f7b50927ea8b88eb0d2c68ac964318f0eece353f9f3c8bef2db09d0f57d81d20ef44e08e44da383767289c6fafdc55c3391 +DIST p2pool-4.17_shasums.asc 2167 BLAKE2B f1d3a18745bacc20c79a3123d29d9ebdbbb0ba63fb867ed18bb2aec2adcddaa224cabc0f16e8c0db0844978b8ae850a24fc614d0b7650afa5b45f50a3ec404e9 SHA512 61589181510cf055602696cff56c6f7c5af4cb40471cedf59855a08c7c5d355803798799ca055439fa38fcb676cf73704c6c9c639255e94d1a917efd6be138f2 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.1.tar.xz 117271756 BLAKE2B 12cb5114c0759b5303ea919e97f2ccfc08d1f32c7ad2ebd318d83ca3c15f87444389d4039af280a9b9105766b2389b247baecbca367fe5d11adb99794f7e1795 SHA512 ee5220ecd14d1d1b0dcb51d64207147c9be78b3111cde8c7e84f9808f0c6f3e6f085ece9eb3b5495529aa05844da7b2839fc6133b5e3f8d44764c52acd338e93 diff --git a/net-p2p/p2pool/p2pool-4.17.ebuild b/net-p2p/p2pool/p2pool-4.17.ebuild new file mode 100644 index 000000000000..23dea2c3cc05 --- /dev/null +++ b/net-p2p/p2pool/p2pool-4.17.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 +} |
