mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- Update to 2.4.4
[1] - Add rc.d startup script - Move config.json to ETCDIR and install it with @sample - Add pkg-message - Add user "xmrig" to UIDs PR: 224822 [1] Submitted by: joshruehlig@gmail.com [1]
This commit is contained in:
parent
82fc859f11
commit
4c763f84a9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461370
2
UIDs
2
UIDs
@ -101,7 +101,7 @@ pop3vscan:*:151:6::0:0:POP3VScan Daemon:/var/spool/pop3vscan:/usr/sbin/nologin
|
||||
iog:*:152:80::0:0:iog Monitoring Owner:/usr/local/iog:/usr/sbin/nologin
|
||||
rbldns:*:153:153::0:0:rbldnsd pseudo-user:/nonexistent:/usr/sbin/nologin
|
||||
trircd:*:154:154::0:0:& user:/usr/local/etc/tr-ircd:/usr/sbin/nologin
|
||||
# free: 155
|
||||
xmrig:*:155:65534::0:0:XMRig:/nonexistent:/usr/sbin/nologin
|
||||
monetdb:*:156:156::0:0:MonetDB user:/usr/local/monetdb5:/bin/sh
|
||||
barman:*:157:157::0:0:Barman user:/var/barman:/bin/sh
|
||||
pootle:*:158:158::0:0:Pootle User:/var/db/pootle:/usr/sbin/nologin
|
||||
|
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= xmrig
|
||||
PORTVERSION= 2.4.3
|
||||
PORTVERSION= 2.4.4
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= net-p2p
|
||||
|
||||
@ -18,11 +18,14 @@ LIB_DEPENDS= libmicrohttpd.so:www/libmicrohttpd \
|
||||
USES= cmake:outsource
|
||||
USE_GITHUB= yes
|
||||
|
||||
PLIST_FILES= bin/xmrig %%DATADIR%%/config.json
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= PORTNAME=${PORTNAME} USERS=${USERS}
|
||||
USERS= xmrig
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/.build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/src//config.json ${STAGEDIR}${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/src/config.json ${STAGEDIR}${ETCDIR}/config.json.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1514015779
|
||||
SHA256 (xmrig-xmrig-v2.4.3_GH0.tar.gz) = 56a4eb05e0b310b044ae30203dfb63664cdfb520c9c28dac29fa1886ca59cbc2
|
||||
SIZE (xmrig-xmrig-v2.4.3_GH0.tar.gz) = 267601
|
||||
TIMESTAMP = 1518252865
|
||||
SHA256 (xmrig-xmrig-v2.4.4_GH0.tar.gz) = 4ad514db6bbe214a9d4b9a01d1e4e5252a09554fa28c153dbdfa49a001090142
|
||||
SIZE (xmrig-xmrig-v2.4.4_GH0.tar.gz) = 267782
|
||||
|
8
net-p2p/xmrig/files/pkg-message.in
Normal file
8
net-p2p/xmrig/files/pkg-message.in
Normal file
@ -0,0 +1,8 @@
|
||||
XMRig configuration file available at:
|
||||
%%ETCDIR%%/config.json
|
||||
|
||||
To automatically start XMRig at boot time:
|
||||
# sysrc xmrig_enable="YES"
|
||||
|
||||
To then manually start XMRig without rebooting:
|
||||
# service xmrig start
|
33
net-p2p/xmrig/files/xmrig.in
Normal file
33
net-p2p/xmrig/files/xmrig.in
Normal file
@ -0,0 +1,33 @@
|
||||
#!/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
|
||||
|
||||
. /etc/rc.subr
|
||||
name="%%PORTNAME%%"
|
||||
rcvar="${name}_enable"
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${xmrig_enable:="NO"}
|
||||
: ${xmrig_user:="%%USERS%%"}
|
||||
: ${xmrig_conf:="%%ETCDIR%%/config.json"}
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
procname="%%PREFIX%%/bin/xmrig"
|
||||
command_args="-f ${procname} --config=${xmrig_conf}"
|
||||
|
||||
run_rc_command "$1"
|
2
net-p2p/xmrig/pkg-plist
Normal file
2
net-p2p/xmrig/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/xmrig
|
||||
@sample %%ETCDIR%%/config.json.sample
|
Loading…
Reference in New Issue
Block a user