diff options
author | Theo Anderson <telans@posteo.de> | 2021-02-16 00:52:12 +1300 |
---|---|---|
committer | Theo Anderson <telans@posteo.de> | 2021-02-16 00:52:12 +1300 |
commit | e03a7b8508485f3778a0c902fe5aef55b6561046 (patch) | |
tree | cbcf649dd561680ff53c537b2e134d7f7f4867ce /net-misc/xmrig-mo | |
parent | dev-python/graphql-core: drop old (diff) | |
download | guru-e03a7b8508485f3778a0c902fe5aef55b6561046.tar.gz guru-e03a7b8508485f3778a0c902fe5aef55b6561046.tar.bz2 guru-e03a7b8508485f3778a0c902fe5aef55b6561046.zip |
net-misc/xmrig{,-mo}: bump to 6.8.2
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
Diffstat (limited to 'net-misc/xmrig-mo')
-rw-r--r-- | net-misc/xmrig-mo/Manifest | 1 | ||||
-rw-r--r-- | net-misc/xmrig-mo/xmrig-mo-6.8.2.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest index b8d61c427..71a228228 100644 --- a/net-misc/xmrig-mo/Manifest +++ b/net-misc/xmrig-mo/Manifest @@ -1,2 +1,3 @@ DIST xmrig-mo-6.7.2-mo1.tar.gz 1665361 BLAKE2B 0f2571f6b7f6946af20d132b4c1f97bad6ff841f1d71e6c36617fa99a8ebe4afcc09333db9a3c64abf15574fbf78ea94bd2f62adee7d9ca0aa3d005e944cbda0 SHA512 9f9383bfe92f7b39ed1f83f30461c25d8a76a2ae89a2bcd6b9633febcaf20e833a098d9859f92132620fd43338e532e09293f65677dba11ab03c36a0160cc945 DIST xmrig-mo-6.8.1-mo2.tar.gz 1676917 BLAKE2B 4302a7ad1816d6ad7a61e2003859cb1608e453f09910fb66d1d2ac2237b2ab7142fe6ded5808c29a944f531902d6841d6005fb616882683a93940c54b14d2ffe SHA512 7ebeaf2b3c6395cc681fbb3bc7563ffe50d1c4f8688a584b739eb63e1b66925d9d8a29f24876fdc82b46493da1f2947f058cd207fc245808b3d9496e7972733a +DIST xmrig-mo-6.8.2-mo1.tar.gz 1676858 BLAKE2B b1723329f4370ec7f529105615409a2669a810fbfb55402db730c7a27610b8bd24524d83c9cedcd9403d6727d1016f301dd396fcf18b487ed31344131ecff0b4 SHA512 b5a6c39867b29009a161586949564968ada6ee88a570ad314826be7d67be1a4f14dd894234fd71999250523b67ef7f07239300ede9879b2e7299b47d6ecc778f diff --git a/net-misc/xmrig-mo/xmrig-mo-6.8.2.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.8.2.ebuild new file mode 100644 index 000000000..d1085fc5b --- /dev/null +++ b/net-misc/xmrig-mo/xmrig-mo-6.8.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake optfeature + +MO_PV="mo1" +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT and Argon2 miner for the MoneroOcean pool" +HOMEPAGE="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 ~arm ~arm64 ~x86" +IUSE="+ssl" + +DEPEND=" + dev-libs/libuv:= + sys-apps/hwloc:= + ssl? ( dev-libs/openssl:= ) +" + +S="${WORKDIR}/xmrig-${PV}-${MO_PV}" + +src_prepare() { + cmake_src_prepare + sed -i '/notls/d' cmake/OpenSSL.cmake || die + sed -i 's/1;/0;/g' src/donate.h || die +} + +src_configure() { + local mycmakeargs=( + # TODO: Create expanded USE flag for all of the PoW algos. + -DWITH_TLS=$(usex ssl) + # TODO: opencl USE flag. + -DWITH_OPENCL=OFF + # TODO: cuda USE flag. + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + newbin "${BUILD_DIR}/xmrig" xmrig-mo + dodoc -r doc/*.md + einstalldocs +} + +pkg_postinst() { + elog "Increase the vm.nr_hugepages sysctl value so that XMRig can allocate with huge pages." + elog "XMRig-MoneroOcean has been installed as /usr/bin/xmrig-mo" + elog "in order to differentiate between the original XMRig" + optfeature "CPU specific performance tweaks" sys-apps/msr-tools +} |