mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
net-misc/xmrig: new package 6.7.0
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
1
net-misc/xmrig/Manifest
Normal file
1
net-misc/xmrig/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST xmrig-6.7.0.tar.gz 1570428 BLAKE2B 744266679f37a1bb0453f224b907f7c4db8be42cd6948ccb1b0ad4a499d4345b26b7f15a2f662741222570d13c9eea2353fd9e05a9734c0f3a2c7d0068827e10 SHA512 3d57b78392c95417f37a4c1c5e434e06aafa1bd7658b945768c90de69b0ff8e347f68e96523312d6b4261321b3f06026504314caf73404a294beb01875dbe1d6
|
||||
15
net-misc/xmrig/metadata.xml
Normal file
15
net-misc/xmrig/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>telans@posteo.de</email>
|
||||
<name>Theo Anderson</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
XMRig High performance, open source, cross platform RandomX,
|
||||
CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">xmrig/xmrig</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
54
net-misc/xmrig/xmrig-6.7.0.ebuild
Normal file
54
net-misc/xmrig/xmrig-6.7.0.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2020 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="libressl +ssl"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/libuv:=
|
||||
sys-apps/hwloc:=
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
"
|
||||
|
||||
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() {
|
||||
einfo "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