Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/xmr-stak/files/, profiles/, net-p2p/xmr-stak/
Date: Wed, 28 Apr 2021 13:23:46
Message-Id: 1619616217.cca1ee9ab0c50964cb3fd350db7fdc184551de5a.candrews@gentoo
1 commit: cca1ee9ab0c50964cb3fd350db7fdc184551de5a
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 30 14:11:10 2021 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 28 13:23:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cca1ee9a
7
8 net-p2p/xmr-stak: remove last-rited package
9
10 Closes: https://bugs.gentoo.org/779166
11 Closes: https://bugs.gentoo.org/779004
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/20199
14 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
15
16 net-p2p/xmr-stak/Manifest | 1 -
17 net-p2p/xmr-stak/files/xmr-stak | 24 ----------
18 net-p2p/xmr-stak/files/xmr-stak-2.3.0.service | 32 -------------
19 net-p2p/xmr-stak/metadata.xml | 18 -------
20 net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild | 67 ---------------------------
21 net-p2p/xmr-stak/xmr-stak-9999.ebuild | 67 ---------------------------
22 profiles/package.mask | 7 ---
23 7 files changed, 216 deletions(-)
24
25 diff --git a/net-p2p/xmr-stak/Manifest b/net-p2p/xmr-stak/Manifest
26 deleted file mode 100644
27 index 27eb5c59118..00000000000
28 --- a/net-p2p/xmr-stak/Manifest
29 +++ /dev/null
30 @@ -1 +0,0 @@
31 -DIST xmr-stak-2.10.8.tar.gz 2605734 BLAKE2B 2bcc4b781748b8e823e86dcbaca2c65c9370357f16e2cdf412d6a0780900039223e830b582526cbf7cc2eda6445aae28d5d4c5162464dc70989d278ee3b138dd SHA512 5b222f647c74d4dc4ec7ae16d585672dff099572384aebee1afc60fe6e4bfffc764642f635d6f6dee35c455ee97f5ccf7604e73c502799aab00f4c2ce7b24070
32
33 diff --git a/net-p2p/xmr-stak/files/xmr-stak b/net-p2p/xmr-stak/files/xmr-stak
34 deleted file mode 100644
35 index 21f2d35ae99..00000000000
36 --- a/net-p2p/xmr-stak/files/xmr-stak
37 +++ /dev/null
38 @@ -1,24 +0,0 @@
39 -#!/sbin/openrc-run
40 -# Copyright 1999-2018 Gentoo Foundation
41 -# Distributed under the terms fo the GNU General Public License, v2
42 -# /etc/init.d/xmr-stak
43 -name="xmr-stak"
44 -description="Unified all-in-one Monero miner"
45 -pidfile=/run/xmr.pid
46 -command=/usr/bin/xmr-stak
47 -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"
48 -start_stop_daemon_args="--background --make-pidfile"
49 -
50 -start_pre() {
51 - if [ ! -r /etc/xmr-stak/main.config ]; then
52 - eerror "/etc/xmr-stak/main.config is missing."
53 - errror "Run:"
54 - 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"
55 - errror "xmr-stak can now be terminated and this service can be started"
56 - return 1
57 - fi
58 -}
59 -
60 -depend() {
61 - use dns net
62 -}
63
64 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
65 deleted file mode 100644
66 index b9515c61f79..00000000000
67 --- a/net-p2p/xmr-stak/files/xmr-stak-2.3.0.service
68 +++ /dev/null
69 @@ -1,32 +0,0 @@
70 -[Unit]
71 -Description=Unified all-in-one Monero miner
72 -After=network-online.target
73 -AssertFileNotEmpty=/etc/xmr-stak/main.config
74 -
75 -[Service]
76 -Environment=GPU_FORCE_64BIT_PTR=1
77 -Environment=GPU_MAX_HEAP_SIZE=100
78 -Environment=GPU_USE_SYNC_OBJECTS=1
79 -Environment=GPU_MAX_ALLOC_PERCENT=100
80 -Environment=GPU_SINGLE_ALLOC_PERCENT=100
81 -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
82 -DynamicUser=true
83 -Group=video
84 -CPUSchedulingPolicy=idle
85 -PrivateTmp=true
86 -ProtectHome=true
87 -ProtectSystem=strict
88 -NoNewPrivileges=true
89 -CapabilityBoundingSet=
90 -MemoryDenyWriteExecute=true
91 -ProtectKernelModules=true
92 -ProtectKernelTunables=true
93 -ProtectControlGroups=true
94 -RestrictRealtime=true
95 -RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
96 -RestrictNamespaces=true
97 -PrivateUsers=true
98 -ConfigurationDirectory=xmr-stak
99 -
100 -[Install]
101 -WantedBy=multi-user.target
102
103 diff --git a/net-p2p/xmr-stak/metadata.xml b/net-p2p/xmr-stak/metadata.xml
104 deleted file mode 100644
105 index ad51a30e1d0..00000000000
106 --- a/net-p2p/xmr-stak/metadata.xml
107 +++ /dev/null
108 @@ -1,18 +0,0 @@
109 -<?xml version="1.0" encoding="UTF-8"?>
110 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
111 -<pkgmetadata>
112 - <maintainer type="person">
113 - <email>candrews@g.o</email>
114 - <name>Craig Andrews</name>
115 - </maintainer>
116 - <upstream>
117 - <remote-id type="github">fireice-uk/xmr-stak</remote-id>
118 - </upstream>
119 - <use>
120 - <flag name="cuda">Enable NVIDIA CUDA toolkit support</flag>
121 - <flag name="devfee">Enable payment of devfee to the developer</flag>
122 - <flag name="hwloc">Enable CPU affinity support via hwloc</flag>
123 - <flag name="opencl">Enable OpenCL support</flag>
124 - <flag name="webserver">Enable internal webserver</flag>
125 - </use>
126 -</pkgmetadata>
127
128 diff --git a/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild b/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild
129 deleted file mode 100644
130 index 74eeed32f73..00000000000
131 --- a/net-p2p/xmr-stak/xmr-stak-2.10.8.ebuild
132 +++ /dev/null
133 @@ -1,67 +0,0 @@
134 -# Copyright 1999-2020 Gentoo Authors
135 -# Distributed under the terms of the GNU General Public License v2
136 -
137 -EAPI=7
138 -
139 -inherit cmake systemd
140 -
141 -if [[ ${PV} == "9999" ]] ; then
142 - EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git"
143 - EGIT_BRANCH="dev"
144 - inherit git-r3
145 - SRC_URI=""
146 -else
147 - SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz"
148 - KEYWORDS="~amd64"
149 -fi
150 -
151 -DESCRIPTION="Unified all-in-one Monero miner"
152 -HOMEPAGE="https://github.com/fireice-uk/xmr-stak"
153 -LICENSE="GPL-3"
154 -SLOT="0"
155 -IUSE="cuda devfee hwloc opencl ssl webserver"
156 -
157 -DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit )
158 - hwloc? ( sys-apps/hwloc )
159 - opencl? ( virtual/opencl )
160 - ssl? ( dev-libs/openssl:0= )
161 - webserver? ( net-libs/libmicrohttpd )"
162 -RDEPEND="${DEPEND}"
163 -
164 -src_prepare() {
165 - cmake_src_prepare
166 - if ! use devfee; then
167 - sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die
168 - fi
169 -}
170 -
171 -src_configure() {
172 - local mycmakeargs=(
173 - -DCUDA_ENABLE=$(usex cuda)
174 - -DHWLOC_ENABLE=$(usex hwloc)
175 - -DMICROHTTPD_ENABLE=$(usex webserver)
176 - -DOpenCL_ENABLE=$(usex opencl)
177 - -DOpenSSL_ENABLE=$(usex ssl)
178 - -DLIBRARY_OUTPUT_PATH=$(get_libdir)
179 - )
180 - cmake_src_configure
181 -}
182 -
183 -src_install() {
184 - cmake_src_install
185 - systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service
186 - doinitd "${FILESDIR}"/${PN}
187 - dodir /etc/xmr-stak
188 -}
189 -
190 -pkg_postinst() {
191 - if [ ! -e "${ROOT}/etc/xmr-stak/main.config" ]; then
192 - ewarn "To use xmr-stack:"
193 - if use cuda || use opencl; then
194 - ewarn "As root or as a user that is a member of the 'video' group,"
195 - fi
196 - ewarn "run:"
197 - 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"
198 - ewarn "xmr-stak can now be terminated and 'systemctl start xmr-stak' or '/etc/init.d/xmr-stak start' can be used."
199 - fi
200 -}
201
202 diff --git a/net-p2p/xmr-stak/xmr-stak-9999.ebuild b/net-p2p/xmr-stak/xmr-stak-9999.ebuild
203 deleted file mode 100644
204 index 74eeed32f73..00000000000
205 --- a/net-p2p/xmr-stak/xmr-stak-9999.ebuild
206 +++ /dev/null
207 @@ -1,67 +0,0 @@
208 -# Copyright 1999-2020 Gentoo Authors
209 -# Distributed under the terms of the GNU General Public License v2
210 -
211 -EAPI=7
212 -
213 -inherit cmake systemd
214 -
215 -if [[ ${PV} == "9999" ]] ; then
216 - EGIT_REPO_URI="https://github.com/fireice-uk/xmr-stak.git"
217 - EGIT_BRANCH="dev"
218 - inherit git-r3
219 - SRC_URI=""
220 -else
221 - SRC_URI="https://github.com/fireice-uk/xmr-stak/archive/${PV}.tar.gz -> ${P}.tar.gz"
222 - KEYWORDS="~amd64"
223 -fi
224 -
225 -DESCRIPTION="Unified all-in-one Monero miner"
226 -HOMEPAGE="https://github.com/fireice-uk/xmr-stak"
227 -LICENSE="GPL-3"
228 -SLOT="0"
229 -IUSE="cuda devfee hwloc opencl ssl webserver"
230 -
231 -DEPEND="cuda? ( dev-util/nvidia-cuda-toolkit )
232 - hwloc? ( sys-apps/hwloc )
233 - opencl? ( virtual/opencl )
234 - ssl? ( dev-libs/openssl:0= )
235 - webserver? ( net-libs/libmicrohttpd )"
236 -RDEPEND="${DEPEND}"
237 -
238 -src_prepare() {
239 - cmake_src_prepare
240 - if ! use devfee; then
241 - sed -i -e 's!fDevDonationLevel = .*;!fDevDonationLevel = 0.0;!' xmrstak/donate-level.hpp || die
242 - fi
243 -}
244 -
245 -src_configure() {
246 - local mycmakeargs=(
247 - -DCUDA_ENABLE=$(usex cuda)
248 - -DHWLOC_ENABLE=$(usex hwloc)
249 - -DMICROHTTPD_ENABLE=$(usex webserver)
250 - -DOpenCL_ENABLE=$(usex opencl)
251 - -DOpenSSL_ENABLE=$(usex ssl)
252 - -DLIBRARY_OUTPUT_PATH=$(get_libdir)
253 - )
254 - cmake_src_configure
255 -}
256 -
257 -src_install() {
258 - cmake_src_install
259 - systemd_newunit "${FILESDIR}"/${PN}-2.3.0.service ${PN}.service
260 - doinitd "${FILESDIR}"/${PN}
261 - dodir /etc/xmr-stak
262 -}
263 -
264 -pkg_postinst() {
265 - if [ ! -e "${ROOT}/etc/xmr-stak/main.config" ]; then
266 - ewarn "To use xmr-stack:"
267 - if use cuda || use opencl; then
268 - ewarn "As root or as a user that is a member of the 'video' group,"
269 - fi
270 - ewarn "run:"
271 - 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"
272 - ewarn "xmr-stak can now be terminated and 'systemctl start xmr-stak' or '/etc/init.d/xmr-stak start' can be used."
273 - fi
274 -}
275
276 diff --git a/profiles/package.mask b/profiles/package.mask
277 index bfdd8d35421..f0ffe9b9aac 100644
278 --- a/profiles/package.mask
279 +++ b/profiles/package.mask
280 @@ -429,13 +429,6 @@ dev-libs/go-usb
281 # Removal on 2021-04-29
282 app-office/ical
283
284 -# Craig Andrews <candrews@g.o> (2021-03-29)
285 -# Unmaintained upstream.
286 -# Project is also not useful due to changes in cryptocurrency mining.
287 -# Open security issue, bug #779004
288 -# Removal on 2021-04-29, bug #779166
289 -net-p2p/xmr-stak
290 -
291 # Jonas Stein <jstein@g.o> (2021-03-29)
292 # Depends on gtk-2, no release since 2010.
293 # Removal on 2021-05-01.