]> Liquid.me.uk: Repositories - local/commitdiff
new file: net-p2p/monero/monero-0.18.4.0-r1.ebuild
authorRalphred <ralphred@liquid.me.uk>
Wed, 2 Apr 2025 17:18:51 +0000 (18:18 +0100)
committerRalphred <ralphred@liquid.me.uk>
Wed, 2 Apr 2025 17:18:51 +0000 (18:18 +0100)
net-p2p/monero/Manifest
net-p2p/monero/monero-0.18.4.0-r1.ebuild [new file with mode: 0644]
net-p2p/monero/test.patch [new file with mode: 0644]

index fad29a41effaa0dda53b14bc0dafdc3c2054d13a..3e1304c7741a95276ac75627bdcfc33eb914edd3 100644 (file)
@@ -8,6 +8,9 @@ AUX monerod.confd 498 BLAKE2B 96ff2761152b8cb9987253f68caf2e93c40065467877047c70
 AUX monerod.initd 1285 BLAKE2B ee373039b0db81e9d20e6bdcf54765e9151832ce71ef19d97aa4ac17d08976f2c449e0050acd71e6199d235af1fd04564005297cea347551eb811a6c96de7a42 SHA512 57e528baf2eb49fd9bd182fb73a679ac5f4b9a59271640e2f543ead0ed2a96b41b28f00c07c326bc2a1c3b9ccfbcd6568e01de335eac4b1dfa7a860bb5f0ec0f
 AUX monerod.service 329 BLAKE2B e4390612e1e37cb47164967cc086eb32b1dac61ceba621d376ae87220245284d83dd0895e786daf1652ff40c0161f713cd4f124ae7b2d57306208d5886c8aeb3 SHA512 38eb172bcd46c98a5aaa8f7c0d8bf011c183fd4d09f9d38c14679a4a0ee628d58c6dde6cce181745b053576e3b8907038d75ec3bcb3b0bb03e62c606573038b3
 DIST monero-0.18.3.4.tar.gz 14039924 BLAKE2B cb60f1db4f482bac3b3f5fa606bf1c78103b14f927d4636e5fda4aa96dcc08a9f990355ceb1cdc8c253245a0a2a1c98cf4fd7101d13d78ac6e7d1450192fc2db SHA512 f2708bf7698410c1509ae41148c298e352b3401e1df900b7152c25cb5ceb2f5bde68274fd37b1a328e932be50bdf93fe364561c520a15e3df7de2cdbd20d1be8
+DIST monero-0.18.4.0.tar.gz 14083573 BLAKE2B 6edd37cf89305dabddf04aa454a605f578276a924f703025b906612438de9dce12c854127b851ae0a71eb4b7aac6c9aa1bb7beb0d6ed311a55c19387117c2ba0 SHA512 6d17654a37d1a3aec37f641a58026a5f602e13836bdc50223ce6bf82ad9be9db2cf5abadd6b7bc963f4bfc0e18aa76298d89050686f6563d0567d2745e0512eb
 EBUILD monero-0.18.3.4-r1.ebuild 3205 BLAKE2B e617b505f5b6b8dbdc887344cd4ad7bc936c3f2347cc7a1e789f414b8f168c4a239354df41856c1bf73b77891860612a905ac626cb4aafb8aea549c6323c0e99 SHA512 3d19f4717a9aa2792ab2fdba10e667c6bd84dd4cade344c74cb6311ea10bdd74e486b26a21a2004b0ac41aa882d1ef2c0958dd6160f1897556902f18cf156415
 EBUILD monero-0.18.3.4-r2.ebuild 3232 BLAKE2B 7f7f5819bd804351a79546be58a1f54b740570fd73026bc0233273a1d5dbd825b04c9cf295ca3b6b3f16243fe0bf337dcf29afe8c0cf3bb6d3ebb2366bf13a77 SHA512 82f1c58103a367667c908806344161e28ab005a5a8b21cb47af54bd60793dcd9cdbf3faba7f49f982e0a899115e1644244fa0b64c6751f6e1ef7324e0d40ccf3
