net-misc/xmrig: Add missing files

This commit is contained in:
Dorian OUAKLI 2024-06-12 11:26:27 +02:00
parent 58b2875872
commit 756b6adf7b
3 changed files with 60 additions and 0 deletions

View File

@ -1,2 +1,4 @@
AUX xmrig-6.12.2-nonotls.patch 578 BLAKE2B 4d71c8d35be47fd12a019d7b8cb6e1b8787e153ab543b9b1e4079c911671ff886042d90cd439552bf364208d9a4afcc7fe088b50598bbc20e347b532dfc92a2d SHA512 fea6041879c414a4fc6006a413b217801d674f7b5d849d95c119d07e191c5d7a5e99fb959d89974b68be9df132ff480f8492645ba6821b369444b102596b06f3
AUX xmrig.service 946 BLAKE2B 1f3b28f8229183da528ac2b4279dd64b5c6f752720c6bdfe90fa9e127108623e4a577a274527249ee7a13969be97e9b1a4348f7c3e0798839d0ed3ee67b16188 SHA512 77da620627272113e7c77a090536b04cb5a89f4010060ffb21ea1c9edc50e0743f913a70e4fb612c23aeea2b8f1a3f9ce024a434076cf9498cce0b5f801faafa
DIST xmrig-6.21.1.tar.gz 2416545 BLAKE2B 72ecdfc8c999aee91aef4f540211c5d5a6f1992c76211162a623e89391cedfcc2d5540f291d9915ee4180b83f58ef7f2eb1e3aff8dee49c72f41f90878d7ef62 SHA512 a9267708e61084db7116381adb2256a04c30eba0c84b571764cc73ccafc9276f55b6665529eb7b9c1785d582d0d280ced6ee7ca88a5e98f9bbdef2a9176a9794
EBUILD xmrig-6.21.1.ebuild 1386 BLAKE2B bee808b7c059acde7a391c1494226c654383b37d3b6c7e40b4c5050aae5bbdd091e21b36b257af4862b008b138787510fe7105f483d99373af94b794d121b7aa SHA512 5396e31902fd56b87c744a04eaf49d636cf4531dfcdacc7061ad5a8157a716c142e94fb9cb09a107370692d0f899f7126a15164ffef034c1deea4040d6a578fc

View File

@ -0,0 +1,23 @@
From ee98bfe01a94d021d81ed4c2bb11ec91c0bd81c8 Mon Sep 17 00:00:00 2001
From: Matt Smith <matt@offtopica.uk>
Date: Sun, 7 Jun 2020 13:20:04 +0100
Subject: [PATCH] Don't suffix binary with -notls
---
cmake/OpenSSL.cmake | 2 --
1 file changed, 2 deletions(-)
diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake
index 89805301..c01c940a 100644
--- a/cmake/OpenSSL.cmake
+++ b/cmake/OpenSSL.cmake
@@ -54,6 +54,4 @@ else()
src/base/net/http/HttpServer.h
)
endif()
-
- set(CMAKE_PROJECT_NAME "${CMAKE_PROJECT_NAME}-notls")
endif()
--
2.27.0

View File

@ -0,0 +1,35 @@
[Unit]
Description=XMRig Monero Miner
After=network-online.target
AssertFileNotEmpty=/etc/xmrig/config.json
[Service]
ExecStartPre=+/usr/bin/randomx_boost.sh
ExecStartPre=+/usr/bin/enable_1gb_pages.sh
ExecStartPre=/usr/bin/xmrig --config=/etc/xmrig/config.json --dry-run
ExecStart=/usr/bin/xmrig --config=/etc/xmrig/config.json
StandardOutput=journal
StandardError=journal
DynamicUser=true
Nice=19
CPUSchedulingPolicy=idle
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
NoNewPrivileges=true
# PrivateDevices=true # https://github.com/systemd/systemd/issues/13857
CapabilityBoundingSet=
#ProtectClock=true # https://github.com/systemd/systemd/issues/20835
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
PrivateUsers=true
ConfigurationDirectory=xmrig
[Install]
WantedBy=multi-user.target