summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/xmrig/Manifest1
-rw-r--r--net-misc/xmrig/xmrig-6.20.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest
index 0c5a954c32ee..35162d2bdc9e 100644
--- a/net-misc/xmrig/Manifest
+++ b/net-misc/xmrig/Manifest
@@ -3,3 +3,4 @@ DIST xmrig-6.19.0.tar.gz 2409845 BLAKE2B 4798b40555b2ea57a76fedfc0a86dd27f035389
DIST xmrig-6.19.1.tar.gz 2410643 BLAKE2B c3cf133826b5e6aa1c4b95cd149d654464fba92b6de27b74afa47089944256a642cb9b6cc33b4f988b0c0fdbd96e2f9c9d16c44a7afb99b88fd8f0f8335ab09f SHA512 2089ab48a44de0032f4db39a6668b1cd70f0dfbb14d1bda0d351bb2b4c39a0efdd993825ed896f0250cfac70e63cf88be3bcfd989b784712401bae99487aa4bf
DIST xmrig-6.19.2.tar.gz 2411237 BLAKE2B 66bd9d00d8afa9f67f5ed36646cec105f472de855aa6b4fd0c4b3b81e2b47f369a478c1a4f24a58492be5a076df94f8835772e8c51b3af428cd3a24af43b6c3e SHA512 6d986985b58db0f0433648719b9783f723a7eec9f11fe7f801ebb8ac856106f343846ab81f1a078e7bdbe9f6695c1e53713d82042d324e3667897f3f9c39abcf
DIST xmrig-6.19.3.tar.gz 2411844 BLAKE2B 6904ea00e912d6833833244f9913ffe5c4e2ac476d13449ece818bd8bed8d801db64f0d7de829c328c47d67cccd853050a83d533c78ac2985ba925fa830ea9c5 SHA512 59c9d8fb36e2542583c1c8ec08f59f19f2271bcdcffa9b869d52dd7ca94661d06286a9356937102dfb6b6b67ab382d7d9e5d2490151f38178bccce4290b64c48
+DIST xmrig-6.20.0.tar.gz 2412536 BLAKE2B 7842c2ed52abb80ae0bc3cef3dd3972e6ebdaa02c64e851df1ec5388b8e4efc9be2b772f9295043ec65793300b9fde04819b838060c07619bf0b0244dbb7a9d6 SHA512 52a32f6a2aec8e4660fe408eac483456e705721fad139fa863a55ca4cc7144872b286d716ae4ffbfd6977f2b29ae10766c40bb02362fbf2b8fa2889c0c6d488a
diff --git a/net-misc/xmrig/xmrig-6.20.0.ebuild b/net-misc/xmrig/xmrig-6.20.0.ebuild
new file mode 100644
index 000000000000..7f9e7dd2397c
--- /dev/null
+++ b/net-misc/xmrig/xmrig-6.20.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 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
+ dobin "${BUILD_DIR}/xmrig"
+ dobin "${S}/scripts/enable_1gb_pages.sh"
+ dobin "${S}/scripts/randomx_boost.sh"
+}