mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
net-misc/xmrig: treeclean
Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST xmrig-6.12.1.tar.gz 1626568 BLAKE2B e43b25af131911f112dc54e213175ee10a0a6c5f4f8bde339bdd6e39df0dc0c8a058fd30c20994b52b68fe20539b8b95d714caeb94f699b4ba663d3fc3992c71 SHA512 813daf7f7363e60059290caddd7c85df90fd35148de2762b02c287a28e82e8a13dcfc9d514c4a4932d85049532c240eacc0201e6c8fede9b6bb26fa9505841b0
|
||||
@@ -1,15 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,51 +0,0 @@
|
||||
# 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