Created attachment 189318 [details] net-p2p/xmrig diff The attached diff does the following... * Add rc.d startup script * Moves config.json to ETCDIR and installs it with @sample * Add pkg-message * Remove LICENSE_FILE declaration since FreeBSD already has a copy of this * These changes depend on adding a user "xmrig" to UIDs with a line like... - "xmrig:*:155:155::0:0:XMRig:/nonexistent:/usr/sbin/nologin" Available UID numbers can be found here... - https://github.com/freebsd/freebsd-ports/blob/master/UIDs
Actually the line added to UIDs should be like so... - "xmrig:*:155:65534::0:0:XMRig:/nonexistent:/usr/sbin/nologin" I use the group number "65534" since it is not necessary to add a group for xmrig
A commit references this bug: Author: ehaupt Date: Sat Feb 10 09:35:50 UTC 2018 New revision: 461370 URL: https://svnweb.freebsd.org/changeset/ports/461370 Log: - 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] Changes: head/UIDs head/net-p2p/xmrig/Makefile head/net-p2p/xmrig/distinfo head/net-p2p/xmrig/files/ head/net-p2p/xmrig/files/pkg-message.in head/net-p2p/xmrig/files/xmrig.in head/net-p2p/xmrig/pkg-plist
Thank you for your addition. I've committed your patch with minor modifications. I've moved the USES/USE_ block according to portlint's suggestion. I've also restored the LICENSE_FILE definition. There was once a discussion to always use LICENSE_FILE if a license file is provided regardless whether it's already known to the ports system. Unfortunately I can't point to it's source. While here I've also updated the port to 2.4.4.
great, thank you.