1 |
commit: c67632ab0b859d5adb326d97ad5cfb09cd92e2e1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 11 13:55:01 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 11 13:55:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c67632ab |
7 |
|
8 |
net-p2p/ppcoind: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/622572 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
net-p2p/ppcoind/Manifest | 1 - |
14 |
net-p2p/ppcoind/files/ppcoin.conf | 8 -- |
15 |
net-p2p/ppcoind/files/ppcoin.confd | 10 -- |
16 |
net-p2p/ppcoind/files/ppcoin.initd | 104 ------------------ |
17 |
net-p2p/ppcoind/files/ppcoin.initd-r1 | 28 ----- |
18 |
net-p2p/ppcoind/files/ppcoin.service | 30 ------ |
19 |
.../ppcoind/files/ppcoind-0.4.0-boost_chrono.patch | 10 -- |
20 |
net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch | 11 -- |
21 |
net-p2p/ppcoind/files/ppcoind.logrotate | 7 -- |
22 |
net-p2p/ppcoind/metadata.xml | 11 -- |
23 |
net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild | 116 --------------------- |
24 |
profiles/package.mask | 5 - |
25 |
12 files changed, 341 deletions(-) |
26 |
|
27 |
diff --git a/net-p2p/ppcoind/Manifest b/net-p2p/ppcoind/Manifest |
28 |
deleted file mode 100644 |
29 |
index c62698a76b9..00000000000 |
30 |
--- a/net-p2p/ppcoind/Manifest |
31 |
+++ /dev/null |
32 |
@@ -1 +0,0 @@ |
33 |
-DIST ppcoin-0.4.0.tar.gz 12652477 BLAKE2B fbb55c393feea8341ebe0cdf3c48730b63efd15023bb849b9b2f93e8f0a19ab4ecf17802184f76731708fc89a338f946481691a956a58749baa86cf6bd698d5f SHA512 755890e32048f8cdfb9f93706eff952ae2876be394c0a76cf93a79562a28fe03c74c829c97b9234fbc27c03e4b706373f55723564ca7b91a4ff908ca072299c4 |
34 |
|
35 |
diff --git a/net-p2p/ppcoind/files/ppcoin.conf b/net-p2p/ppcoind/files/ppcoin.conf |
36 |
deleted file mode 100644 |
37 |
index c6a55f3d913..00000000000 |
38 |
--- a/net-p2p/ppcoind/files/ppcoin.conf |
39 |
+++ /dev/null |
40 |
@@ -1,8 +0,0 @@ |
41 |
-# http://www.bitcoin.org/smf/index.php?topic=644.0 |
42 |
-#rpcuser= |
43 |
-#rpcpassword= |
44 |
- |
45 |
- |
46 |
- |
47 |
- |
48 |
- |
49 |
|
50 |
diff --git a/net-p2p/ppcoind/files/ppcoin.confd b/net-p2p/ppcoind/files/ppcoin.confd |
51 |
deleted file mode 100644 |
52 |
index 81fbf49e9f3..00000000000 |
53 |
--- a/net-p2p/ppcoind/files/ppcoin.confd |
54 |
+++ /dev/null |
55 |
@@ -1,10 +0,0 @@ |
56 |
-# Config file for /etc/init.d/ppcoind |
57 |
- |
58 |
-# owner of ppciond process (don't change, must be existing) |
59 |
-PPCOIN_USER="ppcoin" |
60 |
- |
61 |
-# See http://www.bitcoin.org/smf/index.php?topic=1063 |
62 |
-PPCOIN_OPTS="${PPCOIN_OPTS}" |
63 |
- |
64 |
-# nice level |
65 |
-NICELEVEL="19" |
66 |
|
67 |
diff --git a/net-p2p/ppcoind/files/ppcoin.initd b/net-p2p/ppcoind/files/ppcoin.initd |
68 |
deleted file mode 100644 |
69 |
index e739dc7dba4..00000000000 |
70 |
--- a/net-p2p/ppcoind/files/ppcoin.initd |
71 |
+++ /dev/null |
72 |
@@ -1,104 +0,0 @@ |
73 |
-#!/sbin/openrc-run |
74 |
-# Distributed under the terms of the GNU General Public License, v2 or later |
75 |
- |
76 |
-VARDIR="/var/lib/ppcoin" |
77 |
-CONFFILE="${VARDIR}/.ppcoin/ppcoin.conf" |
78 |
- |
79 |
-depend() { |
80 |
- need net |
81 |
-} |
82 |
- |
83 |
-checkconfig() { |
84 |
- if [[ "${PPCOIN_USER}" == "" ]] ; then |
85 |
- eerror "Please edit /etc/conf.d/ppcoind" |
86 |
- eerror "A user must be specified to run ppcoind as that user." |
87 |
- eerror "Modify USER to your needs (you may also add a group after a colon)" |
88 |
- return 1 |
89 |
- fi |
90 |
- if ! `getent passwd | cut -d ':' -f 1 | grep $( echo "${PPCOIN_USER}" | cut -d ':' -f 1 ) -sq` ; then |
91 |
- eerror "Please edit /etc/conf.d/ppcoind" |
92 |
- eerror "Specified user must exist!" |
93 |
- return 1 |
94 |
- fi |
95 |
- if `echo "${PPCOIN_USER}" | grep ':' -sq` ; then |
96 |
- if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${PPCOIN_USER}" | cut -d ':' -f 2 ) -sq` ; then |
97 |
- eerror "Please edit /etc/conf.d/ppcoind" |
98 |
- eerror "Specified group must exist!" |
99 |
- return 1 |
100 |
- fi |
101 |
- fi |
102 |
- if ! grep -q '^rpcpassword=' "${CONFFILE}"; then |
103 |
- eerror "Please edit `readlink -f ${CONFFILE}`" |
104 |
- eerror "There must be at least a line assigning rpcpassword=something-secure" |
105 |
- return 1 |
106 |
- fi |
107 |
- if ! stat -Lc '%a' "${CONFFILE}" | grep -q '^[4567]00$'; then |
108 |
- eerror "`readlink -f ${CONFFILE}` should not be readable by other users" |
109 |
- return 1 |
110 |
- fi |
111 |
- return 0 |
112 |
-} |
113 |
- |
114 |
-start() { |
115 |
- checkconfig || return 1 |
116 |
- ebegin "Starting PPcoind daemon" |
117 |
- |
118 |
- pkg-config openrc |
119 |
- if [ $? = 0 ]; then |
120 |
- start_openrc |
121 |
- else |
122 |
- start_baselayout |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-stop() { |
127 |
- ebegin "Stopping PPcoin daemon" |
128 |
- |
129 |
- pkg-config openrc |
130 |
- if [ $? = 0 ]; then |
131 |
- stop_openrc |
132 |
- else |
133 |
- stop_baselayout |
134 |
- fi |
135 |
-} |
136 |
- |
137 |
-start_openrc() { |
138 |
- start-stop-daemon \ |
139 |
- --start --user "${PPCOIN_USER}" --name ppcoind \ |
140 |
- --pidfile /var/run/ppcoind.pid --make-pidfile \ |
141 |
- --env HOME="${VARDIR}" --exec /usr/bin/ppcoind \ |
142 |
- --nicelevel "${NICELEVEL}" \ |
143 |
- --background \ |
144 |
- --wait 2000 \ |
145 |
- -- ${PPCOIN_OPTS} |
146 |
- eend $? |
147 |
-} |
148 |
- |
149 |
-stop_openrc() { |
150 |
- start-stop-daemon --stop --user "${PPCOIN_USER}" \ |
151 |
- --name ppcoind --pidfile /var/run/ppcoind.pid \ |
152 |
- --wait 30000 \ |
153 |
- --progress |
154 |
- eend $? |
155 |
-} |
156 |
- |
157 |
-start_baselayout() { |
158 |
- start-stop-daemon \ |
159 |
- --start --user "${PPCOIN_USER}" --name ppcoind \ |
160 |
- --pidfile /var/run/ppcoind.pid --make-pidfile \ |
161 |
- --env HOME="${VARDIR}" --exec /usr/bin/ppcoind \ |
162 |
- --chuid "${PPCOIN_USER}" \ |
163 |
- --nicelevel "${NICELEVEL}" \ |
164 |
- --background \ |
165 |
- -- ${PPCOIN_OPTS} |
166 |
- eend $? |
167 |
-} |
168 |
- |
169 |
-stop_baselayout() { |
170 |
- start-stop-daemon \ |
171 |
- --stop \ |
172 |
- --user "${PPCOIN_USER}" \ |
173 |
- --name ppcoind \ |
174 |
- --pidfile /var/run/ppcoind.pid |
175 |
- eend $? |
176 |
-} |
177 |
|
178 |
diff --git a/net-p2p/ppcoind/files/ppcoin.initd-r1 b/net-p2p/ppcoind/files/ppcoin.initd-r1 |
179 |
deleted file mode 100644 |
180 |
index 8023f1f0d37..00000000000 |
181 |
--- a/net-p2p/ppcoind/files/ppcoin.initd-r1 |
182 |
+++ /dev/null |
183 |
@@ -1,28 +0,0 @@ |
184 |
-#!/sbin/openrc-run |
185 |
-# Copyright 1999-2014 Gentoo Foundation |
186 |
-# Distributed under the terms of the GNU General Public License v2 |
187 |
- |
188 |
-vardir="/var/lib/ppcoin" |
189 |
-conffile="${vardir}/.ppcoin/ppcoin.conf" |
190 |
-ppcoind_user="${PPCOIN_USER:-nobody:nobody}" |
191 |
- |
192 |
-description="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." |
193 |
-pidfile="/run/${SVCNAME}.pid" |
194 |
-command="/usr/bin/ppcoind" |
195 |
-command_args="${PPCOIN_OPTS}" |
196 |
-command_background="true" |
197 |
-start_stop_daemon_args="-u ${ppcoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" |
198 |
- |
199 |
-depend() { |
200 |
- need net |
201 |
-} |
202 |
- |
203 |
-start_pre() { |
204 |
- checkpath -f -o ${ppcoind_user} -m 0400 ${conffile} || return 1 |
205 |
- |
206 |
- if ! grep -q '^rpcpassword=' "${conffile}"; then |
207 |
- eerror "Please edit `readlink -f ${conffile}`" |
208 |
- eerror "There must be at least a line assigning rpcpassword=something-secure" |
209 |
- return 1 |
210 |
- fi |
211 |
-} |
212 |
|
213 |
diff --git a/net-p2p/ppcoind/files/ppcoin.service b/net-p2p/ppcoind/files/ppcoin.service |
214 |
deleted file mode 100644 |
215 |
index 3a83178fe04..00000000000 |
216 |
--- a/net-p2p/ppcoind/files/ppcoin.service |
217 |
+++ /dev/null |
218 |
@@ -1,30 +0,0 @@ |
219 |
-# It's not recommended to modify this file in-place, because it will be |
220 |
-# overwritten during package upgrades. If you want to customize, the |
221 |
-# best way is to create file |
222 |
-# "/etc/systemd/system/ppcoind.service.d/*.conf" |
223 |
-# containing your changes |
224 |
- |
225 |
-# For example, if you want to change some daemon and/or unit options, |
226 |
-# create a file named |
227 |
-# "/etc/systemd/system/ppcoind.service.d/myopts.conf" |
228 |
-# containing: |
229 |
-# [Service] |
230 |
-# Environment="PPCOIN_OPTS=-debug -logtimestamps" |
231 |
-# Nice=10 |
232 |
-# This will override the setting appearing below. |
233 |
- |
234 |
-# Note that almost all daemon options could be specified in |
235 |
-# /etc/ppcoin/ppcoin.conf |
236 |
- |
237 |
-[Unit] |
238 |
-Description=PPcoin Daemon |
239 |
-After=network.target |
240 |
- |
241 |
-[Service] |
242 |
-User=ppcoin |
243 |
-Environment=PPCOIN_OPTS= |
244 |
-ExecStart=/usr/bin/ppcoind -daemon=0 $PPCOIN_OPTS |
245 |
-ExecReload=/bin/kill -HUP $MAINPID |
246 |
- |
247 |
-[Install] |
248 |
-WantedBy=multi-user.target |
249 |
|
250 |
diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch b/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch |
251 |
deleted file mode 100644 |
252 |
index 390d5c7c94b..00000000000 |
253 |
--- a/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch |
254 |
+++ /dev/null |
255 |
@@ -1,10 +0,0 @@ |
256 |
---- a/src/makefile.unix |
257 |
-+++ b/src/makefile.unix |
258 |
-@@ -30,6 +30,7 @@ |
259 |
- -l boost_filesystem$(BOOST_LIB_SUFFIX) \ |
260 |
- -l boost_program_options$(BOOST_LIB_SUFFIX) \ |
261 |
- -l boost_thread$(BOOST_LIB_SUFFIX) \ |
262 |
-+ -l boost_chrono$(BOOST_LIB_SUFFIX) \ |
263 |
- -l db_cxx$(BDB_LIB_SUFFIX) \ |
264 |
- -l ssl \ |
265 |
- -l crypto |
266 |
|
267 |
diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch |
268 |
deleted file mode 100644 |
269 |
index 76bad3feb5a..00000000000 |
270 |
--- a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch |
271 |
+++ /dev/null |
272 |
@@ -1,11 +0,0 @@ |
273 |
---- a/src/net.cpp |
274 |
-+++ b/src/net.cpp |
275 |
-@@ -51,7 +51,7 @@ CAddress addrLocalHost(CService("0.0.0.0", 0), nLocalServices); |
276 |
- CAddress addrSeenByPeer(CService("0.0.0.0", 0), nLocalServices); |
277 |
- static CNode* pnodeLocalHost = NULL; |
278 |
- uint64 nLocalHostNonce = 0; |
279 |
--array<int, THREAD_MAX> vnThreadsRunning; |
280 |
-+boost::array<int, THREAD_MAX> vnThreadsRunning; |
281 |
- static SOCKET hListenSocket = INVALID_SOCKET; |
282 |
- CAddrMan addrman; |
283 |
- |
284 |
|
285 |
diff --git a/net-p2p/ppcoind/files/ppcoind.logrotate b/net-p2p/ppcoind/files/ppcoind.logrotate |
286 |
deleted file mode 100644 |
287 |
index 4ea060b0f0f..00000000000 |
288 |
--- a/net-p2p/ppcoind/files/ppcoind.logrotate |
289 |
+++ /dev/null |
290 |
@@ -1,7 +0,0 @@ |
291 |
-/var/lib/ppcoin/.ppcoin/debug.log { |
292 |
- weekly |
293 |
- sharedscripts |
294 |
- postrotate |
295 |
- killall -HUP ppcoind |
296 |
- endscript |
297 |
-} |
298 |
|
299 |
diff --git a/net-p2p/ppcoind/metadata.xml b/net-p2p/ppcoind/metadata.xml |
300 |
deleted file mode 100644 |
301 |
index f08d8cf453e..00000000000 |
302 |
--- a/net-p2p/ppcoind/metadata.xml |
303 |
+++ /dev/null |
304 |
@@ -1,11 +0,0 @@ |
305 |
-<?xml version="1.0" encoding="UTF-8"?> |
306 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
307 |
-<pkgmetadata> |
308 |
- <!-- maintainer-needed --> |
309 |
- <use> |
310 |
- <flag name="logrotate">Use app-admin/logrotate for rotating logs</flag> |
311 |
- </use> |
312 |
- <upstream> |
313 |
- <remote-id type="sourceforge">ppcoin</remote-id> |
314 |
- </upstream> |
315 |
-</pkgmetadata> |
316 |
|
317 |
diff --git a/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild b/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild |
318 |
deleted file mode 100644 |
319 |
index 08d250f53ef..00000000000 |
320 |
--- a/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild |
321 |
+++ /dev/null |
322 |
@@ -1,116 +0,0 @@ |
323 |
-# Copyright 1999-2018 Gentoo Foundation |
324 |
-# Distributed under the terms of the GNU General Public License v2 |
325 |
- |
326 |
-EAPI=6 |
327 |
- |
328 |
-DB_VER="4.8" |
329 |
- |
330 |
-inherit db-use eutils systemd user |
331 |
- |
332 |
-MyPV="${PV/_/-}" |
333 |
-MyPN="ppcoin" |
334 |
-MyP="${MyPN}-${MyPV}" |
335 |
- |
336 |
-DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency" |
337 |
-HOMEPAGE="https://peercoin.net/" |
338 |
-SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" |
339 |
- |
340 |
-LICENSE="MIT ISC GPL-2" |
341 |
-SLOT="0" |
342 |
-KEYWORDS="~amd64 ~x86" |
343 |
-IUSE="examples ipv6 logrotate upnp" |
344 |
- |
345 |
-RDEPEND=" |
346 |
- dev-libs/boost:=[threads(+)] |
347 |
- dev-libs/openssl:0[-bindist] |
348 |
- logrotate? ( |
349 |
- app-admin/logrotate |
350 |
- ) |
351 |
- upnp? ( |
352 |
- net-libs/miniupnpc |
353 |
- ) |
354 |
- sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
355 |
-" |
356 |
-DEPEND="${RDEPEND} |
357 |
- >=app-shells/bash-4.1 |
358 |
- sys-apps/sed |
359 |
-" |
360 |
- |
361 |
-DOCS=( ../README README.md ) |
362 |
- |
363 |
-PATCHES=( |
364 |
- "${FILESDIR}"/${P}-gcc6.patch |
365 |
- "${FILESDIR}"/${P}-boost_chrono.patch |
366 |
-) |
367 |
- |
368 |
-S="${WORKDIR}/${MyP}-linux/src" |
369 |
- |
370 |
-pkg_setup() { |
371 |
- local UG='ppcoin' |
372 |
- enewgroup "${UG}" |
373 |
- enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" |
374 |
-} |
375 |
- |
376 |
-src_configure() { |
377 |
- OPTS=() |
378 |
- |
379 |
- OPTS+=("DEBUGFLAGS=") |
380 |
- OPTS+=("CXXFLAGS=${CXXFLAGS}") |
381 |
- OPTS+=("LDFLAGS=${LDFLAGS}") |
382 |
- |
383 |
- if use upnp; then |
384 |
- OPTS+=("USE_UPNP=1") |
385 |
- else |
386 |
- OPTS+=("USE_UPNP=-") |
387 |
- fi |
388 |
- |
389 |
- use ipv6 || OPTS+=("USE_IPV6=-") |
390 |
- |
391 |
- OPTS+=("USE_SYSTEM_LEVELDB=1") |
392 |
- OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
393 |
- OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
394 |
- |
395 |
- emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -C src -f makefile.unix "${OPTS[@]}" ${PN} |
396 |
-} |
397 |
- |
398 |
-#Tests are broken |
399 |
-#src_test() { |
400 |
-# cd src || die |
401 |
-# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin |
402 |
-# ./test_ppcoin || die 'Tests failed' |
403 |
-#} |
404 |
- |
405 |
-src_install() { |
406 |
- dobin src/${PN} |
407 |
- |
408 |
- insinto /etc/ppcoin |
409 |
- doins "${FILESDIR}/ppcoin.conf" |
410 |
- fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf |
411 |
- fperms 600 /etc/ppcoin/ppcoin.conf |
412 |
- |
413 |
- newconfd "${FILESDIR}/ppcoin.confd" ${PN} |
414 |
- newinitd "${FILESDIR}/ppcoin.initd-r1" ${PN} |
415 |
- systemd_dounit "${FILESDIR}/ppcoin.service" |
416 |
- |
417 |
- keepdir /var/lib/ppcoin/.ppcoin |
418 |
- fperms 700 /var/lib/ppcoin |
419 |
- fowners ppcoin:ppcoin /var/lib/ppcoin/ |
420 |
- fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin |
421 |
- dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf |
422 |
- |
423 |
- newman contrib/debian/manpages/bitcoind.1 ppcoind.1 |
424 |
- newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 |
425 |
- |
426 |
- einstalldocs |
427 |
- |
428 |
- if use examples; then |
429 |
- docinto examples |
430 |
- dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} |
431 |
- |
432 |
- fi |
433 |
- |
434 |
- if use logrotate; then |
435 |
- insinto /etc/logrotate.d |
436 |
- newins "${FILESDIR}/ppcoind.logrotate" ppcoind |
437 |
- fi |
438 |
-} |
439 |
|
440 |
diff --git a/profiles/package.mask b/profiles/package.mask |
441 |
index 1645582903e..cae14e73b56 100644 |
442 |
--- a/profiles/package.mask |
443 |
+++ b/profiles/package.mask |
444 |
@@ -161,11 +161,6 @@ dev-java/ant-trax |
445 |
# Removal in a month. |
446 |
app-admin/localepurge |
447 |
|
448 |
-# Pacho Ramos <pacho@g.o> (11 Nov 2018) |
449 |
-# Unmaintained, really old version in the tree with someone needs to get |
450 |
-# bumped (#622572). Removal in a month. |
451 |
-net-p2p/ppcoind |
452 |
- |
453 |
# Pacho Ramos <pacho@g.o> (11 Nov 2018) |
454 |
# Fails to build (#662000), not compatible with kernel-4, use kernel driver rtsx_pci |
455 |
# instead. Removal in a month. |