mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
net-misc/xmrig-mo: 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-mo/Manifest
Normal file
1
net-misc/xmrig-mo/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST xmrig-mo-6.7.0-mo1.tar.gz 1665109 BLAKE2B 50c7be4cc8c96df068692d02c7af4a0af9ee8d7b1be25199766970d95dbdc324945db2ba03fe5997ee8919ad55e10796d30f37d0d6e7cdad127040c5b4d8e038 SHA512 c4410935809b052210fbc1feacebc059e0c0b9951d1a38fe614dafd2c9385e439816662a18c568bba0e3cdf8cb6273131e54cc2032522dbe44d08f2337c02d14
|
||||
16
net-misc/xmrig-mo/metadata.xml
Normal file
16
net-misc/xmrig-mo/metadata.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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, AstroBWT and Argon2 CPU/GPU miner. Algorithm switching,
|
||||
when used with the MoneroOcean mining pool.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">MoneroOcean/xmrig</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
59
net-misc/xmrig-mo/xmrig-mo-6.7.0.ebuild
Normal file
59
net-misc/xmrig-mo/xmrig-mo-6.7.0.ebuild
Normal file
@@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2020 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="libressl +ssl"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/libuv:=
|
||||
sys-apps/hwloc:=
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user