1 |
commit: 044e4f9b360802de346df695f07198965b26f620 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 5 16:28:53 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 5 17:09:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=044e4f9b |
7 |
|
8 |
net-misc/xmrig: add 6.17.0 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
net-misc/xmrig/Manifest | 1 + |
13 |
net-misc/xmrig/xmrig-6.17.0.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest |
17 |
index 50d0ae7467de..6ce9ad109523 100644 |
18 |
--- a/net-misc/xmrig/Manifest |
19 |
+++ b/net-misc/xmrig/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST xmrig-6.16.4.tar.gz 2422895 BLAKE2B bdf4c2ee41b11a5a0d72518aadb71677536dee4ec80af191a337bddb9623e9ec8d0d3f5328732be6246eb08b28f845927ae611e2c8dc66d1b42f1c8f56a3451f SHA512 a66f5d8ef217a4ea31d65c03cc863be694947ce536ca66b0b66f523557fba1651accdc196b6ca1dbc34bd5688041248a3c30e9ee122394207f7e47d82d9e987d |
22 |
+DIST xmrig-6.17.0.tar.gz 2443393 BLAKE2B 01fa7682dae6dd4aaa0f3b677bedfb3b2e9de35799f9bae0aa1a733b35152d1d6c56dfed06b9aa54fe64df4f40029d2657b9fc95e541746bd8e28bff15eef96b SHA512 a8361a5ccc8237afb59c496d88d920b7222158d9f874ff891f0cb78278e6e00881b75f4e129858c44ffc7d90227c995121f6611f1a20f84139930a883271f0d6 |
23 |
|
24 |
diff --git a/net-misc/xmrig/xmrig-6.17.0.ebuild b/net-misc/xmrig/xmrig-6.17.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..0b726e03276b |
27 |
--- /dev/null |
28 |
+++ b/net-misc/xmrig/xmrig-6.17.0.ebuild |
29 |
@@ -0,0 +1,65 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit cmake systemd |
36 |
+ |
37 |
+DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" |
38 |
+HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" |
39 |
+ |
40 |
+if [[ ${PV} == *9999 ]] ; then |
41 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~arm64" |
46 |
+fi |
47 |
+ |
48 |
+LICENSE="Apache-2.0 GPL-3+ MIT" |
49 |
+SLOT="0" |
50 |
+IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl" |
51 |
+ |
52 |
+DEPEND=" |
53 |
+ dev-libs/libuv:= |
54 |
+ hwloc? ( >=sys-apps/hwloc-2.5.0:= ) |
55 |
+ opencl? ( virtual/opencl ) |
56 |
+ ssl? ( dev-libs/openssl:= ) |
57 |
+" |
58 |
+RDEPEND=" |
59 |
+ ${DEPEND} |
60 |
+ !arm64? ( sys-apps/msr-tools ) |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${PN}-6.12.2-nonotls.patch |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ if ! use donate ; then |
69 |
+ sed -i 's/1;/0;/g' src/donate.h || die |
70 |
+ fi |
71 |
+ |
72 |
+ cmake_src_prepare |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local mycmakeargs=( |
77 |
+ -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1) |
78 |
+ -DWITH_HWLOC=$(usex hwloc) |
79 |
+ -DWITH_TLS=$(usex ssl) |
80 |
+ -DWITH_OPENCL=$(usex opencl) |
81 |
+ -DWITH_CUDA=OFF |
82 |
+ ) |
83 |
+ |
84 |
+ cmake_src_configure |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ default |
89 |
+ keepdir /etc/xmrig |
90 |
+ systemd_dounit "${FILESDIR}"/xmrig.service |
91 |
+ dobin "${BUILD_DIR}/xmrig" |
92 |
+ dobin "${S}/scripts/enable_1gb_pages.sh" |
93 |
+ dobin "${S}/scripts/randomx_boost.sh" |
94 |
+} |