+EBUILD monero-0.18.4.0-r1.ebuild 3179 BLAKE2B 151c126b2b24c7c7e3b452cc099f7f674876d8697d5f55361864d290458d4160dbd4393c1b5d7ab88a14bd13f92a28a9711e7d7f228652bbb3bcd0a5182a37c9 SHA512 55b3481f9ee4e7a3c29062cd94b5a39e0af964feedf0b829419b4662d22d4178b536413ca8aebbdae6bca837b5ad017bb6ac67890f415416cd7172a6230a9eb6
 MISC metadata.xml 1105 BLAKE2B 50be9f62972c9524bd9c8b9875bf690f908f8f291b8def8d5f3757f6736ea6de2b020cf18da1803a7c4c52af7925eefb7206232180f0b77782a43253961b14cc SHA512 00f3820dac346aa3365b24eafa179224b4465be56fbb559b3b0691076ec23a4dd288c7fbfc88f7d4064b771d5e5ad18b7085830aa9e0929433ad2dcdbc7f1b78
+MISC test.patch 251 BLAKE2B 53b0c939fb07e4d3f41ee9fec9ff2749ab307518b7f25f85692ebb07ef375698eddc9abe6e79e868b896c52f5cca92ad651f1d0c1e83f8176c5709002aa7dc72 SHA512 8ee8552e8f5ffd6923f91fcfc4eef2c52181cd00ee57545fcbb4f07f91bdb03d141ee5c5446d06953f350f7ae7204724c5c675da9f7518997ba5561285089fec
diff --git a/net-p2p/monero/monero-0.18.4.0-r1.ebuild b/net-p2p/monero/monero-0.18.4.0-r1.ebuild
new file mode 100644 (file)
index 0000000..569d9cc
--- /dev/null
@@ -0,0 +1,127 @@
+# Copyright 1999-2024 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"
+REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
+RESTRICT="test"
+
+DEPEND="
+       acct-group/monero
+       acct-user/monero
+       dev-libs/boost:=[nls]
+       dev-libs/libsodium:=
+       dev-libs/openssl:=
+       dev-libs/randomx
+       dev-libs/rapidjson
+       dev-libs/supercop
+       net-dns/unbound:=[threads]
+       net-libs/czmq:=
+       net-libs/miniupnpc:=
+       readline? ( sys-libs/readline:0= )
+       hw-wallet? (
+               dev-libs/hidapi
+               dev-libs/protobuf:=
+               virtual/libusb:1
+       )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.18.4.0-unbundle-dependencies.patch"
+       "${FILESDIR}/${PN}-0.18.3.3-miniupnp-api-18.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               # TODO: Update CMake to install built libraries (help wanted)
+               -DBUILD_SHARED_LIBS=OFF
+               -DMANUAL_SUBMODULES=ON
+               -DUSE_DEVICE_TREZOR=$(usex hw-wallet ON OFF)
+       )
+
+       use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF )
+
+       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() {
+       einstalldocs
+
+       # Install all binaries.
+       find "${BUILD_DIR}/bin/" -type f -executable -print0 |
+               while IFS= read -r -d '' line; do
+                       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
+               doins "${FILESDIR}/monerod.conf"
+
+               # OpenRC
+               newconfd "${FILESDIR}/monerod.confd" monerod
+               newinitd "${FILESDIR}/monerod.initd" monerod
+
+               # Logrotate
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}/logrotated" "${PN}"
+
+               # systemd
+               systemd_dounit "${FILESDIR}/monerod.service"
+       fi
+}
+
+pkg_postinst() {
+       if use daemon; then
+               elog "Start the Monero P2P daemon as a system service with"
+               elog "'rc-service monerod start'. Enable it at startup with"
+               elog "'rc-update add monerod default'."
+               elog
+               elog "Run monerod status as any user to get sync status and other stats."
+               elog
+               elog "The Monero blockchain can take up a lot of space (250 GiB) and is stored"
+               elog "in /var/lib/monero by default. You may want to enable pruning by adding"
+               elog "'prune-blockchain=1' to /etc/monero/monerod.conf to prune the blockchain"
+               elog "or move the data directory to another disk."
+       fi
+}
diff --git a/net-p2p/monero/test.patch b/net-p2p/monero/test.patch
new file mode 100644 (file)
index 0000000..5e9da88
--- /dev/null
@@ -0,0 +1,10 @@
+29c29
+<      <dev-libs/boost-1.87:=[nls]
+---
+>      dev-libs/boost:=[nls]
+49c49
+<      "${FILESDIR}/${PN}-0.18.3.3-unbundle-dependencies.patch"
+---
+>      "${FILESDIR}/${PN}-0.18.4.0-unbundle-dependencies.patch"
+51d50
+<      "${FILESDIR}/${PN}-0.18.3.4-boost-1.85.patch"