Date: Thu, 9 Nov 2017 07:21:44 +0000 (UTC) From: Vasil Dimov <vd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453798 - in head: . net-p2p net-p2p/monero-cli net-p2p/monero-cli/files Message-ID: <201711090721.vA97Li3J036579@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vd Date: Thu Nov 9 07:21:44 2017 New Revision: 453798 URL: https://svnweb.freebsd.org/changeset/ports/453798 Log: net-p2p/monero-cli: Add a new port - a secure, private, and untraceable cryptocurrency It is open-source and accessible to all. With Monero, you are your own bank. Only you control and are responsible for your funds. Your accounts and transactions are kept private from prying eyes. This is the command line interface from https://github.com/monero-project/monero https://getmonero.org/ Added: head/net-p2p/monero-cli/ head/net-p2p/monero-cli/Makefile (contents, props changed) head/net-p2p/monero-cli/distinfo (contents, props changed) head/net-p2p/monero-cli/files/ head/net-p2p/monero-cli/files/monerod.in (contents, props changed) head/net-p2p/monero-cli/pkg-descr (contents, props changed) Modified: head/GIDs head/UIDs head/net-p2p/Makefile Modified: head/GIDs ============================================================================== --- head/GIDs Thu Nov 9 06:56:52 2017 (r453797) +++ head/GIDs Thu Nov 9 07:21:44 2017 (r453798) @@ -722,7 +722,7 @@ openxpki:*:777: litecoin:*:778: bitcoin:*:779: zetacoin:*:780: -# free: 781 +monero:*:781: # free: 782 # free: 783 # free: 784 Modified: head/UIDs ============================================================================== --- head/UIDs Thu Nov 9 06:56:52 2017 (r453797) +++ head/UIDs Thu Nov 9 07:21:44 2017 (r453798) @@ -728,7 +728,7 @@ openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/u litecoin:*:778:778::0:0:litecoin Daemon:/var/db/litecoin:/usr/sbin/nologin bitcoin:*:779:779::0:0:bitcoin Daemon:/var/db/bitcoin:/usr/sbin/nologin zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin -# free: 781 +monero:*:781:781::0:0:Monero Daemon:/var/db/monero:/usr/sbin/nologin # free: 782 # free: 783 # free: 784 Modified: head/net-p2p/Makefile ============================================================================== --- head/net-p2p/Makefile Thu Nov 9 06:56:52 2017 (r453797) +++ head/net-p2p/Makefile Thu Nov 9 07:21:44 2017 (r453798) @@ -59,6 +59,7 @@ SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui + SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += napshare Added: head/net-p2p/monero-cli/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/monero-cli/Makefile Thu Nov 9 07:21:44 2017 (r453798) @@ -0,0 +1,43 @@ +# Created by: Vasil Dimov <vd@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= monero-cli +PORTVERSION= 0.11.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= net-p2p finance + +MAINTAINER= vd@FreeBSD.org +COMMENT= Private, secure, untraceable, decentralised digital currency (CLI) + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= \ + libboost_chrono.so:devel/boost-libs \ + libboost_date_time.so:devel/boost-libs \ + libboost_filesystem.so:devel/boost-libs \ + libboost_program_options.so:devel/boost-libs \ + libboost_regex.so:devel/boost-libs \ + libboost_serialization.so:devel/boost-libs \ + libboost_system.so:devel/boost-libs \ + libboost_thread.so:devel/boost-libs \ + libminiupnpc.so:net/miniupnpc \ + libreadline.so:devel/readline \ + libunwind.so:devel/libunwind \ + libzmq.so:net/libzmq4 +BUILD_DEPENDS= ${LOCALBASE}/include/zmq.hpp:net/cppzmq + +USES= cmake compiler:c++11-lib pkgconfig ssl +USE_GITHUB= yes +GH_ACCOUNT= monero-project +GH_PROJECT= monero + +USE_RC_SUBR= monerod + +USERS= monero +GROUPS= monero + +PLIST_FILES= bin/monerod \ + bin/monero-wallet-cli \ + bin/monero-wallet-rpc + +.include <bsd.port.mk> Added: head/net-p2p/monero-cli/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/monero-cli/distinfo Thu Nov 9 07:21:44 2017 (r453798) @@ -0,0 +1,3 @@ +TIMESTAMP = 1508829354 +SHA256 (monero-project-monero-v0.11.1.0_GH0.tar.gz) = b5b48d3e5317c599e1499278580e9a6ba3afc3536f4064fcf7b20840066a509b +SIZE (monero-project-monero-v0.11.1.0_GH0.tar.gz) = 55329159 Added: head/net-p2p/monero-cli/files/monerod.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/monero-cli/files/monerod.in Thu Nov 9 07:21:44 2017 (r453798) @@ -0,0 +1,91 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: monerod +# REQUIRE: LOGIN cleanvar +# KEYWORD: shutdown + +# Add the following to %%LOCALBASE%%/etc/rc.conf.d/monerod to influence +# the behavior of this script (default values are listed): +# +# monerod_enable="NO" # change to "YES" to enable +# monerod_user="monero" +# monerod_group="monero" +# monerod_data_dir="/var/db/monero" +# monerod_conf="%%PREFIX%%/etc/monerod.conf" +# monerod_log="/var/log/monero.log" +# monerod_bind_addr="0.0.0.0" +# monerod_bind_port="18080" +# monerod_mine_for="" # Do mining for the given address (empty: no mining) +# monerod_mine_threads="" +# monerod_mine_max_cpu_pct="" +# monerod_extra_args="" # See monerod --help + +. /etc/rc.subr + +name="monerod" +rcvar=monerod_enable + +load_rc_config ${name} + +: ${monerod_enable:="NO"} +: ${monerod_user:="monero"} +: ${monerod_group:="monero"} +: ${monerod_data_dir:="/var/db/monero"} +: ${monerod_conf:="%%PREFIX%%/etc/${name}.conf"} +: ${monerod_log:="/var/log/${name}.log"} +: ${monerod_bind_addr:="0.0.0.0"} +: ${monerod_bind_port:="18080"} + +start_precmd="monerod_start_precmd" +pidfile="/var/run/${name}.pid" +command="%%PREFIX%%/bin/monerod" +command_args="" +command_args="${command_args} --data-dir=${monerod_data_dir}" +command_args="${command_args} --detach" +command_args="${command_args} --log-file=${monerod_log}" +command_args="${command_args} --non-interactive" +command_args="${command_args} --p2p-bind-ip=${monerod_bind_addr}" +command_args="${command_args} --p2p-bind-port=${monerod_bind_port}" +command_args="${command_args} --pidfile=${pidfile}" + +if [ -e "${monerod_conf}" ] ; then + command_args="${command_args} --config-file=${monerod_conf}" +fi + +if [ -n "${monerod_mine_for}" ] ; then + a="--bg-mining-enable --start-mining=${monerod_mine_for}" + + if [ -n "${monerod_mine_threads}" ] ; then + a="${a} --mining-threads=${monerod_mine_threads}" + fi + + if [ -n "${monerod_mine_max_cpu_pct}" ] ; then + a="${a} --bg-mining-miner-target=${monerod_mine_max_cpu_pct}" + fi + + command_args="${command_args} ${a}" +fi + +command_args="${command_args} ${monerod_extra_args}" +command_args="${command_args} >${monerod_data_dir}/monerod.stdout" +command_args="${command_args} 2>${monerod_data_dir}/monerod.stderr" + +monerod_start_precmd() +{ + if [ ! -e "${pidfile}" ]; then + install -o ${monerod_user} -g ${monerod_group} -m 644 /dev/null "${pidfile}" + fi + + if [ ! -e "${monerod_log}" ]; then + install -o ${monerod_user} -g ${monerod_group} -m 600 /dev/null "${monerod_log}" + fi + + if [ ! -d "${monerod_data_dir}" ]; then + install -d -o ${monerod_user} -g ${monerod_group} -m 700 "${monerod_data_dir}" + fi + + cd "${monerod_data_dir}" +} + +run_rc_command "$1" Added: head/net-p2p/monero-cli/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/monero-cli/pkg-descr Thu Nov 9 07:21:44 2017 (r453798) @@ -0,0 +1,9 @@ +Monero is a secure, private, and untraceable cryptocurrency. It is +open-source and accessible to all. With Monero, you are your own bank. +Only you control and are responsible for your funds. Your accounts and +transactions are kept private from prying eyes. + +This is the command line interface from +https://github.com/monero-project/monero + +WWW: https://getmonero.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711090721.vA97Li3J036579>