diff options
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/xmr-stak/Manifest | 1 | ||||
-rw-r--r-- | net-p2p/xmr-stak/files/xmr-stak | 24 | ||||
-rw-r--r-- | net-p2p/xmr-stak/files/xmr-stak-2.3.0.service | 32 | ||||
-rw-r--r-- | net-p2p/xmr-stak/metadata.xml | 18 | ||||
-rw-r--r-- | net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild | 67 | ||||
-rw-r--r-- | net-p2p/xmr-stak/xmr-stak-9999.ebuild | 67 |
6 files changed, 0 insertions, 209 deletions
diff --git a/net-p2p/xmr-stak/Manifest b/net-p2p/xmr-stak/Manifest deleted file mode 100644 index 27eb5c59118a..000000000000 --- a/net-p2p/xmr-stak/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST xmr-stak-2.10.8.tar.gz 2605734 BLAKE2B 2bcc4b781748b8e823e86dcbaca2c65c9370357f16e2cdf412d6a0780900039223e830b582526cbf7cc2eda6445aae28d5d4c5162464dc70989d278ee3b138dd SHA512 5b222f647c74d4dc4ec7ae16d585672dff099572384aebee1afc60fe6e4bfffc764642f635d6f6dee35c455ee97f5ccf7604e73c502799aab00f4c2ce7b24070 diff --git a/net-p2p/xmr-stak/files/xmr-stak b/net-p2p/xmr-stak/files/xmr-stak deleted file mode 100644 index 21f2d35ae99d..000000000000 --- a/net-p2p/xmr-stak/files/xmr-stak +++ /dev/null @@ -1,24 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms fo the GNU General Public License, v2 -# /etc/init.d/xmr-stak -name="xmr-stak" -description="Unified all-in-one Monero miner" -pidfile=/run/xmr.pid -command=/usr/bin/xmr-stak -command_args="--cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt" -start_stop_daemon_args="--background --make-pidfile" - -start_pre() { - if [ ! -r /etc/xmr-stak/main.config ]; then - eerror "/etc/xmr-stak/main.config is missing." - errror "Run:" - eerror "/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt" - errror "xmr-stak can now be terminated and this service can be started" - return 1 - fi -} - -depend() { - use dns net -} diff --git a/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service b/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service deleted file mode 100644 index b9515c61f799..000000000000 --- a/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service +++ /dev/null @@ -1,32 +0,0 @@ -[Unit] -Description=Unified all-in-one Monero miner -After=network-online.target -AssertFileNotEmpty=/etc/xmr-stak/main.config - -[Service] -Environment=GPU_FORCE_64BIT_PTR=1 -Environment=GPU_MAX_HEAP_SIZE=100 -Environment=GPU_USE_SYNC_OBJECTS=1 -Environment=GPU_MAX_ALLOC_PERCENT=100 -Environment=GPU_SINGLE_ALLOC_PERCENT=100 -ExecStart=/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt -DynamicUser=true -Group=video -CPUSchedulingPolicy=idle -PrivateTmp=true -ProtectHome=true -ProtectSystem=strict -NoNewPrivileges=true -CapabilityBoundingSet= -MemoryDenyWriteExecute=true -ProtectKernelModules=true -ProtectKernelTunables=true -ProtectControlGroups=true -RestrictRealtime=true -RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX -RestrictNamespaces=true -PrivateUsers=true -ConfigurationDirectory=xmr-stak - -[Install] -WantedBy=multi-user.target diff --git a/net-p2p/xmr-stak/metadata.xml b/net-p2p/xmr-stak/metadata.xml deleted file mode 100644 index ad51a30e1d06..000000000000 --- a/net-p2p/xmr-stak/metadata.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>candrews@gentoo.org</email> - <name>Craig Andrews</name> - </maintainer> - <upstream> - <remote-id type="github">fireice-uk/xmr-stak</remote-id> - </upstream> - <use> - <flag name="cuda">Enable NVIDIA CUDA toolkit support</flag> - <flag name="devfee">Enable payment of devfee to the developer</flag> - <flag name="hwloc">Enable CPU affinity support via hwloc</flag> - <flag name="opencl">Enable OpenCL support</flag> - <flag name="webserver">Enable internal webserver</flag> - </use> -</pkgmetadata> diff --git a/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild b/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild deleted file mode 100644 index 74eeed32f739..000000000000 --- a/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake systemd - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git" - EGIT_BRANCH="dev" - inherit git-r3 - SRC_URI="" -else - SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Unified all-in-one Monero miner" -HOMEPAGE="https://github.com/fireice-uk/xmr-stak" -LICENSE="GPL-3" -SLOT="0" -IUSE="cuda devfee hwloc opencl ssl webserver" - -DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit ) - hwloc? ( sys-apps/hwloc ) - opencl? ( virtual/opencl ) - ssl? ( dev-libs/openssl:0= ) - webserver? ( net-libs/libmicrohttpd )" -RDEPEND="${DEPEND}" - -src_prepare() { - cmake_src_prepare - if ! use devfee; then - sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die - fi -} - -src_configure() { - local mycmakeargs=( - -DCUDA_ENABLE=$(usex cuda) - -DHWLOC_ENABLE=$(usex hwloc) - -DMICROHTTPD_ENABLE=$(usex webserver) - -DOpenCL_ENABLE=$(usex opencl) - -DOpenSSL_ENABLE=$(usex ssl) - -DLIBRARY_OUTPUT_PATH=$(get_libdir) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service - doinitd "${FILESDIR}"/${PN} - dodir /etc/xmr-stak -} - -pkg_postinst() { - if [ ! -e "${ROOT}/etc/xmr-stak/main.config" ]; then - ewarn "To use xmr-stack:" - if use cuda || use opencl; then - ewarn "As root or as a user that is a member of the 'video' group," - fi - ewarn "run:" - ewarn "/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt" - ewarn "xmr-stak can now be terminated and 'systemctl start xmr-stak' or '/etc/init.d/xmr-stak start' can be used." - fi -} diff --git a/net-p2p/xmr-stak/xmr-stak-9999.ebuild b/net-p2p/xmr-stak/xmr-stak-9999.ebuild deleted file mode 100644 index 74eeed32f739..000000000000 --- a/net-p2p/xmr-stak/xmr-stak-9999.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake systemd - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git" - EGIT_BRANCH="dev" - inherit git-r3 - SRC_URI="" -else - SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Unified all-in-one Monero miner" -HOMEPAGE="https://github.com/fireice-uk/xmr-stak" -LICENSE="GPL-3" -SLOT="0" -IUSE="cuda devfee hwloc opencl ssl webserver" - -DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit ) - hwloc? ( sys-apps/hwloc ) - opencl? ( virtual/opencl ) - ssl? ( dev-libs/openssl:0= ) - webserver? ( net-libs/libmicrohttpd )" -RDEPEND="${DEPEND}" - -src_prepare() { - cmake_src_prepare - if ! use devfee; then - sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die - fi -} - -src_configure() { - local mycmakeargs=( - -DCUDA_ENABLE=$(usex cuda) - -DHWLOC_ENABLE=$(usex hwloc) - -DMICROHTTPD_ENABLE=$(usex webserver) - -DOpenCL_ENABLE=$(usex opencl) - -DOpenSSL_ENABLE=$(usex ssl) - -DLIBRARY_OUTPUT_PATH=$(get_libdir) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service - doinitd "${FILESDIR}"/${PN} - dodir /etc/xmr-stak -} - -pkg_postinst() { - if [ ! -e "${ROOT}/etc/xmr-stak/main.config" ]; then - ewarn "To use xmr-stack:" - if use cuda || use opencl; then - ewarn "As root or as a user that is a member of the 'video' group," - fi - ewarn "run:" - ewarn "/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.config --amd /etc/xmr-stak/amd.config --nvidia /etc/xmr-stak/nvidia.config -c /etc/xmr-stak/main.config -C /etc/xmr-stak/pools.txt" - ewarn "xmr-stak can now be terminated and 'systemctl start xmr-stak' or '/etc/init.d/xmr-stak start' can be used." - fi -} |