diff options
author | 2024-03-23 07:35:34 +0000 | |
---|---|---|
committer | 2024-03-23 07:36:25 +0000 | |
commit | 2d9e27cc4fdc819469352fa60f4756498fa3d951 (patch) | |
tree | d0176aa5d98c8c766624dfdccc02beadec0190a2 /net-misc/xmrig | |
parent | net-misc/xmrig: stop filtering -D_FORTIFY_SOURCE=3 (diff) | |
download | gentoo-2d9e27cc4fdc819469352fa60f4756498fa3d951.tar.gz gentoo-2d9e27cc4fdc819469352fa60f4756498fa3d951.tar.bz2 gentoo-2d9e27cc4fdc819469352fa60f4756498fa3d951.zip |
net-misc/xmrig: add 6.21.2
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'net-misc/xmrig')
-rw-r--r-- | net-misc/xmrig/Manifest | 1 | ||||
-rw-r--r-- | net-misc/xmrig/xmrig-6.21.2.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/xmrig/Manifest b/net-misc/xmrig/Manifest index b5fba213d02b..cdc42fdf3e2f 100644 --- a/net-misc/xmrig/Manifest +++ b/net-misc/xmrig/Manifest @@ -1,2 +1,3 @@ DIST xmrig-6.18.1.tar.gz 2394259 BLAKE2B 4d7ed3ce7b6c9dce9b25da7c316df4542046b014167ce090c5c2ec4dbf61607e4238ce8a8407a396f1eb47dc76cbfac08e0131835d9c4bbff8f4e5920d2f19a6 SHA512 bb297b17f820ad38f0c68aebfe1be8e82e85aede99a9e2a7692935ed57dab06a36566d13c16f850123dc6e829dfb56bc9253c46b94e6a703fe169a0126feb37b DIST xmrig-6.21.1.tar.gz 2416545 BLAKE2B 72ecdfc8c999aee91aef4f540211c5d5a6f1992c76211162a623e89391cedfcc2d5540f291d9915ee4180b83f58ef7f2eb1e3aff8dee49c72f41f90878d7ef62 SHA512 a9267708e61084db7116381adb2256a04c30eba0c84b571764cc73ccafc9276f55b6665529eb7b9c1785d582d0d280ced6ee7ca88a5e98f9bbdef2a9176a9794 +DIST xmrig-6.21.2.tar.gz 2426759 BLAKE2B df2b25177ae4b60eff0f518cfe0aa513820fdce1811c329a33d16ee74c9f387b26bf41e8a2bf84471f0c1eef4deceee164e82a245c9a7813d633a08747bf6cfd SHA512 e6fefa091c5884ebd30a938472032efcf68fccde1ba492bd045dc50fef1ec95bb951bbbf1ed1832670bc241400629754f31318477ae634080a89790e9fa27957 diff --git a/net-misc/xmrig/xmrig-6.21.2.ebuild b/net-misc/xmrig/xmrig-6.21.2.ebuild new file mode 100644 index 000000000000..2061563b6ac5 --- /dev/null +++ b/net-misc/xmrig/xmrig-6.21.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +DESCRIPTION="RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner" +HOMEPAGE="https://xmrig.com https://github.com/xmrig/xmrig" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/xmrig/xmrig/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" +fi + +LICENSE="Apache-2.0 GPL-3+ MIT" +SLOT="0" +IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl" + +DEPEND=" + dev-libs/libuv:= + hwloc? ( >=sys-apps/hwloc-2.5.0:= ) + opencl? ( virtual/opencl ) + ssl? ( dev-libs/openssl:= ) +" +RDEPEND=" + ${DEPEND} + !arm64? ( sys-apps/msr-tools ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-6.12.2-nonotls.patch +) + +src_prepare() { + if ! use donate ; then + sed -i 's/1;/0;/g' src/donate.h || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1) + -DWITH_HWLOC=$(usex hwloc) + -DWITH_TLS=$(usex ssl) + -DWITH_OPENCL=$(usex opencl) + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + default + keepdir /etc/xmrig + systemd_dounit "${FILESDIR}"/xmrig.service + dobin "${BUILD_DIR}/xmrig" + dobin "${S}/scripts/enable_1gb_pages.sh" + dobin "${S}/scripts/randomx_boost.sh" +} |