diff options
author | Adam Pimentel <adam.pimentel@protonmail.com> | 2022-11-29 08:09:27 -0500 |
---|---|---|
committer | Adam Pimentel <adam.pimentel@protonmail.com> | 2022-11-29 08:09:27 -0500 |
commit | b912a8c70cc6bb6d7aa4c99188cb7db8475ac0a7 (patch) | |
tree | a8dcaabbe0911dc66b4f01064e4643a9b027c826 /net-p2p/p2pool | |
parent | gui-apps/swaync: add 0.7.3, drop 0.7.2 (diff) | |
download | guru-b912a8c70cc6bb6d7aa4c99188cb7db8475ac0a7.tar.gz guru-b912a8c70cc6bb6d7aa4c99188cb7db8475ac0a7.tar.bz2 guru-b912a8c70cc6bb6d7aa4c99188cb7db8475ac0a7.zip |
net-p2p/p2pool: version bump 2.6
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
Diffstat (limited to 'net-p2p/p2pool')
-rw-r--r-- | net-p2p/p2pool/p2pool-2.6.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/net-p2p/p2pool/p2pool-2.6.ebuild b/net-p2p/p2pool/p2pool-2.6.ebuild new file mode 100644 index 000000000..4ff46dbce --- /dev/null +++ b/net-p2p/p2pool/p2pool-2.6.ebuild @@ -0,0 +1,76 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +P2POOL_DIST_COMMIT="67bbfea87d87328a9ccd8159b21b2a4ff65087ca" + RANDOMX_DIST_COMMIT="d10edcbc93097a1b693598b3b12d780a58a023d4" + CPPZMQ_DIST_COMMIT="c66fc6094b2a03439dea8469719e221e80e2e8e7" + CURL_DIST_COMMIT="cd95ee9f771361acf241629d2fe5507e308082a2" + LIBUV_DIST_COMMIT="0c1fa696aa502eb749c2c4735005f41ba00a27b8" + LIBZMQ_DIST_COMMIT="7fad9599abde45db53899f1873be72527e56ed63" + RAPIDJSON_DIST_COMMIT="914b772dfda5301dfa94309a114b207c67720d68" + ROBIN_HOOD_HASHING_DIST_COMMIT="4213dd109f03b49c68b52074d929e6f221803bed" + +DESCRIPTION="Decentralized pool for Monero mining" +HOMEPAGE="https://p2pool.io https://github.com/SChernykh/p2pool" + +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/libzmq/archive/${LIBZMQ_DIST_COMMIT}.tar.gz -> ${P}-libzmq.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 +" + +src_unpack() { + unpack ${P}.tar.gz ${P}-randomx.tar.gz ${P}-cppzmq.tar.gz ${P}-curl.tar.gz ${P}-libuv.tar.gz ${P}-libzmq.tar.gz ${P}-rapidjson.tar.gz ${P}-robin-hood-hashing.tar.gz + mv -T "${WORKDIR}"/p2pool-${P2POOL_DIST_COMMIT} "${WORKDIR}"/${P} + 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}"/libzmq-${LIBZMQ_DIST_COMMIT} "${WORKDIR}"/${P}/external/src/libzmq || 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_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." +} |