summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2022-01-25 11:58:30 -0500
committerCraig Andrews <candrews@gentoo.org>2022-01-25 11:59:20 -0500
commit8b49e22c8f3c49fd5219f744d95a1cebf3e3c5f1 (patch)
tree48325caa2916d44031ef45c17e2ee0b95ea21267 /net-misc/xmrig
parentsci-electronics/ngspice: added ngspice 36 (diff)
downloadgentoo-8b49e22c8f3c49fd5219f744d95a1cebf3e3c5f1.tar.gz
gentoo-8b49e22c8f3c49fd5219f744d95a1cebf3e3c5f1.tar.bz2
gentoo-8b49e22c8f3c49fd5219f744d95a1cebf3e3c5f1.zip
net-misc/xmrig: 6.16.3 version bump
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-misc/xmrig')
-rw-r--r--net-misc/xmrig/Manifest1
-rw-r--r--net-misc/xmrig/xmrig-6.16.3.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest
index 9325f9f02993..74fead009d5c 100644
--- a/net-misc/xmrig/Manifest
+++ b/net-misc/xmrig/Manifest
@@ -3,3 +3,4 @@ DIST xmrig-6.15.3.tar.gz 1744681 BLAKE2B 18ef0f9e0e496bded7fe860218871fc3b321d8c
DIST xmrig-6.16.0.tar.gz 2413469 BLAKE2B c7aded1f438613025286ae9047f7c3a0297f12730995acf3d412f567b850434c6663fa9c849d8c0a1169a4057e925644fbfeff11b502324c8512fdeaf0f365d6 SHA512 6b998410e36eb2e1f2b1c8cefc1faa232c96f0165b1766a97c83c0550fd1b8f3c1cf892245f951f9fda068e9a6d32c30552512668675e12b5d6b011d65d95745
DIST xmrig-6.16.1.tar.gz 2417592 BLAKE2B a74e7b4393f2d3af7bbea114261f4878c3edf09653bdacdaed02a261dc49ab34a9e0169897dde9e3f2e89bbebd3b302d158874e9db7ce2ae07984d6463a3465d SHA512 f4475018ad05a5cb55d814527db273d9b0260e3fde29d572a4762acdd3db58aa0baabfea9c549fb9239c2b076c32b6956227d789ca6aaa62524b3c381617f205
DIST xmrig-6.16.2.tar.gz 2421650 BLAKE2B a850e7dce19dfec87644b1d8c3f445141fbf9bce2f2fe8176a7c5e528da67417728e9c327a05dbc32ca0b7b5d0536a9d5c19dbe5cdb0106763693574e58c62c0 SHA512 b845ed501e8d9829ceaf9ab31b493997cc489dcedb1eef91624d1cffa9a7e8e5baa4f85653eb40a3f27debe1710f5770df0e582ab6e857386b6d5ac3bb101e67
+DIST xmrig-6.16.3.tar.gz 2422531 BLAKE2B fd98c16c05d2eb14092f6472670b04be5dde645dde85afbbd8aa6075b5b5e4182aa8e7ba40cb85836b871a7abcac0472df3f76984b150b501f92d3d2a4e88e54 SHA512 84b0b2c9a134030e1d5be03d66f4d6fde058ebc2864a1cc70957b600ddf08a4498a9d18fcc6529b9a742e60aac17633e1580202488af69f2acc8114ecc8eb78b
diff --git a/net-misc/xmrig/xmrig-6.16.3.ebuild b/net-misc/xmrig/xmrig-6.16.3.ebuild
new file mode 100644
index 000000000000..0b726e03276b
--- /dev/null
+++ b/net-misc/xmrig/xmrig-6.16.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 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-2.5.0:= )
+ 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"
+}