From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DCB50138335 for ; Tue, 3 Dec 2019 21:38:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AEF0E086F; Tue, 3 Dec 2019 21:38:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6128E086F for ; Tue, 3 Dec 2019 21:38:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 900E834D2A4 for ; Tue, 3 Dec 2019 21:38:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 130B68CD for ; Tue, 3 Dec 2019 21:38:48 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1575409122.15c97155f0735d5dbc60a31057f8e6e15896f2b3.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/xmr-stak-rx/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/xmr-stak-rx/Manifest net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.2.ebuild X-VCS-Directories: net-p2p/xmr-stak-rx/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 15c97155f0735d5dbc60a31057f8e6e15896f2b3 X-VCS-Branch: master Date: Tue, 3 Dec 2019 21:38:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 13ba6dd5-21e9-4c01-986f-e50f995a6868 X-Archives-Hash: 98593de4c4e11b124fa00c71643f8e0a commit: 15c97155f0735d5dbc60a31057f8e6e15896f2b3 Author: Craig Andrews gentoo org> AuthorDate: Tue Dec 3 21:38:07 2019 +0000 Commit: Craig Andrews gentoo org> CommitDate: Tue Dec 3 21:38:42 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15c97155 net-p2p/xmr-stak-rx: 1.0.2 version bump Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Craig Andrews gentoo.org> net-p2p/xmr-stak-rx/Manifest | 1 + net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.2.ebuild | 65 ++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/net-p2p/xmr-stak-rx/Manifest b/net-p2p/xmr-stak-rx/Manifest index a85b06cd744..60b80839b5d 100644 --- a/net-p2p/xmr-stak-rx/Manifest +++ b/net-p2p/xmr-stak-rx/Manifest @@ -1 +1,2 @@ DIST xmr-stak-rx-1.0.1.tar.gz 500735 BLAKE2B 112b75122f35358c8558dec116a5f37bbbd13e9f57a767e03e85da37ab4a408831aa50bf5f2415451f776492b42c5a4a36de730fefc7d99bb13f437c9007d549 SHA512 488884948ad66445c37725397152201883feef8aff5afecaa93297a5bb45e65173b095e2e796d729bd8e9c778e94ee6fb65146250be54c39b10635a2569b6866 +DIST xmr-stak-rx-1.0.2.tar.gz 2590320 BLAKE2B e4bd4770ebd491182633a544a89e9ece25e471dfded7592680e0685883a805b26a0266982c0474f8a0db2c0ecf40412e4976c3ca7a4dc9f5f91f59bab947d277 SHA512 5a31ae5ae6e27c6bd2300c5e5056de733037d149fa7656b91da37f4e9dfb4f1cd1986503c30b84c4a5ee2539c12992dd5e5e883fb808d435d50484290cdb7e87 diff --git a/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.2.ebuild b/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.2.ebuild new file mode 100644 index 00000000000..5bd13426b52 --- /dev/null +++ b/net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils 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-utils_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-utils_src_configure +} + +src_install() { + cmake-utils_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 +}