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
+EBUILD monero-0.18.4.0-r4.ebuild 3179 BLAKE2B 151c126b2b24c7c7e3b452cc099f7f674876d8697d5f55361864d290458d4160dbd4393c1b5d7ab88a14bd13f92a28a9711e7d7f228652bbb3bcd0a5182a37c9 SHA512 55b3481f9ee4e7a3c29062cd94b5a39e0af964feedf0b829419b4662d22d4178b536413ca8aebbdae6bca837b5ad017bb6ac67890f415416cd7172a6230a9eb6
MISC metadata.xml 1105 BLAKE2B 50be9f62972c9524bd9c8b9875bf690f908f8f291b8def8d5f3757f6736ea6de2b020cf18da1803a7c4c52af7925eefb7206232180f0b77782a43253961b14cc SHA512 00f3820dac346aa3365b24eafa179224b4465be56fbb559b3b0691076ec23a4dd288c7fbfc88f7d4064b771d5e5ad18b7085830aa9e0929433ad2dcdbc7f1b78
--- /dev/null
+# 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
+}