public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Theo Anderson" <telans@posteo.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig/
Date: Mon, 28 Dec 2020 07:08:12 +0000 (UTC)	[thread overview]
Message-ID: <1609135355.6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc.telans@gentoo> (raw)

commit:     6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Mon Dec 28 06:02:35 2020 +0000
Commit:     Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Mon Dec 28 06:02:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6e9ff6cf

net-misc/xmrig: new package 6.7.0

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 net-misc/xmrig/Manifest           |  1 +
 net-misc/xmrig/metadata.xml       | 15 +++++++++++
 net-misc/xmrig/xmrig-6.7.0.ebuild | 54 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+)

diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest
new file mode 100644
index 00000000..8d76a8bc
--- /dev/null
+++ b/net-misc/xmrig/Manifest
@@ -0,0 +1 @@
+DIST xmrig-6.7.0.tar.gz 1570428 BLAKE2B 744266679f37a1bb0453f224b907f7c4db8be42cd6948ccb1b0ad4a499d4345b26b7f15a2f662741222570d13c9eea2353fd9e05a9734c0f3a2c7d0068827e10 SHA512 3d57b78392c95417f37a4c1c5e434e06aafa1bd7658b945768c90de69b0ff8e347f68e96523312d6b4261321b3f06026504314caf73404a294beb01875dbe1d6

diff --git a/net-misc/xmrig/metadata.xml b/net-misc/xmrig/metadata.xml
new file mode 100644
index 00000000..b57adcc7
--- /dev/null
+++ b/net-misc/xmrig/metadata.xml
@@ -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>

diff --git a/net-misc/xmrig/xmrig-6.7.0.ebuild b/net-misc/xmrig/xmrig-6.7.0.ebuild
new file mode 100644
index 00000000..362fd8cc
--- /dev/null
+++ b/net-misc/xmrig/xmrig-6.7.0.ebuild
@@ -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
+}


             reply	other threads:[~2020-12-28  7:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28  7:08 Theo Anderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-28  7:08 [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig/ Theo Anderson
2021-04-28  2:16 Theo Anderson
2021-04-28  2:16 Theo Anderson
2021-06-09  3:22 Theo Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1609135355.6e9ff6cf9f71ed2ccff6c98956afd1cdfcfca7fc.telans@gentoo \
    --to=telans@posteo.de \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox