From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1BD6115807A for ; Sun, 08 Jun 2025 07:36:43 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 092D7343154 for ; Sun, 08 Jun 2025 07:36:43 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B1D171104B7; Sun, 08 Jun 2025 07:36:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id AA8CF1104B7 for ; Sun, 08 Jun 2025 07:36:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 628FB3430D6 for ; Sun, 08 Jun 2025 07:36:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A25B12937 for ; Sun, 08 Jun 2025 07:36:16 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1749343198.229763d2256ee36f7f47e09fe8d8b4a46c8cc9c7.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-p2p/monero/files/, net-p2p/monero/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-p2p/monero/files/monerod-0.18.4.0.initd net-p2p/monero/monero-0.18.4.0-r4.ebuild X-VCS-Directories: net-p2p/monero/ net-p2p/monero/files/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 229763d2256ee36f7f47e09fe8d8b4a46c8cc9c7 X-VCS-Branch: master Date: Sun, 08 Jun 2025 07:36:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c0c60c9a-2006-4c1f-a067-494f50f2fe68 X-Archives-Hash: 0d2b0207dab006b53243206c992a5e9b commit: 229763d2256ee36f7f47e09fe8d8b4a46c8cc9c7 Author: Filip Kobierski pm me> AuthorDate: Sat Jun 7 22:23:44 2025 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Sun Jun 8 00:39:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=229763d2 net-p2p/monero: major improvements ebuild: - add USE=cpu_flags_x86_aes - add comment about USE=test restrict - require acct-{user,group} ony if USE=daemon - shorten `usex readline` - fix ineffective USE=readline - do not build documentation - disable ccache use - declare targets more declaratively (src_compile) - improve elog message by adding quotes for a command - removed generic openrc elog - quote just FILESDIR init.d: - pidfile: put in /run & guarantee uniqueness - use command_args_background - added custom status() Signed-off-by: Filip Kobierski pm.me> net-p2p/monero/files/monerod-0.18.4.0.initd | 13 ++- net-p2p/monero/monero-0.18.4.0-r4.ebuild | 135 ++++++++++++++++++++++++++++ 2 files changed, 145 insertions(+), 3 deletions(-) diff --git a/net-p2p/monero/files/monerod-0.18.4.0.initd b/net-p2p/monero/files/monerod-0.18.4.0.initd index 4631771b5a..baaea3b7ff 100644 --- a/net-p2p/monero/files/monerod-0.18.4.0.initd +++ b/net-p2p/monero/files/monerod-0.18.4.0.initd @@ -5,10 +5,11 @@ name="Monero P2P Daemon" description="Connects to the Monero P2P network" -pidfile=/var/run/monerod.pid command=/usr/bin/monerod +pidfile=/run/${RC_SVCNAME}/${RC_SVCNAME}.pid + command_args="--non-interactive ${MONEROD_ARGS}" -command_background=1 +command_args_background="--detach --pidfile $pidfile" command_progress=1 command_user="${MONEROD_USER:=monero}:${MONEROD_GROUP:=monero}" retry="SIGTERM/30/SIGKILL/5" @@ -21,5 +22,11 @@ depend() { start_pre() { checkpath --directory --owner ${command_user} --mode 0755 \ - /var/lib/monero /var/log/monero + /var/lib/monero /var/log/monero $(dirname ${pidfile}) +} + +status() { + if supervise_status; then + monerod status + fi } diff --git a/net-p2p/monero/monero-0.18.4.0-r4.ebuild b/net-p2p/monero/monero-0.18.4.0-r4.ebuild new file mode 100644 index 0000000000..e5a9939dfa --- /dev/null +++ b/net-p2p/monero/monero-0.18.4.0-r4.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +DESCRIPTION="The secure, private, untraceable cryptocurrency" +HOMEPAGE="https://github.com/monero-project/monero" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/monero-project/monero.git" + EGIT_SUBMODULES=() +else + SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="BSD MIT" +SLOT="0" +IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc cpu_flags_x86_aes" +REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )" +RESTRICT="test" +# Test requires python's requests, psutil, deepdiff which are packaged +# but also monotonic & zmq which we do not have + +DEPEND=" + app-crypt/libmd + dev-libs/boost:=[nls] + dev-libs/libsodium:= + dev-libs/libbsd + dev-libs/openssl:= + dev-libs/randomx + dev-libs/rapidjson + dev-libs/supercop + net-dns/unbound:=[threads] + net-libs/miniupnpc:= + net-libs/zeromq:= + daemon? ( + acct-group/monero + acct-user/monero + ) + readline? ( sys-libs/readline:= ) + hw-wallet? ( + dev-libs/hidapi + dev-libs/protobuf:= + virtual/libusb:1 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig +