From 78634f348a30a55cc55606ee1ecde032241ceaeb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 19 Mar 2023 06:33:49 +0000 Subject: gentoo auto-resync : 19:03:2023 - 06:33:49 --- net-p2p/Manifest.gz | Bin 6911 -> 6914 bytes net-p2p/bitcoin-qt/Manifest | 4 +- net-p2p/bitcoin-qt/bitcoin-qt-0.21.0-r1.ebuild | 192 +++++++++++++++++++++ net-p2p/bitcoin-qt/bitcoin-qt-0.21.0.ebuild | 191 --------------------- net-p2p/bitcoin-qt/bitcoin-qt-22.0-r1.ebuild | 222 +++++++++++++++++++++++++ net-p2p/bitcoin-qt/bitcoin-qt-22.0.ebuild | 221 ------------------------ net-p2p/bitcoind/Manifest | 4 +- net-p2p/bitcoind/bitcoind-0.21.0-r1.ebuild | 176 ++++++++++++++++++++ net-p2p/bitcoind/bitcoind-0.21.0.ebuild | 175 ------------------- net-p2p/bitcoind/bitcoind-22.0-r1.ebuild | 206 +++++++++++++++++++++++ net-p2p/bitcoind/bitcoind-22.0.ebuild | 205 ----------------------- 11 files changed, 800 insertions(+), 796 deletions(-) create mode 100644 net-p2p/bitcoin-qt/bitcoin-qt-0.21.0-r1.ebuild delete mode 100644 net-p2p/bitcoin-qt/bitcoin-qt-0.21.0.ebuild create mode 100644 net-p2p/bitcoin-qt/bitcoin-qt-22.0-r1.ebuild delete mode 100644 net-p2p/bitcoin-qt/bitcoin-qt-22.0.ebuild create mode 100644 net-p2p/bitcoind/bitcoind-0.21.0-r1.ebuild delete mode 100644 net-p2p/bitcoind/bitcoind-0.21.0.ebuild create mode 100644 net-p2p/bitcoind/bitcoind-22.0-r1.ebuild delete mode 100644 net-p2p/bitcoind/bitcoind-22.0.ebuild (limited to 'net-p2p') diff --git a/net-p2p/Manifest.gz b/net-p2p/Manifest.gz index 5fc74835a21d..201f2afab2e9 100644 Binary files a/net-p2p/Manifest.gz and b/net-p2p/Manifest.gz differ diff --git a/net-p2p/bitcoin-qt/Manifest b/net-p2p/bitcoin-qt/Manifest index 4ae745fa700e..ef050fac3fab 100644 --- a/net-p2p/bitcoin-qt/Manifest +++ b/net-p2p/bitcoin-qt/Manifest @@ -7,7 +7,7 @@ DIST bitcoin-22.0.knots20211108.patches.tar.xz 1318256 BLAKE2B d6e56bc0ca1d706e9 DIST bitcoin-24.0.1.tar.gz 11412628 BLAKE2B 2a8c83aecd12d8d40305d78ede1f389884ee62cfe4af39a9b416b8887a595f3393d599ebe9ddeb576bba5896923feb7ee45ba32d7d4cb0ce9e6d0ef39ecf83c7 SHA512 de1ddb543429f70b0b55a46500e0bc4807cca1b1655a28f8ab186d6f6e620f8cf82420bbdf412976ffed9bc6d742926b19933429c734edaf7430a4f8c37e1685 DIST bitcoin-v0.21.0.tar.gz 7533957 BLAKE2B 01247cbb9fca2381a8c08ab1c88c479c640963caef22e4207aab46b05813dbf2a5286ac9e98132fb34db0e9ac6c18c79e45a89de166f5c6d480d8ac6e14ecca2 SHA512 c58187996932b0151432a65885b7e8a7b216fb1ab0576fb7d4b5e9620d957594b05e181153e2e0e50bcd5ce764861ec11019ffbb1095d3e704f441e61ac6a04f DIST bitcoin-v22.0.tar.gz 7977783 BLAKE2B ba212037bc8efcfbbbf6340c48ed886c4a5aa93e4a34097eafea39734a6f4e25fa6b174f894655f63c504380d8761657771795bfcc641018bf1f1661deef9321 SHA512 1b4b17360e97f390ae678adb7a239c359d3a1288799710683e26f09fc53341b6fca3211465fa3e4fdee37324d85ec1a31ffd1a3714e969df13441f755fa4b7ad -EBUILD bitcoin-qt-0.21.0.ebuild 4935 BLAKE2B 5483b44409cac50b71ee0298be28538e25ebc3e40ac50730a1d31575f9f82c165edca17ae0b43da6c9023c3e0f0088b18df0fa7f0d9a83ccacb6380b04620bab SHA512 c04215777cd7ac8a27c965151bad35ce89b4d7f1d4eb5b9c2a120ca053af6be640516c810d3f42c9c1fa1c6b6c0cb7a5d030ba5bba00757dcbcf6a47c230b61b -EBUILD bitcoin-qt-22.0.ebuild 6217 BLAKE2B 38dd68fb740efd51c131edbdc1b1bd59aa91c4a3fca89bd1510b7ee59953a021f9504c94967c75ea09db128c7d0d07bfcba5534e623b813f2e516ab9ac4c8d4b SHA512 14a190c28acc6fa618a341220a51d86f0f8c648a6f9f05f88e8593471678285016ba3444e93c261d5e3736df434977577e23bcf869aab406e26c3e01d4ae04bd +EBUILD bitcoin-qt-0.21.0-r1.ebuild 4979 BLAKE2B 6b942dc0957f5a32df13e0436753d0418866f13dd10d1115ec40a3b28e4bbe8ed0b874437ae02dfaae0331c1a1d85026f1ddc1d5e5a6d98807644d6f32318768 SHA512 cc27549fc91201d4a2f22affc1a24eb43517bdf1981f18980cfac36541121ebf099226e417f45b11ca30464d5df8f94d12f14dc99d785851e393b44c3d3a4e18 +EBUILD bitcoin-qt-22.0-r1.ebuild 6261 BLAKE2B 094ffc3923770a3fdf5f2583d72250c7d25c3bb694adbe53fb1a1e58d75514c76c9030f7091efacd5df644875f18d8ddb3ef1089272de7c1f5379a26c15d1f15 SHA512 22b1fbcd2cfe33bf7b7399b841350d77f4935e302483184d512747ecba3291f0c92272e93ab325619d89c4d09e855ece81dd4cf713b4e569aed1a5a674cf04bb EBUILD bitcoin-qt-24.0.1.ebuild 3881 BLAKE2B bd0a8155afb55c5c3f6b355460da406a1e92fe19ee908742ee7d49e7db9ae2c6e13bb6d7355c2a8718fca3f419f3a86c9d5df36ec45e523189a4d9c878e0c77b SHA512 9f82b1c9078bf94d3a8f05941968a1d07dfa8444c6f972b5561bc105dd29d3a2db383cfcb1a9fcbd822db816f748848f6b8c472bbf371cfde0fd24f8cab907eb MISC metadata.xml 1434 BLAKE2B e6e1f0ffac2e6be3bc19fe8bb8e9b18b5b50da6255d70d92fdc28a6e040b54ed4d5b94643835043eb64eae0273111f73c30e93a6d9b7203368aeedb880961c8a SHA512 5e7f2f044b27e4ac21d1e18d177bb1bd493feaad5598ad44abed8a0053403565100877498da29aa4f35e59d570d2a499daea58285dd59f3e62eafba7ee3460e7 diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0-r1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0-r1.ebuild new file mode 100644 index 000000000000..784375fb1228 --- /dev/null +++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0-r1.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use desktop xdg-utils + +BITCOINCORE_COMMITHASH="95ea54ba089610019a74c1176a2c7c0dba144b1c" +KNOTS_PV="${PV}.knots20210130" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/$(ver_cut 1-2).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="+asm dbus kde knots +qrcode sqlite +system-leveldb test upnp +wallet zeromq" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/boost:= + >dev-libs/libsecp256k1-0.1_pre20200911:0/0[recovery,schnorr] + !>=dev-libs/libsecp256k1-0.1_pre20210628 + >=dev-libs/univalue-1.0.4:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + system-leveldb? ( virtual/bitcoin-leveldb ) + dbus? ( dev-qt/qtdbus:5 ) + dev-libs/libevent:= + qrcode? ( + media-gfx/qrencode:= + ) + sqlite? ( >=dev-db/sqlite-3.7.17:= ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=sys-devel/autoconf-2.69 + >=sys-devel/automake-1.13 + dev-qt/linguist-tools:5 + knots? ( + gnome-base/librsvg + media-gfx/imagemagick[png] + ) +" + +DOCS=( + doc/bips.md + doc/bitcoin-conf.md + doc/descriptors.md + doc/files.md + doc/JSON-RPC-interface.md + doc/psbt.md + doc/reduce-traffic.md + doc/release-notes.md + doc/REST-interface.md + doc/tor.md +) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2021/01/14/release-${PV}/" + fi + elog "Replace By Fee policy is now always enabled by default: Your node will" + elog "preferentially mine and relay transactions paying the highest fee, regardless" + elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die + + # Save the generic icon for later + cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + fi + + eapply "${FILESDIR}/${PN}-0.20.1-boost-1.77-compat.patch" + + eapply_user + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + eautoreconf + rm -r src/secp256k1 || die + if use system-leveldb; then + rm -r src/leveldb || die + fi +} + +src_configure() { + local my_econf=( + $(use_enable asm) + $(use_with dbus qtdbus) + $(use_with qrcode qrencode) + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-gui=qt5 + --disable-util-cli + --disable-util-tx + --disable-util-wallet + --disable-bench + --without-libs + --without-daemon + --disable-fuzz + --disable-ccache + --disable-static + $(use_with sqlite) + $(use_with system-leveldb) + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + if use test; then + rm -f "${ED}/usr/bin/test_bitcoin" || die + fi + + insinto /usr/share/icons/hicolor/scalable/apps/ + doins bitcoin128.svg + if use knots; then + newins src/qt/res/src/bitcoin.svg bitcoinknots.svg + fi + + cp "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" "${T}" || die + if ! use knots; then + sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${T}/org.bitcoin.bitcoin-qt.desktop" || die + fi + domenu "${T}/org.bitcoin.bitcoin-qt.desktop" + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/bitcoind.bash-completion ${PN} + + if use kde; then + insinto /usr/share/kservices5 + doins "${FILESDIR}/bitcoin-qt.protocol" + dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" + fi +} + +update_caches() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + update_caches + + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and add your user to the 'tor' user group." +} + +pkg_postrm() { + update_caches +} diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0.ebuild deleted file mode 100644 index 75b9007e2706..000000000000 --- a/net-p2p/bitcoin-qt/bitcoin-qt-0.21.0.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DB_VER="4.8" -inherit autotools bash-completion-r1 db-use desktop xdg-utils - -BITCOINCORE_COMMITHASH="95ea54ba089610019a74c1176a2c7c0dba144b1c" -KNOTS_PV="${PV}.knots20210130" -KNOTS_P="bitcoin-${KNOTS_PV}" - -DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" -SRC_URI=" - https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz - https://bitcoinknots.org/files/$(ver_cut 1-2).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" - -IUSE="+asm dbus kde knots +qrcode sqlite +system-leveldb test upnp +wallet zeromq" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/boost:= - >dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr] - >=dev-libs/univalue-1.0.4:= - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtwidgets:5 - system-leveldb? ( virtual/bitcoin-leveldb ) - dbus? ( dev-qt/qtdbus:5 ) - dev-libs/libevent:= - qrcode? ( - media-gfx/qrencode:= - ) - sqlite? ( >=dev-db/sqlite-3.7.17:= ) - upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) - wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) - zeromq? ( net-libs/zeromq:= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - >=sys-devel/autoconf-2.69 - >=sys-devel/automake-1.13 - dev-qt/linguist-tools:5 - knots? ( - gnome-base/librsvg - media-gfx/imagemagick[png] - ) -" - -DOCS=( - doc/bips.md - doc/bitcoin-conf.md - doc/descriptors.md - doc/files.md - doc/JSON-RPC-interface.md - doc/psbt.md - doc/reduce-traffic.md - doc/release-notes.md - doc/REST-interface.md - doc/tor.md -) - -S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" - -pkg_pretend() { - if use knots; then - elog "You are building ${PN} from Bitcoin Knots." - elog "For more information, see:" - elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html" - else - elog "You are building ${PN} from Bitcoin Core." - elog "For more information, see:" - elog "https://bitcoincore.org/en/2021/01/14/release-${PV}/" - fi - elog "Replace By Fee policy is now always enabled by default: Your node will" - elog "preferentially mine and relay transactions paying the highest fee, regardless" - elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" -} - -src_prepare() { - sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die - - # Save the generic icon for later - cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die - - local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" - - eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" - - if use knots; then - eapply "${knots_patchdir}/${KNOTS_P}.f.patch" - eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" - eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" - fi - - eapply "${FILESDIR}/${PN}-0.20.1-boost-1.77-compat.patch" - - eapply_user - - echo '#!/bin/true' >share/genbuild.sh || die - mkdir -p src/obj || die - echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die - - eautoreconf - rm -r src/secp256k1 || die - if use system-leveldb; then - rm -r src/leveldb || die - fi -} - -src_configure() { - local my_econf=( - $(use_enable asm) - $(use_with dbus qtdbus) - $(use_with qrcode qrencode) - $(use_with upnp miniupnpc) - $(use_enable upnp upnp-default) - $(use_enable test tests) - $(use_enable wallet) - $(use_enable zeromq zmq) - --with-gui=qt5 - --disable-util-cli - --disable-util-tx - --disable-util-wallet - --disable-bench - --without-libs - --without-daemon - --disable-fuzz - --disable-ccache - --disable-static - $(use_with sqlite) - $(use_with system-leveldb) - --with-system-libsecp256k1 - --with-system-univalue - ) - econf "${my_econf[@]}" -} - -src_install() { - default - - if use test; then - rm -f "${ED}/usr/bin/test_bitcoin" || die - fi - - insinto /usr/share/icons/hicolor/scalable/apps/ - doins bitcoin128.svg - if use knots; then - newins src/qt/res/src/bitcoin.svg bitcoinknots.svg - fi - - cp "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" "${T}" || die - if ! use knots; then - sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${T}/org.bitcoin.bitcoin-qt.desktop" || die - fi - domenu "${T}/org.bitcoin.bitcoin-qt.desktop" - - use zeromq && dodoc doc/zmq.md - - newbashcomp contrib/bitcoind.bash-completion ${PN} - - if use kde; then - insinto /usr/share/kservices5 - doins "${FILESDIR}/bitcoin-qt.protocol" - dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" - fi -} - -update_caches() { - xdg_icon_cache_update - xdg_desktop_database_update -} - -pkg_postinst() { - update_caches - - elog "To have ${PN} automatically use Tor when it's running, be sure your" - elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" - elog "correctly, and add your user to the 'tor' user group." -} - -pkg_postrm() { - update_caches -} diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-22.0-r1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-22.0-r1.ebuild new file mode 100644 index 000000000000..8d0158e88816 --- /dev/null +++ b/net-p2p/bitcoin-qt/bitcoin-qt-22.0-r1.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use desktop flag-o-matic xdg-utils + +BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8" +KNOTS_PV="${PV}.knots20211108" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/$(ver_cut 1).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="+asm +berkdb dbus +external-signer kde knots nat-pmp +qrcode sqlite systemtap test upnp +wallet zeromq" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + sqlite? ( wallet ) + berkdb? ( wallet ) + wallet? ( || ( berkdb sqlite ) ) +" +RDEPEND=" + dev-libs/boost:= + >dev-libs/libsecp256k1-0.1_pre20200911:0/0[recovery,schnorr] + !>=dev-libs/libsecp256k1-0.1_pre20210628 + >=dev-libs/univalue-1.0.4:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + virtual/bitcoin-leveldb + dbus? ( dev-qt/qtdbus:5 ) + dev-libs/libevent:= + nat-pmp? ( net-libs/libnatpmp ) + qrcode? ( + media-gfx/qrencode:= + ) + sqlite? ( >=dev-db/sqlite-3.7.17:= ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + berkdb? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +DEPEND="${RDEPEND} + systemtap? ( dev-util/systemtap ) +" +BDEPEND=" + >=sys-devel/automake-1.13 + || ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 ) + dev-qt/linguist-tools:5 + knots? ( + gnome-base/librsvg + media-gfx/imagemagick[png] + ) +" + +DOCS=( + doc/bips.md + doc/bitcoin-conf.md + doc/descriptors.md + doc/files.md + doc/JSON-RPC-interface.md + doc/psbt.md + doc/reduce-memory.md + doc/reduce-traffic.md + doc/release-notes.md + doc/REST-interface.md + doc/tor.md +) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/" + fi + elog + elog "Replace By Fee policy is now always enabled by default: Your node will" + elog "preferentially mine and relay transactions paying the highest fee, regardless" + if use knots; then + elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" + else # Bitcoin Core doesn't support disabling RBF anymore + elog "of receive order. To disable RBF, rebuild with USE=knots to get ${PN}" + elog "from Bitcoin Knots, and set mempoolreplacement=never in bitcoin.conf" + fi + if has_version "<${CATEGORY}/${PN}-0.21.1" ; then + ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED" + ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin" + ewarn "rules, beginning in November. Protocol changes require user consent to be" + ewarn "effective, and if enforced inconsistently within the community may compromise" + ewarn "your security or others! If you do not know what you are doing, learn more" + ewarn "before November. (You must make a decision either way - simply not upgrading" + ewarn "is insecure in all scenarios.)" + ewarn "To learn more, see https://bitcointaproot.cc" + fi + + if [[ ${MERGE_TYPE} != "binary" ]] ; then + if ! test-flag-CXX -std=c++17 ; then + die "Building ${CATEGORY}/${P} requires at least GCC 7 or Clang 5" + fi + fi +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die + + # Save the generic icon for later + cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch" + fi + + eapply_user + + eautoreconf + rm -r src/leveldb src/secp256k1 || die +} + +src_configure() { + local my_econf=( + $(use_enable asm) + $(use_with dbus qtdbus) + $(use_enable systemtap ebpf) + $(use_enable external-signer) + $(use_with nat-pmp natpmp) + $(use_with nat-pmp natpmp-default) + $(use_with qrcode qrencode) + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-gui=qt5 + --disable-util-cli + --disable-util-tx + --disable-util-util + --disable-util-wallet + --disable-bench + --without-libs + --without-daemon + --disable-fuzz + --disable-fuzz-binary + --disable-ccache + --disable-static + $(use_with berkdb bdb) + $(use_with sqlite) + --with-system-leveldb + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + if use test; then + rm -f "${ED}/usr/bin/test_bitcoin" || die + fi + + insinto /usr/share/icons/hicolor/scalable/apps/ + doins bitcoin128.svg + if use knots; then + newins src/qt/res/src/bitcoin.svg bitcoinknots.svg + fi + + cp "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" "${T}" || die + if ! use knots; then + sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${T}/org.bitcoin.bitcoin-qt.desktop" || die + fi + domenu "${T}/org.bitcoin.bitcoin-qt.desktop" + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/bitcoind.bash-completion ${PN} + + if use kde; then + insinto /usr/share/kservices5 + doins "${FILESDIR}/bitcoin-qt.protocol" + dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" + fi +} + +update_caches() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + update_caches + + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and add your user to the 'tor' user group." +} + +pkg_postrm() { + update_caches +} diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-22.0.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-22.0.ebuild deleted file mode 100644 index 90571ee1adba..000000000000 --- a/net-p2p/bitcoin-qt/bitcoin-qt-22.0.ebuild +++ /dev/null @@ -1,221 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DB_VER="4.8" -inherit autotools bash-completion-r1 db-use desktop flag-o-matic xdg-utils - -BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8" -KNOTS_PV="${PV}.knots20211108" -KNOTS_P="bitcoin-${KNOTS_PV}" - -DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" -SRC_URI=" - https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz - https://bitcoinknots.org/files/$(ver_cut 1).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" - -IUSE="+asm +berkdb dbus +external-signer kde knots nat-pmp +qrcode sqlite systemtap test upnp +wallet zeromq" -RESTRICT="!test? ( test )" - -REQUIRED_USE=" - sqlite? ( wallet ) - berkdb? ( wallet ) - wallet? ( || ( berkdb sqlite ) ) -" -RDEPEND=" - dev-libs/boost:= - >dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr] - >=dev-libs/univalue-1.0.4:= - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtwidgets:5 - virtual/bitcoin-leveldb - dbus? ( dev-qt/qtdbus:5 ) - dev-libs/libevent:= - nat-pmp? ( net-libs/libnatpmp ) - qrcode? ( - media-gfx/qrencode:= - ) - sqlite? ( >=dev-db/sqlite-3.7.17:= ) - upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) - berkdb? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) - zeromq? ( net-libs/zeromq:= ) -" -DEPEND="${RDEPEND} - systemtap? ( dev-util/systemtap ) -" -BDEPEND=" - >=sys-devel/automake-1.13 - || ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 ) - dev-qt/linguist-tools:5 - knots? ( - gnome-base/librsvg - media-gfx/imagemagick[png] - ) -" - -DOCS=( - doc/bips.md - doc/bitcoin-conf.md - doc/descriptors.md - doc/files.md - doc/JSON-RPC-interface.md - doc/psbt.md - doc/reduce-memory.md - doc/reduce-traffic.md - doc/release-notes.md - doc/REST-interface.md - doc/tor.md -) - -S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" - -pkg_pretend() { - if use knots; then - elog "You are building ${PN} from Bitcoin Knots." - elog "For more information, see:" - elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html" - else - elog "You are building ${PN} from Bitcoin Core." - elog "For more information, see:" - elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/" - fi - elog - elog "Replace By Fee policy is now always enabled by default: Your node will" - elog "preferentially mine and relay transactions paying the highest fee, regardless" - if use knots; then - elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" - else # Bitcoin Core doesn't support disabling RBF anymore - elog "of receive order. To disable RBF, rebuild with USE=knots to get ${PN}" - elog "from Bitcoin Knots, and set mempoolreplacement=never in bitcoin.conf" - fi - if has_version "<${CATEGORY}/${PN}-0.21.1" ; then - ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED" - ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin" - ewarn "rules, beginning in November. Protocol changes require user consent to be" - ewarn "effective, and if enforced inconsistently within the community may compromise" - ewarn "your security or others! If you do not know what you are doing, learn more" - ewarn "before November. (You must make a decision either way - simply not upgrading" - ewarn "is insecure in all scenarios.)" - ewarn "To learn more, see https://bitcointaproot.cc" - fi - - if [[ ${MERGE_TYPE} != "binary" ]] ; then - if ! test-flag-CXX -std=c++17 ; then - die "Building ${CATEGORY}/${P} requires at least GCC 7 or Clang 5" - fi - fi -} - -src_prepare() { - sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die - - # Save the generic icon for later - cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die - - local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" - - eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch" - - if use knots; then - eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch" - fi - - eapply_user - - eautoreconf - rm -r src/leveldb src/secp256k1 || die -} - -src_configure() { - local my_econf=( - $(use_enable asm) - $(use_with dbus qtdbus) - $(use_enable systemtap ebpf) - $(use_enable external-signer) - $(use_with nat-pmp natpmp) - $(use_with nat-pmp natpmp-default) - $(use_with qrcode qrencode) - $(use_with upnp miniupnpc) - $(use_enable upnp upnp-default) - $(use_enable test tests) - $(use_enable wallet) - $(use_enable zeromq zmq) - --with-gui=qt5 - --disable-util-cli - --disable-util-tx - --disable-util-util - --disable-util-wallet - --disable-bench - --without-libs - --without-daemon - --disable-fuzz - --disable-fuzz-binary - --disable-ccache - --disable-static - $(use_with berkdb bdb) - $(use_with sqlite) - --with-system-leveldb - --with-system-libsecp256k1 - --with-system-univalue - ) - econf "${my_econf[@]}" -} - -src_install() { - default - - if use test; then - rm -f "${ED}/usr/bin/test_bitcoin" || die - fi - - insinto /usr/share/icons/hicolor/scalable/apps/ - doins bitcoin128.svg - if use knots; then - newins src/qt/res/src/bitcoin.svg bitcoinknots.svg - fi - - cp "${FILESDIR}/org.bitcoin.bitcoin-qt.desktop" "${T}" || die - if ! use knots; then - sed -i 's/Knots/Core/;s/^\(Icon=\).*$/\1bitcoin128/' "${T}/org.bitcoin.bitcoin-qt.desktop" || die - fi - domenu "${T}/org.bitcoin.bitcoin-qt.desktop" - - use zeromq && dodoc doc/zmq.md - - newbashcomp contrib/bitcoind.bash-completion ${PN} - - if use kde; then - insinto /usr/share/kservices5 - doins "${FILESDIR}/bitcoin-qt.protocol" - dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" - fi -} - -update_caches() { - xdg_icon_cache_update - xdg_desktop_database_update -} - -pkg_postinst() { - update_caches - - elog "To have ${PN} automatically use Tor when it's running, be sure your" - elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" - elog "correctly, and add your user to the 'tor' user group." -} - -pkg_postrm() { - update_caches -} diff --git a/net-p2p/bitcoind/Manifest b/net-p2p/bitcoind/Manifest index 6fef48f5d90c..1a194dbfe3cc 100644 --- a/net-p2p/bitcoind/Manifest +++ b/net-p2p/bitcoind/Manifest @@ -8,7 +8,7 @@ DIST bitcoin-22.0.knots20211108.patches.tar.xz 1318256 BLAKE2B d6e56bc0ca1d706e9 DIST bitcoin-24.0.1.tar.gz 11412628 BLAKE2B 2a8c83aecd12d8d40305d78ede1f389884ee62cfe4af39a9b416b8887a595f3393d599ebe9ddeb576bba5896923feb7ee45ba32d7d4cb0ce9e6d0ef39ecf83c7 SHA512 de1ddb543429f70b0b55a46500e0bc4807cca1b1655a28f8ab186d6f6e620f8cf82420bbdf412976ffed9bc6d742926b19933429c734edaf7430a4f8c37e1685 DIST bitcoin-v0.21.0.tar.gz 7533957 BLAKE2B 01247cbb9fca2381a8c08ab1c88c479c640963caef22e4207aab46b05813dbf2a5286ac9e98132fb34db0e9ac6c18c79e45a89de166f5c6d480d8ac6e14ecca2 SHA512 c58187996932b0151432a65885b7e8a7b216fb1ab0576fb7d4b5e9620d957594b05e181153e2e0e50bcd5ce764861ec11019ffbb1095d3e704f441e61ac6a04f DIST bitcoin-v22.0.tar.gz 7977783 BLAKE2B ba212037bc8efcfbbbf6340c48ed886c4a5aa93e4a34097eafea39734a6f4e25fa6b174f894655f63c504380d8761657771795bfcc641018bf1f1661deef9321 SHA512 1b4b17360e97f390ae678adb7a239c359d3a1288799710683e26f09fc53341b6fca3211465fa3e4fdee37324d85ec1a31ffd1a3714e969df13441f755fa4b7ad -EBUILD bitcoind-0.21.0.ebuild 4846 BLAKE2B c3c34145dbec98868341d2b7ea3e70f3cd7b6319a86a5b301ccc2ec4171abaad281bc6b6e8ddfa2e82ce13023775cd38b09072bca63361ccbf43433783640ee7 SHA512 81758d6d8710c53afc970ab2e66e1784c6ea9871dcb57d465de3359e24375a2e7f79841821a4cf0695802e814b1c8ff3324a0081f17a9e7099a3024d325627a1 -EBUILD bitcoind-22.0.ebuild 6129 BLAKE2B a0d216be9433985ce7f345ab80a03d343f3e4a465ff8b3b1e75ce614854f0f45f15d5422ee6f7ebe98570ce8517dfb88d258f28bb9808412df14ea380b3e0456 SHA512 017604c3cf07ad4f6a4836755252794f33188033d48b0abcc1040771e0e2d37264c033e4cd56048545aed227c6aacebab25d729a7bbf906a962689e8150019ea +EBUILD bitcoind-0.21.0-r1.ebuild 4890 BLAKE2B aeafd089052e3339e78258042454893e37b0fbf867453a99acd688019b58e2be5e3c7a256a0cab9bdacc72d09c985c6afad7d0d7628fa439c80154363e28a4c4 SHA512 2291bdb99d0747ca35dcd53dfea9007100e9c6a666d6a8b1b9193fdae47178c7d8e9715c445ed2e0c873b45ac66fa736169ed43dd3a7a37b3515d3dac2891498 +EBUILD bitcoind-22.0-r1.ebuild 6173 BLAKE2B 212e5f1f4c6f06f4adc25f88df4bedf93e61bd123ce0b4648a7ddcfe30c1cd6ebd3554d56ee784a47d29e7314d1ae6cc84f1b7b71c7fe2f9d0ecf7e78f405961 SHA512 2551d976eaec4ccc48431f91b5854bf858794421a6f74f12e9a578065b3eb381ea2b7952f5a159d9280ed299f15edf7a373fecfb9825db7c222350fcdcc7b22d EBUILD bitcoind-24.0.1.ebuild 4044 BLAKE2B d035547cef0e1ddfb63248e5206737423a8c4c73e98384eabca2bb8a4642e9509cdaebbde3cd4b9467526185f29959fd35c5aa510a5b2d84b32a83462e3a1366 SHA512 f052cf3d8bc3991faae98c74745e66625228804c0e85d4d68c5ff95806c194f1c2f92d7d3e045607d940f90f2abafe78e704df94cc7e98db2fb3da7612ab6b70 MISC metadata.xml 1352 BLAKE2B a924424d5811e88d1dbc6cff68289695e270854d8afb811c4d5d682fc893d2434d166f26c229e5f8ab62e4161944940ee6eb55aa3149b93d69f288a023aa6d3d SHA512 a024d33e339da9e75e10137568503187f186fc717d6bc1f170e478f06fb577340b36a7f13fea070ef98faa97c8bc52e4f60698df4a09b28050656ddd06d842fc diff --git a/net-p2p/bitcoind/bitcoind-0.21.0-r1.ebuild b/net-p2p/bitcoind/bitcoind-0.21.0-r1.ebuild new file mode 100644 index 000000000000..ee53cd8ba772 --- /dev/null +++ b/net-p2p/bitcoind/bitcoind-0.21.0-r1.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use systemd + +BITCOINCORE_COMMITHASH="95ea54ba089610019a74c1176a2c7c0dba144b1c" +KNOTS_PV="${PV}.knots20210130" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/$(ver_cut 1-2).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="+asm examples knots +sqlite system-leveldb test upnp +wallet zeromq" +RESTRICT="!test? ( test )" + +DEPEND=" + acct-group/bitcoin + acct-user/bitcoin + dev-libs/boost:= + dev-libs/libevent:= + >dev-libs/libsecp256k1-0.1_pre20200911:0/0[recovery,schnorr] + !>=dev-libs/libsecp256k1-0.1_pre20210628 + >=dev-libs/univalue-1.0.4:= + system-leveldb? ( virtual/bitcoin-leveldb ) + sqlite? ( >=dev-db/sqlite-3.7.17:= ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + >=sys-devel/autoconf-2.69 + >=sys-devel/automake-1.13 +" + +DOCS=( + doc/bips.md + doc/bitcoin-conf.md + doc/descriptors.md + doc/files.md + doc/JSON-RPC-interface.md + doc/psbt.md + doc/reduce-traffic.md + doc/release-notes.md + doc/REST-interface.md + doc/tor.md +) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2021/01/14/release-${PV}/" + fi + elog "Replace By Fee policy is now always enabled by default: Your node will" + elog "preferentially mine and relay transactions paying the highest fee, regardless" + elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + fi + + eapply "${FILESDIR}/${PN}-0.20.1-boost-1.77-compat.patch" + + default + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + eautoreconf + rm -r src/secp256k1 || die + if use system-leveldb; then + rm -r src/leveldb || die + fi +} + +src_configure() { + local my_econf=( + $(use_enable asm) + --without-qtdbus + --without-qrencode + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-daemon + --disable-util-cli + --disable-util-tx + --disable-util-wallet + --disable-bench + --without-libs + --without-gui + --disable-fuzz + --disable-ccache + --disable-static + $(use_with sqlite) + $(use_with system-leveldb) + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + if use test; then + rm -f "${ED}/usr/bin/test_bitcoin" || die + fi + + insinto /etc/bitcoin + newins "${FILESDIR}/bitcoin.conf" bitcoin.conf + fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf + fperms 600 /etc/bitcoin/bitcoin.conf + + newconfd "contrib/init/bitcoind.openrcconf" ${PN} + newinitd "contrib/init/bitcoind.openrc" ${PN} + systemd_newunit "contrib/init/bitcoind.service" "bitcoind.service" + + keepdir /var/lib/bitcoin/.bitcoin + fperms 700 /var/lib/bitcoin + fowners bitcoin:bitcoin /var/lib/bitcoin/ + fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin + dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf + + doman "${FILESDIR}/bitcoin.conf.5" + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/${PN}.bash-completion ${PN} + + if use examples; then + docinto examples + dodoc -r contrib/{linearize,qos} + use zeromq && dodoc -r contrib/zmq + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind +} + +pkg_postinst() { + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and:" + elog "- Using an init script: add the 'bitcoin' user to the 'tor' user group." + elog "- Running bitcoind directly: add that user to the 'tor' user group." +} diff --git a/net-p2p/bitcoind/bitcoind-0.21.0.ebuild b/net-p2p/bitcoind/bitcoind-0.21.0.ebuild deleted file mode 100644 index 2d24cac58585..000000000000 --- a/net-p2p/bitcoind/bitcoind-0.21.0.ebuild +++ /dev/null @@ -1,175 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DB_VER="4.8" -inherit autotools bash-completion-r1 db-use systemd - -BITCOINCORE_COMMITHASH="95ea54ba089610019a74c1176a2c7c0dba144b1c" -KNOTS_PV="${PV}.knots20210130" -KNOTS_P="bitcoin-${KNOTS_PV}" - -DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" -SRC_URI=" - https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz - https://bitcoinknots.org/files/$(ver_cut 1-2).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="+asm examples knots +sqlite system-leveldb test upnp +wallet zeromq" -RESTRICT="!test? ( test )" - -DEPEND=" - acct-group/bitcoin - acct-user/bitcoin - dev-libs/boost:= - dev-libs/libevent:= - >dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr] - >=dev-libs/univalue-1.0.4:= - system-leveldb? ( virtual/bitcoin-leveldb ) - sqlite? ( >=dev-db/sqlite-3.7.17:= ) - upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) - wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) - zeromq? ( net-libs/zeromq:= ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - >=sys-devel/autoconf-2.69 - >=sys-devel/automake-1.13 -" - -DOCS=( - doc/bips.md - doc/bitcoin-conf.md - doc/descriptors.md - doc/files.md - doc/JSON-RPC-interface.md - doc/psbt.md - doc/reduce-traffic.md - doc/release-notes.md - doc/REST-interface.md - doc/tor.md -) - -S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" - -pkg_pretend() { - if use knots; then - elog "You are building ${PN} from Bitcoin Knots." - elog "For more information, see:" - elog "https://bitcoinknots.org/files/0.21.x/${KNOTS_PV}/${KNOTS_P}.desc.html" - else - elog "You are building ${PN} from Bitcoin Core." - elog "For more information, see:" - elog "https://bitcoincore.org/en/2021/01/14/release-${PV}/" - fi - elog "Replace By Fee policy is now always enabled by default: Your node will" - elog "preferentially mine and relay transactions paying the highest fee, regardless" - elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" -} - -src_prepare() { - sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die - - local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" - - eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" - - if use knots; then - eapply "${knots_patchdir}/${KNOTS_P}.f.patch" - eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" - eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" - fi - - eapply "${FILESDIR}/${PN}-0.20.1-boost-1.77-compat.patch" - - default - - echo '#!/bin/true' >share/genbuild.sh || die - mkdir -p src/obj || die - echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die - - eautoreconf - rm -r src/secp256k1 || die - if use system-leveldb; then - rm -r src/leveldb || die - fi -} - -src_configure() { - local my_econf=( - $(use_enable asm) - --without-qtdbus - --without-qrencode - $(use_with upnp miniupnpc) - $(use_enable upnp upnp-default) - $(use_enable test tests) - $(use_enable wallet) - $(use_enable zeromq zmq) - --with-daemon - --disable-util-cli - --disable-util-tx - --disable-util-wallet - --disable-bench - --without-libs - --without-gui - --disable-fuzz - --disable-ccache - --disable-static - $(use_with sqlite) - $(use_with system-leveldb) - --with-system-libsecp256k1 - --with-system-univalue - ) - econf "${my_econf[@]}" -} - -src_install() { - default - - if use test; then - rm -f "${ED}/usr/bin/test_bitcoin" || die - fi - - insinto /etc/bitcoin - newins "${FILESDIR}/bitcoin.conf" bitcoin.conf - fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf - fperms 600 /etc/bitcoin/bitcoin.conf - - newconfd "contrib/init/bitcoind.openrcconf" ${PN} - newinitd "contrib/init/bitcoind.openrc" ${PN} - systemd_newunit "contrib/init/bitcoind.service" "bitcoind.service" - - keepdir /var/lib/bitcoin/.bitcoin - fperms 700 /var/lib/bitcoin - fowners bitcoin:bitcoin /var/lib/bitcoin/ - fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin - dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf - - doman "${FILESDIR}/bitcoin.conf.5" - - use zeromq && dodoc doc/zmq.md - - newbashcomp contrib/${PN}.bash-completion ${PN} - - if use examples; then - docinto examples - dodoc -r contrib/{linearize,qos} - use zeromq && dodoc -r contrib/zmq - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind -} - -pkg_postinst() { - elog "To have ${PN} automatically use Tor when it's running, be sure your" - elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" - elog "correctly, and:" - elog "- Using an init script: add the 'bitcoin' user to the 'tor' user group." - elog "- Running bitcoind directly: add that user to the 'tor' user group." -} diff --git a/net-p2p/bitcoind/bitcoind-22.0-r1.ebuild b/net-p2p/bitcoind/bitcoind-22.0-r1.ebuild new file mode 100644 index 000000000000..1fdd799bd9a7 --- /dev/null +++ b/net-p2p/bitcoind/bitcoind-22.0-r1.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use systemd flag-o-matic + +BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8" +KNOTS_PV="${PV}.knots20211108" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/$(ver_cut 1).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="+asm +berkdb examples +external-signer knots nat-pmp sqlite systemtap test upnp +wallet zeromq" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + sqlite? ( wallet ) + berkdb? ( wallet ) + wallet? ( || ( berkdb sqlite ) ) +" +RDEPEND=" + acct-group/bitcoin + acct-user/bitcoin + dev-libs/boost:= + dev-libs/libevent:= + >dev-libs/libsecp256k1-0.1_pre20200911:0/0[recovery,schnorr] + !>=dev-libs/libsecp256k1-0.1_pre20210628 + >=dev-libs/univalue-1.0.4:= + nat-pmp? ( net-libs/libnatpmp ) + virtual/bitcoin-leveldb + sqlite? ( >=dev-db/sqlite-3.7.17:= ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + berkdb? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +DEPEND="${RDEPEND} + systemtap? ( dev-util/systemtap ) +" +BDEPEND=" + >=sys-devel/automake-1.13 + || ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 ) +" + +DOCS=( + doc/bips.md + doc/bitcoin-conf.md + doc/descriptors.md + doc/files.md + doc/JSON-RPC-interface.md + doc/psbt.md + doc/reduce-memory.md + doc/reduce-traffic.md + doc/release-notes.md + doc/REST-interface.md + doc/tor.md +) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/" + fi + elog + elog "Replace By Fee policy is now always enabled by default: Your node will" + elog "preferentially mine and relay transactions paying the highest fee, regardless" + if use knots; then + elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" + else # Bitcoin Core doesn't support disabling RBF anymore + elog "of receive order. To disable RBF, rebuild with USE=knots to get ${PN}" + elog "from Bitcoin Knots, and set mempoolreplacement=never in bitcoin.conf" + fi + if has_version "<${CATEGORY}/${PN}-0.21.1" ; then + ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED" + ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin" + ewarn "rules, beginning in November. Protocol changes require user consent to be" + ewarn "effective, and if enforced inconsistently within the community may compromise" + ewarn "your security or others! If you do not know what you are doing, learn more" + ewarn "before November. (You must make a decision either way - simply not upgrading" + ewarn "is insecure in all scenarios.)" + ewarn "To learn more, see https://bitcointaproot.cc" + fi + + if [[ ${MERGE_TYPE} != "binary" ]] ; then + if ! test-flag-CXX -std=c++17 ; then + die "Building ${CATEGORY}/${P} requires at least GCC 7 or Clang 5" + fi + fi +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch" + fi + + default + + eautoreconf + rm -r src/leveldb src/secp256k1 || die +} + +src_configure() { + local my_econf=( + $(use_enable asm) + --without-qtdbus + $(use_enable systemtap ebpf) + $(use_enable external-signer) + $(use_with nat-pmp natpmp) + $(use_with nat-pmp natpmp-default) + --without-qrencode + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-daemon + --disable-util-cli + --disable-util-tx + --disable-util-util + --disable-util-wallet + --disable-bench + --without-libs + --without-gui + --disable-fuzz + --disable-fuzz-binary + --disable-ccache + --disable-static + $(use_with berkdb bdb) + $(use_with sqlite) + --with-system-leveldb + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + if use test; then + rm -f "${ED}/usr/bin/test_bitcoin" || die + fi + + insinto /etc/bitcoin + newins "${FILESDIR}/bitcoin.conf" bitcoin.conf + fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf + fperms 600 /etc/bitcoin/bitcoin.conf + + newconfd "contrib/init/bitcoind.openrcconf" ${PN} + newinitd "contrib/init/bitcoind.openrc" ${PN} + systemd_newunit "contrib/init/bitcoind.service" "bitcoind.service" + + keepdir /var/lib/bitcoin/.bitcoin + fperms 700 /var/lib/bitcoin + fowners bitcoin:bitcoin /var/lib/bitcoin/ + fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin + dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf + + doman "${FILESDIR}/bitcoin.conf.5" + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/${PN}.bash-completion ${PN} + + if use examples; then + docinto examples + dodoc -r contrib/{linearize,qos} + use zeromq && dodoc -r contrib/zmq + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind +} + +pkg_postinst() { + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and:" + elog "- Using an init script: add the 'bitcoin' user to the 'tor' user group." + elog "- Running bitcoind directly: add that user to the 'tor' user group." +} diff --git a/net-p2p/bitcoind/bitcoind-22.0.ebuild b/net-p2p/bitcoind/bitcoind-22.0.ebuild deleted file mode 100644 index 9cfae4858081..000000000000 --- a/net-p2p/bitcoind/bitcoind-22.0.ebuild +++ /dev/null @@ -1,205 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DB_VER="4.8" -inherit autotools bash-completion-r1 db-use systemd flag-o-matic - -BITCOINCORE_COMMITHASH="a0988140b71485ad12c3c3a4a9573f7c21b1eff8" -KNOTS_PV="${PV}.knots20211108" -KNOTS_P="bitcoin-${KNOTS_PV}" - -DESCRIPTION="Original Bitcoin crypto-currency wallet for automated services" -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" -SRC_URI=" - https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz - https://bitcoinknots.org/files/$(ver_cut 1).x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="+asm +berkdb examples +external-signer knots nat-pmp sqlite systemtap test upnp +wallet zeromq" -RESTRICT="!test? ( test )" - -REQUIRED_USE=" - sqlite? ( wallet ) - berkdb? ( wallet ) - wallet? ( || ( berkdb sqlite ) ) -" -RDEPEND=" - acct-group/bitcoin - acct-user/bitcoin - dev-libs/boost:= - dev-libs/libevent:= - >dev-libs/libsecp256k1-0.1_pre20200911:=[recovery,schnorr] - >=dev-libs/univalue-1.0.4:= - nat-pmp? ( net-libs/libnatpmp ) - virtual/bitcoin-leveldb - sqlite? ( >=dev-db/sqlite-3.7.17:= ) - upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) - berkdb? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) - zeromq? ( net-libs/zeromq:= ) -" -DEPEND="${RDEPEND} - systemtap? ( dev-util/systemtap ) -" -BDEPEND=" - >=sys-devel/automake-1.13 - || ( >=sys-devel/gcc-7[cxx] >=sys-devel/clang-5 ) -" - -DOCS=( - doc/bips.md - doc/bitcoin-conf.md - doc/descriptors.md - doc/files.md - doc/JSON-RPC-interface.md - doc/psbt.md - doc/reduce-memory.md - doc/reduce-traffic.md - doc/release-notes.md - doc/REST-interface.md - doc/tor.md -) - -S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" - -pkg_pretend() { - if use knots; then - elog "You are building ${PN} from Bitcoin Knots." - elog "For more information, see:" - elog "https://bitcoinknots.org/files/22.x/${KNOTS_PV}/${KNOTS_P}.desc.html" - else - elog "You are building ${PN} from Bitcoin Core." - elog "For more information, see:" - elog "https://bitcoincore.org/en/2021/09/13/release-${PV}/" - fi - elog - elog "Replace By Fee policy is now always enabled by default: Your node will" - elog "preferentially mine and relay transactions paying the highest fee, regardless" - if use knots; then - elog "of receive order. To disable RBF, set mempoolreplacement=never in bitcoin.conf" - else # Bitcoin Core doesn't support disabling RBF anymore - elog "of receive order. To disable RBF, rebuild with USE=knots to get ${PN}" - elog "from Bitcoin Knots, and set mempoolreplacement=never in bitcoin.conf" - fi - if has_version "<${CATEGORY}/${PN}-0.21.1" ; then - ewarn "CAUTION: BITCOIN PROTOCOL CHANGE INCLUDED" - ewarn "This release adds enforcement of the Taproot protocol change to the Bitcoin" - ewarn "rules, beginning in November. Protocol changes require user consent to be" - ewarn "effective, and if enforced inconsistently within the community may compromise" - ewarn "your security or others! If you do not know what you are doing, learn more" - ewarn "before November. (You must make a decision either way - simply not upgrading" - ewarn "is insecure in all scenarios.)" - ewarn "To learn more, see https://bitcointaproot.cc" - fi - - if [[ ${MERGE_TYPE} != "binary" ]] ; then - if ! test-flag-CXX -std=c++17 ; then - die "Building ${CATEGORY}/${P} requires at least GCC 7 or Clang 5" - fi - fi -} - -src_prepare() { - sed -i 's/^\(complete -F _bitcoind bitcoind\) bitcoin-qt$/\1/' contrib/${PN}.bash-completion || die - - local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" - - eapply "${knots_patchdir}/${KNOTS_P}_p1-syslibs.patch" - - if use knots; then - eapply "${knots_patchdir}/${KNOTS_P}_p2-fixes.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p3-features.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p4-branding.patch" - eapply "${knots_patchdir}/${KNOTS_P}_p5-ts.patch" - fi - - default - - eautoreconf - rm -r src/leveldb src/secp256k1 || die -} - -src_configure() { - local my_econf=( - $(use_enable asm) - --without-qtdbus - $(use_enable systemtap ebpf) - $(use_enable external-signer) - $(use_with nat-pmp natpmp) - $(use_with nat-pmp natpmp-default) - --without-qrencode - $(use_with upnp miniupnpc) - $(use_enable upnp upnp-default) - $(use_enable test tests) - $(use_enable wallet) - $(use_enable zeromq zmq) - --with-daemon - --disable-util-cli - --disable-util-tx - --disable-util-util - --disable-util-wallet - --disable-bench - --without-libs - --without-gui - --disable-fuzz - --disable-fuzz-binary - --disable-ccache - --disable-static - $(use_with berkdb bdb) - $(use_with sqlite) - --with-system-leveldb - --with-system-libsecp256k1 - --with-system-univalue - ) - econf "${my_econf[@]}" -} - -src_install() { - default - - if use test; then - rm -f "${ED}/usr/bin/test_bitcoin" || die - fi - - insinto /etc/bitcoin - newins "${FILESDIR}/bitcoin.conf" bitcoin.conf - fowners bitcoin:bitcoin /etc/bitcoin/bitcoin.conf - fperms 600 /etc/bitcoin/bitcoin.conf - - newconfd "contrib/init/bitcoind.openrcconf" ${PN} - newinitd "contrib/init/bitcoind.openrc" ${PN} - systemd_newunit "contrib/init/bitcoind.service" "bitcoind.service" - - keepdir /var/lib/bitcoin/.bitcoin - fperms 700 /var/lib/bitcoin - fowners bitcoin:bitcoin /var/lib/bitcoin/ - fowners bitcoin:bitcoin /var/lib/bitcoin/.bitcoin - dosym ../../../../etc/bitcoin/bitcoin.conf /var/lib/bitcoin/.bitcoin/bitcoin.conf - - doman "${FILESDIR}/bitcoin.conf.5" - - use zeromq && dodoc doc/zmq.md - - newbashcomp contrib/${PN}.bash-completion ${PN} - - if use examples; then - docinto examples - dodoc -r contrib/{linearize,qos} - use zeromq && dodoc -r contrib/zmq - fi - - insinto /etc/logrotate.d - newins "${FILESDIR}/bitcoind.logrotate-r1" bitcoind -} - -pkg_postinst() { - elog "To have ${PN} automatically use Tor when it's running, be sure your" - elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" - elog "correctly, and:" - elog "- Using an init script: add the 'bitcoin' user to the 'tor' user group." - elog "- Running bitcoind directly: add that user to the 'tor' user group." -} -- cgit v1.2.3