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 33EBC1580B1 for ; Tue, 31 Aug 2021 15:15:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58C5DE09C9; Tue, 31 Aug 2021 15:15:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 3B990E09C9 for ; Tue, 31 Aug 2021 15:15:18 +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 D197E33BF3C for ; Tue, 31 Aug 2021 15:15:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35EA639 for ; Tue, 31 Aug 2021 15:15:15 +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: <1630422912.709c268c2ea31a38a48d53717e70745545c446d0.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.15.0.ebuild X-VCS-Directories: net-misc/xmrig/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 709c268c2ea31a38a48d53717e70745545c446d0 X-VCS-Branch: master Date: Tue, 31 Aug 2021 15:15:15 +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: cb3d0cbe-de46-4227-97a1-dcbcc1ee3d8f X-Archives-Hash: 217ba2914b6dca2e7cbefcfc5a6efaba commit: 709c268c2ea31a38a48d53717e70745545c446d0 Author: Craig Andrews gentoo org> AuthorDate: Tue Aug 31 15:10:13 2021 +0000 Commit: Craig Andrews gentoo org> CommitDate: Tue Aug 31 15:15:12 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=709c268c net-misc/xmrig: 6.15.0 version bump Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Craig Andrews gentoo.org> net-misc/xmrig/Manifest | 1 + net-misc/xmrig/xmrig-6.15.0.ebuild | 64 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index 8b3ffd06c8f..b66d50c4220 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -3,3 +3,4 @@ DIST xmrig-6.13.0.tar.gz 1694984 BLAKE2B 6449df3fe7a42c5caa9050d0e7ef8723cb36175 DIST xmrig-6.13.1.tar.gz 1695005 BLAKE2B 8094a7f247d1b1f714a22fcdddcbede0d859f4883c6fcb1789ce134bdae31875da434679bdb141cd332a575ca0e4fa80b8ca96e603e8c381e9073c58394abe71 SHA512 f1a4e11f6e13bd275f2d867f1a4826cb244bdc9d157e590870ebc4dcd3cafc522bf7f46cfb4eb81e129fc3f9dbef59219288088c42e8f6b876ac16b5b6224323 DIST xmrig-6.14.0.tar.gz 1698011 BLAKE2B 62391c7dde6d3d4fbb4cb78e53c6f704fb277830257148a03fc059e0eebd6a2fc7ba723a1caafe0e3920b15c3abe7a35a774743fdd0d0a800879fdc666ebed45 SHA512 de1cc3543a690a65cb50e629114324e95d4769dc3610c6dde0fff937206df3949907f8a21a4e4533bee71958e6febbaf4a23c3092c1e67a763f4ffea11770591 DIST xmrig-6.14.1.tar.gz 1698951 BLAKE2B 99a0b3407aa0f0d835e04b407350c07f6e3adaf10e839217343aa56368d61665a2a83b75d4965c3573cb46018f20918c34cab295edd5c8398d0e7581e414976e SHA512 11d877e6b96f224fe317f74e019cf5df22a267d1b89c3d8ee775a2e3508e4d2f276f7ce9de5cc09430f8a8f56183595166f75d10bd8a3598530daec3bffb7788 +DIST xmrig-6.15.0.tar.gz 1742192 BLAKE2B 6495a48b9cc9e5a2ef851d6ffbeb0f1e3ce2fbd4ae3aaaef8acffcdff157006622a51fc23b2337933b1ced100a38fee334b240188aacaf8263f1806a39492f1f SHA512 e3f9af9fdf19512cddbb1f1a5655f9710fba486bc6f4a4eda6661ad7201d8909ada1308890dccf34af65d18cd687390c238b9b3522af6c1cafb360713ceb2985 diff --git a/net-misc/xmrig/xmrig-6.15.0.ebuild b/net-misc/xmrig/xmrig-6.15.0.ebuild new file mode 100644 index 00000000000..8ad79070a47 --- /dev/null +++ b/net-misc/xmrig/xmrig-6.15.0.ebuild @@ -0,0 +1,64 @@ +# 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 +ssl" + +DEPEND=" + dev-libs/libuv:= + hwloc? ( sys-apps/hwloc:= ) + 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=OFF + -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" +}