aboutsummaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2021-02-24 07:49:20 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2021-02-24 07:49:20 +0000
commit201bba9f3d6173ae89b9f6aaf8f6f2d265a585ea (patch)
treea3a16efce2e4e81a49c7f35e213ef27fc9ca1c53 /net-p2p
parent38d8bc034b77623ef7e29d6f0e49834fa9b85e43 (diff)
downloadports-201bba9f3d6173ae89b9f6aaf8f6f2d265a585ea.tar.gz
ports-201bba9f3d6173ae89b9f6aaf8f6f2d265a585ea.zip
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/xmrig/Makefile1
-rw-r--r--net-p2p/xmrig/files/xmrig.in4
2 files changed, 4 insertions, 1 deletions
diff --git a/net-p2p/xmrig/Makefile b/net-p2p/xmrig/Makefile
index 87b9ec741cb1..2b8bdd578b32 100644
--- a/net-p2p/xmrig/Makefile
+++ b/net-p2p/xmrig/Makefile
@@ -4,6 +4,7 @@
PORTNAME= xmrig
PORTVERSION= 6.9.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net-p2p
MAINTAINER= ehaupt@FreeBSD.org
diff --git a/net-p2p/xmrig/files/xmrig.in b/net-p2p/xmrig/files/xmrig.in
index 961c391dfbfd..6ca7dd2c2aca 100644
--- a/net-p2p/xmrig/files/xmrig.in
+++ b/net-p2p/xmrig/files/xmrig.in
@@ -16,6 +16,7 @@
# Do not sets it as empty or it will run as root.
# xmrig_conf: The configuration file XMRig uses.
# Default: %%ETCDIR%%/config.json
+# xmrig_flags: Additional runtime flags.
. /etc/rc.subr
name="%%PORTNAME%%"
@@ -25,9 +26,10 @@ load_rc_config ${name}
: ${xmrig_enable:="NO"}
: ${xmrig_user:="%%USERS%%"}
: ${xmrig_conf:="%%ETCDIR%%/config.json"}
+: ${xmrig_flags:=""}
command="/usr/sbin/daemon"
procname="%%PREFIX%%/bin/xmrig"
-command_args="-f ${procname} --config=${xmrig_conf}"
+command_args="-f ${procname} --config=${xmrig_conf} ${xmrig_flags}"
run_rc_command "$1"