parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit cd93ab7a452352c64a78779671d7826e3a6db310
parent 256cf75a3dc2ac5d46ac65579ad64d72a30db24d
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 17 May 2022 10:54:16 +0200

net-p2p/monero: Remove ebuilds.

Diffstat:
Dnet-p2p/monero/files/monero-0.17.1.3-linkjobs.patch | 44--------------------------------------------
Dnet-p2p/monero/files/monerod-0.16.0.3-r1.confd | 6------
Dnet-p2p/monero/files/monerod-0.16.0.3-r1.initd | 21---------------------
Dnet-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf | 9---------
Dnet-p2p/monero/files/monerod-0.17.1.5.service | 18------------------
Dnet-p2p/monero/metadata.xml | 32--------------------------------
Dnet-p2p/monero/monero-0.17.1.9-r1.ebuild | 105-------------------------------------------------------------------------------
7 files changed, 0 insertions(+), 235 deletions(-)

diff --git a/net-p2p/monero/files/monero-0.17.1.3-linkjobs.patch b/net-p2p/monero/files/monero-0.17.1.3-linkjobs.patch @@ -1,44 +0,0 @@ -From 12a78e5e745556c29e45b7716a8b038ecfbff800 Mon Sep 17 00:00:00 2001 -From: Matt Smith <matt@offtopica.uk> -Date: Wed, 5 Aug 2020 18:39:44 +0100 -Subject: [PATCH] cmake: Use job pool feature to limit concurrent jobs - -Add two new options, MONERO_PARALLEL_COMPILE_JOBS and -MONERO_PARALLEL_LINK_JOBS to try and prevent running out of memory when -building everything. - -Requires >= cmake 3.0.0, and the use of the Ninja generator. - -Useful links: - -* https://cmake.org/cmake/help/latest/prop_gbl/JOB_POOLS.html -* https://reviews.llvm.org/D6304 ---- - CMakeLists.txt | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f63c07a35d..3729a6b659 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -55,6 +55,20 @@ else() - message(STATUS "ccache deselected") - endif() - -+if (${CMAKE_VERSION} VERSION_GREATER "3.0.0" AND CMAKE_MAKE_PROGRAM MATCHES "ninja") -+ set(MONERO_PARALLEL_COMPILE_JOBS "" CACHE STRING "The maximum number of concurrent compilation jobs.") -+ if (MONERO_PARALLEL_COMPILE_JOBS) -+ set_property(GLOBAL APPEND PROPERTY JOB_POOLS compile_job_pool=${MONERO_PARALLEL_COMPILE_JOBS}) -+ set(CMAKE_JOB_POOL_COMPILE compile_job_pool) -+ endif () -+ -+ set(MONERO_PARALLEL_LINK_JOBS "" CACHE STRING "The maximum number of concurrent link jobs.") -+ if (MONERO_PARALLEL_LINK_JOBS) -+ set_property(GLOBAL APPEND PROPERTY JOB_POOLS link_job_pool=${MONERO_PARALLEL_LINK_JOBS}) -+ set(CMAKE_JOB_POOL_LINK link_job_pool) -+ endif () -+endif() -+ - enable_language(C ASM) - - function (die msg) diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.confd b/net-p2p/monero/files/monerod-0.16.0.3-r1.confd @@ -1,6 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -monerod_args="--config-file /etc/monero/monerod.conf --non-interactive" -monerod_user=monero -monerod_group=monero diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.initd b/net-p2p/monero/files/monerod-0.16.0.3-r1.initd @@ -1,21 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -pidfile=/var/run/monerod.pid -command=/usr/bin/monerod -command_args="${monerod_args}" -start_stop_daemon_args="-u ${monerod_user} -b -m -p ${pidfile}" - -name="Monero P2P Daemon" -description="Connects to the Monero P2P network" - -depend() { - need localmount - need net -} - -start_pre() { - checkpath --directory --owner ${monerod_user}:${monerod_group} --mode 0755 \ - /var/lib/monero /var/log/monero -} diff --git a/net-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf b/net-p2p/monero/files/monerod-0.16.0.3-r1.monerod.conf @@ -1,8 +0,0 @@ -# Configuration for monerod -# Syntax: any command line option may be specified as 'clioptionname=value'. -# Boolean options such as 'no-igd' are specified as 'no-igd=1'. -# See 'monerod --help' for all available options. - -data-dir=/var/lib/monero -log-file=/var/log/monero/monero.log -log-level=0- \ No newline at end of file diff --git a/net-p2p/monero/files/monerod-0.17.1.5.service b/net-p2p/monero/files/monerod-0.17.1.5.service @@ -1,17 +0,0 @@ -[Unit] -Description=Monero P2P Daemon -After=network.target - -[Service] -User=monero -Group=monero -StateDirectory=monero -LogsDirectory=monero -Type=simple -ExecStart=/usr/bin/monerod --config-file /etc/monero/monerod.conf --non-interactive -Restart=on-failure -StandardOutput=null -StandardError=null - -[Install] -WantedBy=multi-user.target- \ No newline at end of file diff --git a/net-p2p/monero/metadata.xml b/net-p2p/monero/metadata.xml @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <longdescription lang="en"> - Monero is a private, secure, untraceable, decentralised digital - currency. You are your bank, you control your funds, and nobody - can trace your transfers unless you allow them to do so. - </longdescription> - <use> - <flag name="daemon"> - Build the Monero daemon used to connect to the P2P network. - </flag> - <flag name="hw-wallet"> - Enable if you want to use a hardware wallet like a Trezor or - Ledger. - </flag> - <flag name="tools"> - Build tools used to manipulate the blockchain as it is stored on - disk. - </flag> - <flag name="wallet-cli"> - Build the command line wallet, monero-wallet-cli. - </flag> - <flag name="wallet-rpc"> - Build the RPC wallet, monero-wallet-rpc. - </flag> - </use> - <upstream> - <remote-id type="github">monero-project/monero</remote-id> - </upstream> -</pkgmetadata> diff --git a/net-p2p/monero/monero-0.17.1.9-r1.ebuild b/net-p2p/monero/monero-0.17.1.9-r1.ebuild @@ -1,105 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake git-r3 systemd pax-utils - -DESCRIPTION="The secure, private, untraceable cryptocurrency" -HOMEPAGE="https://www.getmonero.org https://github.com/monero-project/monero" -EGIT_REPO_URI="https://github.com/monero-project/monero.git" -EGIT_COMMIT="v${PV}" - -LICENSE="BSD MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="+daemon hw-wallet readline tools +wallet-cli +wallet-rpc" -REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" - -DEPEND=" - acct-group/monero - acct-user/monero - dev-libs/boost:=[nls,threads] - dev-libs/libsodium:= - net-dns/unbound:=[threads] - net-libs/czmq:= - hw-wallet? ( - dev-libs/hidapi - dev-libs/protobuf:= - virtual/libusb:1 - ) - dev-libs/openssl:= - readline? ( sys-libs/readline:0= )" -RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=("${FILESDIR}/${PN}-0.17.1.3-linkjobs.patch") - -src_configure() { - local mycmakeargs=( - # Monero's liblmdb conflicts with the system liblmdb :( - -DBUILD_SHARED_LIBS=OFF - -DMANUAL_SUBMODULES=ON - -DMONERO_PARALLEL_LINK_JOBS=1 - ) - - cmake_src_configure -} - -src_compile() { - local targets=() - use daemon && targets+=(daemon) - use tools && targets+=(blockchain_{ancestry,blackball,db,depth,export,import,prune,prune_known_spent_data,stats,usage}) - use wallet-cli && targets+=(simplewallet) - use wallet-rpc && targets+=(wallet_rpc_server) - cmake_build ${targets[@]} -} - -src_install() { - # Install all binaries. - find "${BUILD_DIR}/bin/" -type f -executable -print0 | - while IFS= read -r -d '' line; do - pax-mark psmr "$line" - dobin "$line" - done - - if use daemon; then - dodoc utils/conf/monerod.conf - - # data-dir - keepdir /var/lib/monero - fowners monero:monero /var/lib/monero - fperms 0755 /var/lib/monero - - # log-file dir - keepdir /var/log/monero - fowners monero:monero /var/log/monero - fperms 0755 /var/log/monero - - # /etc/monero/monerod.conf - insinto /etc/monero - newins "${FILESDIR}/monerod-0.16.0.3-r1.monerod.conf" monerod.conf - - # OpenRC - newconfd "${FILESDIR}/monerod-0.16.0.3-r1.confd" monerod - newinitd "${FILESDIR}/monerod-0.16.0.3-r1.initd" monerod - - # systemd - systemd_newunit "${FILESDIR}/monerod-0.17.1.5.service" monerod.service - fi -} - -pkg_postinst() { - if use daemon; then - einfo "Start the Monero P2P daemon as a system service with" - einfo "'rc-service monerod start'. Enable it at startup with" - einfo "'rc-update add monerod default'." - einfo - einfo "Run monerod status as any user to get sync status and other stats." - einfo - einfo "The Monero blockchain can take up a lot of space (80 GiB) and is stored" - einfo "in /var/lib/monero by default. You may want to enable pruning by adding" - einfo "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain" - einfo "or move the data directory to another disk." - fi -}