summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/Manifest.gzbin6911 -> 6911 bytes
-rw-r--r--net-p2p/biglybt/Manifest5
-rw-r--r--net-p2p/biglybt/biglybt-3.6.0.0.ebuild110
-rw-r--r--net-p2p/biglybt/files/biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch32
-rw-r--r--net-p2p/biglybt/metadata.xml9
-rw-r--r--net-p2p/bitcoin-core/Manifest8
-rw-r--r--net-p2p/bitcoin-core/bitcoin-core-26.1.ebuild2
-rw-r--r--net-p2p/bitcoin-core/bitcoin-core-26.2_rc1.ebuild423
-rw-r--r--net-p2p/bitcoin-core/bitcoin-core-27.1.ebuild (renamed from net-p2p/bitcoin-core/bitcoin-core-27.1_rc1.ebuild)0
9 files changed, 584 insertions, 5 deletions
diff --git a/net-p2p/Manifest.gz b/net-p2p/Manifest.gz
index 9fee252edffb..c6476b827e30 100644
--- a/net-p2p/Manifest.gz
+++ b/net-p2p/Manifest.gz
Binary files differ
diff --git a/net-p2p/biglybt/Manifest b/net-p2p/biglybt/Manifest
index 1d0dc6101225..bad68d507941 100644
--- a/net-p2p/biglybt/Manifest
+++ b/net-p2p/biglybt/Manifest
@@ -2,6 +2,9 @@ AUX biglybt-3.2.0.0-disable-DorkBoxUpdaterPlugin.patch 316 BLAKE2B 87efcf5b3a0c8
AUX biglybt-3.2.0.0-disable-SWTUpdateChecker.patch 407 BLAKE2B 63b34dfc13d2c3a6002b66da1bf652a7e98b0f4c92d48d1af90001742cebc0ba89c81c72f5c8d81bb29c6f7a5fb412b00dc1a18daf9f5ab6601e446e49b030c0 SHA512 87743e1a437d15e929b51b67bd5fb329ce67fc44f93c3172634056fe52d575db22102d915d9507df9644c4f800e399fed2cb327f0451eb6506c27e5bf776f2f6
AUX biglybt-3.2.0.0-disable-shared-plugins.patch 553 BLAKE2B b4844e817c76ddb03ac1f029d4c3626483d02fc81460e8f028719e9252e4b74765db04e2c0e0561dd9237ecbf6687ef93a5c75fed58342f259839935af5e976e SHA512 5f8eeb6caf6b719b77f3b2d7857723335b0dbe8c5c4e09454471ed10e6ad01a82f566e9a42614b65821d5c33e44eb958d6933ffb1d30025512a75114346a6b45
AUX biglybt-3.5.0.0-Entities.javadoc.patch 1378 BLAKE2B 0984fcc6d342a3b54129b0196611a9b76d3aad4e7fa0b8cba7d43ac8bb7102a92072e9e288a979f7a92cf1ac496868be863b51e9a1fb3b3d83aad7ae25a1d5eb SHA512 c7987683558224f7752dbdc91d10147c5a4fbe4c0a7db47a2dd495e728d3f8b2aa4c7ec5712163160a60431e5d043f86e4018becc63fe61f8909dcdd7201f41d
+AUX biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch 1374 BLAKE2B 9f2e72b24e20db59ba57df5591e3a722b114b697f6bd4c872c5a2b41eae1310d03489c03c353748cb877735a698e3ee5bced62809ab2bf30f8bf7609be9e07a2 SHA512 dd4dc70157685acdcd0e4c4e61058367489ef4081fc027c858a31af85e5b84432d2146c7a4742ff644ae6bf79a60e2c08d5a68590829c66c008a490c9cb04247
DIST biglybt-3.5.0.0.tar.gz 41499459 BLAKE2B a08bfa560a72297a6ef21aed1bf4dc278e6c1e8b28b7adfb9bd880d8a6bcec1875b2ff8f3c95e9a05a41be5f14ba7ec66d775f53b78ee4a6bb88a295906f75e2 SHA512 1345ca1b49615be6d7e4ffb883ac5a60ed31af1dbf29a45d5d03ab56fb37d3f47d36abdffe990d264bda5fe5d3f90a3e2ad64373f1fe16fa23feb1ba8b70dd15
+DIST biglybt-3.6.0.0.tar.gz 43972902 BLAKE2B 76995d3d5f24f054690e609d2be7bd822f6c8573b6627bcf380c3a93be86265f4ca827c2991db65ef39c9f3f79b0cd8e0aebce492571a36bf237c95fc3d6cc54 SHA512 b56beb006ab813efa2ab2aff8563a04675e677ea70fe6ef72062e2d38ec753749b36740ae87f851739cb1389948a916273cb6ffb65758e651d0701a7f6237afd
EBUILD biglybt-3.5.0.0.ebuild 2941 BLAKE2B 2aa37b93d58eedf78aab850d037fd3dd8dba834b7d7ab344c5b1a6bf42676c87ffd843f1a0323be49d409097aac0a3ac446a5859d297d4f91937d43b9da73fb2 SHA512 f4bb8adca1674d8e5812ee2883172654006340e5c24a112aab2d343a701e72286725e16462fb47732c5318e0dc52c14861377d38e2258d6bc1f97a504a7e4bcc
-MISC metadata.xml 431 BLAKE2B 2d99951c29491ef26da2c83cf34ee292db74fc8a693bda6bea48c846ebffe43f660b962518c2bbc92433839672838497209bbc841ccbd7f514052d70e5c4d74d SHA512 8aded1d9b8f5987d741c041c1374ad849bfffd4a1e70cac9e1daeeda144e91f88183a2cf26527ee9f1c80d1de93bf91840b49eda82d5e1aa833eb6e593bfca88
+EBUILD biglybt-3.6.0.0.ebuild 3050 BLAKE2B 92992124c093e6a4af9779644780e4288ace64acd6b344993660537ddba2eb9b7d214ac195069efb289d9a639c22a0730de836feee1b2c093e265dc8511c8b12 SHA512 7c6dad13ef311bdb46f42d6b71a68c28828e900ed8a5b85e50dc52ce402f01f5d5f0d417bd8c57b2a988e4abac93e023743d32fb648d023ec6d9951cc1367072
+MISC metadata.xml 904 BLAKE2B fd6313faad9aa5140a1110c0fbb53fb5b220e33cdf8c0c59d8a96ed6b424d67cb1922537543b0c7bfdf6fdced2d9273b963db5e7126b0f9d9c61404d4774ea60 SHA512 5106049f93d633214a67dfa9bc52d721911bd7c7c08f36dc8dd2cc052121929c0d95483138685877a6cbbe152be58ec8165320b06a3f1bd78f9f625af2d55c1b
diff --git a/net-p2p/biglybt/biglybt-3.6.0.0.ebuild b/net-p2p/biglybt/biglybt-3.6.0.0.ebuild
new file mode 100644
index 000000000000..4ee04bea7849
--- /dev/null
+++ b/net-p2p/biglybt/biglybt-3.6.0.0.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# No tests, #839681
+JAVA_PKG_IUSE="doc source"
+MAVEN_PROVIDES="com.${PN}:${PN}-core:${PV} com.${PN}:${PN}-ui:${PV}"
+
+inherit desktop java-pkg-2 java-pkg-simple optfeature xdg
+
+DESCRIPTION="Feature-filled Bittorrent client based on the Azureus open source project"
+HOMEPAGE="https://www.biglybt.com"
+SRC_URI="https://github.com/BiglySoftware/BiglyBT/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/BiglyBT-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+CP_DEPEND="
+ dev-java/commons-cli:1
+ dev-java/swt:4.27
+"
+
+# Due to removal of AENameServiceDescriptor it would fail to start under jdk:1.8
+# StartServer ERROR: unable to bind to 127.0.0.1:6880 listening for passed torrent info: \
+# sun.net.spi.nameservice.NameServiceDescriptor: Provider com.biglybt.core.util.spi.AENameServiceDescriptor not found
+# Restricting to jdk:11 for https://bugs.gentoo.org/888859
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-11:*"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+DOCS=(
+ CODING_GUIDELINES.md
+ CONTRIBUTING.md
+ ChangeLog.txt
+ README.md
+ TRANSLATE.md
+)
+
+JAVADOC_SRC_DIRS=( {core,uis}/src )
+
+PATCHES=(
+ "${FILESDIR}/biglybt-3.2.0.0-disable-SWTUpdateChecker.patch"
+ "${FILESDIR}/biglybt-3.2.0.0-disable-shared-plugins.patch"
+ "${FILESDIR}/biglybt-3.5.0.0-Entities.javadoc.patch"
+ "${FILESDIR}/biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch"
+)
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+ # AENameServiceDescriptor fails to compile with jdk >= 11
+ # "error: package sun.net.spi.nameservice does not exist"
+ # https://github.com/BiglySoftware/BiglyBT/pull/2611
+ rm -r core/src/com/biglybt/core/util/spi || die
+# rm -r core/src/META-INF || die
+
+ cp -r core/{src,resources} || die
+ find core/resources -type f -name '*.java' -exec rm -rf {} + || die "deleting classes failed"
+
+ cp -r uis/{src,resources} || die
+ find uis/resources -type f -name '*.java' -exec rm -rf {} + || die "deleting classes failed"
+}
+
+src_compile() {
+ einfo "Compiling module \"core\""
+ JAVA_JAR_FILENAME="${PN}-core.jar"
+ JAVA_RESOURCE_DIRS="core/resources"
+ JAVA_SRC_DIR="core/src"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA="${PN}-core.jar"
+
+ einfo "Compiling module \"uis\""
+ JAVA_JAR_FILENAME="BiglyBT.jar"
+ JAVA_LAUNCHER_FILENAME="${PN}"
+ JAVA_MAIN_CLASS="com.${PN}.ui.Main"
+ JAVA_RESOURCE_DIRS="uis/resources"
+ JAVA_SRC_DIR="uis/src"
+ java-pkg-simple_src_compile
+
+ if use doc; then
+ einfo "Creating javadoc"
+ JAVADOC_CLASSPATH="${JAVA_GENTOO_CLASSPATH}"
+ ejavadoc
+ fi
+}
+
+src_install() {
+ java-pkg-simple_src_install
+
+ make_desktop_entry "${PN}" BiglyBT "${PN}" "Network;FileTransfer"
+
+ if use source; then
+ java-pkg_dosrc "core/src/*"
+ java-pkg_dosrc "uis/src/*"
+ fi
+ default
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature_header "If you are using plugin proxies you might want to swap them for these native packages:"
+ optfeature "I2P SOCKS proxy" net-vpn/i2p net-vpn/i2pd
+ optfeature "TOR SOCKS proxy" net-vpn/tor
+}
diff --git a/net-p2p/biglybt/files/biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch b/net-p2p/biglybt/files/biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch
new file mode 100644
index 000000000000..a736a191b129
--- /dev/null
+++ b/net-p2p/biglybt/files/biglybt-3.6.0.0-disable-PluginUpdatePlugin.patch
@@ -0,0 +1,32 @@
+--- a/core/src/com/biglybt/pifimpl/update/PluginUpdatePlugin.java
++++ b/core/src/com/biglybt/pifimpl/update/PluginUpdatePlugin.java
+@@ -99,7 +99,7 @@ PluginUpdatePlugin
+
+ final PluginConfig plugin_config = plugin_interface.getPluginconfig();
+
+- boolean enabled = plugin_config.getPluginBooleanParameter( "enable.update", true );
++ boolean enabled = plugin_config.getPluginBooleanParameter( "enable.update", false );
+
+ model.setConfigSectionID(PLUGIN_CONFIGSECTION_ID);
+ model.getStatus().setText( enabled?"Running":"Optional checks disabled" );
+@@ -130,7 +130,7 @@ PluginUpdatePlugin
+
+ BasicPluginConfigModel config = ui_manager.createBasicPluginConfigModel(ConfigSection.SECTION_PLUGINS, PLUGIN_CONFIGSECTION_ID);
+
+- config.addBooleanParameter2( "enable.update", "Plugin.pluginupdate.enablecheck", true );
++ config.addBooleanParameter2( "enable.update", "Plugin.pluginupdate.enablecheck", false );
+
+ plugin_interface.addEventListener(
+ new PluginEventListener()
+@@ -563,7 +563,7 @@ PluginUpdatePlugin
+ try{
+ if ( (!mandatory) &&
+ (ids_to_check == null ) && // allow custom actions through
+- (!plugin_interface.getPluginconfig().getPluginBooleanParameter( "enable.update", true ))){
++ (!plugin_interface.getPluginconfig().getPluginBooleanParameter( "enable.update", false ))){
+
+ return( num_updates_found );
+ }
+--
+2.44.2
+
diff --git a/net-p2p/biglybt/metadata.xml b/net-p2p/biglybt/metadata.xml
index a660313d0473..f232be2ae7c6 100644
--- a/net-p2p/biglybt/metadata.xml
+++ b/net-p2p/biglybt/metadata.xml
@@ -4,9 +4,18 @@
<maintainer type="project">
<email>java@gentoo.org</email>
</maintainer>
+ <longdescription>
+ BiglyBT is a BitTorrent client based on Vuze (previously Azureus) which first released in 2003.
+
+ It's killer feature is integration with I2P and TOR anonymyzing networks.
+ They are available as plugins or can be used with your local node using SOCKS.
+ BiglyBT is the only client in acrive development that can work on clearnet and I2P simultaneously,
+ cross-seeding the torrents and swarm-merging them.
+ </longdescription>
<upstream>
<bugs-to>https://github.com/BiglySoftware/BiglyBT/issues</bugs-to>
<doc>https://github.com/BiglySoftware/BiglyBT/wiki</doc>
<remote-id type="github">BiglySoftware/BiglyBT</remote-id>
</upstream>
+ <stabilize-allarches/>
</pkgmetadata>
diff --git a/net-p2p/bitcoin-core/Manifest b/net-p2p/bitcoin-core/Manifest
index 4e6c55156559..6decf447de4a 100644
--- a/net-p2p/bitcoin-core/Manifest
+++ b/net-p2p/bitcoin-core/Manifest
@@ -11,12 +11,14 @@ DIST bitcoin-25.1.tar.gz 12498596 BLAKE2B e8e4ea99cb40db420033c4df75e985af93cbb6
DIST bitcoin-26.0.tar.gz 12753904 BLAKE2B 35b5d40390dc5eab18a12b0f120619d40d9d0eaf4a59f5ed943a59189c0ede5d78207b7606f1c3490b90f14c17e87882242d6637fdc348005a6f60a1d8202d13 SHA512 31b7bc66b43d073611ccf19adc80a4dd3ce3a4b5cf4c8b814f4be9e771e88721d20ae0aa83d89cd8d55ffaf0853444479932b425e82081fd66bb037c6b53e4a8
DIST bitcoin-core-25.2.tar.gz 12502724 BLAKE2B b6c4a2916c058a399c61ea3c57dd485a19d67fd71cdadf014b82d779792de65f7359d0cf994130681e5e27d568fbcfbc7dba22ff72b2dbc684c6bde9b99ab622 SHA512 bee23eee4d95dadabc34c72f48c940d81512c25b5db2fac8ed9f58bc433f6bdbe4e4aaba2a39b7d46c08355c957f8e7afc8e9a4836f634641c297dbc41ff0809
DIST bitcoin-core-26.1.tar.gz 12822211 BLAKE2B 9093133f025a47cc93cc02056c2588be0eb8cc5dcb58c33111a79f88b7b07ef36e278ea7b95ee8d359ec0935a71846306b14d31f423e1af330dc55dcfa23abab SHA512 b7d364134b12bbd683661db95d2cd313644ca7e0f4d04163c09ab39753df55ce4943ae386e8f41b6787e993b2bbf674cde0a093487afe1a1504f0b6e45338ac9
+DIST bitcoin-core-26.2_rc1.tar.gz 12889436 BLAKE2B 59a517597f2482ea297bbe251464e635937e166379d9dcd420a14cb1ed8af3f02c5480a1d2501a3c43c461938728e06b1c48944ad653bada2ab183ce5051647d SHA512 cd67cbd5b813d34c098a0724e00375d8a2daa3509756055a7a60fd86ef681e7e65df9c21322b38a652e580f72122b0e01bea1dd2dfb46a337cfcc0645e5b9f53
DIST bitcoin-core-27.0.tar.gz 13087956 BLAKE2B f625eaa2ce98cd8ed771f97d5a7e66733e94523d2ddda99cd858777bfb88a6e7eafae71e10fbf1ddadfcf629f2e3f790fb48c39f0e016d3fb22f1da7e7c93614 SHA512 0833fbd654570bc3e50efbe4da1f0bcab7744b92becc76d0dfea39a551325bd1b64ae746f7d9824d9e93fc53c95bc5eb5977869f0af04e26bd8ccb992d4c6e7c
-DIST bitcoin-core-27.1_rc1.tar.gz 13150196 BLAKE2B bf0b7d76b54cbb9f097b3d15e7e3397f504dba60d1f838373eb9096f435a33b9eefef408a44f7d484657e43fcd627000685d5177aab9ebc3d7d91960645b8b29 SHA512 273a1f8d05ef2d5204a59742726ad03fc8e1ce6797cf95cf9bc9c6b75db7f23d4f7e46c153c5757cefdf246b1094b9146b1fea2a853274fc11474b98874389b5
+DIST bitcoin-core-27.1.tar.gz 13146683 BLAKE2B 9df45ca67565aa1f1cb851e86302ab5e7edbc573642cbd66585910cbd20ecbe8b3a89f7441fc7f299bb3ff32cf687a617f7449cd1a4164e9ac78637501f619da SHA512 b3c2f90b125705401dbf1318db44be586f3609473a9aa3b7330d6c7f48bf5b31951f822e494ae607ebb96e5ffb62b909bea51be14fd91ed71ea62324d2736862
EBUILD bitcoin-core-25.1-r2.ebuild 12629 BLAKE2B ca23ce3077968fd5be33f331ca0ca56414a7cbedc8be85dd495f5a4da7d15317dcae5fbc3ba493e43cd77e43208650ba8d8a7c5185e4f04bb897594ca70e1396 SHA512 8dd9d7a39fa36ed915577f52e08cf9af1c2bf4acc04cf8a0f84f1409ebd88e24cb7252ab68aff7c307e9a979742890d61919551f78390852f77735a703602088
EBUILD bitcoin-core-25.2.ebuild 12733 BLAKE2B 10f1ba77bcf0a71d5c4d727720e1c4af66937982515de291bb88561d2a64bfa3d433cffd876715cf9eb18da5cb5c57b322e67426f04c9b890a56b97b239a1a35 SHA512 1af55a71303828a528671b8772a76123484eef1f6ca6470e13a8d9af4cdac45af6522d372b032468b55687501f73d8590021127bb40cb661e1a512351484e901
EBUILD bitcoin-core-26.0-r1.ebuild 13052 BLAKE2B 6f4863f10ac953c7b9520463cafc139f5b4cfa3fc0f36e0ac8bc4c8a761e3bc40d1742d5ba28169f94412cf4163b29e89319b511f19e9cdcb5b1df28f4e95401 SHA512 2a7abe6b9916a42165578e45e72be33f3a408224e400d45a47bb825be3cac0494829daf512f241d92ab2983db5f646222cfe429da4e1012d56641f4315e99f67
-EBUILD bitcoin-core-26.1.ebuild 12992 BLAKE2B 465a73cc72652773581fd6bd33703426b4d9cd25842fa263eabf480411f86b4da8941df4b16423a960b4ffd803a3da3f1fd1521c37fa38e6b36fbf3daecf1270 SHA512 b97b8c1648caea11510d3cba2e7638ae5989483ff279686e53ed4c164c88a22cdd75d6adf2229be1dbd4bd6b0e8f989392e59a897b1d6f3dd3a3e9245713b656
+EBUILD bitcoin-core-26.1.ebuild 12991 BLAKE2B 1fda4fe735113c0cd106378caa5f3b11ac5fc82e48ca914eb5b1525a009bea70a9a26c195ba1c6733e0cdecc916e13e18df138887191eba381f1cafbfba1009a SHA512 80900ed365e5977a2758843f90c43a9472e07a1a605705e19ab5b08598cafe3a043c7529a3debe9306f96c5a6cd45f318ea51615d0ae018cfca59f2c10150e4b
+EBUILD bitcoin-core-26.2_rc1.ebuild 12992 BLAKE2B 465a73cc72652773581fd6bd33703426b4d9cd25842fa263eabf480411f86b4da8941df4b16423a960b4ffd803a3da3f1fd1521c37fa38e6b36fbf3daecf1270 SHA512 b97b8c1648caea11510d3cba2e7638ae5989483ff279686e53ed4c164c88a22cdd75d6adf2229be1dbd4bd6b0e8f989392e59a897b1d6f3dd3a3e9245713b656
EBUILD bitcoin-core-27.0.ebuild 12992 BLAKE2B 24bf4eb3b2429d72280cf78b346a8e6fd2f142ad2bd451d217becee5239d985e26f29706d717f2a4d386b1f37d80ce7a6e86239655105373b2f3bcd40dc690a9 SHA512 5e607a6d8e25ff99c92f8ec36839f801339e380593dcf2d03905651a100998a36e00845e9f77a5972b1e21991f7d9ff034245f7f271d3760b472f738b9dac2d9
-EBUILD bitcoin-core-27.1_rc1.ebuild 12992 BLAKE2B e8bc87083a2745f8d1c7cc611ad18acfd20e749866d9115367cdb84d364cbf618e9e9f5f9a86c8a8bf2bcc14d0bf8652f1ff3b8d3cb06c83907e38cded6861fa SHA512 a7d5db0cb7f43cb364c8918329404187a9771356e40a2fec7f8a3605de3c6604ae8b30c028286488b09d3a7e051817016cd16963e2c796afaaec5e2ee66684d3
+EBUILD bitcoin-core-27.1.ebuild 12992 BLAKE2B e8bc87083a2745f8d1c7cc611ad18acfd20e749866d9115367cdb84d364cbf618e9e9f5f9a86c8a8bf2bcc14d0bf8652f1ff3b8d3cb06c83907e38cded6861fa SHA512 a7d5db0cb7f43cb364c8918329404187a9771356e40a2fec7f8a3605de3c6604ae8b30c028286488b09d3a7e051817016cd16963e2c796afaaec5e2ee66684d3
MISC metadata.xml 1731 BLAKE2B 82448eebdb2fb1de884d8df8a61449a4895c9670997fe590d6cdd2473a3831f12338c736739cef110a38ca0673053317bb21c93f2016b1b0c329407c7255e068 SHA512 84a029da788f4c41679bc9fa1fcc8d23ca74ddb11abc678bf436744239b1135e4c8aac9e40974b64414990e6892cc39fe08aa3a005f7a924f0802853c013d163
diff --git a/net-p2p/bitcoin-core/bitcoin-core-26.1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-26.1.ebuild
index eacdbc50d800..54533f4ae6a8 100644
--- a/net-p2p/bitcoin-core/bitcoin-core-26.1.ebuild
+++ b/net-p2p/bitcoin-core/bitcoin-core-26.1.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 ~amd64-linux ~x86-linux"
fi
IUSE="+asm +berkdb +cli +daemon dbus examples +external-signer gui kde libs +man nat-pmp +qrcode +sqlite system-leveldb +system-libsecp256k1 systemtap test upnp zeromq"
RESTRICT="!test? ( test )"
diff --git a/net-p2p/bitcoin-core/bitcoin-core-26.2_rc1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-26.2_rc1.ebuild
new file mode 100644
index 000000000000..eacdbc50d800
--- /dev/null
+++ b/net-p2p/bitcoin-core/bitcoin-core-26.2_rc1.ebuild
@@ -0,0 +1,423 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit autotools bash-completion-r1 check-reqs db-use 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 ~amd64-linux ~x86-linux"
+fi
+IUSE="+asm +berkdb +cli +daemon dbus examples +external-signer gui kde libs +man nat-pmp +qrcode +sqlite system-leveldb +system-libsecp256k1 systemtap test upnp zeromq"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ dbus? ( gui )
+ kde? ( gui )
+ qrcode? ( gui )
+ system-leveldb? ( || ( daemon gui ) )
+"
+# 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.
+RDEPEND="
+ !dev-util/bitcoin-tx
+ >=dev-libs/boost-1.81.0:=
+ >=dev-libs/libevent-2.1.12:=
+ berkdb? ( >=sys-libs/db-4.8.30:$(db_ver_to_slot 4.8)=[cxx] )
+ cli? ( !net-p2p/bitcoin-cli )
+ daemon? (
+ !net-p2p/bitcoind
+ acct-group/bitcoin
+ acct-user/bitcoin
+ )
+ gui? (
+ !net-p2p/bitcoin-qt
+ >=dev-qt/qtcore-5.15.10:5
+ >=dev-qt/qtgui-5.15.10:5
+ >=dev-qt/qtnetwork-5.15.10:5
+ >=dev-qt/qtwidgets-5.15.10:5
+ dbus? ( >=dev-qt/qtdbus-5.15.10:5 )
+ )
+ libs? ( !net-libs/libbitcoinconsensus )
+ nat-pmp? ( >=net-libs/libnatpmp-20220705:= )
+ qrcode? ( >=media-gfx/qrencode-4.1.1:= )
+ sqlite? ( >=dev-db/sqlite-3.38.5:= )
+ system-leveldb? ( virtual/bitcoin-leveldb )
+ system-libsecp256k1? ( >=dev-libs/libsecp256k1-0.4.0:=[ellswift,extrakeys,recovery,schnorr] )
+ upnp? ( >=net-libs/miniupnpc-2.2.2:= )
+ zeromq? ( >=net-libs/zeromq-4.3.4:= )
+"
+DEPEND="
+ ${RDEPEND}
+ systemtap? ( >=dev-debug/systemtap-4.8 )
+"
+BDEPEND="
+ virtual/pkgconfig
+ daemon? (
+ acct-group/bitcoin
+ acct-user/bitcoin
+ )
+ gui? ( >=dev-qt/linguist-tools-5.15.10:5 )
+ 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}/26.0-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
+ if ! use berkdb && ! use sqlite &&
+ { { use daemon && ! has_version "${CATEGORY}/${PN}[daemon,-berkdb,-sqlite]" ; } ||
+ { use gui && ! has_version "${CATEGORY}/${PN}[gui,-berkdb,-sqlite]" ; } ; }
+ then
+ efmt ewarn <<-EOF
+ You are enabling neither USE="berkdb" nor USE="sqlite". This is a valid
+ configuration, but your Bitcoin node will be unable to open any wallets.
+ 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
+}
+
+src_prepare() {
+ default
+ ! use system-leveldb || rm -r src/leveldb || die
+ if use system-libsecp256k1 ; then
+ rm -r src/secp256k1 || die
+ sed -e '/^DIST_SUBDIRS *=/s/\bsecp256k1\b//' -i src/Makefile.am || die
+ else
+ pushd src/secp256k1 >/dev/null || die
+ AT_NOELIBTOOLIZE=yes eautoreconf
+ popd >/dev/null || die
+ fi
+ eautoreconf
+
+ # we say --disable-util-util, so we can't test bitcoin-util
+ sed -ne '/^ {/{h;:0;n;H;/^ }/!b0;g;\|"exec": *"\./bitcoin-util"|d};p' \
+ -i test/util/data/bitcoin-util-test.json || die
+
+ 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 wallet ; if use berkdb || use sqlite ; then wallet=enable ; else wallet=disable ; fi
+ local myeconfargs=(
+ --disable-static
+ --${wallet}-wallet
+ $(use_with sqlite)
+ $(use_with berkdb bdb)
+ $(use_enable systemtap usdt)
+ $(use_with upnp miniupnpc)
+ $(use_with nat-pmp natpmp)
+ $(use_enable test tests)
+ --disable-bench
+ --disable-fuzz{,-binary}
+ $(use_with qrcode qrencode)
+ --disable-ccache
+ $(use_enable asm)
+ $(use_enable zeromq zmq)
+ $(use_enable man)
+ $(use_enable external-signer)
+ --with-utils
+ $(use_enable {,util-}cli)
+ --enable-util-tx
+ --${wallet}-util-wallet
+ --disable-util-util
+ $(use_with libs)
+ $(use_with daemon)
+ $(use_with gui gui qt5)
+ $(use_with dbus qtdbus)
+ $(use_with system-leveldb)
+ $(use_with system-libsecp256k1)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ default
+
+ if use daemon && ! tc-is-cross-compiler ; then
+ TOPDIR="${S}" 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() {
+ emake check
+
+ use daemon && edo "${PYTHON}" test/functional/test_runner.py \
+ --ansi --extended --jobs="$(get_makeopts_jobs)" --timeout-factor="${TIMEOUT_FACTOR:-15}"
+}
+
+src_install() {
+ use external-signer && DOCS+=( doc/external-signer.md )
+ use berkdb || use sqlite && DOCS+=( doc/managing-wallets.md )
+ use libs && DOCS+=( doc/shared-libraries.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
+
+ default
+
+ find "${ED}" -type f -name '*.la' -delete || die
+ ! use test || rm -f -- "${ED}"/usr/bin/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"
+
+ if use kde ; then
+ insinto /usr/share/kservices5
+ doins "${FILESDIR}/bitcoin-qt.protocol"
+ fi
+ fi
+
+ if use examples ; then
+ docinto examples
+ dodoc -r contrib/{linearize,qos}
+ use zeromq && dodoc -r contrib/zmq
+ fi
+}
+
+pkg_preinst() {
+ if use daemon && [[ -d "${EROOT}/var/lib/bitcoin/.bitcoin" ]] ; then
+ if [[ -h "${EROOT}/var/lib/bitcoin/.bitcoin" ]] ; then
+ dosym -r /var/lib/bitcoin{d,/.bitcoin}
+ elif [[ ! -e "${EROOT}/var/lib/bitcoind" || -h "${EROOT}/var/lib/bitcoind" ]] ; then
+ efmt ewarn <<-EOF
+ Your bitcoind data directory is located at ${EPREFIX}/var/lib/bitcoin/.bitcoin,
+ a deprecated location. To perform an automated migration to
+ ${EPREFIX}/var/lib/bitcoind, first shut down any running bitcoind instances
+ that may be using the deprecated path, and then run:
+
+ # emerge --config ${CATEGORY}/${PN}
+ EOF
+ insinto /var/lib/bitcoin
+ mv -- "${ED}/var/lib/bitcoin"{d,/.bitcoin} || die
+ dosym -r {/etc/,/var/lib/bitcoin/.}bitcoin/bitcoin.conf
+ dosym -r /var/lib/bitcoin{/.bitcoin,d}
+ fi
+ fi
+
+ if use kde && [[ -d "${EROOT}/usr/share/kde4" ]] ; then
+ dosym -r /usr/share/{kservices5,kde4/services}/bitcoin-qt.protocol
+ 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 berkdb ; then
+ # https://github.com/bitcoin/bitcoin/pull/28597
+ # https://bitcoincore.org/en/releases/26.0/#wallet
+ efmt ewarn <<-EOF
+ Creation of legacy (Berkeley DB) wallets is refused starting with Bitcoin
+ Core 26.0, pending the deprecation and eventual removal of support for
+ legacy wallets altogether in future releases. At present you can still
+ force support for the creation of legacy wallets by adding the following
+ line to your bitcoin.conf:
+
+ deprecatedrpc=create_bdb
+ EOF
+ fi
+}
+
+pkg_postrm() {
+ if use gui ; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_config() {
+ if [[ -d "${EROOT}/var/lib/bitcoin/.bitcoin" && ! -h "${EROOT}/var/lib/bitcoin/.bitcoin" ]] &&
+ [[ ! -e "${EROOT}/var/lib/bitcoind" || -h "${EROOT}/var/lib/bitcoind" ]]
+ then
+ in_use() {
+ : ${1:?} ; local each
+ if command -v fuser >/dev/null ; then
+ fuser "${@}" >/dev/null 2>&1
+ elif command -v lsof >/dev/null ; then
+ for each ; do
+ lsof -- "${each}" && return
+ done >/dev/null 2>&1
+ elif mountpoint -q /proc ; then
+ { find /proc/[0-9]*/{cwd,exe,fd} -type l -exec readlink -- {} +
+ awk '{ print $6 }' /proc/[0-9]*/maps
+ } 2>/dev/null | grep -Fqx -f <(printf '%s\n' "${@}" ; readlink -m -- "${@}")
+ else
+ return 13
+ fi
+ }
+ ebegin "Checking that ${EPREFIX}/var/lib/bitcoin/.bitcoin is not in use"
+ in_use "${EROOT}/var/lib/bitcoin/.bitcoin"{,/.lock}
+ case $? in
+ 0)
+ eend 1
+ efmt eerror <<-EOF
+ ${EPREFIX}/var/lib/bitcoin/.bitcoin is currently in use. Please stop any
+ running bitcoind instances that may be using this data directory, and then
+ retry this migration.
+ EOF
+ die "${EPREFIX}/var/lib/bitcoin/.bitcoin is in use"
+ ;;
+ 13)
+ eend 1
+ if [[ "${BITCOIND_IS_NOT_RUNNING}" != 1 ]] ; then
+ efmt eerror <<-EOF
+ Found no way to check whether ${EPREFIX}/var/lib/bitcoin/.bitcoin is in use.
+ Do you have /proc mounted? To force the migration without checking, re-run
+ this command with BITCOIND_IS_NOT_RUNNING=1.
+ EOF
+ die "could not check whether ${EPREFIX}/var/lib/bitcoin/.bitcoin is in use"
+ fi
+ ;;
+ *)
+ eend 0
+ ;;
+ esac
+
+ # find all relative symlinks that point outside the data dir
+ local -A symlinks
+ cd -- "${EROOT}/var/lib/bitcoin/.bitcoin" || die
+ local each ; while read -r -d '' each ; do
+ local target=$(readlink -- "${each}") && [[ "${target}" == ../* ]] &&
+ target=$(readlink -e -- "${each}") && [[ "${target}" != "${EROOT}/var/lib/bitcoin/.bitcoin/"* ]] &&
+ symlinks["${each}"]="${target}"
+ done < <(find -type l -print0)
+
+ einfo "Moving your ${EPREFIX}/var/lib/bitcoin/.bitcoin to ${EPREFIX}/var/lib/bitcoind."
+ rm -f -- "${EROOT}/var/lib/bitcoind" || die
+ mv --no-clobber --no-copy --no-target-directory -- "${EROOT}/var/lib/bitcoin"{/.bitcoin,d} ||
+ die "Failed to move your ${EPREFIX}/var/lib/bitcoin/.bitcoin to ${EPREFIX}/var/lib/bitcoind."
+
+ # fix up the relative symlinks
+ cd -- "${EROOT}/var/lib/bitcoind" || die
+ for each in "${!symlinks[@]}" ; do
+ ln -fnrs -- "${symlinks[${each}]}" "${each}" # keep going even if this fails
+ done
+
+ einfo 'Creating a transitional symlink for your convenience.'
+ ln -fnrsv -- "${EROOT}/var/lib/bitcoin"{d,/.bitcoin}
+ einfo 'You may remove this link when you no longer need it.'
+ else
+ einfo 'Nothing to do.'
+ fi
+}
diff --git a/net-p2p/bitcoin-core/bitcoin-core-27.1_rc1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-27.1.ebuild
index 820fbbb16b31..820fbbb16b31 100644
--- a/net-p2p/bitcoin-core/bitcoin-core-27.1_rc1.ebuild
+++ b/net-p2p/bitcoin-core/bitcoin-core-27.1.ebuild