Although xmrig has an xml file that can be edited to configure the program, command line flags are often simpler to configure the desired behavior. Please make the port respect xmrig_flags from /etc/make.conf. For my own use, I have been editing /usr/local/etc/rc.d/xmrig to accomplish this behavior, but it's tedious to redo with every update to xmrig since it's updated so frequently. I've been simply changing the line command_args="-f ${procname} --config=${xmrig_conf}" to command_args="-f ${procname} --config=${xmrig_conf} ${xmrig_flags}" Please incorporate this change to the port.
This port relies heavily on CPU optimizations. Without it it's basically useless.
I meant from /etc/rc.conf -- not /etc/make.conf. In other words, runtime arguments -- not CPU optimizations during compilation.
Ah, that makes sense.
A commit references this bug: Author: ehaupt Date: Wed Feb 24 07:49:21 UTC 2021 New revision: 566454 URL: https://svnweb.freebsd.org/changeset/ports/566454 Log: net-p2p/xmrig: Allow to set additional startup flags via xmrig_flags rc.subr PR: 253808 Requested by: Patrick McMunn <doctorwhoguy@gmail.com> Changes: head/net-p2p/xmrig/Makefile head/net-p2p/xmrig/files/xmrig.in
Change implemented, thanks.
Thank you!