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 D21F813835B 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 81570E087B; Wed, 28 Apr 2021 02:16:53 +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 6822CE0882 for ; Wed, 28 Apr 2021 02:16:53 +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 15F04340C35 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 5F08573D 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: <1619574596.123dcfe6e6ae1384f6ada555cbf9de718707037a.telans@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig-mo/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/xmrig-mo/Manifest net-misc/xmrig-mo/xmrig-mo-6.12.1.ebuild X-VCS-Directories: net-misc/xmrig-mo/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: 123dcfe6e6ae1384f6ada555cbf9de718707037a 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: 5caed4fd-ee9a-47f5-8dc3-ff2c4df31f2f X-Archives-Hash: ed0beb70de108aa2cda74fb005112833 commit: 123dcfe6e6ae1384f6ada555cbf9de718707037a Author: Theo Anderson posteo de> AuthorDate: Wed Apr 28 01:49:56 2021 +0000 Commit: Theo Anderson posteo de> CommitDate: Wed Apr 28 01:49:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=123dcfe6 net-misc/xmrig-mo: add 6.12.1 Signed-off-by: Theo Anderson posteo.de> net-misc/xmrig-mo/Manifest | 1 + net-misc/xmrig-mo/xmrig-mo-6.12.1.ebuild | 56 ++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest index 4f4ca55dc..ba43952a8 100644 --- a/net-misc/xmrig-mo/Manifest +++ b/net-misc/xmrig-mo/Manifest @@ -1,2 +1,3 @@ +DIST xmrig-mo-6.12.1-mo2.tar.gz 1684464 BLAKE2B 76422786292a59fb2cd47cb5e84a21b273fa901ca599c50571f9aab5c0c951b7525da65119402eaadbce05434d98fdaed4d429fce4f27ece614ed9100872c440 SHA512 f37d3e74705cb9f2b11d341f81c1917ca51fe2dc2d6294b901637f55239620ecc8068def08ffc4bdc8a534889c11624b06fc3293b184e045e3d9d18b779786c1 DIST xmrig-mo-6.8.2-mo1.tar.gz 1676858 BLAKE2B b1723329f4370ec7f529105615409a2669a810fbfb55402db730c7a27610b8bd24524d83c9cedcd9403d6727d1016f301dd396fcf18b487ed31344131ecff0b4 SHA512 b5a6c39867b29009a161586949564968ada6ee88a570ad314826be7d67be1a4f14dd894234fd71999250523b67ef7f07239300ede9879b2e7299b47d6ecc778f DIST xmrig-mo-6.9.0-mo1.tar.gz 1678548 BLAKE2B 9d1ea56c302ac244be2bac9326e367bba3b131f07dee23cc4949ba84b4115ef99e60073eb40666e1295fca9e14b8510b323664cb3628863dff90d0c6603abc7e SHA512 125aa555323bae6275a041c5f96e85ba6c55885baaa38448b8cfd4f04ed6ed2185b42435d435d49a69ec70db7b1b21267a25f258a815a2c86aec23383959a936 diff --git a/net-misc/xmrig-mo/xmrig-mo-6.12.1.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.12.1.ebuild new file mode 100644 index 000000000..887bcedc3 --- /dev/null +++ b/net-misc/xmrig-mo/xmrig-mo-6.12.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake optfeature + +MO_PV="mo2" +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT and Argon2 miner for the MoneroOcean pool" +HOMEPAGE="https://moneroocean.stream/ https://github.com/MoneroOcean/xmrig" +SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz -> ${P}-${MO_PV}.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:= ) +" + +S="${WORKDIR}/xmrig-${PV}-${MO_PV}" + +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() { + newbin "${BUILD_DIR}/xmrig" xmrig-mo + dodoc -r doc/*.md + einstalldocs +} + +pkg_postinst() { + elog "Increase the vm.nr_hugepages sysctl value so that XMRig can allocate with huge pages." + elog "XMRig-MoneroOcean has been installed as /usr/bin/xmrig-mo" + elog "in order to differentiate between the original XMRig" + optfeature "CPU specific performance tweaks" sys-apps/msr-tools +}