Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/xmr-stak/
Date: Thu, 31 May 2018 12:26:03
Message-Id: 1527769474.a76e0210ae435823f55ba6aaa0bf9c4f74e6178e.candrews@gentoo
1 commit: a76e0210ae435823f55ba6aaa0bf9c4f74e6178e
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 31 12:24:34 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu May 31 12:24:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a76e0210
7
8 net-p2p/xmr-stak: 2.4.4 version bump
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-p2p/xmr-stak/Manifest | 1 +
13 net-p2p/xmr-stak/xmr-stak-2.4.4.ebuild | 66 ++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/net-p2p/xmr-stak/Manifest b/net-p2p/xmr-stak/Manifest
17 index 86e0727ff71..4bfd2038a63 100644
18 --- a/net-p2p/xmr-stak/Manifest
19 +++ b/net-p2p/xmr-stak/Manifest
20 @@ -1 +1,2 @@
21 DIST xmr-stak-2.4.3.tar.gz 335672 BLAKE2B 570fbb86144ba1a283c9a1733476e90caf24dcf0048733007ec189342a0e375f65cca74afb88ca7b08370a7db9a9a7d146f0c9a4a2cd57c480ec5b26928e98fa SHA512 a1e38c25827af8f88c1fdeed0fb3e731e92ac632d846f63dfe6fcb634eec0496e1d64b2745e6dc040dabc55a90963f587442e912c5aa72c9208cebffcc06db7c
22 +DIST xmr-stak-2.4.4.tar.gz 337845 BLAKE2B d66e650aea8a299ec77c183b321330ca1a3faee11a17046e0d88e8a11bb4649f2305de1287d77f9346071e217762d2e6a44bd26a37173db05ab648ed1e20ba60 SHA512 3cd0bbf2b489458888aa02302a1652093ceae38c085a16441bc2f6e315a82e0e00755544df0c75178a66e567a44e9d7537056b0fa5f3e7c7aee9a13b013c2411
23
24 diff --git a/net-p2p/xmr-stak/xmr-stak-2.4.4.ebuild b/net-p2p/xmr-stak/xmr-stak-2.4.4.ebuild
25 new file mode 100644
26 index 00000000000..0b8976d77f8
27 --- /dev/null
28 +++ b/net-p2p/xmr-stak/xmr-stak-2.4.4.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit cmake-utils systemd
36 +
37 +if [[ ${PV} == "9999" ]] ; then
38 + EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git"
39 + EGIT_BRANCH="dev"
40 + inherit git-r3
41 + SRC_URI=""
42 +else
43 + SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 + KEYWORDS="~amd64"
45 +fi
46 +
47 +DESCRIPTION="Unified all-in-one Monero miner"
48 +HOMEPAGE="https://github.com/fireice-uk/xmr-stak"
49 +LICENSE="GPL-3"
50 +SLOT="0"
51 +IUSE="cuda devfee hwloc opencl ssl webserver"
52 +
53 +DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit )
54 + hwloc? ( sys-apps/hwloc )
55 + opencl? ( virtual/opencl )
56 + ssl? ( dev-libs/openssl:0= )
57 + webserver? ( net-libs/libmicrohttpd )"
58 +RDEPEND="${DEPEND}"
59 +
60 +src_prepare() {
61 + cmake-utils_src_prepare
62 + if ! use devfee; then
63 + sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die
64 + fi
65 +}
66 +
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DCUDA_ENABLE=$(usex cuda)
70 + -DHWLOC_ENABLE=$(usex hwloc)
71 + -DMICROHTTPD_ENABLE=$(usex webserver)
72 + -DOpenCL_ENABLE=$(usex opencl)
73 + -DOpenSSL_ENABLE=$(usex ssl)
74 + -DLIBRARY_OUTPUT_PATH=$(get_libdir)
75 + )
76 + cmake-utils_src_configure
77 +}
78 +
79 +src_install() {
80 + cmake-utils_src_install
81 + systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service
82 + dodir /etc/xmr-stak
83 +}
84 +
85 +pkg_postinst() {
86 + if [ ! -e "${ROOT}etc/xmr-stak/main.config" ]; then
87 + ewarn "To use xmr-stack:"
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 --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config"
93 + ewarn "If the systemd will be used, xmr-stak can now be terminated and 'systemctl start xmr-stak' can be used."
94 + fi
95 +}