commit 6d3d41e4053a7a1e879a67bbd8e9ee6f0c748981
parent 042e7ec49302810474bbedb5d9a077e0cb2ababf
Author: parazyd <parazyd@dyne.org>
Date: Tue, 9 Feb 2021 22:16:49 +0100
net-misc/xmrig: Remove from overlay.
Diffstat:
5 files changed, 0 insertions(+), 114 deletions(-)
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest
@@ -1 +0,0 @@
-DIST xmrig-6.7.2.tar.gz 1570717 BLAKE2B 2b04a67a9beb78918e40d02e8d093d4d7ec720af8bc5126c2b6e0db8a77a4605e51a2f330431ce49e3bec15a4aabefd960d224019918a768aae72eabf88c1b6a SHA512 517983d67bda3692e45cae664a717bb491492f127acd47635fb4d58dbfb02516669a6340a0845d9ca2de461666def208422a02ee97fcaaf7c674e11ae4a027c6
diff --git a/net-misc/xmrig/files/xmrig-5.11.2-nonotls.patch b/net-misc/xmrig/files/xmrig-5.11.2-nonotls.patch
@@ -1,23 +0,0 @@
-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
-@@ -54,6 +54,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/files/xmrig-6.3.3-nodonate.patch b/net-misc/xmrig/files/xmrig-6.3.3-nodonate.patch
@@ -1,15 +0,0 @@
-diff --git a/src/donate.h b/src/donate.h
-index 9323dcab..7a2b1996 100644
---- a/src/donate.h
-+++ b/src/donate.h
-@@ -44,8 +44,8 @@
- * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD
- * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT
- */
--constexpr const int kDefaultDonateLevel = 1;
--constexpr const int kMinimumDonateLevel = 1;
-+constexpr const int kDefaultDonateLevel = 0;
-+constexpr const int kMinimumDonateLevel = 0;
-
-
- #endif /* XMRIG_DONATE_H */
diff --git a/net-misc/xmrig/metadata.xml b/net-misc/xmrig/metadata.xml
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <longdescription lang="en">
- XMRig High performance, open source, cross platform RandomX,
- CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner.
- </longdescription>
- <use>
- <flag name="donate">
- Set the default donation level to 1% instead of 0
- </flag>
- </use>
- <upstream>
- <remote-id type="github">xmrig/xmrig</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/net-misc/xmrig/xmrig-6.7.2.ebuild b/net-misc/xmrig/xmrig-6.7.2.ebuild
@@ -1,58 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner"
-HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig"
-SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="donate libressl ssl"
-
-DEPEND="
- dev-libs/libuv:=
- sys-apps/hwloc:=
- ssl? (
- !libressl? ( dev-libs/openssl:= )
- libressl? ( dev-libs/libressl:= )
- )"
-
-PATCHES=("${FILESDIR}/${PN}-5.11.2-nonotls.patch")
-
-src_prepare() {
- use donate || eapply "${FILESDIR}/${PN}-6.3.3-nodonate.patch"
-
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- # TODO: Create expanded USE flag for all of the PoW algos.
-
- -DWITH_TLS=$(usex ssl)
-
- # TODO: opencl USE flag.
- -DWITH_OPENCL=OFF
-
- # TODO: cuda USE flag.
- -DWITH_CUDA=OFF
- )
-
- cmake_src_configure
-}
-
-src_install() {
- dobin "${BUILD_DIR}/xmrig"
-}
-
-pkg_postinst() {
- einfo "Install sys-apps/msr-tools and load the msr kernel module so that"
- einfo "XMRig can perform CPU specific tweaks like disabling the instruction"
- einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl"
- einfo "value so that XMRig can allocate with huge pages."
-}