Index: head/net-p2p/xmrig/Makefile =================================================================== --- head/net-p2p/xmrig/Makefile (revision 566453) +++ head/net-p2p/xmrig/Makefile (revision 566454) @@ -1,52 +1,53 @@ # Created by: Emanuel Haupt # $FreeBSD$ PORTNAME= xmrig PORTVERSION= 6.9.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-p2p MAINTAINER= ehaupt@FreeBSD.org COMMENT= High performance Monero (XMR) CPU miner LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to compile: src/common/cpu/BasicCpuInfo_arm.cpp:30:13: fatal error: 'asm/hwcap.h' file not found BROKEN_armv6= fails to build: /nxb-bin/usr/lib/clang/8.0.0/include/ia32intrin.h:48:10: error: use of undeclared identifier '__builtin_ia32_readeflags_u32' BROKEN_armv7= fails to build: /nxb-bin/usr/lib/clang/8.0.0/include/ia32intrin.h:48:10: error: use of undeclared identifier '__builtin_ia32_readeflags_u32' BROKEN_powerpc64= fails to compile: g++9: error: unrecognized command line option '-maes'; did you mean '-mads'? BROKEN_riscv64= fails to compile: /nxb-bin/usr/lib/clang/11.0.0/include/cpuid.h:11:2: error: this header is for x86 only USES= cmake compiler:c++11-lang ssl USE_GITHUB= yes USE_RC_SUBR= ${PORTNAME} SUB_FILES= pkg-message SUB_LIST= PORTNAME=${PORTNAME} \ USERS=${USERS} USERS= xmrig OPTIONS_DEFINE= HWLOC MICROHTTPD STATIC OPTIONS_DEFAULT= HWLOC MICROHTTPD HWLOC_DESC= Portable hardware locality MICROHTTPD_DESC= Build with libmicrohttpd support HWLOC_LIB_DEPENDS+= libhwloc.so.15:devel/hwloc2 HWLOC_CMAKE_OFF= -DWITH_HWLOC=OFF MICROHTTPD_LIB_DEPENDS+= libmicrohttpd.so:www/libmicrohttpd \ libuv.so:devel/libuv MICROHTTPD_CMAKE_OFF= -DWITH_HTTPD=OFF STATIC_PREVENTS= HWLOC MICROHTTPD STATIC_PREVENTS_MSG= hwloc and libmicrohttpd support cannot be built static STATIC_BUILD_DEPENDS+= ${LOCALBASE}/lib/libuv.a:devel/libuv STATIC_CMAKE_ON= -DBUILD_STATIC=ON do-install: ${INSTALL_PROGRAM} ${WRKDIR}/.build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/src/config.json ${STAGEDIR}${ETCDIR}/config.json.sample .include Index: head/net-p2p/xmrig/files/xmrig.in =================================================================== --- head/net-p2p/xmrig/files/xmrig.in (revision 566453) +++ head/net-p2p/xmrig/files/xmrig.in (revision 566454) @@ -1,33 +1,35 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: xmrig # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # xmrig_enable (bool): Set to NO by default. # Set it to YES to enable it. # xmrig_user: The user account the XMRig daemon runs as. # It uses '%%USERS%%' user by default. # 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%%" rcvar="${name}_enable" 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"