summaryrefslogtreecommitdiff
path: root/net-misc/xmrig
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
commite23a08d0c97a0cc415aaa165da840b056f93c997 (patch)
tree4c5f7db60483518201fef36f8cc0712789a08db2 /net-misc/xmrig
parent391b5b359a346aff490103da7dddc85047f83830 (diff)
gentoo resync : 08.10.2021
Diffstat (limited to 'net-misc/xmrig')
-rw-r--r--net-misc/xmrig/Manifest2
-rw-r--r--net-misc/xmrig/xmrig-6.15.2.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest
index b3056b784bd5..186248c483f4 100644
--- a/net-misc/xmrig/Manifest
+++ b/net-misc/xmrig/Manifest
@@ -1,6 +1,8 @@
AUX xmrig-6.12.2-nonotls.patch 578 BLAKE2B 4d71c8d35be47fd12a019d7b8cb6e1b8787e153ab543b9b1e4079c911671ff886042d90cd439552bf364208d9a4afcc7fe088b50598bbc20e347b532dfc92a2d SHA512 fea6041879c414a4fc6006a413b217801d674f7b5d849d95c119d07e191c5d7a5e99fb959d89974b68be9df132ff480f8492645ba6821b369444b102596b06f3
AUX xmrig.service 938 BLAKE2B e3b29f4fc824eee918e69175f9df3eed5c4825289c7d9b1d98ba0a3ecc8e8a9df89ad341788bd0c8850974a3bcfa3e644a7803b8339e36958f3b3b91322e323d SHA512 5012259b9d064854cfb96ba454d3bb73ea43e0bca67005126856d9ce94baa0fb986384fb203ad1a9b09ca1289cc9b9e5f7bea4682bdfc4ae46ec67e156720d84
DIST xmrig-6.15.1.tar.gz 1743106 BLAKE2B d98537cbc75f7ce9e1c0db8ef3e23d7dd198f0d30b3feb26bac6e24649fdcfd503f27651c36674af259903cca6fbfdc9a407923a870be2ba586528fe84cfc529 SHA512 18438e6d6140b255ec24104baf20cb7b333520405fcbff1e3a5ad6b4794b7f9178d73baea48d8c2d05490fba75365102212639152d60ba79af89e0275a989e24
+DIST xmrig-6.15.2.tar.gz 1743179 BLAKE2B eabbdb6d901c5b64162e502e5cef131ee8edcec9a93b090067b2cc498227c158aeadff34b505800908b3a5f60b5db70812d1c5aa8330ec73de80b9376d679f74 SHA512 17e8f5bbbd1ce1bd834db0a9d1cae2635390a62ae370c9ab2fada1cde2d49dffde12da7b4c7ab0d61e9b9776067c760b9bb936ac8440c6b825de3e5850559a9c
EBUILD xmrig-6.15.1-r1.ebuild 1333 BLAKE2B 218caecf6e9d293841b0a72bb306cdaab67abaf294a3e47fe749eefc6f0e6ec59af992beb22e1fa9809cfd9972af8361209a25eaaa855c9d01c5fd46a5208053 SHA512 01d5d0c9a57bd8c70beefabb81c033ee27599d4e9d5a492c53388910f8ea6b89a84aab666ff202d72b07b20faa65894afd5093a77903d75b9fd4a1662ed47ceb
+EBUILD xmrig-6.15.2.ebuild 1333 BLAKE2B 218caecf6e9d293841b0a72bb306cdaab67abaf294a3e47fe749eefc6f0e6ec59af992beb22e1fa9809cfd9972af8361209a25eaaa855c9d01c5fd46a5208053 SHA512 01d5d0c9a57bd8c70beefabb81c033ee27599d4e9d5a492c53388910f8ea6b89a84aab666ff202d72b07b20faa65894afd5093a77903d75b9fd4a1662ed47ceb
EBUILD xmrig-9999.ebuild 1333 BLAKE2B 218caecf6e9d293841b0a72bb306cdaab67abaf294a3e47fe749eefc6f0e6ec59af992beb22e1fa9809cfd9972af8361209a25eaaa855c9d01c5fd46a5208053 SHA512 01d5d0c9a57bd8c70beefabb81c033ee27599d4e9d5a492c53388910f8ea6b89a84aab666ff202d72b07b20faa65894afd5093a77903d75b9fd4a1662ed47ceb
MISC metadata.xml 1033 BLAKE2B 9f8e1d1a6e6cc807536149bec4b2b2531a49f1915a3628e5ae9b55f5fd4c85a924403807bc34a8c1a065282c8e5c27cf2f87bae4a90d3b182f5a3a058407a601 SHA512 4e47c4fea9083f5bcfdd53d2a53f04fca9a5cb088b71d28d960d3fbf21a91e153fb99a738a986d7bff6ced690a86333801d3f27d2e6ca69b4445a2fba5a17b62
diff --git a/net-misc/xmrig/xmrig-6.15.2.ebuild b/net-misc/xmrig/xmrig-6.15.2.ebuild
new file mode 100644
index 000000000000..2639977e5a05
--- /dev/null
+++ b/net-misc/xmrig/xmrig-6.15.2.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"
+}