commit: 5aac9034bba11e6fea4ad9752fffbac87ef4ff9e
Author: Kevin Thomas kevinthomas dev>
AuthorDate: Thu Dec 30 09:23:39 2021 +
Commit: Florian Schmaus gentoo org>
CommitDate: Thu Dec 30 09:23:39 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5aac9034
net-misc/xmrig-mo: add 6.16.2
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Kevin Thomas kevinthomas.dev>
net-misc/xmrig-mo/Manifest | 1 +
.../xmrig-mo/files/xmrig-mo-6.12.2-nonotls.patch | 23 +
net-misc/xmrig-mo/metadata.xml | 26 ++
net-misc/xmrig-mo/xmrig-mo-6.16.2.ebuild | 59 ++
4 files changed, 109 insertions(+)
diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest
new file mode 100644
index 0..24b36b119
--- /dev/null
+++ b/net-misc/xmrig-mo/Manifest
@@ -0,0 +1 @@
+DIST xmrig-mo-6.16.2-mo2.tar.gz 2480342 BLAKE2B
cfb1078f67913f3719dd929a1a41ef2040fdf5c7696baca990e3d9f869566e609406b4d592db50d00024adc5da05427382688e826523a9a407c0a79b554d3f5a
SHA512
961e52c8ac3de9a55cbbdc11d282fc65c1827e87ac55b5f892866e5193509b23ca4bc9eeb869c019d1b025be14a877142e3b55c7485b6ded6673c832df8c36c3
diff --git a/net-misc/xmrig-mo/files/xmrig-mo-6.12.2-nonotls.patch
b/net-misc/xmrig-mo/files/xmrig-mo-6.12.2-nonotls.patch
new file mode 100644
index 0..a5337d9c8
--- /dev/null
+++ b/net-misc/xmrig-mo/files/xmrig-mo-6.12.2-nonotls.patch
@@ -0,0 +1,23 @@
+From ee98bfe01a94d021d81ed4c2bb11ec91c0bd81c8 Mon Sep 17 00:00:00 2001
+From: Matt Smith
+Date: Sun, 7 Jun 2020 13:20:04 +0100
+Subject: [PATCH] Don't suffix binary with -notls
+
+---
+ cmake/OpenSSL.cmake | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake
+index 89805301..c01c940a 100644
+--- a/cmake/OpenSSL.cmake
b/cmake/OpenSSL.cmake
+@@ -59,6 +59,4 @@ else()
+ src/base/net/http/HttpServer.h
+ )
+ endif()
+-
+-set(CMAKE_PROJECT_NAME "${CMAKE_PROJECT_NAME}-notls")
+ endif()
+--
+2.27.0
+
diff --git a/net-misc/xmrig-mo/metadata.xml b/net-misc/xmrig-mo/metadata.xml
new file mode 100644
index 0..3ee763e1f
--- /dev/null
+++ b/net-misc/xmrig-mo/metadata.xml
@@ -0,0 +1,26 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+
+m...@kevinthomas.dev
+Kevin Thomas
+
+
+MoneroOcean fork of XMRig - a RandomX, CryptoNight, KawPow,
+AstroBWT, and Argon2 CPU/GPU miner that supports algo switching.
+
+
+
+ Set the default donation level to 1% instead of 0
+
+
+ Use sys-apps/hwloc for CPU affinity support
+
+
+ Enable OpenCL support
+
+
+
+MoneroOcean/xmrig
+
+
diff --git a/net-misc/xmrig-mo/xmrig-mo-6.16.2.ebuild
b/net-misc/xmrig-mo/xmrig-mo-6.16.2.ebuild
new file mode 100644
index 0..5f75b991d
--- /dev/null
+++ b/net-misc/xmrig-mo/xmrig-mo-6.16.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+MO_PV="mo2"
+DESCRIPTION="MoneroOcean fork of xmrig that supports algo switching"
+HOMEPAGE="https://github.com/MoneroOcean/xmrig;
+SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz
-> ${P}-${MO_PV}.tar.gz"
+KEYWORDS="~amd64 ~arm64"
+
+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:= )
+ opencl? ( virtual/opencl )
+ ssl? ( dev-libs/openssl:= )
+"
+
+RDEPEND="
+ ${DEPEND}
+ !arm64? ( sys-apps/msr-tools )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+)
+
+S="${WORKDIR}/xmrig-${PV}-${MO_PV}"
+
+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
+ newbin "${BUILD_DIR}/xmrig" xmrig-mo
+}