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 DBD1A13835C for ; Wed, 28 Apr 2021 02:16:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A44EE0887; Wed, 28 Apr 2021 02:16:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 58202E087B for ; Wed, 28 Apr 2021 02:16:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 0BCF8340B35 for ; Wed, 28 Apr 2021 02:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 334FC737 for ; Wed, 28 Apr 2021 02:16:49 +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: <1619574535.6ad35fe2fd35f70776f2dbb01a7626de2fca7d33.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/xmrig-6.12.1.ebuild X-VCS-Directories: net-misc/xmrig/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: 6ad35fe2fd35f70776f2dbb01a7626de2fca7d33 X-VCS-Branch: dev Date: Wed, 28 Apr 2021 02:16:49 +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: c7e4f5ca-fe3f-46c6-a8d6-fd5dab00da05 X-Archives-Hash: 9a2f59c5e746b160fea593bd19cd8913 commit: 6ad35fe2fd35f70776f2dbb01a7626de2fca7d33 Author: Theo Anderson posteo de> AuthorDate: Wed Apr 28 01:48:55 2021 +0000 Commit: Theo Anderson posteo de> CommitDate: Wed Apr 28 01:48:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6ad35fe2 net-misc/xmrig: add 6.12.1 Signed-off-by: Theo Anderson posteo.de> net-misc/xmrig/Manifest | 1 + net-misc/xmrig/xmrig-6.12.1.ebuild | 51 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index bab859c4f..b55ea330f 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -1,2 +1,3 @@ +DIST xmrig-6.12.1.tar.gz 1626568 BLAKE2B e43b25af131911f112dc54e213175ee10a0a6c5f4f8bde339bdd6e39df0dc0c8a058fd30c20994b52b68fe20539b8b95d714caeb94f699b4ba663d3fc3992c71 SHA512 813daf7f7363e60059290caddd7c85df90fd35148de2762b02c287a28e82e8a13dcfc9d514c4a4932d85049532c240eacc0201e6c8fede9b6bb26fa9505841b0 DIST xmrig-6.8.2.tar.gz 1582902 BLAKE2B 7ce2cc327d07b11d1d165d9f369931d222e47c0595d09b777c7ae8b196d41f069e88567b56ff552825df9c5f333ac8a1afec0ade9d6f76b9c113b92b4081be0b SHA512 5f4c356602dcf82d5ba95d1dcde12eb7a004d75543fd5703a9d986485d3229f87e98e26e7fb3c2a6eb14a268545e2f1545fb48541ca41b66ef352ce1a2a42be4 DIST xmrig-6.9.0.tar.gz 1584717 BLAKE2B 9790b29b639fa308c3b58509de84e621cb63b895efe3f0c390a3efebf7edb7f4fc74f2017dc8d49a39e5bf5f3548eba2f05e6345cac42ad408f6a0d97371c878 SHA512 8fb65c742e0c95a92cd5068d7169a61540babba32c73fbc412e434a9ba6d2ba5299ca1477c59bdd9e06b5df1083d9ffb9d010dfc0c85b9789dda38ecc14fea86 diff --git a/net-misc/xmrig/xmrig-6.12.1.ebuild b/net-misc/xmrig/xmrig-6.12.1.ebuild new file mode 100644 index 000000000..62d0c96cd --- /dev/null +++ b/net-misc/xmrig/xmrig-6.12.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 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="+ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( dev-libs/openssl:= ) +" + +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() { + elog "Increase the vm.nr_hugepages sysctl value so that XMRig can allocate with huge pages." + optfeature "CPU specific performance tweaks" sys-apps/msr-tools +}