diff options
Diffstat (limited to 'net-p2p')
21 files changed, 511 insertions, 222 deletions
diff --git a/net-p2p/arti/Manifest b/net-p2p/arti/Manifest index 73fae753e583..2d9c370acb0f 100644 --- a/net-p2p/arti/Manifest +++ b/net-p2p/arti/Manifest @@ -1,6 +1,4 @@ -DIST arti-1.4.2-crates.tar.xz 48304592 BLAKE2B 79b996e60cd425d217aeab42c8e6fd23983fb475a6daed3db029af0c0c8da9681951d5504bd478b67a8905bea7284b3a66e34aa05415f2671353473bc82be473 SHA512 fc5bacd7d4a126bbe9c8132a33d5f590401878dce10db0a50d5dae1e46a3154913019b05a39ba961ae1175e431d0b85654d32f5ceb593e4540bbd12f47f0c785 -DIST arti-1.4.2.tar.bz2 4309898 BLAKE2B e18a4850c5de529a61ea0615f84b9611c8fba304e4f9b8798a07659c89bb4d1425b443cc72e92ea5820a3af15ca32f5bc1e1df6d05a8e038d17c73fc7cd5580b SHA512 b402894c9402f83e68e1805ff1b99e684a5f946abd502313aac74dcbbc0812693dce74b2641507176f963cdafdcbf3ad919b1235e0f884b5f33106cce665579b -DIST arti-1.4.6-crates.tar.xz 46536728 BLAKE2B cc936c3a6ea0119889c2381d84c7b40b40c214680e9c093dc10fc5d884572aac86607ab17bdac7a9d21ff66e2baf57270e0610d1ed80483c92742aae1b7a53f6 SHA512 4ea516372cc3ebad7c2105acbcfd1745e5cc6a8fbf961c51abe54c476698a4874e40f44f722f567a8a5a67b3d92d6b6569bce72e18cbb8fa7566bea7d76b8cb1 -DIST arti-1.4.6.tar.bz2 4515456 BLAKE2B 0b877fb167cb7e986e93ed56511d71efd1f6e135cd0989e0a2c7b965ef1f97b1983dbbadb7744378bc06234c538cd78068b85f3db0a63c4140bc8e3bc1bc5626 SHA512 84ef931bbd74c3fe0a12ffaaa93ad9aa9930f1a5727b66a7436072ff6894b083a3edeb068bca0ad227f9adcbb54cd1453675cb5dac251eb4a3bcaa0292517fbd DIST arti-1.5.0-crates.tar.xz 46775504 BLAKE2B 9fb8b9d96ceaca305bb00d8205f735ef223e6ab2a49205937d349ae5820342f576aa2b5f6c44166819e23efb70663e908f0eb1ecc255238dac3fb86ccb0615ae SHA512 b33f791a3a239f41b708a907bad15a8750da2fbdc5a8e61affaf398fec4c3d54a353de8402ad1be8d20f53b742b43841f0243aff289748fd47d87dcf5841923e DIST arti-1.5.0.tar.bz2 4620829 BLAKE2B 07b794d94331cc610f331b5805d86bcffacfdc3376582d3a1f1cc564486e9e249e555aa8a71eb398e7e5e771d4f088c745333e285486b2910cd647391604e770 SHA512 2472803d91aefc883a2af389529ac6e111484ffcfa24e733cbc3e91e9332bfe02bd9985301428a26403b7e083006a0b1bee858bb88ba75dfdc99dad2bc11b010 +DIST arti-1.8.0-crates.tar.xz 45638316 BLAKE2B 616966ae42195b5f6889c99840ed320f3f199f0c4a00d6be54ea3a1a015613a0f3df593f2bbfb7238e13d5d0dd95609f4f693d48b5b20285d6ffe7863fd77cdd SHA512 12c314aa419ebf6e1751829c8c36582208c655c9a5c12f6acfa30344d00cb742b4d044f125b99a9a46e7ba453df3a553834b24fc3cb461da8eaf38a991ded898 +DIST arti-1.8.0.tar.bz2 4791812 BLAKE2B 8cfe8459acd64fab98ab4692256bc7de2895eecf2ecf4ad44cb5dd277fd209009019c340a14e2b93987188463f77ccd563f743f5258d003f5fd351e6321180f8 SHA512 30fc5481b4486b7397c9fabceb33a6f29a5a16e23506962655c92584efa336716c0c2572dcbc3f8c67bc58a8c60cebf2d07eed745c79a4f3cc375416328a24ee diff --git a/net-p2p/arti/arti-1.4.6.ebuild b/net-p2p/arti/arti-1.4.6.ebuild deleted file mode 100644 index 1e911ea9c1f2..000000000000 --- a/net-p2p/arti/arti-1.4.6.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 2022-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CRATES="" -inherit cargo - -DESCRIPTION="Implementation of Tor in Rust" -HOMEPAGE="https://tpo.pages.torproject.net/core/arti/ https://gitlab.torproject.org/tpo/core/arti/" - -if [[ "${PV}" == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://gitlab.torproject.org/tpo/core/arti" -else - SRC_URI="https://gitlab.torproject.org/tpo/core/${PN}/-/archive/${PN}-v${PV}/${PN}-${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2" - SRC_URI+=" https://github.com/gentoo-crate-dist/arti/releases/download/${PN}-v${PV}/${P}-crates.tar.xz" - S="${WORKDIR}/${PN}-${PN}-v${PV}" - KEYWORDS="~amd64" -fi - -LICENSE="|| ( Apache-2.0 MIT )" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 openssl Unicode-3.0 - Unlicense ZLIB -" -SLOT="0" - -DEPEND="app-arch/xz-utils - app-arch/zstd:= - dev-db/sqlite:3 - dev-libs/openssl:=" -RDEPEND="${DEPEND}" - -QA_FLAGS_IGNORED="usr/bin/arti" - -src_unpack() { - if [[ "${PV}" == *9999 ]]; then - git-r3_src_unpack - cargo_live_src_unpack - else - cargo_src_unpack - fi -} - -src_compile() { - export ZSTD_SYS_USE_PKG_CONFIG=1 - for crate in crates/*; do - pushd "${crate}" || die - cargo_src_compile - popd >/dev/null || die - done -} - -src_install() { - pushd crates/arti >/dev/null || die - - cargo_src_install - newdoc src/arti-example-config.toml arti.toml - - popd >/dev/null || die - - dodoc -r doc/* -} diff --git a/net-p2p/arti/arti-1.4.2.ebuild b/net-p2p/arti/arti-1.8.0.ebuild index 1e911ea9c1f2..fd9c4307cdcd 100644 --- a/net-p2p/arti/arti-1.4.2.ebuild +++ b/net-p2p/arti/arti-1.8.0.ebuild @@ -1,8 +1,9 @@ -# Copyright 2022-2025 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +RUST_MIN_VER="1.86" CRATES="" inherit cargo diff --git a/net-p2p/bitcoin-core/Manifest b/net-p2p/bitcoin-core/Manifest index d0fcbaa8e338..8e33a9569e63 100644 --- a/net-p2p/bitcoin-core/Manifest +++ b/net-p2p/bitcoin-core/Manifest @@ -3,3 +3,4 @@ DIST bitcoin-core-29.0-qt6.patch 16737 BLAKE2B bf863852ad8d313ad26612f1496129449 DIST bitcoin-core-29.1.tar.gz 12876068 BLAKE2B ed8afd0d4a9ef82ac3fb4ec440fbe166db027b1cc961b0cb4cbaf3497883902bc3e6af23296cbc04bf6404f51a1e725bdf536a0dc7976d1082ccd03b4a500879 SHA512 0110ea33787fc2fad152578dddd7c55e4219d9753d22b7fbb050755bdaa0f9dccd88c254f072ce855869ed9cddfb99015818ce1f44bbd1e25b2129a036d8fdf5 DIST bitcoin-core-29.2.tar.gz 12874820 BLAKE2B 43c57637f9ae842935cc27c8d16cfbdc7a2abe7ed55f58666f3bd3a2aa2826532a2207a35a27ed846b86ea2b304e22a99446d6d7138d202029ce9bde82353577 SHA512 1c3eb5988e1f6b0292f103de3e7911dc9430429687158988c510e647520d094e55b7cc63fd9044db9225111811368c1998b8320066bcec4f154e771e2beee7eb DIST bitcoin-core-30.0.tar.gz 12676071 BLAKE2B 4204613d7b24193520bd5c539b45d368a5348a7aace365b8909ba439dbe0393d2e58b498431d492901abf09963408d3661998f1cbdf987e6074be117a3ad44f4 SHA512 290bdbffc945f34cb5571c19bcb41265cb3f209fd86018694a2426555456812c56bba5a4271e6928ccc4468a1f0175a6769d4745ecb213e521d3201cd557a21f +DIST bitcoin-core-30.1.tar.gz 12678968 BLAKE2B 9a724098f275066d5550e1036a2773136355bc59402de5773a0d13d397876d397c7f1702b2ae9fa38ed99b6a96e3af3fc56378db633f42578223eea8a9ae0667 SHA512 537bef288134c21a1d19814c5fcdcbae3096370c000a3b8284d4edfc9aa8e096975d69660e2623c90d7429b8808b20ea7b9330a66e0913868d575259e2e2cc83 diff --git a/net-p2p/bitcoin-core/bitcoin-core-29.0.ebuild b/net-p2p/bitcoin-core/bitcoin-core-29.0.ebuild index d964a4f37b22..f9d55b3b221e 100644 --- a/net-p2p/bitcoin-core/bitcoin-core-29.0.ebuild +++ b/net-p2p/bitcoin-core/bitcoin-core-29.0.ebuild @@ -17,7 +17,7 @@ S="${WORKDIR}/${PN/-core}-${PV/_rc/rc}" LICENSE="MIT" SLOT="0" if [[ "${PV}" != *_rc* ]] ; then - KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" + KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86" fi IUSE="asm +berkdb +cli +daemon dbus examples +external-signer gui qrcode +sqlite +system-libsecp256k1 systemtap test test-full zeromq" RESTRICT="!test? ( test )" diff --git a/net-p2p/bitcoin-core/bitcoin-core-29.1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-29.1.ebuild index 100fcb6a0475..1639994b592b 100644 --- a/net-p2p/bitcoin-core/bitcoin-core-29.1.ebuild +++ b/net-p2p/bitcoin-core/bitcoin-core-29.1.ebuild @@ -18,7 +18,7 @@ S="${WORKDIR}/${PN/-core}-${PV/_rc/rc}" LICENSE="MIT" SLOT="0" if [[ "${PV}" != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" fi IUSE="asm +berkdb +cli +daemon dbus examples +external-signer gui qrcode +sqlite +system-libsecp256k1 systemtap test test-full zeromq" RESTRICT="!test? ( test )" diff --git a/net-p2p/bitcoin-core/bitcoin-core-29.2.ebuild b/net-p2p/bitcoin-core/bitcoin-core-29.2.ebuild index 40e419072042..b5e9563642e7 100644 --- a/net-p2p/bitcoin-core/bitcoin-core-29.2.ebuild +++ b/net-p2p/bitcoin-core/bitcoin-core-29.2.ebuild @@ -18,7 +18,7 @@ S="${WORKDIR}/${PN/-core}-${PV/_rc/rc}" LICENSE="MIT" SLOT="0" if [[ "${PV}" != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" fi IUSE="asm +berkdb +cli +daemon dbus examples +external-signer gui qrcode +sqlite +system-libsecp256k1 systemtap test test-full zeromq" RESTRICT="!test? ( test )" diff --git a/net-p2p/bitcoin-core/bitcoin-core-30.0-r1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-30.0-r1.ebuild index 5c7e4cc303eb..7a0a01111d79 100644 --- a/net-p2p/bitcoin-core/bitcoin-core-30.0-r1.ebuild +++ b/net-p2p/bitcoin-core/bitcoin-core-30.0-r1.ebuild @@ -15,7 +15,7 @@ S="${WORKDIR}/${PN/-core}-${PV/_rc/rc}" LICENSE="MIT" SLOT="0" if [[ "${PV}" != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" fi IUSE="asm +cli +daemon dbus examples +external-signer gui qrcode +system-libsecp256k1 systemtap test test-full +wallet zeromq" RESTRICT="!test? ( test )" diff --git a/net-p2p/bitcoin-core/bitcoin-core-30.1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-30.1.ebuild new file mode 100644 index 000000000000..5e2ae87a74c3 --- /dev/null +++ b/net-p2p/bitcoin-core/bitcoin-core-30.1.ebuild @@ -0,0 +1,324 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) + +inherit bash-completion-r1 check-reqs cmake desktop edo multiprocessing python-any-r1 systemd toolchain-funcs xdg-utils + +DESCRIPTION="Reference implementation of the Bitcoin cryptocurrency" +HOMEPAGE="https://bitcoincore.org/" +SRC_URI="https://github.com/bitcoin/bitcoin/archive/v${PV/_rc/rc}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN/-core}-${PV/_rc/rc}" + +LICENSE="MIT" +SLOT="0" +if [[ "${PV}" != *_rc* ]] ; then + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi +IUSE="asm +cli +daemon dbus examples +external-signer gui qrcode +system-libsecp256k1 systemtap test test-full +wallet zeromq" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + dbus? ( gui ) + qrcode? ( gui ) + test-full? ( test ) +" +# dev-libs/univalue is now bundled, as upstream dropped support for system copy +# and their version in the Bitcoin repo has deviated a fair bit from upstream. +# Upstream also seems very inactive. +COMMON_DEPEND=" + >=dev-libs/boost-1.81.0:= + >=dev-libs/libevent-2.1.12:= + daemon? ( + acct-group/bitcoin + acct-user/bitcoin + ) + gui? ( + >=dev-qt/qtbase-6.2:6[dbus?,gui,network,widgets] + ) + qrcode? ( >=media-gfx/qrencode-4.1.1:= ) + system-libsecp256k1? ( >=dev-libs/libsecp256k1-0.6.0:=[asm=,ellswift,extrakeys,musig,recovery,schnorr] ) + wallet? ( >=dev-db/sqlite-3.38.5:= ) + zeromq? ( >=net-libs/zeromq-4.3.4:= ) +" +RDEPEND=" + ${COMMON_DEPEND} + !dev-util/bitcoin-tx + cli? ( !net-p2p/bitcoin-cli ) + daemon? ( !net-p2p/bitcoind ) + gui? ( !net-p2p/bitcoin-qt ) +" +DEPEND=" + ${COMMON_DEPEND} + systemtap? ( >=dev-debug/systemtap-4.8 ) +" +BDEPEND=" + >=dev-build/cmake-3.25 + virtual/pkgconfig + daemon? ( + acct-group/bitcoin + acct-user/bitcoin + ) + gui? ( >=dev-qt/qttools-6.2:6[linguist] ) + test? ( + ${PYTHON_DEPS} + ) +" +IDEPEND=" + gui? ( dev-util/desktop-file-utils ) +" + +DOCS=( + doc/bips.md + doc/bitcoin-conf.md + doc/descriptors.md + doc/files.md + doc/i2p.md + doc/JSON-RPC-interface.md + doc/multisig-tutorial.md + doc/p2p-bad-ports.md + doc/psbt.md + doc/reduce-memory.md + doc/reduce-traffic.md + doc/release-notes.md + doc/REST-interface.md + doc/tor.md +) + +PATCHES=( + "${FILESDIR}/30.0-cmake-syslibs.patch" + "${FILESDIR}/26.0-init.patch" +) + +efmt() { + : ${1:?} ; local l ; while read -r l ; do "${!#}" "${l}" ; done < <(fmt "${@:1:$#-1}") +} + +pkg_pretend() { + if ! use daemon && ! use gui && ! has_version "${CATEGORY}/${PN}[-daemon,-gui(-),-qt5(-)]" ; then + efmt ewarn <<-EOF + You are enabling neither USE="daemon" nor USE="gui". This is a valid + configuration, but you will be unable to run a Bitcoin node using this + installation. + EOF + fi + if use daemon && ! use cli && ! has_version "${CATEGORY}/${PN}[daemon,-bitcoin-cli(-),-cli(-)]" ; then + efmt ewarn <<-EOF + You are enabling USE="daemon" but not USE="cli". This is a valid + configuration, but you will be unable to interact with your bitcoind node + via the command line using this installation. + EOF + fi + + # test/functional/feature_pruning.py requires 4 GB disk space + # test/functional/wallet_pruning.py requires 1.3 GB disk space + use test && CHECKREQS_DISK_BUILD="6G" check-reqs_pkg_pretend +} + +pkg_setup() { + if use test ; then + CHECKREQS_DISK_BUILD="6G" check-reqs_pkg_setup + python-any-r1_pkg_setup + fi + + # check for auto-loaded wallets in the obsolete (now unsupported) format + if use daemon && use wallet && [[ -r "${EROOT}/var/lib/bitcoind/settings.json" ]] ; then + local wallet bdb_wallets=() + while read -rd '' wallet ; do + # printf interprets any C-style escape sequences in ${wallet} + wallet="${EROOT}$(printf "/var/lib/bitcoind/wallets/${wallet:+${wallet//\%/%%}/}wallet.dat")" + [[ -r "${wallet}" && "$(file -b -- "${wallet}")" == *'Berkeley DB'* ]] && bdb_wallets+=( "${wallet}" ) + done < <( + # parsing settings.json using jq would be far cleaner, but jq might not be installed + sed -Enze 'H;${x;s/^.*"wallet"\s*:\s*\[\s*("([^"\\]|\\.)*"(\s*,\s*"([^"\\]|\\.)*")*)\s*\].*$/\1/;T' \ + -e 's/"(([^"\\]|\\.)*)"\s*(,\s*)?/\1\x0/gp}' -- "${EROOT}/var/lib/bitcoind/settings.json" + ) + if (( ${#bdb_wallets[@]} )) ; then + efmt -su ewarn <<-EOF + The following auto-loaded wallets are in the legacy (Berkeley DB) format, \ + which is no longer supported by this version of Bitcoin Core: + $(printf ' - %s\n' "${bdb_wallets[@]}") + You may need to remove these wallets from your auto-load configuration \ + at ${EROOT}/var/lib/bitcoind/settings.json$(use cli && cat <<-EOS + and convert them to descriptor wallets by executing \ + \`bitcoin-cli migratewallet "<wallet_name>" ["<passphrase>"]\` \ + after starting bitcoind + EOS + ). + EOF + fi + fi +} + +src_prepare() { + # https://bugs.gentoo.org/958361 + # https://github.com/google/crc32c/commit/2bbb3be42e20a0e6c0f7b39dc07dc863d9ffbc07 + sed -e '/^cmake_minimum_required(VERSION 3\.1)$/s/)$/6)/' -i src/crc32c/CMakeLists.txt || die + + # https://bugs.gentoo.org/965371 + # https://github.com/google/leveldb/issues/1289 + sed -e '/^cmake_minimum_required(VERSION 3\.9)$/s/9)$/10)/' -i src/leveldb/CMakeLists.txt || die + + eapply_user + ! use system-libsecp256k1 || rm -r src/secp256k1 || die + cmake_src_prepare + + sed -e 's/^\(complete -F _bitcoind\b\).*$/\1'"$(usev daemon ' bitcoind')$(usev gui ' bitcoin-qt')/" \ + -i contrib/completions/bash/bitcoind.bash || die +} + +src_configure() { + local mycmakeargs=( +# -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON # https://github.com/bitcoin/bitcoin/pull/32220 + -DBUILD_SHARED_LIBS=ON + -DENABLE_IPC=OFF + -DENABLE_WALLET=$(usex wallet) + -DWITH_USDT=$(usex systemtap) + -DBUILD_TESTS=$(usex test) + -DBUILD_BENCH=OFF + -DBUILD_{FOR_FUZZING,FUZZ_BINARY}=OFF + -DWITH_QRENCODE=$(usex qrcode) + -DWITH_CCACHE=OFF + -DWITH_ZMQ=$(usex zeromq) + -DENABLE_EXTERNAL_SIGNER=$(usex external-signer) + -DBUILD_CLI=$(usex cli) + -DBUILD_TX=ON + -DBUILD_WALLET_TOOL=$(usex wallet) + -DBUILD_UTIL=OFF + -DBUILD_DAEMON=$(usex daemon) + -DBUILD_GUI=$(usex gui) + -DWITH_DBUS=$(usex dbus) + -DWITH_SYSTEM_LIBSECP256K1=$(usex system-libsecp256k1 ON \ + "OFF -DSECP256K1_ASM=$(usex asm AUTO OFF)") + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use daemon && ! tc-is-cross-compiler ; then + TOPDIR="${S}" BUILDDIR="${BUILD_DIR}" bash contrib/devtools/gen-bitcoin-conf.sh || die + fi + sed -e 's/ To use, copy this file$//p;Tp;:0;n;/save the file\.$/!b0;d;:p;p' \ + -ni share/examples/bitcoin.conf || die +} + +src_test() { + cmake_src_test + + if use daemon ; then + cd -- "${BUILD_DIR}" || die + edo "${PYTHON}" test/functional/test_runner.py \ + --ansi $(usev test-full --extended) --jobs="$(get_makeopts_jobs)" --timeout-factor="${TIMEOUT_FACTOR:-15}" + fi +} + +src_install() { + dodoc -r doc/release-notes + + use external-signer && DOCS+=( doc/external-signer.md ) + use wallet && DOCS+=( doc/managing-wallets.md ) + use systemtap && DOCS+=( doc/tracing.md ) + use zeromq && DOCS+=( doc/zmq.md ) + + if use daemon ; then + # https://bugs.gentoo.org/757102 + DOCS+=( share/rpcauth/rpcauth.py ) + docompress -x "/usr/share/doc/${PF}/rpcauth.py" + fi + + einstalldocs + cmake_src_install + + find "${ED}" -type f -name '*.la' -delete || die + ! use test || rm -f -- "${ED}"/usr/libexec/test_bitcoin{,-qt} || die + + newbashcomp contrib/completions/bash/bitcoin-tx.bash bitcoin-tx + use cli && newbashcomp contrib/completions/bash/bitcoin-cli.bash bitcoin-cli + if use daemon ; then + newbashcomp contrib/completions/bash/bitcoind.bash bitcoind + use gui && bashcomp_alias bitcoind bitcoin-qt + elif use gui ; then + newbashcomp contrib/completions/bash/bitcoind.bash bitcoin-qt + fi + + if use daemon ; then + insinto /etc/bitcoin + doins share/examples/bitcoin.conf + fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf + fperms 0660 /etc/bitcoin/bitcoin.conf + + newconfd contrib/init/bitcoind.openrcconf bitcoind + newinitd "${FILESDIR}/bitcoind.openrc" bitcoind + systemd_newunit contrib/init/bitcoind.service bitcoind.service + + keepdir /var/lib/bitcoind + fperms 0750 /var/lib/bitcoind + fowners bitcoin:bitcoin /var/lib/bitcoind + dosym -r {/etc/bitcoin,/var/lib/bitcoind}/bitcoin.conf + + insinto /etc/logrotate.d + newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind + fi + + if use gui ; then + insinto /usr/share/icons/hicolor/scalable/apps + newins src/qt/res/src/bitcoin.svg bitcoin128.svg + + domenu "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" + fi + + if use examples ; then + docinto examples + dodoc -r contrib/{linearize,qos} + use zeromq && dodoc -r contrib/zmq + fi +} + +pkg_postinst() { + # we don't use xdg.eclass because it adds unconditional IDEPENDs + if use gui ; then + xdg_desktop_database_update + xdg_icon_cache_update + fi + + if use daemon && [[ -z "${REPLACING_VERSIONS}" ]] ; then + efmt -su elog <<-EOF + To have ${PN} automatically use Tor when it's running, be sure your \ + 'torrc' config file has 'ControlPort' and 'CookieAuthentication' set up \ + correctly, and: + - Using an init script: add the 'bitcoin' user to the 'tor' user group. + - Running bitcoind directly: add that user to the 'tor' user group. + EOF + fi + + if use cli && use daemon ; then + efmt -su elog <<-EOF + To use bitcoin-cli with the /etc/init.d/bitcoind service: + - Add your user(s) to the 'bitcoin' group. + - Symlink ~/.bitcoin to /var/lib/bitcoind. + EOF + fi + + if use wallet && [[ -r "${EROOT}/etc/bitcoin/bitcoin.conf" ]] && + grep -q '^\s*deprecatedrpc\s*=.*\bcreate_bdb\b' -- "${EROOT}/etc/bitcoin/bitcoin.conf" + then + # https://github.com/bitcoin/bitcoin/pull/31250 + efmt ewarn <<-EOF + Creation of legacy (Berkeley DB) wallets is no longer possible starting with + Bitcoin Core 30.0. You must remove the following line from your bitcoin.conf: + + deprecatedrpc=create_bdb + EOF + fi +} + +pkg_postrm() { + if use gui ; then + xdg_desktop_database_update + xdg_icon_cache_update + fi +} diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest index edbec05bed21..29e958628624 100644 --- a/net-p2p/ktorrent/Manifest +++ b/net-p2p/ktorrent/Manifest @@ -1 +1,2 @@ DIST ktorrent-25.08.3.tar.xz 2237128 BLAKE2B 2f3c05c0d280e59dc760e8aeb437ec5f96a81802d543aa0f287c29d9fb17c3d6f0f30beeb8ad1e279171c9f3fb0a8e1dbf6fb28dac563cff4f3ec237dbe9bee8 SHA512 385ee1f877e27cf860738d5eaf7857cd53e0f73793362f3f3eded67af422870bd6095779b707ad142088e34a78bb92282c4dac395f0b85f89b31a42d14a0c38e +DIST ktorrent-25.12.0.tar.xz 2237036 BLAKE2B cf1bf1f2557c634d613c985630336ec1bd86add02eb7b43bbcd67fb94128730b45b614890611a883ec4c048865a7c041feffb19ecb2902cbd6a3ef980321cdbf SHA512 7293a2be67af0cf6b94aef380ff9f100e05c0092a64c1eb0a185fc3ba1cdc02b9833e443dc9426b22313bc187ce84725bd53a48ff86853859003a225c1e6a563 diff --git a/net-p2p/ktorrent/ktorrent-25.12.0.ebuild b/net-p2p/ktorrent/ktorrent-25.12.0.ebuild new file mode 100644 index 000000000000..9bacc61e801f --- /dev/null +++ b/net-p2p/ktorrent/ktorrent-25.12.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="optional" +ECM_TEST="true" +KFMIN=6.19.0 +PVCUT=$(ver_cut 1-3) +QTMIN=6.9.1 +inherit ecm gear.kde.org xdg + +DESCRIPTION="Powerful BitTorrent client based on KDE Frameworks" +HOMEPAGE="https://apps.kde.org/ktorrent/" + +LICENSE="GPL-2" +SLOT="6" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="+bwscheduler +downloadorder +infowidget +ipfilter +logviewer +magnetgenerator +phonon rss +scanfolder +shutdown +stats +upnp +webengine +zeroconf" + +COMMON_DEPEND=" + >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,widgets,xml] + >=kde-frameworks/kcmutils-${KFMIN}:6 + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/kcrash-${KFMIN}:6 + >=kde-frameworks/kdbusaddons-${KFMIN}:6 + >=kde-frameworks/kglobalaccel-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kiconthemes-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/knotifications-${KFMIN}:6 + >=kde-frameworks/knotifyconfig-${KFMIN}:6 + >=kde-frameworks/kparts-${KFMIN}:6 + >=kde-frameworks/kstatusnotifieritem-${KFMIN}:6 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 + >=kde-frameworks/kwindowsystem-${KFMIN}:6 + >=kde-frameworks/kxmlgui-${KFMIN}:6 + >=net-libs/libktorrent-${PVCUT}:6 + infowidget? ( dev-libs/geoip ) + ipfilter? ( >=kde-frameworks/karchive-${KFMIN}:6 ) + phonon? ( + >=media-libs/phonon-4.12.0[qt6(+)] + >=media-libs/taglib-1.5:= + ) + rss? ( + >=dev-qt/qtwebengine-${QTMIN}:6 + >=kde-frameworks/syndication-${KFMIN}:6 + ) + stats? ( >=kde-frameworks/kplotting-${KFMIN}:6 ) + upnp? ( >=kde-frameworks/kcompletion-${KFMIN}:6 ) + webengine? ( >=dev-qt/qtwebengine-${QTMIN}:6 ) + zeroconf? ( >=kde-frameworks/kdnssd-${KFMIN}:6 ) +" +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.71 +" +RDEPEND="${COMMON_DEPEND} + ipfilter? ( + app-arch/bzip2 + app-arch/unzip + kde-apps/kio-extras:6 + >=kde-frameworks/ktextwidgets-${KFMIN}:6 + ) +" +BDEPEND="sys-devel/gettext" + +src_configure() { + local mycmakeargs=( + -DENABLE_BWSCHEDULER_PLUGIN=$(usex bwscheduler) + -DENABLE_DOWNLOADORDER_PLUGIN=$(usex downloadorder) + -DENABLE_INFOWIDGET_PLUGIN=$(usex infowidget) + -DENABLE_IPFILTER_PLUGIN=$(usex ipfilter) + -DENABLE_LOGVIEWER_PLUGIN=$(usex logviewer) + -DENABLE_MAGNETGENERATOR_PLUGIN=$(usex magnetgenerator) + $(cmake_use_find_package phonon Taglib) + $(cmake_use_find_package phonon Phonon4Qt6) + $(cmake_use_find_package rss KF6Syndication) + -DENABLE_SCANFOLDER_PLUGIN=$(usex scanfolder) + -DENABLE_SHUTDOWN_PLUGIN=$(usex shutdown) + -DENABLE_STATS_PLUGIN=$(usex stats) + -DENABLE_UPNP_PLUGIN=$(usex upnp) + -DENABLE_SEARCH_PLUGIN=$(usex webengine) + -DENABLE_ZEROCONF_PLUGIN=$(usex zeroconf) + ) +# add back when ported +# -DENABLE_WEBINTERFACE_PLUGIN=$(usex webinterface) + ecm_src_configure +} diff --git a/net-p2p/rtorrent/rtorrent-0.15.7.ebuild b/net-p2p/rtorrent/rtorrent-0.15.7.ebuild index bddd5746fa7a..901977f44647 100644 --- a/net-p2p/rtorrent/rtorrent-0.15.7.ebuild +++ b/net-p2p/rtorrent/rtorrent-0.15.7.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git" else SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="amd64 arm64 ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + KEYWORDS="amd64 arm64 ~ppc ppc64 x86 ~x64-macos ~x64-solaris" fi LICENSE="GPL-2" diff --git a/net-p2p/rtorrent/rtorrent-0.16.5.ebuild b/net-p2p/rtorrent/rtorrent-0.16.5.ebuild index f561c36f3120..cbb786db55da 100644 --- a/net-p2p/rtorrent/rtorrent-0.16.5.ebuild +++ b/net-p2p/rtorrent/rtorrent-0.16.5.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git" else SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos ~x64-solaris" fi LICENSE="GPL-2" diff --git a/net-p2p/rtorrent/rtorrent-9999.ebuild b/net-p2p/rtorrent/rtorrent-9999.ebuild index f561c36f3120..cbb786db55da 100644 --- a/net-p2p/rtorrent/rtorrent-9999.ebuild +++ b/net-p2p/rtorrent/rtorrent-9999.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/rakshasa/${PN}.git" else SRC_URI="https://github.com/rakshasa/rtorrent/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos ~x64-solaris" fi LICENSE="GPL-2" diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest index 05b63357b167..59248c274781 100644 --- a/net-p2p/syncthing/Manifest +++ b/net-p2p/syncthing/Manifest @@ -1,4 +1,3 @@ -DIST syncthing-1.27.12.tar.gz 15553432 BLAKE2B df4ecaacb2986152755bcc6b20570856217b49dcffae45ff9cb3e1bc32eb648eb709fdf79c9051e73eff7b61adcf7078daed1d06d22a0d65061eb99a25b8aa02 SHA512 4e46124936ab7670d2929b0817b014c5d9ab6c94a9ce47368c796ab59b1f03c7da983ade358ae98be7c83fb4b70d2c3a3709827257be9dc61c0d0e113022dd85 DIST syncthing-source-v1.29.5.tar.gz 16044586 BLAKE2B d0e557d6158c3e568314725c06862b9b30f83e4e7f1322930dcdd30c80bee89730bfa3d4051ba45c1714901a96175dcd8e328feb87a4deeaadb7b4eb37e47fe0 SHA512 a11ee3e95ba656f2bfceddde10ef13d86dffc0cba78f428bf5cbba13a8bb6e0ef7eb9c8b75317596d56b7880465cf8972be6cf77258c7c53529c16d5310cc43d DIST syncthing-source-v2.0.10.tar.gz 62668860 BLAKE2B 28f4c9abedfbcc0d74c27d7d705a27fbf3a5aa36bf5a5bea14efb3eb6b55ae43635d27ccff0dc2fa8918d5b2a88c63a2984f6af9a242c111c08a28f32e42bbc4 SHA512 7bd66902211402ac2af017fd3a7eae589a0b3dbb20d3e9f17a4e0760503b3ebd177d917d9d7345f4bf6cc6a2c43d748195b079272e199285aac7719ffc89ab87 DIST syncthing-source-v2.0.10.tar.gz.asc 1391 BLAKE2B 746a183dc6cfe43ce414ae7128aa4ff50ca4681d6fcc692c8607bdbd70dab237b00d4c12dd7733b8255cd7d813eb25c1be09b2dae857963aec766afde6dfaf80 SHA512 8bf1ccab2670623b0bedaef7b196fad5a823068fb5c1922a7d6497ea431872311ad800413a96210df00c9907dbd85de8f563a3d635e76a1ef50641835998eb23 @@ -6,5 +5,3 @@ DIST syncthing-source-v2.0.11.tar.gz 62758646 BLAKE2B 1da106603632fd6195304d9475 DIST syncthing-source-v2.0.11.tar.gz.asc 1391 BLAKE2B 210206ad0bf5112f9637d5e7df92eaf02b40097715c89369676421bac50861eee3ffe30a8e2dbd68444389b12cc7382daf72b719b87f34610f6bc801230ea7ed SHA512 f0c298e7430aaad9ffaddf2a2d4a426925ef07720b431a2b8c538e5803ad4e81ed2398cf362e338609dd348696a1f9028f2b796fefdd90d10ca88f974d833fe7 DIST syncthing-source-v2.0.12.tar.gz 62613260 BLAKE2B b91b963331a630fb4de15143925092608e3aed22ea192e36a9f970629444967c8ab6904cf3a6b60b7bfaaa0b8db98f4cc53d022345401453ceacd8f99f4cd9a7 SHA512 c7c4c762f46eaf0351421ca18e5dbe941dbe604c1b76fb4ae983915534e6b3b2f41b0e8e36438e595f1a542b7c2ecdb6f8a3015e846b8c994b2692f9a6a64c85 DIST syncthing-source-v2.0.12.tar.gz.asc 1391 BLAKE2B bc081c8ffbfcc87ae2414bb2771d61722d91fbe1cc33edf712d52ec48539a514be6d7951b6848b7e23c2b13c87aa45a6a9dd91352cc539edcb7f6f6b8edc3752 SHA512 582ef3619c79b76df2b3ec8986a7cfaee8fe922230e1bde1980d9a6a24d9fa91d4e1e5616663c2e064ad6ad7d0454c30b979d2f5b3a1734238c8ed9dc84cdc16 -DIST syncthing-source-v2.0.8.tar.gz 62666559 BLAKE2B b980705b97f79447c7ec1eb811b8d426b1790d6f5c44bd5cfff260959ed186b197dc6f5b7627948e1dcb302417c77fb4c18748548bf9af38f5b7446f131c1375 SHA512 c8139c7ff3b1067db789c395ed8f78fdba38d731f9e2760d10eb5c0288bdfc3f9b05311b0852881f79ccb33fa1ac6ac609820bbf1ab89f83fcc09f11842bfb23 -DIST syncthing-source-v2.0.8.tar.gz.asc 1391 BLAKE2B 55c6fd642a51f83408d0bdecdcbdbeff8cc0a0e3da116c05e59101394207f6647c3973365a48603d84f57070ea89f588b9c50057ab72f1569ecaab046d49971a SHA512 0f951fb9c4354d26cf779fca8aeca89a8559e03d247b6c440aa54b6a9c878cb4a26597f120903a66798300e4e3b6e08b1a5575b296aded80239219ce5b0069d6 diff --git a/net-p2p/syncthing/files/syncthing-1.23.2-tests_race.patch b/net-p2p/syncthing/files/syncthing-1.23.2-tests_race.patch deleted file mode 100644 index 8d9e6819d101..000000000000 --- a/net-p2p/syncthing/files/syncthing-1.23.2-tests_race.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- a/build.go -+++ b/build.go -@@ -32,8 +32,6 @@ - "strings" - "text/template" - "time" -- -- buildpkg "github.com/syncthing/syncthing/lib/build" - ) - - var ( -@@ -409,13 +409,6 @@ - } - args = append(args, "-timeout", timeout) - -- if runtime.GOARCH == "amd64" { -- switch runtime.GOOS { -- case buildpkg.Darwin, buildpkg.Linux, buildpkg.FreeBSD: // , "windows": # See https://github.com/golang/go/issues/27089 -- args = append(args, "-race") -- } -- } -- - if coverage { - args = append(args, "-covermode", "atomic", "-coverprofile", "coverage.txt", "-coverpkg", strings.Join(pkgs, ",")) - } diff --git a/net-p2p/syncthing/files/syncthing.confd-r2 b/net-p2p/syncthing/files/syncthing.confd-r2 new file mode 100644 index 000000000000..f9b4412c1e19 --- /dev/null +++ b/net-p2p/syncthing/files/syncthing.confd-r2 @@ -0,0 +1,27 @@ +# /etc/conf.d/syncthing: config file for /etc/init.d/syncthing + +# umask used to create files +# The default allows group access +#umask=007 + +# Nice level of syncthing +#SSD_NICELEVEL=0 + +# I/O nice level of syncthing +#SSD_IONICELEVEL=0 + +# User and group as which to run +#command_user="syncthing:syncthing" + +# Configuration directory +#SYNCTHING_HOMEDIR="/var/lib/syncthing/.config/syncthing" + +# Log file location +#SYNCTHING_LOGFILE="/var/log/syncthing/syncthing.log" + +# Where the syncthing GUI should listen. Can be a http(s) URI or a Unix domain socket +#SYNCTHING_GUI_ADDRESS="http://127.0.0.1:8384" +#SYNCTHING_GUI_ADDRESS="unix:/run/syncthing.sock" + +# Extra options for syncthing +#SYNCTHING_OPTS="" diff --git a/net-p2p/syncthing/files/syncthing.initd-r5 b/net-p2p/syncthing/files/syncthing.initd-r5 new file mode 100644 index 000000000000..ce34a6e31350 --- /dev/null +++ b/net-p2p/syncthing/files/syncthing.initd-r5 @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +: ${command_user:="syncthing:syncthing"} +SYNCTHING_HOMEDIR=${SYNCTHING_HOMEDIR:-/var/lib/syncthing/.config/syncthing} +SYNCTHING_LOGFILE=${SYNCTHING_LOGFILE:-/var/log/syncthing/syncthing.log} +SYNCTHING_GUI_ADDRESS=${SYNCTHING_GUI_ADDRESS:-http://127.0.0.1:8384} + +description="Open Source Continuous File Synchronization" +command="/usr/bin/syncthing" +supervisor=supervise-daemon + +command_args="serve --no-browser --no-restart \ + --home=${SYNCTHING_HOMEDIR} \ + --log-file=\"${SYNCTHING_LOGFILE}\" + --no-log-format-level-string --log-format-level-syslog \ + --gui-address=${SYNCTHING_GUI_ADDRESS} \ + ${SYNCTHING_OPTS}" + +depend() { + need localmount + after net +} + +start_pre() { + checkpath -q -d -o "${command_user}" "${SYNCTHING_HOMEDIR}" + checkpath -q -f -o "${command_user}" "${SYNCTHING_LOGFILE}" +} diff --git a/net-p2p/syncthing/files/syncthing.initd-user-r2 b/net-p2p/syncthing/files/syncthing.initd-user-r2 new file mode 100644 index 000000000000..985180ede785 --- /dev/null +++ b/net-p2p/syncthing/files/syncthing.initd-user-r2 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +SYNCTHING_LOGFILE=${SYNCTHING_LOGFILE:-$HOME/.config/syncthing/syncthing.log} +SYNCTHING_GUI_ADDRESS=${SYNCTHING_GUI_ADDRESS:-http://127.0.0.1:8384} + +description="Open Source Continuous File Synchronization" +command |
