diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
commit | de49812990871e1705b64051c35161d5e6400269 (patch) | |
tree | 5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /net-p2p/ppcoind | |
parent | 536c3711867ec947c1738f2c4b96f22e4863322d (diff) |
gentoo resync : 24.12.2018
Diffstat (limited to 'net-p2p/ppcoind')
-rw-r--r-- | net-p2p/ppcoind/Manifest | 11 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.conf | 8 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.confd | 10 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.initd | 104 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.initd-r1 | 28 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoin.service | 30 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch | 10 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch | 11 | ||||
-rw-r--r-- | net-p2p/ppcoind/files/ppcoind.logrotate | 7 | ||||
-rw-r--r-- | net-p2p/ppcoind/metadata.xml | 11 | ||||
-rw-r--r-- | net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild | 116 |
11 files changed, 0 insertions, 346 deletions
diff --git a/net-p2p/ppcoind/Manifest b/net-p2p/ppcoind/Manifest deleted file mode 100644 index 6f5de6afccf1..000000000000 --- a/net-p2p/ppcoind/Manifest +++ /dev/null @@ -1,11 +0,0 @@ -AUX ppcoin.conf 80 BLAKE2B be9f776453fce1081dfa95fd844089d51e8212731d7bb460256a3b258b5369fe14b0bd19af15d9c360fbc07232e8718056acd829e03138a326faba32ac42e4da SHA512 43bef890505a1fac88887bb39e9fdd4ec673ae8838a40279b33711e970551f5a75ac25171c41f8c83de2c953b157f7a3f57171e868fd9f626007d9909331a19f -AUX ppcoin.confd 233 BLAKE2B 255549f9370e7f0ef679daae95c76d7345b0e9fd568a482eeb7b041dba64bd9c2e832af7989f7cc321aac31d9fda148560cb74cf0dbe5c81082c268665682ddc SHA512 efb8f210143d993e922668e3daffc8bb74406be2f912729f68ebfcbcb3d44e10e0fed495963c4273a95099d37f3afc66b49616724bd827e6b4359b2e3a27d9c3 -AUX ppcoin.initd 2452 BLAKE2B fa2c8b2b2539fdeff664fc1c698eb594582ea324eab314721a32e94315e3a946e0aec32857affc5e783bfe24441ea4b37fc0e91bb5218b00d0d371b90e9a989f SHA512 200562252dcb716ff79b2f32de142e5857cc997585a0c96d9f1c89cdced9f46598f15d11616b5ebb368b4e5915ed707be02af6227fe47dc46c022f80583d586d -AUX ppcoin.initd-r1 827 BLAKE2B e6038e3a7238b2539b1d57902b50c8c75733cf080e51791e3f985522f2440f295226c22a68d7689184daba2cf2bd089de2ad9b674a32609feb67319ebd20d8b1 SHA512 8bcf80e668ea549bb1eb641f66ec2349f5e3f32131312eabbfa086586004bacd95527d196d8bbb6b76dd88f6112c633a7b1e418ce50f8f0f33786db0cad20d4d -AUX ppcoin.service 859 BLAKE2B 29c4e4bf52e8491c9caedd4a1130f2f48fac46d27f1b804fe1e13716c2bc75fcea3c2ae676fbf8a7f3ae659f72fb8dd666884f83c8636c170b5c4c7d8b435510 SHA512 8395ef4f5b026757f4202c78eb55b6978d2cdec49f6db801bb6daddea8d8a524afacf53368a78c3a7055ce5cc4ada53ac6c88567b02951fa7a722e5dd9ebd3c1 -AUX ppcoind-0.4.0-boost_chrono.patch 303 BLAKE2B dbabb2388a6f764006140ef02611ed456bc06d276fb15e52e7cfd95565df0210c15fc2537d2c524f724a7a42f7f776ee96a5b24b1f2657bdb766c9a922f510a4 SHA512 0967f2455e6390ddcf6f38ba2d5f1290e41198ef8d4afa94e21de07771eedfbe89ee6af0c19cd76c0264bcfbe958d6dc0baedc96bef1e8badf613061eba99b6a -AUX ppcoind-0.4.0-gcc6.patch 410 BLAKE2B 381df96e172af619ac9d4e862d9198556fa99014a3c2ddb288b09c561d86a3576deffeb5a0350ecafa8fb8f0ca2f0ee1752d5e83582591e73fd7f8f8110afb26 SHA512 6153d2a3ede27453589e6bc081a36a8962234076b8f87077f41bd9ba913c2c6cd2bfaaba010464d89a7f77e7e1e3682e87164835a24d1145e910f46c66095c25 -AUX ppcoind.logrotate 107 BLAKE2B 37c411a5079a6e90957b7f42b0f6e3275466df28f182f44237d2f0bba34834327abf30f22d95420f79cdcc4bb3011adee6a413684154ebb64e177e28fe41ad9e SHA512 bf36d07a6dcebcc50ac7e0b74433333902df6ef22396a876b96289cca90882720ed95ef0cc8fbf3abeea6800cbe2386e56b27bb798922f3be98134dee1caed69 -DIST ppcoin-0.4.0.tar.gz 12652477 BLAKE2B fbb55c393feea8341ebe0cdf3c48730b63efd15023bb849b9b2f93e8f0a19ab4ecf17802184f76731708fc89a338f946481691a956a58749baa86cf6bd698d5f SHA512 755890e32048f8cdfb9f93706eff952ae2876be394c0a76cf93a79562a28fe03c74c829c97b9234fbc27c03e4b706373f55723564ca7b91a4ff908ca072299c4 -EBUILD ppcoind-0.4.0-r1.ebuild 2516 BLAKE2B c8a11a0df2724b1bd1fabdfe8fc8ab292057a71d7ce44f9115ff2c2d2c38d37e4f00c03f3d073b36ccda73981957e49ab9b05967c0a05c61b4d7cdbc2a5e7bff SHA512 0f007cdc04592d61f9b2995781e761d4e3310cfa382ce452796fc3955a44b12b47356925bbc0d5be86053fcdb1ac12625fd892f71e967abccfd8f8058c64f46c -MISC metadata.xml 332 BLAKE2B 46a3b2df1abe0ea5642f3cdd6ce9b57d0e17f39d2ac8a7282d1a17199ad3a0f11071a5c309a683e9e32c323db713855d368a652ce927024a182afa332dc5726c SHA512 430c6665189005260d6a07fc0e8185c1ec896177b405a261a851a77a77e58bc35fa693896deedd68589e1d42f48299815cd7e1d9e42e9e54bf2be36d23fcfa84 diff --git a/net-p2p/ppcoind/files/ppcoin.conf b/net-p2p/ppcoind/files/ppcoin.conf deleted file mode 100644 index c6a55f3d9133..000000000000 --- a/net-p2p/ppcoind/files/ppcoin.conf +++ /dev/null @@ -1,8 +0,0 @@ -# http://www.bitcoin.org/smf/index.php?topic=644.0 -#rpcuser= -#rpcpassword= - - - - - diff --git a/net-p2p/ppcoind/files/ppcoin.confd b/net-p2p/ppcoind/files/ppcoin.confd deleted file mode 100644 index 81fbf49e9f38..000000000000 --- a/net-p2p/ppcoind/files/ppcoin.confd +++ /dev/null @@ -1,10 +0,0 @@ -# Config file for /etc/init.d/ppcoind - -# owner of ppciond process (don't change, must be existing) -PPCOIN_USER="ppcoin" - -# See http://www.bitcoin.org/smf/index.php?topic=1063 -PPCOIN_OPTS="${PPCOIN_OPTS}" - -# nice level -NICELEVEL="19" diff --git a/net-p2p/ppcoind/files/ppcoin.initd b/net-p2p/ppcoind/files/ppcoin.initd deleted file mode 100644 index e739dc7dba4e..000000000000 --- a/net-p2p/ppcoind/files/ppcoin.initd +++ /dev/null @@ -1,104 +0,0 @@ -#!/sbin/openrc-run -# Distributed under the terms of the GNU General Public License, v2 or later - -VARDIR="/var/lib/ppcoin" -CONFFILE="${VARDIR}/.ppcoin/ppcoin.conf" - -depend() { - need net -} - -checkconfig() { - if [[ "${PPCOIN_USER}" == "" ]] ; then - eerror "Please edit /etc/conf.d/ppcoind" - eerror "A user must be specified to run ppcoind as that user." - eerror "Modify USER to your needs (you may also add a group after a colon)" - return 1 - fi - if ! `getent passwd | cut -d ':' -f 1 | grep $( echo "${PPCOIN_USER}" | cut -d ':' -f 1 ) -sq` ; then - eerror "Please edit /etc/conf.d/ppcoind" - eerror "Specified user must exist!" - return 1 - fi - if `echo "${PPCOIN_USER}" | grep ':' -sq` ; then - if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${PPCOIN_USER}" | cut -d ':' -f 2 ) -sq` ; then - eerror "Please edit /etc/conf.d/ppcoind" - eerror "Specified group must exist!" - return 1 - fi - fi - if ! grep -q '^rpcpassword=' "${CONFFILE}"; then - eerror "Please edit `readlink -f ${CONFFILE}`" - eerror "There must be at least a line assigning rpcpassword=something-secure" - return 1 - fi - if ! stat -Lc '%a' "${CONFFILE}" | grep -q '^[4567]00$'; then - eerror "`readlink -f ${CONFFILE}` should not be readable by other users" - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - ebegin "Starting PPcoind daemon" - - pkg-config openrc - if [ $? = 0 ]; then - start_openrc - else - start_baselayout - fi -} - -stop() { - ebegin "Stopping PPcoin daemon" - - pkg-config openrc - if [ $? = 0 ]; then - stop_openrc - else - stop_baselayout - fi -} - -start_openrc() { - start-stop-daemon \ - --start --user "${PPCOIN_USER}" --name ppcoind \ - --pidfile /var/run/ppcoind.pid --make-pidfile \ - --env HOME="${VARDIR}" --exec /usr/bin/ppcoind \ - --nicelevel "${NICELEVEL}" \ - --background \ - --wait 2000 \ - -- ${PPCOIN_OPTS} - eend $? -} - -stop_openrc() { - start-stop-daemon --stop --user "${PPCOIN_USER}" \ - --name ppcoind --pidfile /var/run/ppcoind.pid \ - --wait 30000 \ - --progress - eend $? -} - -start_baselayout() { - start-stop-daemon \ - --start --user "${PPCOIN_USER}" --name ppcoind \ - --pidfile /var/run/ppcoind.pid --make-pidfile \ - --env HOME="${VARDIR}" --exec /usr/bin/ppcoind \ - --chuid "${PPCOIN_USER}" \ - --nicelevel "${NICELEVEL}" \ - --background \ - -- ${PPCOIN_OPTS} - eend $? -} - -stop_baselayout() { - start-stop-daemon \ - --stop \ - --user "${PPCOIN_USER}" \ - --name ppcoind \ - --pidfile /var/run/ppcoind.pid - eend $? -} diff --git a/net-p2p/ppcoind/files/ppcoin.initd-r1 b/net-p2p/ppcoind/files/ppcoin.initd-r1 deleted file mode 100644 index 8023f1f0d378..000000000000 --- a/net-p2p/ppcoind/files/ppcoin.initd-r1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -vardir="/var/lib/ppcoin" -conffile="${vardir}/.ppcoin/ppcoin.conf" -ppcoind_user="${PPCOIN_USER:-nobody:nobody}" - -description="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." -pidfile="/run/${SVCNAME}.pid" -command="/usr/bin/ppcoind" -command_args="${PPCOIN_OPTS}" -command_background="true" -start_stop_daemon_args="-u ${ppcoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" - -depend() { - need net -} - -start_pre() { - checkpath -f -o ${ppcoind_user} -m 0400 ${conffile} || return 1 - - if ! grep -q '^rpcpassword=' "${conffile}"; then - eerror "Please edit `readlink -f ${conffile}`" - eerror "There must be at least a line assigning rpcpassword=something-secure" - return 1 - fi -} diff --git a/net-p2p/ppcoind/files/ppcoin.service b/net-p2p/ppcoind/files/ppcoin.service deleted file mode 100644 index 3a83178fe04e..000000000000 --- a/net-p2p/ppcoind/files/ppcoin.service +++ /dev/null @@ -1,30 +0,0 @@ -# It's not recommended to modify this file in-place, because it will be -# overwritten during package upgrades. If you want to customize, the -# best way is to create file -# "/etc/systemd/system/ppcoind.service.d/*.conf" -# containing your changes - -# For example, if you want to change some daemon and/or unit options, -# create a file named -# "/etc/systemd/system/ppcoind.service.d/myopts.conf" -# containing: -# [Service] -# Environment="PPCOIN_OPTS=-debug -logtimestamps" -# Nice=10 -# This will override the setting appearing below. - -# Note that almost all daemon options could be specified in -# /etc/ppcoin/ppcoin.conf - -[Unit] -Description=PPcoin Daemon -After=network.target - -[Service] -User=ppcoin -Environment=PPCOIN_OPTS= -ExecStart=/usr/bin/ppcoind -daemon=0 $PPCOIN_OPTS -ExecReload=/bin/kill -HUP $MAINPID - -[Install] -WantedBy=multi-user.target 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 deleted file mode 100644 index 390d5c7c94b1..000000000000 --- a/net-p2p/ppcoind/files/ppcoind-0.4.0-boost_chrono.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/src/makefile.unix -+++ b/src/makefile.unix -@@ -30,6 +30,7 @@ - -l boost_filesystem$(BOOST_LIB_SUFFIX) \ - -l boost_program_options$(BOOST_LIB_SUFFIX) \ - -l boost_thread$(BOOST_LIB_SUFFIX) \ -+ -l boost_chrono$(BOOST_LIB_SUFFIX) \ - -l db_cxx$(BDB_LIB_SUFFIX) \ - -l ssl \ - -l crypto diff --git a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch b/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch deleted file mode 100644 index 76bad3feb5a4..000000000000 --- a/net-p2p/ppcoind/files/ppcoind-0.4.0-gcc6.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/src/net.cpp -+++ b/src/net.cpp -@@ -51,7 +51,7 @@ CAddress addrLocalHost(CService("0.0.0.0", 0), nLocalServices); - CAddress addrSeenByPeer(CService("0.0.0.0", 0), nLocalServices); - static CNode* pnodeLocalHost = NULL; - uint64 nLocalHostNonce = 0; --array<int, THREAD_MAX> vnThreadsRunning; -+boost::array<int, THREAD_MAX> vnThreadsRunning; - static SOCKET hListenSocket = INVALID_SOCKET; - CAddrMan addrman; - diff --git a/net-p2p/ppcoind/files/ppcoind.logrotate b/net-p2p/ppcoind/files/ppcoind.logrotate deleted file mode 100644 index 4ea060b0f0f7..000000000000 --- a/net-p2p/ppcoind/files/ppcoind.logrotate +++ /dev/null @@ -1,7 +0,0 @@ -/var/lib/ppcoin/.ppcoin/debug.log { - weekly - sharedscripts - postrotate - killall -HUP ppcoind - endscript -} diff --git a/net-p2p/ppcoind/metadata.xml b/net-p2p/ppcoind/metadata.xml deleted file mode 100644 index f08d8cf453eb..000000000000 --- a/net-p2p/ppcoind/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <use> - <flag name="logrotate">Use app-admin/logrotate for rotating logs</flag> - </use> - <upstream> - <remote-id type="sourceforge">ppcoin</remote-id> - </upstream> -</pkgmetadata> diff --git a/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild b/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild deleted file mode 100644 index 08d250f53efe..000000000000 --- a/net-p2p/ppcoind/ppcoind-0.4.0-r1.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DB_VER="4.8" - -inherit db-use eutils systemd user - -MyPV="${PV/_/-}" -MyPN="ppcoin" -MyP="${MyPN}-${MyPV}" - -DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency" -HOMEPAGE="https://peercoin.net/" -SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" - -LICENSE="MIT ISC GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples ipv6 logrotate upnp" - -RDEPEND=" - dev-libs/boost:=[threads(+)] - dev-libs/openssl:0[-bindist] - logrotate? ( - app-admin/logrotate - ) - upnp? ( - net-libs/miniupnpc - ) - sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] -" -DEPEND="${RDEPEND} - >=app-shells/bash-4.1 - sys-apps/sed -" - -DOCS=( ../README README.md ) - -PATCHES=( - "${FILESDIR}"/${P}-gcc6.patch - "${FILESDIR}"/${P}-boost_chrono.patch -) - -S="${WORKDIR}/${MyP}-linux/src" - -pkg_setup() { - local UG='ppcoin' - enewgroup "${UG}" - enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" -} - -src_configure() { - OPTS=() - - OPTS+=("DEBUGFLAGS=") - OPTS+=("CXXFLAGS=${CXXFLAGS}") - OPTS+=("LDFLAGS=${LDFLAGS}") - - if use upnp; then - OPTS+=("USE_UPNP=1") - else - OPTS+=("USE_UPNP=-") - fi - - use ipv6 || OPTS+=("USE_IPV6=-") - - OPTS+=("USE_SYSTEM_LEVELDB=1") - OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") - OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") - - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -C src -f makefile.unix "${OPTS[@]}" ${PN} -} - -#Tests are broken -#src_test() { -# cd src || die -# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin -# ./test_ppcoin || die 'Tests failed' -#} - -src_install() { - dobin src/${PN} - - insinto /etc/ppcoin - doins "${FILESDIR}/ppcoin.conf" - fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf - fperms 600 /etc/ppcoin/ppcoin.conf - - newconfd "${FILESDIR}/ppcoin.confd" ${PN} - newinitd "${FILESDIR}/ppcoin.initd-r1" ${PN} - systemd_dounit "${FILESDIR}/ppcoin.service" - - keepdir /var/lib/ppcoin/.ppcoin - fperms 700 /var/lib/ppcoin - fowners ppcoin:ppcoin /var/lib/ppcoin/ - fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin - dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf - - newman contrib/debian/manpages/bitcoind.1 ppcoind.1 - newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 - - einstalldocs - - if use examples; then - docinto examples - dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} - - fi - - if use logrotate; then - insinto /etc/logrotate.d - newins "${FILESDIR}/ppcoind.logrotate" ppcoind - fi -} |