diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2018-02-27 00:11:04 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2018-02-27 00:11:04 +0800 |
commit | aaa9312f9066473039b46acefb35c4ec20e77bc8 (patch) | |
tree | b4d04f70570debb8b97d4b2952cc0fe66ca89759 /net-p2p | |
parent | ba0cf71ef3db624f438fd8ef1c0af45e8cfa1fd9 (diff) | |
download | freebsd-ports-gnome-aaa9312f9066473039b46acefb35c4ec20e77bc8.tar.gz freebsd-ports-gnome-aaa9312f9066473039b46acefb35c4ec20e77bc8.tar.zst freebsd-ports-gnome-aaa9312f9066473039b46acefb35c4ec20e77bc8.zip |
Provide a patch that removes the hard coded 5% cpu cycle donation minimum but
keep the configurable default value at 5%.
This gives the users the choice to go lower than 5% if desired.
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/xmrig/Makefile | 1 | ||||
-rw-r--r-- | net-p2p/xmrig/files/patch-src_donate.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/xmrig/Makefile b/net-p2p/xmrig/Makefile index 67b3f38d41e9..8edec101a38e 100644 --- a/net-p2p/xmrig/Makefile +++ b/net-p2p/xmrig/Makefile @@ -4,6 +4,7 @@ PORTNAME= xmrig PORTVERSION= 2.4.5 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-p2p MAINTAINER= ehaupt@FreeBSD.org diff --git a/net-p2p/xmrig/files/patch-src_donate.h b/net-p2p/xmrig/files/patch-src_donate.h new file mode 100644 index 000000000000..62d7db3d2ac9 --- /dev/null +++ b/net-p2p/xmrig/files/patch-src_donate.h @@ -0,0 +1,11 @@ +--- src/donate.h.orig 2018-02-18 21:31:50 UTC ++++ src/donate.h +@@ -37,7 +37,7 @@ + * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD + * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT + */ +-constexpr const int kDonateLevel = 5; ++constexpr const int kDonateLevel = 0; + + + #endif /* __DONATE_H__ */ |