From 01c1ea3f035518b8872c0ab02b932b4dae534b86 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 7 May 2020 10:08:22 -0400 Subject: [PATCH] net-p2p/xmr-stak-rx: 1.0.5 version bump Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Craig Andrews --- net-p2p/xmr-stak-rx/Manifest | 1 + net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild | 65 ++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild diff --git a/net-p2p/xmr-stak-rx/Manifest b/net-p2p/xmr-stak-rx/Manifest index 1f52d9e56f64..9e70148cb4b9 100644 --- a/net-p2p/xmr-stak-rx/Manifest +++ b/net-p2p/xmr-stak-rx/Manifest @@ -1 +1,2 @@ DIST xmr-stak-rx-1.0.4.tar.gz 2595481 BLAKE2B acd0667301255ba145d42ea6a3f6acf731ca9946beccacd6db973a25a03c0e9f53dacb0e716f739f17f38e42b3ccb25e5af9052b7884ccfa0d5e89b6a3ab3c85 SHA512 ce2fb84e88cd3fe2d75d73c6027eea0823d3ac77463229ae838b97ba0e91d43d5f30365363049f7de7a7c1e8e85b5511850da86ecb07ae3db86d276241a7cce3 +DIST xmr-stak-rx-1.0.5.tar.gz 2596272 BLAKE2B 6d0923d7f0c5ed7751f2e38f9142dc3d4a216d4c5c9485ae41f9710fffffc8d7c20626f6d047366b879f9b40a2479613b0f403c078837f9a17564cacb5eb3590 SHA512 79e2a42f31f71cdbe27b89a31d302afc1a1897acd4440482d3cb0cee2c70e90018d64e941e392ebd536e552f46f0002d9dbc4a3efde7f562880ad4236677da56 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 new file mode 100644 index 000000000000..b82f8550d869 --- /dev/null +++ b/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake systemd + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git" + EGIT_BRANCH="xmr-stak-rx-dev" + inherit git-r3 + SRC_URI="" +else + SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}-rx.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/xmr-stak-${PV}-rx" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Monero RandomX Miner" +HOMEPAGE="https://github.com/fireice-uk/xmr-stak" +LICENSE="GPL-3" +SLOT="0" +IUSE="cuda hwloc opencl ssl webserver" + +DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit ) + hwloc? ( sys-apps/hwloc ) + opencl? ( virtual/opencl ) + ssl? ( dev-libs/openssl:0= ) + webserver? ( net-libs/libmicrohttpd )" +RDEPEND="${DEPEND}" + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCUDA_ENABLE=$(usex cuda) + -DHWLOC_ENABLE=$(usex hwloc) + -DMICROHTTPD_ENABLE=$(usex webserver) + -DOpenCL_ENABLE=$(usex opencl) + -DOpenSSL_ENABLE=$(usex ssl) + -DLIBRARY_OUTPUT_PATH=$(get_libdir) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + systemd_newunit "${FILESDIR}"/${PN}.service ${PN}.service + doinitd "${FILESDIR}"/${PN} + dodir /etc/xmr-stak-rx +} + +pkg_postinst() { + if [ ! -e "${ROOT}/etc/xmr-stak-rx/main.config" ]; then + ewarn "To use xmr-stack-rx:" + if use cuda || use opencl; then + ewarn "As root or as a user that is a member of the 'video' group," + fi + ewarn "run:" + 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" + 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." + fi +} -- 2.26.2