diff options
author | Craig Andrews <candrews@gentoo.org> | 2021-11-01 10:30:18 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2021-11-01 10:30:36 -0400 |
commit | 3230194e8d711676b8f6b32f11aa40a80908d7ef (patch) | |
tree | c3f4b1f1f7b6be365d1cfd5168ab2b00c2dd48cd /net-misc/xmrig | |
parent | media-libs/opencolorio: add subslot dep on openimageio (diff) | |
download | gentoo-3230194e8d711676b8f6b32f11aa40a80908d7ef.tar.gz gentoo-3230194e8d711676b8f6b32f11aa40a80908d7ef.tar.bz2 gentoo-3230194e8d711676b8f6b32f11aa40a80908d7ef.zip |
net-misc/xmrig: 6.15.3 version bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-misc/xmrig')
-rw-r--r-- | net-misc/xmrig/Manifest | 1 | ||||
-rw-r--r-- | net-misc/xmrig/files/xmrig.service | 1 | ||||
-rw-r--r-- | net-misc/xmrig/xmrig-6.15.3.ebuild | 65 |
3 files changed, 67 insertions, 0 deletions
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index d9a34f1be236..da0fac0fc077 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -1,2 +1,3 @@ DIST xmrig-6.15.1.tar.gz 1743106 BLAKE2B d98537cbc75f7ce9e1c0db8ef3e23d7dd198f0d30b3feb26bac6e24649fdcfd503f27651c36674af259903cca6fbfdc9a407923a870be2ba586528fe84cfc529 SHA512 18438e6d6140b255ec24104baf20cb7b333520405fcbff1e3a5ad6b4794b7f9178d73baea48d8c2d05490fba75365102212639152d60ba79af89e0275a989e24 DIST xmrig-6.15.2.tar.gz 1743179 BLAKE2B eabbdb6d901c5b64162e502e5cef131ee8edcec9a93b090067b2cc498227c158aeadff34b505800908b3a5f60b5db70812d1c5aa8330ec73de80b9376d679f74 SHA512 17e8f5bbbd1ce1bd834db0a9d1cae2635390a62ae370c9ab2fada1cde2d49dffde12da7b4c7ab0d61e9b9776067c760b9bb936ac8440c6b825de3e5850559a9c +DIST xmrig-6.15.3.tar.gz 1744681 BLAKE2B 18ef0f9e0e496bded7fe860218871fc3b321d8cd9182c6694d62115d36383c2854e7b0daac09800ee5b69a1ceac5f7d6cb43695acb40b2f7fc9bfcd8e7fa9a76 SHA512 8c20e2a89405cb7fb3763b6184f6db9dbbdb6628e6d5d3cb62c35d87aa4c54daab5efe8682ed0f0ec3bb6577af0d0e5f41f2f864d52eee41081449e372649a2a diff --git a/net-misc/xmrig/files/xmrig.service b/net-misc/xmrig/files/xmrig.service index 16a924aae410..5b5c4c3d2931 100644 --- a/net-misc/xmrig/files/xmrig.service +++ b/net-misc/xmrig/files/xmrig.service @@ -11,6 +11,7 @@ ExecStart=/usr/bin/xmrig --config=/etc/xmrig/config.json StandardOutput=journal StandardError=journal DynamicUser=true +Nice=19 CPUSchedulingPolicy=idle PrivateTmp=true ProtectHome=true diff --git a/net-misc/xmrig/xmrig-6.15.3.ebuild b/net-misc/xmrig/xmrig-6.15.3.ebuild new file mode 100644 index 000000000000..2639977e5a05 --- /dev/null +++ b/net-misc/xmrig/xmrig-6.15.3.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" +} |