DIST xmrig-6.21.1.tar.gz 2416545 BLAKE2B 72ecdfc8c999aee91aef4f540211c5d5a6f1992c76211162a623e89391cedfcc2d5540f291d9915ee4180b83f58ef7f2eb1e3aff8dee49c72f41f90878d7ef62 SHA512 a9267708e61084db7116381adb2256a04c30eba0c84b571764cc73ccafc9276f55b6665529eb7b9c1785d582d0d280ced6ee7ca88a5e98f9bbdef2a9176a9794
DIST xmrig-6.22.2.tar.gz 2435360 BLAKE2B c9b81ee93a008639709751b3924461d29216f8daa4beb3db96d983812efa5083926624aaea14d20692c3a3740a1ca178383b8b7cce0c1ad78a16f0299f891561 SHA512 4e25364737456711b09d5ed68e0d26b74cc2f4f4408ff5d02e0063bf67d6f38db5fe9af5d099dc4fd4b3f668baf2023cb816c049d38588ba1b54a8a2c0393269
EBUILD xmrig-6.21.1.ebuild 2114 BLAKE2B 179c107f4c4143dcedd6b7b67e4fe1347621162079b7a0c5f2211dfcbf6511a3b8539c139b45c852b16c007596a8b4952fa6d0e2be2397eb107d1a86b8ead504 SHA512 95382a0021017d70cf7b07e63f7bd34f34bfa9bb6455fe8a85af642618372a912be0daaff7845ce1ee29ea65331ecc4e1f2a0a57866f7e1987b32ae5f96c1eca
+EBUILD xmrig-6.22.2-r1.ebuild 1986 BLAKE2B 1a6f024dd5aa1fed5952a8b54342a626083378616b29567d745f13a7bdc25ca0097b5d791889d7c1e8dcaa28cada06025d1e0f1ac701475260511629889b9be0 SHA512 94ead70250245f0c344264797c047aebe90694505fb76d0d4c9610e897ab2981b9bc4bdaa8b959723bdd87275e45fef1d16c1bd5428e9b0c9c5ba29807344130
EBUILD xmrig-6.22.2.ebuild 1968 BLAKE2B f87028b760272cde89188bf59d448a55ad5c23d75f6ef38a5ba78d71c6709ceb3b630fe29292b946d4c3479355c81140d975175b43f99885a2111aed44222aaa SHA512 2d4f49e2ab0d2291b075f1bf91245b8881887e2acc1e5d1e4ada6c3597336fc8864a93512e4236cc85f3ace49a6d5e76bc0ac779773781647c6da460220bdb2a
MISC xmrig-6.22.2.ebuild.save 1340 BLAKE2B 5161c77d9100a6b6020af9903d52f517c795dccc4032a5507af5f6542a7e41e3db3ddfa09daf8e419c8b5d4dfc09ec289b2c36e7182258230bb8d5fb501095f9 SHA512 17ae9d96b393edf923cc14c43167981e7cbb03a29744436e161056bcacbfa9aae5d740af50c9f2f9f9e7c7e6c832cca43f42a896542b7442a26d82c5e04d8650
--- /dev/null
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd
+
+DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner"
+HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig"
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 ~arm64"
+fi
+
+LICENSE="Apache-2.0 GPL-3+ MIT"
+SLOT="0"
+IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl"
+
+DEPEND="
+ dev-libs/libuv:=
+ hwloc? ( >=sys-apps/hwloc-2.5.0:= )
+ opencl? ( virtual/opencl )
+ ssl? ( dev-libs/openssl:= )
+"
+RDEPEND="
+ ${DEPEND}
+ !arm64? ( sys-apps/msr-tools )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+)
+
+src_prepare() {
+ if ! use donate ; then
+ sed -i 's/1;/0;/g' src/donate.h || die
+ fi
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1)
+ -DWITH_HWLOC=$(usex hwloc)
+ -DWITH_TLS=$(usex ssl)
+ -DWITH_OPENCL=$(usex opencl)
+ -DWITH_CUDA=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ default
+ keepdir /etc/xmrig
+ systemd_dounit "${FILESDIR}"/xmrig.service
+ newconfd "${FILESDIR}/xmrigd.confd" xmrigd
+ newinitd "${FILESDIR}/xmrigd.1.initd" xmrigd.1
+ newinitd "${FILESDIR}/xmrig.initd" xmrig
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotated" xmrig
+ dobin "${BUILD_DIR}/xmrig"
+ dobin "${S}/scripts/enable_1gb_pages.sh"
+ dobin "${S}/scripts/randomx_boost.sh"
+}
+
+pkg_postinst() {
+ #Some stuff about the openrc service files
+ ewarn "XMRig is now installed."
+ ewarn "Update /etc/conf.d/xmrigd to your perference"
+ ewarn ""
+ ewarn "Once configured and started, xmrig will create and start an xmrigd.X service"
+ ewarn "An xmrigd.X service will be created for 1 to nproc cores"
+ ewarn "Starting xmrigd.X will start a daemonzsed xmrig using X threads"
+ ewarn ""
+}
AUX monerod.service 329 BLAKE2B e4390612e1e37cb47164967cc086eb32b1dac61ceba621d376ae87220245284d83dd0895e786daf1652ff40c0161f713cd4f124ae7b2d57306208d5886c8aeb3 SHA512 38eb172bcd46c98a5aaa8f7c0d8bf011c183fd4d09f9d38c14679a4a0ee628d58c6dde6cce181745b053576e3b8907038d75ec3bcb3b0bb03e62c606573038b3
DIST monero-0.18.3.4.tar.gz 14039924 BLAKE2B cb60f1db4f482bac3b3f5fa606bf1c78103b14f927d4636e5fda4aa96dcc08a9f990355ceb1cdc8c253245a0a2a1c98cf4fd7101d13d78ac6e7d1450192fc2db SHA512 f2708bf7698410c1509ae41148c298e352b3401e1df900b7152c25cb5ceb2f5bde68274fd37b1a328e932be50bdf93fe364561c520a15e3df7de2cdbd20d1be8
EBUILD monero-0.18.3.4-r1.ebuild 3205 BLAKE2B e617b505f5b6b8dbdc887344cd4ad7bc936c3f2347cc7a1e789f414b8f168c4a239354df41856c1bf73b77891860612a905ac626cb4aafb8aea549c6323c0e99 SHA512 3d19f4717a9aa2792ab2fdba10e667c6bd84dd4cade344c74cb6311ea10bdd74e486b26a21a2004b0ac41aa882d1ef2c0958dd6160f1897556902f18cf156415
+EBUILD monero-0.18.3.4-r2.ebuild 3232 BLAKE2B 7f7f5819bd804351a79546be58a1f54b740570fd73026bc0233273a1d5dbd825b04c9cf295ca3b6b3f16243fe0bf337dcf29afe8c0cf3bb6d3ebb2366bf13a77 SHA512 82f1c58103a367667c908806344161e28ab005a5a8b21cb47af54bd60793dcd9cdbf3faba7f49f982e0a899115e1644244fa0b64c6751f6e1ef7324e0d40ccf3
MISC metadata.xml 1105 BLAKE2B 50be9f62972c9524bd9c8b9875bf690f908f8f291b8def8d5f3757f6736ea6de2b020cf18da1803a7c4c52af7925eefb7206232180f0b77782a43253961b14cc SHA512 00f3820dac346aa3365b24eafa179224b4465be56fbb559b3b0691076ec23a4dd288c7fbfc88f7d4064b771d5e5ad18b7085830aa9e0929433ad2dcdbc7f1b78
--- /dev/null
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake systemd
+
+DESCRIPTION="The secure, private, untraceable cryptocurrency"
+HOMEPAGE="https://github.com/monero-project/monero"
+
+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 ~arm64 ~x86"
+fi
+
+LICENSE="BSD MIT"
+SLOT="0"
+IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc"
+REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
+RESTRICT="test"
+
+DEPEND="
+ acct-group/monero
+ acct-user/monero
+ <dev-libs/boost-1.87:=[nls]
+ dev-libs/libsodium:=
+ dev-libs/openssl:=
+ dev-libs/randomx
+ dev-libs/rapidjson
+ dev-libs/supercop
+ net-dns/unbound:=[threads]
+ net-libs/czmq:=
+ net-libs/miniupnpc:=
+ readline? ( sys-libs/readline:0= )
+ hw-wallet? (
+ dev-libs/hidapi
+ dev-libs/protobuf:=
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.18.3.3-unbundle-dependencies.patch"
+ "${FILESDIR}/${PN}-0.18.3.3-miniupnp-api-18.patch"
+ "${FILESDIR}/${PN}-0.18.3.4-boost-1.85.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ # TODO: Update CMake to install built libraries (help wanted)
+ -DBUILD_SHARED_LIBS=OFF
+ -DMANUAL_SUBMODULES=ON
+ -DUSE_DEVICE_TREZOR=$(usex hw-wallet ON OFF)
+ )
+
+ use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF )
+
+ cmake_src_configure
+}
+
+src_compile() {
+ local targets=()
+ use daemon && targets+=(daemon)
+ use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage})
+ use wallet-cli && targets+=(simplewallet)
+ use wallet-rpc && targets+=(wallet_rpc_server)
+ cmake_build ${targets[@]}
+}
+
+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.confd" monerod
+ newinitd "${FILESDIR}/monerod.initd" monerod
+
+ # Logrotate
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotated" "${PN}"
+
+ # systemd
+ systemd_dounit "${FILESDIR}/monerod.service"
+ fi
+}
+
+pkg_postinst() {
+ if use daemon; then
+ elog "Start the Monero P2P daemon as a system service with"
+ elog "'rc-service monerod start'. Enable it at startup with"
+ elog "'rc-update add monerod default'."
+ elog
+ elog "Run monerod status as any user to get sync status and other stats."
+ elog
+ elog "The Monero blockchain can take up a lot of space (200 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
+}
AUX p2pool.initd 1134 BLAKE2B 5157e0fe4d34da614ed6d5a400680f518cf9f33912ae8382e87cf071f74dac0ecaf12626bcbb2d55ed33e54d1f10bef7a83c6db900fe1a6dcaf5eb80b85d7eaa SHA512 80d72e6bcccd7a71d15e59a859b92a38a3ff95e85964a67276dedf0d50117c73d620695d49692fd9bb990f5cb5562c6378e839e1709c87e4e7da51efc1bc034b
DIST p2pool-4.3.tar.xz 121435168 BLAKE2B fe09dbf3239b3a3785dcdcddb768f2ae2cdd8e4c7c4e07c4521c9f03b2eb6755b83ddb4ecc46fc9a2d524e6689be83bebea8dc43667b4f187db61d9aa9671084 SHA512 d3a1d4bd1b757fbdc3f7fd91aaeb457e19ed4f72dc9b6adf2ffb2e2e70916036d08ed19ec5e4b0aa534ebabfe43fba8f6956cd6c408c04b609ad761b985d35e5
DIST p2pool-4.3_shasums.asc 2007 BLAKE2B f772d5ed9f93ce54d90f1fc168af8e92f18872d1d274bdfadcf3444cc9a0d5e6a97ced411ec4150f819243cd7fbd373a6f9219b746f661e099f61ac21c6f566a SHA512 6e8ebc1cdcd3ad81ccabf29532d788662d89fab089166d038c53d5d5685b864c45bfe92c81cb39a69cea1bdd8f9bf94f69578d64e29cc093af4ccf4108865ea9
+EBUILD p2pool-4.3-r1.ebuild 2678 BLAKE2B e3564df9b4e6a2470bf30f8d20facbac62b51cce2f60916265eab7a2be77d049792c4c2b34f9c33c94a41c31a2e832d0a99a75692ce7bff4168c8f6a59455cbc SHA512 e3e7c6810c7e88af8e953c8914828fc979116c8d1dc8873b8361217f32af163faa81d8f7a2858de64ec9506c534fc4a32171ef15aaea2f15ce2a3c5e8fb69129
EBUILD p2pool-4.3.ebuild 2652 BLAKE2B a00abf5075344171b5fc74ccff089689ec9ed73608cd4dde550a5dac2dfd1c991e2ffe6de5e13a5453579b321e8996baf7439bb293590bfa326a3e4b1b679aff SHA512 ae9143c7f7a3778ffad7f9d9e3430d7057d21f419d5406b260b27067dcc6f5217b3451ccd26b7f10f827bad0079a1fe1392fd4e98ca34c9b78d776a05a71f9af
MISC metadata.xml 336 BLAKE2B 4d9ea4073c6d386663ea867ccc4cf61ae38a9f751a339a22b7f19543efa09ec58e4776fcb791665b2399d2852524c4c715d8f531fca55f40095bf5598e85fcf3 SHA512 f00b827b1f2ff64ecbbf4352662cf9c7d116e0340d73f5b52506cc675a17b77f3c2ad9914c6948736d75db03930d19c86efe55f1d57a403cf2fd3aa4e2f31083
--- /dev/null
+# Copyright 2022-2024 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.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"
+
+DEPEND="
+ dev-libs/openssl
+ net-libs/czmq
+ dev-libs/libuv
+ net-misc/curl
+"
+BDEPEND="
+ 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} "${WORKDIR}"/${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(){
+ dobin "${BUILD_DIR}/p2pool"
+ # OpenRC
+ newconfd "${FILESDIR}/p2pool.confd" ${PN}
+ newinitd "${FILESDIR}/p2pool.initd" ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotated" "${PN}"
+}
+
+pkg_postinst() {
+ #Some important wisdom taken from P2Pool documentation
+ ewarn "P2Pool for Monero is now installed."
+ ewarn "Update /etc/conf.d/p2pool with yout primary wallet address and"
+ ewarn "the address of your monero node (e.g. monerod)"
+ ewarn ""
+ ewarn "Once configured and started, 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."
+}