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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A09E158086 for ; Mon, 29 Nov 2021 16:11:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C79CEE0933; Mon, 29 Nov 2021 16:11:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B868E0933 for ; Mon, 29 Nov 2021 16:11:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A41A033BDFC for ; Mon, 29 Nov 2021 16:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDCE61C1 for ; Mon, 29 Nov 2021 16:11:11 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1638202267.8081d810c05fe62c92344be148d8e99feb29cbf5.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/xmrig/Manifest net-misc/xmrig/xmrig-6.16.1.ebuild X-VCS-Directories: net-misc/xmrig/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 8081d810c05fe62c92344be148d8e99feb29cbf5 X-VCS-Branch: master Date: Mon, 29 Nov 2021 16:11:11 +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: dca2fabf-90be-4080-94e8-01797a991402 X-Archives-Hash: f07a453caebaa0845d5ec38d25351c1d commit: 8081d810c05fe62c92344be148d8e99feb29cbf5 Author: Craig Andrews gentoo org> AuthorDate: Mon Nov 29 16:10:39 2021 +0000 Commit: Craig Andrews gentoo org> CommitDate: Mon Nov 29 16:11:07 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8081d810 net-misc/xmrig: 6.16.1 version bump Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Craig Andrews gentoo.org> net-misc/xmrig/Manifest | 1 + net-misc/xmrig/xmrig-6.16.1.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index 25b1d4972808..e69f10cf0b7e 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -1,3 +1,4 @@ DIST xmrig-6.15.2.tar.gz 1743179 BLAKE2B eabbdb6d901c5b64162e502e5cef131ee8edcec9a93b090067b2cc498227c158aeadff34b505800908b3a5f60b5db70812d1c5aa8330ec73de80b9376d679f74 SHA512 17e8f5bbbd1ce1bd834db0a9d1cae2635390a62ae370c9ab2fada1cde2d49dffde12da7b4c7ab0d61e9b9776067c760b9bb936ac8440c6b825de3e5850559a9c DIST xmrig-6.15.3.tar.gz 1744681 BLAKE2B 18ef0f9e0e496bded7fe860218871fc3b321d8cd9182c6694d62115d36383c2854e7b0daac09800ee5b69a1ceac5f7d6cb43695acb40b2f7fc9bfcd8e7fa9a76 SHA512 8c20e2a89405cb7fb3763b6184f6db9dbbdb6628e6d5d3cb62c35d87aa4c54daab5efe8682ed0f0ec3bb6577af0d0e5f41f2f864d52eee41081449e372649a2a DIST xmrig-6.16.0.tar.gz 2413469 BLAKE2B c7aded1f438613025286ae9047f7c3a0297f12730995acf3d412f567b850434c6663fa9c849d8c0a1169a4057e925644fbfeff11b502324c8512fdeaf0f365d6 SHA512 6b998410e36eb2e1f2b1c8cefc1faa232c96f0165b1766a97c83c0550fd1b8f3c1cf892245f951f9fda068e9a6d32c30552512668675e12b5d6b011d65d95745 +DIST xmrig-6.16.1.tar.gz 2417592 BLAKE2B a74e7b4393f2d3af7bbea114261f4878c3edf09653bdacdaed02a261dc49ab34a9e0169897dde9e3f2e89bbebd3b302d158874e9db7ce2ae07984d6463a3465d SHA512 f4475018ad05a5cb55d814527db273d9b0260e3fde29d572a4762acdd3db58aa0baabfea9c549fb9239c2b076c32b6956227d789ca6aaa62524b3c381617f205 diff --git a/net-misc/xmrig/xmrig-6.16.1.ebuild b/net-misc/xmrig/xmrig-6.16.1.ebuild new file mode 100644 index 000000000000..2639977e5a05 --- /dev/null +++ b/net-misc/xmrig/xmrig-6.16.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake systemd + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" +fi + +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 +) + +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 + keepdir /etc/xmrig + systemd_dounit "${FILESDIR}"/xmrig.service + dobin "${BUILD_DIR}/xmrig" + dobin "${S}/scripts/enable_1gb_pages.sh" + dobin "${S}/scripts/randomx_boost.sh" +}