1 |
commit: 01c1ea3f035518b8872c0ab02b932b4dae534b86 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 7 14:08:22 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 14:10:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01c1ea3f |
7 |
|
8 |
net-p2p/xmr-stak-rx: 1.0.5 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-p2p/xmr-stak-rx/Manifest | 1 + |
14 |
net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild | 65 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/net-p2p/xmr-stak-rx/Manifest b/net-p2p/xmr-stak-rx/Manifest |
18 |
index 1f52d9e56f6..9e70148cb4b 100644 |
19 |
--- a/net-p2p/xmr-stak-rx/Manifest |
20 |
+++ b/net-p2p/xmr-stak-rx/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST xmr-stak-rx-1.0.4.tar.gz 2595481 BLAKE2B acd0667301255ba145d42ea6a3f6acf731ca9946beccacd6db973a25a03c0e9f53dacb0e716f739f17f38e42b3ccb25e5af9052b7884ccfa0d5e89b6a3ab3c85 SHA512 ce2fb84e88cd3fe2d75d73c6027eea0823d3ac77463229ae838b97ba0e91d43d5f30365363049f7de7a7c1e8e85b5511850da86ecb07ae3db86d276241a7cce3 |
23 |
+DIST xmr-stak-rx-1.0.5.tar.gz 2596272 BLAKE2B 6d0923d7f0c5ed7751f2e38f9142dc3d4a216d4c5c9485ae41f9710fffffc8d7c20626f6d047366b879f9b40a2479613b0f403c078837f9a17564cacb5eb3590 SHA512 79e2a42f31f71cdbe27b89a31d302afc1a1897acd4440482d3cb0cee2c70e90018d64e941e392ebd536e552f46f0002d9dbc4a3efde7f562880ad4236677da56 |
24 |
|
25 |
diff --git a/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild b/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b82f8550d86 |
28 |
--- /dev/null |
29 |
+++ b/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild |
30 |
@@ -0,0 +1,65 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake systemd |
37 |
+ |
38 |
+if [[ ${PV} == "9999" ]] ; then |
39 |
+ EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git" |
40 |
+ EGIT_BRANCH="xmr-stak-rx-dev" |
41 |
+ inherit git-r3 |
42 |
+ SRC_URI="" |
43 |
+else |
44 |
+ SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}-rx.tar.gz -> ${P}.tar.gz" |
45 |
+ S="${WORKDIR}/xmr-stak-${PV}-rx" |
46 |
+ KEYWORDS="~amd64" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Monero RandomX Miner" |
50 |
+HOMEPAGE="https://github.com/fireice-uk/xmr-stak" |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+IUSE="cuda hwloc opencl ssl webserver" |
54 |
+ |
55 |
+DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit ) |
56 |
+ hwloc? ( sys-apps/hwloc ) |
57 |
+ opencl? ( virtual/opencl ) |
58 |
+ ssl? ( dev-libs/openssl:0= ) |
59 |
+ webserver? ( net-libs/libmicrohttpd )" |
60 |
+RDEPEND="${DEPEND}" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ cmake_src_prepare |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DCUDA_ENABLE=$(usex cuda) |
69 |
+ -DHWLOC_ENABLE=$(usex hwloc) |
70 |
+ -DMICROHTTPD_ENABLE=$(usex webserver) |
71 |
+ -DOpenCL_ENABLE=$(usex opencl) |
72 |
+ -DOpenSSL_ENABLE=$(usex ssl) |
73 |
+ -DLIBRARY_OUTPUT_PATH=$(get_libdir) |
74 |
+ ) |
75 |
+ cmake_src_configure |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ cmake_src_install |
80 |
+ systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service |
81 |
+ doinitd "${FILESDIR}"/${PN} |
82 |
+ dodir /etc/xmr-stak-rx |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ if [ ! -e "${ROOT}/etc/xmr-stak-rx/main.config" ]; then |
87 |
+ ewarn "To use xmr-stack-rx:" |
88 |
+ if use cuda || use opencl; then |
89 |
+ ewarn "As root or as a user that is a member of the 'video' group," |
90 |
+ fi |
91 |
+ ewarn "run:" |
92 |
+ ewarn "/usr/bin/xmr-stak-rx --cpu /etc/xmr-stak-rx/cpu.config --amd /etc/xmr-stak-rx/amd.config --nvidia /etc/xmr-stak-rx/nvidia.config -c /etc/xmr-stak-rx/main.config -C /etc/xmr-stak-rx/pools.txt" |
93 |
+ ewarn "xmr-stak-rx can now be terminated and 'systemctl start xmr-stak-rx' or '/etc/init.d/xmr-stak-rx start' can be used." |
94 |
+ fi |
95 |
+} |