net-misc/xmrig-mo: add 6.16.2

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Kevin Thomas <me@kevinthomas.dev>
This commit is contained in:
Kevin Thomas
2021-12-30 01:23:39 -08:00
parent 7edb377e7a
commit 5aac9034bb
4 changed files with 109 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST xmrig-mo-6.16.2-mo2.tar.gz 2480342 BLAKE2B cfb1078f67913f3719dd929a1a41ef2040fdf5c7696baca990e3d9f869566e609406b4d592db50d00024adc5da05427382688e826523a9a407c0a79b554d3f5a SHA512 961e52c8ac3de9a55cbbdc11d282fc65c1827e87ac55b5f892866e5193509b23ca4bc9eeb869c019d1b025be14a877142e3b55c7485b6ded6673c832df8c36c3

View File

@@ -0,0 +1,23 @@
From ee98bfe01a94d021d81ed4c2bb11ec91c0bd81c8 Mon Sep 17 00:00:00 2001
From: Matt Smith <matt@offtopica.uk>
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

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>me@kevinthomas.dev</email>
<name>Kevin Thomas</name>
</maintainer>
<longdescription lang="en">
MoneroOcean fork of XMRig - a RandomX, CryptoNight, KawPow,
AstroBWT, and Argon2 CPU/GPU miner that supports algo switching.
</longdescription>
<use>
<flag name="donate">
Set the default donation level to 1% instead of 0
</flag>
<flag name="hwloc">
Use <pkg>sys-apps/hwloc</pkg> for CPU affinity support
</flag>
<flag name="opencl">
Enable OpenCL support
</flag>
</use>
<upstream>
<remote-id type="github">MoneroOcean/xmrig</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}