From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF7281382C5 for ; Mon, 28 Dec 2020 07:08:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFDC72BC014; Mon, 28 Dec 2020 07:08:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 960BA2BC014 for ; Mon, 28 Dec 2020 07:08:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3597934145C for ; Mon, 28 Dec 2020 07:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4587547F for ; Mon, 28 Dec 2020 07:08:12 +0000 (UTC) From: "Theo Anderson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Anderson" Message-ID: <1609135355.6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc.telans@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/xmrig/Manifest net-misc/xmrig/metadata.xml net-misc/xmrig/xmrig-6.7.0.ebuild X-VCS-Directories: net-misc/xmrig/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: 6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc X-VCS-Branch: dev Date: Mon, 28 Dec 2020 07:08:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b8a2f63d-662d-49ec-883e-1079035de8e1 X-Archives-Hash: f05bb89f4b1663e74a9975e56eedf231 commit: 6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc Author: Theo Anderson posteo de> AuthorDate: Mon Dec 28 06:02:35 2020 +0000 Commit: Theo Anderson posteo de> CommitDate: Mon Dec 28 06:02:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6e9ff6cf net-misc/xmrig: new package 6.7.0 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Theo Anderson posteo.de> net-misc/xmrig/Manifest | 1 + net-misc/xmrig/metadata.xml | 15 +++++++++++ net-misc/xmrig/xmrig-6.7.0.ebuild | 54 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest new file mode 100644 index 00000000..8d76a8bc --- /dev/null +++ b/net-misc/xmrig/Manifest @@ -0,0 +1 @@ +DIST xmrig-6.7.0.tar.gz 1570428 BLAKE2B 744266679f37a1bb0453f224b907f7c4db8be42cd6948ccb1b0ad4a499d4345b26b7f15a2f662741222570d13c9eea2353fd9e05a9734c0f3a2c7d0068827e10 SHA512 3d57b78392c95417f37a4c1c5e434e06aafa1bd7658b945768c90de69b0ff8e347f68e96523312d6b4261321b3f06026504314caf73404a294beb01875dbe1d6 diff --git a/net-misc/xmrig/metadata.xml b/net-misc/xmrig/metadata.xml new file mode 100644 index 00000000..b57adcc7 --- /dev/null +++ b/net-misc/xmrig/metadata.xml @@ -0,0 +1,15 @@ + + + + + telans@posteo.de + Theo Anderson + + + XMRig High performance, open source, cross platform RandomX, + CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner. + + + xmrig/xmrig + + diff --git a/net-misc/xmrig/xmrig-6.7.0.ebuild b/net-misc/xmrig/xmrig-6.7.0.ebuild new file mode 100644 index 00000000..362fd8cc --- /dev/null +++ b/net-misc/xmrig/xmrig-6.7.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake optfeature + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="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 ~arm ~arm64 ~x86" +IUSE="libressl +ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( + !libressl? ( dev-libs/openssl:= ) + libressl? ( dev-libs/libressl:= ) + ) +" + +src_prepare() { + cmake_src_prepare + sed -i '/notls/d' cmake/OpenSSL.cmake || die + sed -i 's/1;/0;/g' src/donate.h || die +} + +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" + dodoc -r doc/*.md + einstalldocs +} + +pkg_postinst() { + einfo "Increase the vm.nr_hugepages sysctl value so that XMRig can allocate with huge pages." + optfeature "CPU specific performance tweaks" sys-apps/msr-tools +}