summaryrefslogtreecommitdiff
path: root/factory-default
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2019-12-13 00:54:44 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2019-12-13 00:54:44 +0000
commitdc62083df5c6477ac05b6ba35d7f48b3fdbe3207 (patch)
tree1d769c9d5b166b1258c1adc86e9c8cc5a775220f /factory-default
parentnet-p2p/monero-gui: drop old (diff)
downloadportage-dc62083df5c6477ac05b6ba35d7f48b3fdbe3207.tar.xz
factory-default: drop net-p2p/xmr-stak
Diffstat (limited to 'factory-default')
-rw-r--r--factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak9
-rwxr-xr-xfactory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak63
2 files changed, 0 insertions, 72 deletions
diff --git a/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak b/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak
deleted file mode 100644
index cc6d9d7f..00000000
--- a/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak
+++ /dev/null
@@ -1,9 +0,0 @@
-# Pool url and port
-XMR_STAK_POOL_URL="xmrpool.eu:3333"
-XMR_STAK_POOL_TLS_URL="xmrpool.eu:9999"
-
-# Pool user name or wallet address
-XMR_STAK_POOL_USER="44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A"
-
-# Pool password, in the most cases x
-XMR_STAK_POOL_PASS="x"
diff --git a/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak b/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak
deleted file mode 100755
index 0ee69ed4..00000000
--- a/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-: ${pidfile:=/run/${RC_SVCNAME}.pid}
-
-: ${XMR_STAK_CURRENCY:=monero}
-: ${XMR_STAK_CONFIG:=/etc/${RC_SVCNAME}/main.conf}
-: ${XMR_STAK_CONFIG_POOL:=/etc/${RC_SVCNAME}/pools.conf}
-: ${XMR_STAK_CONFIG_CPU:=/etc/${RC_SVCNAME}/cpu.conf}
-: ${XMR_STAK_CONFIG_AMD:=/etc/${RC_SVCNAME}/amd.conf}
-
-# Donate to Monero developers
-: ${XMR_STAK_POOL_URL:=xmrpool.eu:3333}
-: ${XMR_STAK_POOL_TLS_URL:=xmrpool.eu:9999}
-: ${XMR_STAK_POOL_USER:=44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A}
-: ${XMR_STAK_POOL_RIGID:=}
-: ${XMR_STAK_POOL_PASS:=x}
-
-checkconfig() {
- checkpath --quiet --directory \
- --owner root --mode 0755 \
- "/etc/${RC_SVCNAME}"
-}
-
-start() {
- checkconfig || return 1
-
- export GPU_FORCE_64BIT_PTR=1
- export GPU_MAX_HEAP_SIZE=100
- export GPU_USE_SYNC_OBJECTS=1
- export GPU_MAX_ALLOC_PERCENT=100
- export GPU_SINGLE_ALLOC_PERCENT=100
-
- local _opts
-
- if [[ -n "${XMR_STAK_POOL_TLS_URL}" ]] ; then
- _opts+=( --tls-url "${XMR_STAK_POOL_TLS_URL}" )
- else
- _opts+=( --url "${XMR_STAK_POOL_URL}" )
- fi
-
- ebegin "Starting ${RC_SVCNAME}"
- /usr/bin/tmux -L "${RC_SVCNAME}" \
- new-session -d /usr/bin/xmr-stak \
- --currency "${XMR_STAK_CURRENCY}" \
- --config "${XMR_STAK_CONFIG}" \
- --poolconf "${XMR_STAK_CONFIG_POOL}" \
- --cpu "${XMR_STAK_CONFIG_CPU}" \
- --amd "${XMR_STAK_CONFIG_AMD}" \
- --user "${XMR_STAK_POOL_USER}" \
- --rigid "${XMR_STAK_POOL_RIGID}" \
- --pass "${XMR_STAK_POOL_PASS}" \
- ${_opts[@]}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${RC_SVCNAME}"
- /usr/bin/tmux -L "${RC_SVCNAME}" \
- kill-session
- eend $?
-}