diff options
author | Theo Anderson <telans@posteo.de> | 2021-04-28 13:48:55 +1200 |
---|---|---|
committer | Theo Anderson <telans@posteo.de> | 2021-04-28 13:48:55 +1200 |
commit | 6ad35fe2fd35f70776f2dbb01a7626de2fca7d33 (patch) | |
tree | 789b91df1e44ecc1d2f5457fc10afa2fc3dd4890 /net-misc/xmrig/xmrig-6.12.1.ebuild | |
parent | dev-python/pystray: drop 0.17.2 (diff) | |
download | guru-6ad35fe2fd35f70776f2dbb01a7626de2fca7d33.tar.gz guru-6ad35fe2fd35f70776f2dbb01a7626de2fca7d33.tar.bz2 guru-6ad35fe2fd35f70776f2dbb01a7626de2fca7d33.zip |
net-misc/xmrig: add 6.12.1
Signed-off-by: Theo Anderson <telans@posteo.de>
Diffstat (limited to 'net-misc/xmrig/xmrig-6.12.1.ebuild')
-rw-r--r-- | net-misc/xmrig/xmrig-6.12.1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/net-misc/xmrig/xmrig-6.12.1.ebuild b/net-misc/xmrig/xmrig-6.12.1.ebuild new file mode 100644 index 000000000..62d0c96cd --- /dev/null +++ b/net-misc/xmrig/xmrig-6.12.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake optfeature + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://github.com/xmrig/xmrig" +SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.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:= ) +" + +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() { + dobin "${BUILD_DIR}/xmrig" + dodoc -r doc/*.md + einstalldocs +} + +pkg_postinst() { + elog "Increase the vm.nr_hugepages sysctl value so that XMRig can allocate with huge pages." + optfeature "CPU specific performance tweaks" sys-apps/msr-tools +} |