mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 17:43:11 -04:00
net-misc/xmrig: add 6.12.1
Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST xmrig-6.12.1.tar.gz 1626568 BLAKE2B e43b25af131911f112dc54e213175ee10a0a6c5f4f8bde339bdd6e39df0dc0c8a058fd30c20994b52b68fe20539b8b95d714caeb94f699b4ba663d3fc3992c71 SHA512 813daf7f7363e60059290caddd7c85df90fd35148de2762b02c287a28e82e8a13dcfc9d514c4a4932d85049532c240eacc0201e6c8fede9b6bb26fa9505841b0
|
||||
DIST xmrig-6.8.2.tar.gz 1582902 BLAKE2B 7ce2cc327d07b11d1d165d9f369931d222e47c0595d09b777c7ae8b196d41f069e88567b56ff552825df9c5f333ac8a1afec0ade9d6f76b9c113b92b4081be0b SHA512 5f4c356602dcf82d5ba95d1dcde12eb7a004d75543fd5703a9d986485d3229f87e98e26e7fb3c2a6eb14a268545e2f1545fb48541ca41b66ef352ce1a2a42be4
|
||||
DIST xmrig-6.9.0.tar.gz 1584717 BLAKE2B 9790b29b639fa308c3b58509de84e621cb63b895efe3f0c390a3efebf7edb7f4fc74f2017dc8d49a39e5bf5f3548eba2f05e6345cac42ad408f6a0d97371c878 SHA512 8fb65c742e0c95a92cd5068d7169a61540babba32c73fbc412e434a9ba6d2ba5299ca1477c59bdd9e06b5df1083d9ffb9d010dfc0c85b9789dda38ecc14fea86
|
||||
|
||||
51
net-misc/xmrig/xmrig-6.12.1.ebuild
Normal file
51
net-misc/xmrig/xmrig-6.12.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user