From 62e26774cee104210e9d9c084eaca891ed89e17b Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sat, 26 Mar 2022 21:01:20 -0400 Subject: Added xmrig-mo-6.16.4, updated README --- README.md | 11 ++++-- net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild | 57 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild diff --git a/README.md b/README.md index eafce24..802fdc0 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,15 @@ No guarantees to usability, or that they will even build. [net-misc/xmrig-mo](https://github.com/MoneroOcean/xmrig) # Installation -To add this overlay, run the following command: +Add a new file in /etc/portage/repos.conf/ +For example, /etc/portage/repos.conf/MrRoy-Overlay.conf +In this file, put the content below: - # eselect repository add MrRoy-Overlay git https://git.jroy.ca/MrRoy-Overlay + [MrRoy-Overlay] + location = /var/db/repos/MrRoy-Overlay + clone-depth = 0 + sync-type = git + sync-uri = https://git.jroy.ca/MrRoy-Overlay + auto-sync = yes Finally, run `emerge --sync MrRoy-Overlay` diff --git a/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild new file mode 100644 index 0000000..5ec6d12 --- /dev/null +++ b/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MO_PV="mo1" +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT and Argon2 miner for the MoneroOcean pool" +HOMEPAGE="https://xmrig.com https://moneroocean.stream/ https://github.com/MoneroOcean/xmrig" +SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz -> ${P}-${MO_PV}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cuda donate opencl +ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( dev-libs/openssl:= ) +" + +S="${WORKDIR}/xmrig-${PV}-${MO_PV}" + +#PATCHES=("${FILESDIR}/${PN}-nonotls.patch") + +src_prepare() { + #use donate || PATCHES+=("${FILESDIR}/${PN}-no-default-donate.patch") + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + + -DWITH_TLS=$(usex ssl) + -DWITH_OPENCL=$(usex opencl) + -DWITH_CUDA=$(usex cuda) + ) + + cmake_src_configure +} + +src_install() { + newbin "${BUILD_DIR}/xmrig" "xmrig-mo" +} + +pkg_postinst() { + einfo "Install sys-apps/msr-tools and load the msr kernel module so that" + einfo "XMRig can perform CPU specific tweaks like disabling the instruction" + einfo "prefetcher. Also remember to increase the vm.nr_hugepages sysctl" + einfo "value so that XMRig can allocate with huge pages." + einfo "" + einfo "XMRig-MoneroOcean has been installed as /usr/bin/xmrig-mo" + einfo "in order to differentiate between the original XMRig" +} -- cgit v1.2.3