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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAD0315ACFC for ; Sun, 30 Apr 2023 17:07:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 038E2E0826; Sun, 30 Apr 2023 17:07:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 C9B25E0826 for ; Sun, 30 Apr 2023 17:07:01 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E01E433C1C2 for ; Sun, 30 Apr 2023 17:07:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 584C48AC for ; Sun, 30 Apr 2023 17:06:59 +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: <1682874391.6cc93ed829bbd36abbfd0e7d738b419215260c08.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.3.ebuild X-VCS-Directories: net-p2p/p2pool/ X-VCS-Committer: adam.pimentel X-VCS-Committer-Name: Adam Pimentel X-VCS-Revision: 6cc93ed829bbd36abbfd0e7d738b419215260c08 X-VCS-Branch: dev Date: Sun, 30 Apr 2023 17:06:59 +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: cd0a6830-89c6-46cb-b36c-63e3163908af X-Archives-Hash: 6600ba77ae8eb75e017456e3dad9e62c commit: 6cc93ed829bbd36abbfd0e7d738b419215260c08 Author: Adam Pimentel protonmail com> AuthorDate: Sun Apr 30 17:05:45 2023 +0000 Commit: Adam Pimentel protonmail com> CommitDate: Sun Apr 30 17:06:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6cc93ed8 net-p2p/p2pool: version bump Signed-off-by: Adam Pimentel protonmail.com> net-p2p/p2pool/Manifest | 8 +++ net-p2p/p2pool/p2pool-3.3.ebuild | 110 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) diff --git a/net-p2p/p2pool/Manifest b/net-p2p/p2pool/Manifest index f6e6f2241..419d58fa7 100644 --- a/net-p2p/p2pool/Manifest +++ b/net-p2p/p2pool/Manifest @@ -27,3 +27,11 @@ DIST p2pool-3.2-randomx.tar.gz 165726 BLAKE2B 38e7755d5db8ae35575a6d4f97b896df90 DIST p2pool-3.2-rapidjson.tar.gz 1107920 BLAKE2B 1cc96842788014d08637e8cec9c1ef507a0f6ade03ede190accea7950980e317ca40846e5124963290b51046e3063c5198873a22e528a8495d2c9f9aec4ff96d SHA512 58900db212b0b700571b4d4bd6e77f3ecb60f914d8f96cab83aed44c82dd45687aca62326d4d024f837200d1261a52782e772532ff9dc512ac3fe72a9a48137c DIST p2pool-3.2-robin-hood-hashing.tar.gz 177642 BLAKE2B e66b8388fcd1f6294f67a18bbc45ac8083b9e8fd8d304a35963645934c9054c98c54b10dd8185e72da4d88e3825f7daed8f503f75589e799717aa4a3e1e101f9 SHA512 c569727678600d7c7ca0fd436e1fffbefab129455d12c57e01d74c57bf5d470f6e0aefe15e35831f1c31166e1a39398995403b1b5e346547549a819be202cd7a DIST p2pool-3.2.tar.gz 51297662 BLAKE2B f02abba0bd334ad3d0282634f9756eab2568a28769d76d63cfd1e96e2dc9e4a154635fd65f92c9569f885f833ce469ad30a33effe8c84a271e9dd67d68737e1d SHA512 b8ad9773d148b2d5da478a8b94e9effd97c32a0b778ef044772e17a69a3f6f4c4b5051816ac2ed4dd502a4c71ecce3407b7c7ca14363aa7acad9e0d6c77c3f9a +DIST p2pool-3.3-cppzmq.tar.gz 46998 BLAKE2B fde029a8cecb1f3e7d901225bad1b32fde8d6848c80d7bd1a34025d63ab2288d8a3ef1335268ec6dc6ba3d4fdbb8cc8ff167c2a35112e3322afcd16a6a6d3fc5 SHA512 c9615558a5001e2d2772aeb452a1e5d0fbeb13d05e34ad0ee37e85dbff192d03ad4530a7f0a341f72d30062c4e8f34b8545a2c299d7180a8aa4a814b113e6fcd +DIST p2pool-3.3-curl.tar.gz 3115634 BLAKE2B b19eabd3ee0d237e96507ad8a9ba205f55af323f833530b5fa613fd50403f568770270c846beb9a1985139a393309aef1ee215b9f822881c55a9744ea0d99a9d SHA512 ff2a04b19a9938e9fbf16a7bbaf3df8157a802c547189962fcb14cfc7c7c657b80cececb9f28b34cf2ff472f998acf63281689c7307e9db275fbd7ab5c0be6a7 +DIST p2pool-3.3-libuv.tar.gz 1309251 BLAKE2B 57c916c5f84a80077a7f8155ec37438c009542513c39109d6c5c19d670e6c12abcea3c57d289211db6329b8fef2ecdabd4e0004ed32053e73fc1385a2e5cdb11 SHA512 7dbb54d678d53a8c840fb49ec9b618b77ff58dcc14109af7aa42797e4b24b0e62f586ecdeef4f7dd416bddcd08c0075e20146ec5579fc1d7a45135faaa16694c +DIST p2pool-3.3-miniupnp.tar.gz 455438 BLAKE2B f8ab88a3a2dd3ed5bd8e463e54f4ef38fd2706c2944637f8a5d711bea8aba47e5c270aa4d60fa37ac3efa0df9277860752e72f691e5bac960cdb6bf577006839 SHA512 ba81e9e483653a6fe50c867979f2107c8aa8125c0208037e01a953b66f246d60969549ddafd5e3d2ea98a5b9cd8308024d3120c713c815f17bbc8c12bcf22b87 +DIST p2pool-3.3-randomx.tar.gz 165829 BLAKE2B f712e01afd1b08c668774da520a9b9e914ce464dd116e8fdf24c9fa2c851f5c585c03a9dee0313dd72caebfbf782b01297faa6456a0412f5c95b66867cb841e7 SHA512 c9185925f6af2839fec36cd8216aade2e749ea31e60e9cf0e483b7fb25ce728a56fbfdb682fd557f7b8db08e02a9483001d7241c0c958229f5ee878ab22a29cb +DIST p2pool-3.3-rapidjson.tar.gz 1107920 BLAKE2B 1cc96842788014d08637e8cec9c1ef507a0f6ade03ede190accea7950980e317ca40846e5124963290b51046e3063c5198873a22e528a8495d2c9f9aec4ff96d SHA512 58900db212b0b700571b4d4bd6e77f3ecb60f914d8f96cab83aed44c82dd45687aca62326d4d024f837200d1261a52782e772532ff9dc512ac3fe72a9a48137c +DIST p2pool-3.3-robin-hood-hashing.tar.gz 177642 BLAKE2B e66b8388fcd1f6294f67a18bbc45ac8083b9e8fd8d304a35963645934c9054c98c54b10dd8185e72da4d88e3825f7daed8f503f75589e799717aa4a3e1e101f9 SHA512 c569727678600d7c7ca0fd436e1fffbefab129455d12c57e01d74c57bf5d470f6e0aefe15e35831f1c31166e1a39398995403b1b5e346547549a819be202cd7a +DIST p2pool-3.3.tar.gz 59766182 BLAKE2B 7a58f7e3a390c26cc0ca64551e6576c1e466772064c500d7db817ddd03168f5d0505b39e4ebbdd3357e30a1b9b2a21a6f7a37da1e6eca591357f35ce38dad3c3 SHA512 ab7f2944c23d0d7c692bcf74488a3a39ad436b526186b934a4fbf9898b299616405de803bc0df1f605501ff5f440ca432bf656db0983a04e2b23e53b9c35f34e diff --git a/net-p2p/p2pool/p2pool-3.3.ebuild b/net-p2p/p2pool/p2pool-3.3.ebuild new file mode 100644 index 000000000..5aa91d6e8 --- /dev/null +++ b/net-p2p/p2pool/p2pool-3.3.ebuild @@ -0,0 +1,110 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +P2POOL_DIST_COMMIT="fcb62894a55c4eb00e662ab81d92a2742635ad74" + RANDOMX_DIST_COMMIT="df7ee038c4cd2127d59afbe0953c89b61b445d93" + CPPZMQ_DIST_COMMIT="c66fc6094b2a03439dea8469719e221e80e2e8e7" + CURL_DIST_COMMIT="046209e561b7e9b5aab1aef7daebf29ee6e6e8c7" + LIBUV_DIST_COMMIT="55077af4b50e13c5b7c02131ff16695685478fc8" + RAPIDJSON_DIST_COMMIT="914b772dfda5301dfa94309a114b207c67720d68" + ROBIN_HOOD_HASHING_DIST_COMMIT="4213dd109f03b49c68b52074d929e6f221803bed" + MINIUPNP_DIST_COMMIT="cb3650edba77d1cb3b0d612b7eccc5220049aa4f" + +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 + https://github.com/SChernykh/miniupnp/archive/${MINIUPNP_DIST_COMMIT}.tar.gz -> \ +${P}-miniupnp.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 \ + ${P}-miniupnp.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 + mv -T "${WORKDIR}"/miniupnp-${MINIUPNP_DIST_COMMIT} \ + "${WORKDIR}"/${P}/external/src/miniupnp || 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." +}