From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA6C315800F for ; Fri, 3 Feb 2023 04:21:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB681E07D0; Fri, 3 Feb 2023 04:21:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9276AE07D0 for ; Fri, 3 Feb 2023 04:21:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D097335D43 for ; Fri, 3 Feb 2023 04:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A7A385B for ; Fri, 3 Feb 2023 04:21:19 +0000 (UTC) From: "Adam Pimentel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Adam Pimentel" Message-ID: <1675398044.9ed9e5d808aa27b85e28a665f3e776b53c4be228.adam.pimentel@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/p2pool/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-p2p/p2pool/Manifest net-p2p/p2pool/p2pool-3.0.ebuild X-VCS-Directories: net-p2p/p2pool/ X-VCS-Committer: adam.pimentel X-VCS-Committer-Name: Adam Pimentel X-VCS-Revision: 9ed9e5d808aa27b85e28a665f3e776b53c4be228 X-VCS-Branch: dev Date: Fri, 3 Feb 2023 04:21:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9b85ebcf-a577-4078-b3a7-650a3f105595 X-Archives-Hash: 7e13ce2bc6f4372d588799712237939c commit: 9ed9e5d808aa27b85e28a665f3e776b53c4be228 Author: Adam Pimentel protonmail com> AuthorDate: Fri Feb 3 04:20:44 2023 +0000 Commit: Adam Pimentel protonmail com> CommitDate: Fri Feb 3 04:20:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ed9e5d8 net-p2p/p2pool: version bump Signed-off-by: Adam Pimentel protonmail.com> net-p2p/p2pool/Manifest | 7 +++ net-p2p/p2pool/p2pool-3.0.ebuild | 104 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest index 650020f3f..bbbdbb30b 100644 --- a/net-p2p/p2pool/Manifest +++ b/net-p2p/p2pool/Manifest @@ -5,3 +5,10 @@ DIST p2pool-2.7-randomx.tar.gz 165732 BLAKE2B 3616eee591e14a18b7ea84811911f938b0 DIST p2pool-2.7-rapidjson.tar.gz 1107920 BLAKE2B 1cc96842788014d08637e8cec9c1ef507a0f6ade03ede190accea7950980e317ca40846e5124963290b51046e3063c5198873a22e528a8495d2c9f9aec4ff96d SHA512 58900db212b0b700571b4d4bd6e77f3ecb60f914d8f96cab83aed44c82dd45687aca62326d4d024f837200d1261a52782e772532ff9dc512ac3fe72a9a48137c DIST p2pool-2.7-robin-hood-hashing.tar.gz 177642 BLAKE2B e66b8388fcd1f6294f67a18bbc45ac8083b9e8fd8d304a35963645934c9054c98c54b10dd8185e72da4d88e3825f7daed8f503f75589e799717aa4a3e1e101f9 SHA512 c569727678600d7c7ca0fd436e1fffbefab129455d12c57e01d74c57bf5d470f6e0aefe15e35831f1c31166e1a39398995403b1b5e346547549a819be202cd7a DIST p2pool-2.7.tar.gz 45643775 BLAKE2B 20b265430962a2bd57f6ea31525bf48447ab76336a86040786e2aa9fb4d2a030b5702ba9c3a7c2860aff01760f57410a032548fd553d742d41072ec410a2c59a SHA512 001984a9e9f7c05b138fbebe1f8f30927ae4cee4c7767e56bbe0b93c2db846e545cf30e3dd3c74acc2d984c4f96ac041c774616f13f03fc5addead346c4d7427 +DIST p2pool-3.0-cppzmq.tar.gz 46998 BLAKE2B fde029a8cecb1f3e7d901225bad1b32fde8d6848c80d7bd1a34025d63ab2288d8a3ef1335268ec6dc6ba3d4fdbb8cc8ff167c2a35112e3322afcd16a6a6d3fc5 SHA512 c9615558a5001e2d2772aeb452a1e5d0fbeb13d05e34ad0ee37e85dbff192d03ad4530a7f0a341f72d30062c4e8f34b8545a2c299d7180a8aa4a814b113e6fcd +DIST p2pool-3.0-curl.tar.gz 3050766 BLAKE2B 7cbfbb3d58739105d7166d635d12b1d3c38a56e538817a50fe4831d0abe53115ac190d6a5fdc71f52b4edec8164a0fc5559ed64aaab46365c18d09b7238caa65 SHA512 a1225cf5368648290f15ae4e695497797c8ac227f316e2d33c01d29fff30f4af5032ac7c1a05d614196b600e5aed65926e553cbbc32414a04802a14e2e92eef8 +DIST p2pool-3.0-libuv.tar.gz 1309251 BLAKE2B 57c916c5f84a80077a7f8155ec37438c009542513c39109d6c5c19d670e6c12abcea3c57d289211db6329b8fef2ecdabd4e0004ed32053e73fc1385a2e5cdb11 SHA512 7dbb54d678d53a8c840fb49ec9b618b77ff58dcc14109af7aa42797e4b24b0e62f586ecdeef4f7dd416bddcd08c0075e20146ec5579fc1d7a45135faaa16694c +DIST p2pool-3.0-randomx.tar.gz 165715 BLAKE2B 428ced5e0dca9a1d4b1f839a3367034548c9ca9f92117285b73687efd416925bf60f184c26909bdfe6e2b4bb42c686449404a701fc13af48079efa34eb643099 SHA512 78dab5590358e4ea153608859cd8f7764b430b2fa2e942644a06ef9268e5db606012b56d4fb132bc0e7898cfa8d7867a0ddcf445c0390d49c7df9b4ab6cb6369 +DIST p2pool-3.0-rapidjson.tar.gz 1107920 BLAKE2B 1cc96842788014d08637e8cec9c1ef507a0f6ade03ede190accea7950980e317ca40846e5124963290b51046e3063c5198873a22e528a8495d2c9f9aec4ff96d SHA512 58900db212b0b700571b4d4bd6e77f3ecb60f914d8f96cab83aed44c82dd45687aca62326d4d024f837200d1261a52782e772532ff9dc512ac3fe72a9a48137c +DIST p2pool-3.0-robin-hood-hashing.tar.gz 177642 BLAKE2B e66b8388fcd1f6294f67a18bbc45ac8083b9e8fd8d304a35963645934c9054c98c54b10dd8185e72da4d88e3825f7daed8f503f75589e799717aa4a3e1e101f9 SHA512 c569727678600d7c7ca0fd436e1fffbefab129455d12c57e01d74c57bf5d470f6e0aefe15e35831f1c31166e1a39398995403b1b5e346547549a819be202cd7a +DIST p2pool-3.0.tar.gz 45725483 BLAKE2B 4b662c84493ccf80b223e90afe3fb5276b6bf66bfbcc3a9420d8608919a962580aa39e3aab7046d88504de3a95b50ecd0c04b75c550c21fb9c9e5243a8d04a6c SHA512 93f47e70d68a346d89699bb31998b5ba1a1a02d164d74452a662c9ad5c80a1ec784590ee3cce8a80b2abfd96c3a2c93d46ad1cb6efe4b8a42b145b45acb3a8ab diff --git a/net-p2p/p2pool/p2pool-3.0.ebuild b/net-p2p/p2pool/p2pool-3.0.ebuild new file mode 100644 index 000000000..32f825035 --- /dev/null +++ b/net-p2p/p2pool/p2pool-3.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +P2POOL_DIST_COMMIT="e64a0acfb37961e0a3b185a6de04ab92bacbbf24" + RANDOMX_DIST_COMMIT="58c3943ff5699ebd36e178b8d4c6183bcb82419c" + CPPZMQ_DIST_COMMIT="c66fc6094b2a03439dea8469719e221e80e2e8e7" + CURL_DIST_COMMIT="c12fb3ddaf48e709a7a4deaa55ec485e4df163ee" + LIBUV_DIST_COMMIT="55077af4b50e13c5b7c02131ff16695685478fc8" + RAPIDJSON_DIST_COMMIT="914b772dfda5301dfa94309a114b207c67720d68" + ROBIN_HOOD_HASHING_DIST_COMMIT="4213dd109f03b49c68b52074d929e6f221803bed" + +DESCRIPTION="Decentralized pool for Monero mining" +HOMEPAGE="https://p2pool.io" + +SRC_URI=" + https://github.com/SChernykh/p2pool/archive/${P2POOL_DIST_COMMIT}.tar.gz -> \ +${P}.tar.gz + https://github.com/tevador/RandomX/archive/${RANDOMX_DIST_COMMIT}.tar.gz -> \ +${P}-randomx.tar.gz + https://github.com/SChernykh/cppzmq/archive/${CPPZMQ_DIST_COMMIT}.tar.gz -> \ +${P}-cppzmq.tar.gz + https://github.com/SChernykh/curl/archive/${CURL_DIST_COMMIT}.tar.gz -> \ +${P}-curl.tar.gz + https://github.com/SChernykh/libuv/archive/${LIBUV_DIST_COMMIT}.tar.gz -> \ +${P}-libuv.tar.gz + https://github.com/SChernykh/rapidjson/archive/${RAPIDJSON_DIST_COMMIT}.tar.gz -> \ +${P}-rapidjson.tar.gz + https://github.com/SChernykh/robin-hood-hashing/archive/${ROBIN_HOOD_HASHING_DIST_COMMIT}.tar.gz -> \ +${P}-robin-hood-hashing.tar.gz +" +KEYWORDS="~amd64 ~arm64 ~x86" + +LICENSE="BSD GPL-3+ ISC LGPL-3+ MIT" +SLOT="0" + +DEPEND=" + dev-libs/libsodium + net-libs/czmq +" + +src_unpack() { + unpack ${P}.tar.gz \ + ${P}-randomx.tar.gz \ + ${P}-cppzmq.tar.gz \ + ${P}-curl.tar.gz \ + ${P}-libuv.tar.gz \ + ${P}-rapidjson.tar.gz \ + ${P}-robin-hood-hashing.tar.gz + mv -T "${WORKDIR}"/p2pool-${P2POOL_DIST_COMMIT} \ + "${WORKDIR}"/${P} || die + mv -T "${WORKDIR}"/RandomX-${RANDOMX_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/RandomX || die + mv -T "${WORKDIR}"/cppzmq-${CPPZMQ_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/cppzmq || die + mv -T "${WORKDIR}"/curl-${CURL_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/curl || die + mv -T "${WORKDIR}"/libuv-${LIBUV_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/libuv || die + mv -T "${WORKDIR}"/rapidjson-${RAPIDJSON_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/rapidjson || die + mv -T "${WORKDIR}"/robin-hood-hashing-${ROBIN_HOOD_HASHING_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/robin-hood-hashing || die +} + +src_prepare() { + default + + # Stop their script from overriding flags: + cp "${FILESDIR}"/flags.cmake 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 visibile unless you use a wallet that supports P2Pool." + ewarn "See https://p2pool.io/#help and https://github.com/SChernykh/p2pool for more information." +}