From d3067867d0c17b2b43b6dbc358cf5077ae7dae79 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:12:20 +0200 Subject: [PATCH 01/12] Revert "srcpkgs/*: remove all cryptocurrency/blockchain packages" This reverts commit 6ad118290026c0280050dbeb978f16ea2003c8f2. --- CONTRIBUTING.md | 1 - common/shlibs | 1 + srcpkgs/Electron-Cash/template | 28 +++++ srcpkgs/bitcoin-devel | 1 + srcpkgs/bitcoin-qt | 1 + srcpkgs/bitcoin/patches/fix-test.patch | 22 ++++ srcpkgs/bitcoin/template | 74 ++++++++++++ srcpkgs/bitcoin/update | 2 + srcpkgs/cointop/template | 12 ++ srcpkgs/cpuminer/template | 13 +++ srcpkgs/electrum-ltc/patches/no-certifi.patch | 97 ++++++++++++++++ srcpkgs/electrum-ltc/template | 19 ++++ srcpkgs/electrum/files/README.voidlinux | 3 + srcpkgs/electrum/template | 31 +++++ srcpkgs/electrum/update | 3 + srcpkgs/geth | 1 + srcpkgs/go-ethereum/template | 27 +++++ srcpkgs/libbitcoin-secp256k1-devel | 1 + srcpkgs/libbitcoin-secp256k1/template | 35 ++++++ srcpkgs/litecoin/patches/fix-include.patch | 61 ++++++++++ srcpkgs/litecoin/template | 34 ++++++ srcpkgs/monero-devel | 1 + srcpkgs/monero-gui/INSTALL.msg | 4 + srcpkgs/monero-gui/files | 1 + srcpkgs/monero-gui/template | 106 ++++++++++++++++++ srcpkgs/monero-gui/update | 2 + srcpkgs/monero/files/monerod/run | 3 + srcpkgs/monero/patches/easylogging.patch | 11 ++ srcpkgs/monero/patches/fix-include.patch | 29 +++++ srcpkgs/monero/patches/march_cross.patch | 13 +++ srcpkgs/monero/patches/system-miniupnpc.patch | 106 ++++++++++++++++++ srcpkgs/monero/template | 94 ++++++++++++++++ srcpkgs/monero/update | 2 + srcpkgs/namecoin/patches/boost-1.80.patch | 57 ++++++++++ srcpkgs/namecoin/patches/fix-include.patch | 77 +++++++++++++ srcpkgs/namecoin/template | 32 ++++++ srcpkgs/namecoin/update | 1 + srcpkgs/nxt/files/bin/nxt | 2 + srcpkgs/nxt/files/bin/nxt-tor | 2 + srcpkgs/nxt/files/nxt-tor/run | 4 + srcpkgs/nxt/files/nxt/run | 3 + srcpkgs/nxt/template | 25 +++++ srcpkgs/removed-packages/template | 21 +--- srcpkgs/swarm/template | 13 +++ 44 files changed, 1056 insertions(+), 20 deletions(-) create mode 100644 srcpkgs/Electron-Cash/template create mode 120000 srcpkgs/bitcoin-devel create mode 120000 srcpkgs/bitcoin-qt create mode 100644 srcpkgs/bitcoin/patches/fix-test.patch create mode 100644 srcpkgs/bitcoin/template create mode 100644 srcpkgs/bitcoin/update create mode 100644 srcpkgs/cointop/template create mode 100644 srcpkgs/cpuminer/template create mode 100644 srcpkgs/electrum-ltc/patches/no-certifi.patch create mode 100644 srcpkgs/electrum-ltc/template create mode 100644 srcpkgs/electrum/files/README.voidlinux create mode 100644 srcpkgs/electrum/template create mode 100644 srcpkgs/electrum/update create mode 120000 srcpkgs/geth create mode 100644 srcpkgs/go-ethereum/template create mode 120000 srcpkgs/libbitcoin-secp256k1-devel create mode 100644 srcpkgs/libbitcoin-secp256k1/template create mode 100644 srcpkgs/litecoin/patches/fix-include.patch create mode 100644 srcpkgs/litecoin/template create mode 120000 srcpkgs/monero-devel create mode 100644 srcpkgs/monero-gui/INSTALL.msg create mode 120000 srcpkgs/monero-gui/files create mode 100644 srcpkgs/monero-gui/template create mode 100644 srcpkgs/monero-gui/update create mode 100644 srcpkgs/monero/files/monerod/run create mode 100644 srcpkgs/monero/patches/easylogging.patch create mode 100644 srcpkgs/monero/patches/fix-include.patch create mode 100644 srcpkgs/monero/patches/march_cross.patch create mode 100644 srcpkgs/monero/patches/system-miniupnpc.patch create mode 100644 srcpkgs/monero/template create mode 100644 srcpkgs/monero/update create mode 100644 srcpkgs/namecoin/patches/boost-1.80.patch create mode 100644 srcpkgs/namecoin/patches/fix-include.patch create mode 100644 srcpkgs/namecoin/template create mode 100644 srcpkgs/namecoin/update create mode 100644 srcpkgs/nxt/files/bin/nxt create mode 100644 srcpkgs/nxt/files/bin/nxt-tor create mode 100644 srcpkgs/nxt/files/nxt-tor/run create mode 100644 srcpkgs/nxt/files/nxt/run create mode 100644 srcpkgs/nxt/template create mode 100644 srcpkgs/swarm/template diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a8f58bbb3744..bc9ff3e9d5d3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,7 +20,6 @@ while not meeting any of the following requirements, is a good candidate for the In particular, new themes are highly unlikely to be accepted. Simple shell scripts are unlikely to be accepted unless they provide considerable value to a broad user base. New fonts may be accepted if they provide value beyond aesthetics (e.g. they contain glyphs for a script missing in already packaged fonts). -Packages related to cryptocurrencies (wallets, miners, nodes, etc) are not accepted. Browser forks, including those based on Chromium and Firefox, are generally not accepted. Such forks require heavy patching, maintenance and hours of build time. diff --git a/common/shlibs b/common/shlibs index ef71bae3f9a7..701836544b2b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3670,6 +3670,7 @@ libdwarves_emit.so.1 pahole-1.12_1 libdwarves_reorganize.so.1 pahole-1.12_1 libclthreads.so.2 clthreads-2.4.2_1 libclxclient.so.3 clxclient-3.9.2_1 +libsecp256k1.so.0 libbitcoin-secp256k1-0.1.0.13_1 libltc.so.11 libltc-1.3.1_1 libvpd-2.2.so.2 libvpd-2.2.6_1 libvpd_cxx-2.2.so.2 libvpd-2.2.6_1 diff --git a/srcpkgs/Electron-Cash/template b/srcpkgs/Electron-Cash/template new file mode 100644 index 000000000000..38ca3449b093 --- /dev/null +++ b/srcpkgs/Electron-Cash/template @@ -0,0 +1,28 @@ +# Template file for 'Electron-Cash' +pkgname=Electron-Cash +version=4.2.10 +revision=3 +build_style=python3-module +hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" +depends="python3-PyQt5 python3-PyQt5-svg python3-qrcode python3-dateutil + python3-jsonrpclib python3-protobuf + python3-dnspython python3-requests python3-pysocks python3-stem + python3-ecdsa python3-pyaes python3-pycryptodomex libbitcoin-secp256k1 libzbar + python3-cryptography>=2.6 python3-pathvalidate python3-psutil" +short_desc="Lightweight Bitcoin Cash client" +maintainer="Orphaned " +license="MIT" +homepage="https://electroncash.org" +distfiles="https://github.com/Electron-Cash/Electron-Cash/releases/download/${version}/Electron-Cash-${version}.tar.gz" +checksum=2c77258c0e8ccdc42d16cd9bdbc26b47f94b92d9ba8a86d63c25a17ec832b324 +make_check=no # Depends on unpackaged SimpleWebSocketServer + +post_install() { + # TODO: build these binaries instead of having to remove pre-built ones + rm -f -- "${DESTDIR}/usr/lib/python${py3_ver}/site-packages/electroncash/tor/bin/tor" + + for lib in zbar secp256k1; do + rm -f -- "${DESTDIR}/usr/lib/python${py3_ver}/site-packages/electroncash/lib${lib}.so.0" + done + vlicense LICENCE +} diff --git a/srcpkgs/bitcoin-devel b/srcpkgs/bitcoin-devel new file mode 120000 index 000000000000..f3c13956326c --- /dev/null +++ b/srcpkgs/bitcoin-devel @@ -0,0 +1 @@ +bitcoin \ No newline at end of file diff --git a/srcpkgs/bitcoin-qt b/srcpkgs/bitcoin-qt new file mode 120000 index 000000000000..f3c13956326c --- /dev/null +++ b/srcpkgs/bitcoin-qt @@ -0,0 +1 @@ +bitcoin \ No newline at end of file diff --git a/srcpkgs/bitcoin/patches/fix-test.patch b/srcpkgs/bitcoin/patches/fix-test.patch new file mode 100644 index 000000000000..0004fd7358a5 --- /dev/null +++ b/srcpkgs/bitcoin/patches/fix-test.patch @@ -0,0 +1,22 @@ +Index: bitcoin-22.0/src/wallet/test/init_tests.cpp +=================================================================== +--- bitcoin-22.0.orig/src/wallet/test/init_tests.cpp ++++ bitcoin-22.0/src/wallet/test/init_tests.cpp +@@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_w + BOOST_CHECK(result == true); + fs::path walletdir = gArgs.GetArg("-walletdir", ""); + fs::path expected_path = fs::canonical(m_walletdir_path_cases["default"]); +- BOOST_CHECK_EQUAL(walletdir, expected_path); ++ BOOST_TEST(fs::equivalent(walletdir, expected_path)); + } + + BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_no_trailing2) +@@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_w + BOOST_CHECK(result == true); + fs::path walletdir = gArgs.GetArg("-walletdir", ""); + fs::path expected_path = fs::canonical(m_walletdir_path_cases["default"]); +- BOOST_CHECK_EQUAL(walletdir, expected_path); ++ BOOST_TEST(fs::equivalent(walletdir, expected_path)); + } + + BOOST_AUTO_TEST_SUITE_END() diff --git a/srcpkgs/bitcoin/template b/srcpkgs/bitcoin/template new file mode 100644 index 000000000000..cf464ce35c46 --- /dev/null +++ b/srcpkgs/bitcoin/template @@ -0,0 +1,74 @@ +# Template file for 'bitcoin' +pkgname=bitcoin +version=22.0 +revision=5 +build_style=gnu-configure +configure_args="--with-incompatible-bdb --disable-ccache --disable-static + --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr --with-gui" +hostmakedepends="automake libtool pkg-config yasm" +makedepends="db-devel boost-devel miniupnpc-devel qt5-tools-devel + libevent-devel qrencode-devel libatomic-devel sqlite-devel" +short_desc="Bitcoin is a peer-to-peer network based digital currency" +maintainer="Daniel A. Maierhofer " +license="MIT" +homepage="https://bitcoin.org/" +distfiles="https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz + https://raw.githubusercontent.com/bitcoin-core/packaging/${version%.*}.x/debian/bitcoin-qt.desktop + https://raw.githubusercontent.com/bitcoin/bitcoin/v${version}/share/pixmaps/bitcoin128.png" +checksum="d0e9d089b57048b1555efa7cd5a63a7ed042482045f6f33402b1df425bf9613b + 0a46bbadda140599e807be38999e6848c89f9c3523d26fede02d34d62d50f632 + ad880c8459ecfdb96abe6a4689af06bdd27906e0edcd39d0915482f2da91e722" +conflicts="litecoin>=0" # Both provide libbitcoinconsensus.so.0 +skip_extraction="bitcoin-qt.desktop bitcoin128.png" + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools" +fi + +pre_configure() { + autoreconf -fi + case "$XBPS_TARGET_MACHINE" in + aarch64*) + CFLAGS=${CFLAGS/armv8-a/armv8-a+crc+crypto} + CXXFLAGS=${CXXFLAGS/armv8-a/armv8-a+crc+crypto} + ;; + esac +} + +pre_build() { + export BITCOIN_GENBUILD_NO_GIT=1 +} + +post_install() { + rm "${DESTDIR}"/usr/bin/{test,bench}_bitcoin + + for b in bitcoind bitcoin-cli bitcoin-tx; do + vcompletion contrib/${b}.bash-completion bash $b + done + + vlicense COPYING +} + +bitcoin-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vdoc doc/shared-libraries.md # Provides information on libbitcoinconsensus + } +} + +bitcoin-qt_package() { + depends="desktop-file-utils" + short_desc+=" - QT GUI" + pkg_install() { + vmove usr/bin/bitcoin-qt + vmove usr/share/man/man1/bitcoin-qt.1 + vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/bitcoin-qt.desktop 644 usr/share/applications + vinstall ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/bitcoin128.png 644 usr/share/pixmaps + vlicense COPYING + rm "${DESTDIR}"/usr/bin/test_bitcoin-qt + } +} diff --git a/srcpkgs/bitcoin/update b/srcpkgs/bitcoin/update new file mode 100644 index 000000000000..b28ea45c0898 --- /dev/null +++ b/srcpkgs/bitcoin/update @@ -0,0 +1,2 @@ +site="https://bitcoin.org/bin/" +pattern='bitcoin-core-\K[\d.]+' diff --git a/srcpkgs/cointop/template b/srcpkgs/cointop/template new file mode 100644 index 000000000000..343f2ad20a49 --- /dev/null +++ b/srcpkgs/cointop/template @@ -0,0 +1,12 @@ +# Template file for 'cointop' +pkgname=cointop +version=1.6.10 +revision=1 +build_style=go +go_import_path="github.com/cointop-sh/cointop" +short_desc="Terminal based application for tracking cryptocurrencies" +maintainer="Orphaned " +license="Apache-2.0" +homepage="https://github.com/cointop-sh/cointop" +distfiles="https://github.com/cointop-sh/cointop/archive/v${version}.tar.gz" +checksum=18da0d25288deec7156ddd1d6923960968ab4adcdc917f85726b97d555d9b1b7 diff --git a/srcpkgs/cpuminer/template b/srcpkgs/cpuminer/template new file mode 100644 index 000000000000..8afb7a5c4877 --- /dev/null +++ b/srcpkgs/cpuminer/template @@ -0,0 +1,13 @@ +# Template file for 'cpuminer' +pkgname=cpuminer +version=2.5.1 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config yasm" +makedepends="libcurl-devel ncurses-devel jansson-devel" +short_desc="Multi-threaded CPU miner for Litecoin and Bitcoin" +maintainer="Orphaned " +license="GPL-2.0-or-later" +homepage="https://github.com/pooler/cpuminer" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/pooler-${pkgname}-${version}.tar.gz" +checksum=337f04fdb32f34b85819d09d59f6d3cf62991ac2e656735c43661dd3d4c57631 diff --git a/srcpkgs/electrum-ltc/patches/no-certifi.patch b/srcpkgs/electrum-ltc/patches/no-certifi.patch new file mode 100644 index 000000000000..9d68378996ba --- /dev/null +++ b/srcpkgs/electrum-ltc/patches/no-certifi.patch @@ -0,0 +1,97 @@ +diff --git a/electrum_ltc/interface.py b/electrum_ltc/interface.py +index b5eac439c..14bbd7ab9 100644 +--- a/electrum_ltc/interface.py ++++ b/electrum_ltc/interface.py +@@ -40,7 +40,6 @@ from aiorpcx import RPCSession, Notification, NetAddress + from aiorpcx.curio import timeout_after, TaskTimeout + from aiorpcx.jsonrpc import JSONRPC, CodeMessageError + from aiorpcx.rawsocket import RSClient +-import certifi + + from .util import ignore_exceptions, log_exceptions, bfh, SilentTaskGroup + from . import util +@@ -57,7 +56,7 @@ if TYPE_CHECKING: + from .network import Network + + +-ca_path = certifi.where() ++ca_path = '/etc/ssl/certs/ca-certificates.crt' + + BUCKET_NAME_OF_ONION_SERVERS = 'onion' + +diff --git a/electrum_ltc/paymentrequest.py b/electrum_ltc/paymentrequest.py +index 149065bf3..9580c8d48 100644 +--- a/electrum_ltc/paymentrequest.py ++++ b/electrum_ltc/paymentrequest.py +@@ -29,7 +29,6 @@ import traceback + import json + from typing import Optional + +-import certifi + import urllib.parse + import aiohttp + +@@ -54,7 +53,7 @@ _logger = get_logger(__name__) + REQUEST_HEADERS = {'Accept': 'application/litecoin-paymentrequest', 'User-Agent': 'Electrum'} + ACK_HEADERS = {'Content-Type':'application/litecoin-payment','Accept':'application/litecoin-paymentack','User-Agent':'Electrum'} + +-ca_path = certifi.where() ++ca_path = '/etc/ssl/certs/ca-certificates.crt' + ca_list = None + ca_keyID = None + +diff --git a/electrum_ltc/util.py b/electrum_ltc/util.py +index bc69800dc..9c32a195a 100644 +--- a/electrum_ltc/util.py ++++ b/electrum_ltc/util.py +@@ -44,7 +44,6 @@ import ssl + import aiohttp + from aiohttp_socks import SocksConnector, SocksVer + from aiorpcx import TaskGroup +-import certifi + + from .i18n import _ + from .logging import get_logger, Logger +@@ -62,7 +61,7 @@ def inv_dict(d): + return {v: k for k, v in d.items()} + + +-ca_path = certifi.where() ++ca_path = '/etc/ssl/certs/ca-certificates.crt' + + + base_units = {'LTC':8, 'mLTC':5, 'uLTC':2, 'sat':0} +diff --git a/electrum_ltc/x509.py b/electrum_ltc/x509.py +index c38edc77a..e745e4878 100644 +--- a/electrum_ltc/x509.py ++++ b/electrum_ltc/x509.py +@@ -343,7 +343,6 @@ def load_certificates(ca_path): + + + if __name__ == "__main__": +- import certifi + +- ca_path = certifi.where() ++ ca_path = '/etc/ssl/certs/ca-certificates.crt' + ca_list, ca_keyID = load_certificates(ca_path) +diff --git a/run_electrum b/run_electrum +index 978e5fb2f..e8fc3888c 100755 +--- a/run_electrum ++++ b/run_electrum +@@ -58,7 +58,6 @@ def check_imports(): + import dns + import pyaes + import ecdsa +- import certifi + import qrcode + import google.protobuf + import jsonrpclib +@@ -72,7 +71,7 @@ def check_imports(): + from google.protobuf import descriptor_pb2 + from jsonrpclib import SimpleJSONRPCServer + # make sure that certificates are here +- assert os.path.exists(certifi.where()) ++ assert os.path.exists('/etc/ssl/certs/ca-certificates.crt') + + + if not is_android: diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template new file mode 100644 index 000000000000..f476e2de0ed6 --- /dev/null +++ b/srcpkgs/electrum-ltc/template @@ -0,0 +1,19 @@ +# Template file for 'electrum-ltc' +pkgname=electrum-ltc +version=3.3.8.1 +revision=4 +build_style=python3-module +hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" +depends="python3-aiohttp python3-aiohttp_socks python3-aiorpcx + python3-dnspython python3-ecdsa python3-jsonrpclib python3-protobuf + python3-pyaes python3-pycryptodome python3-PyQt5 python3-qrcode" +short_desc="Lightweight Litecoin port of the Electrum Bitcoin wallet" +maintainer="Young Jin Park " +license="MIT" +homepage="https://electrum-ltc.org/" +distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz" +checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f" + +post_install() { + vlicense LICENCE +} diff --git a/srcpkgs/electrum/files/README.voidlinux b/srcpkgs/electrum/files/README.voidlinux new file mode 100644 index 000000000000..9ba377487dac --- /dev/null +++ b/srcpkgs/electrum/files/README.voidlinux @@ -0,0 +1,3 @@ +Some optional packages must be installed for additional functionality: + +- python3-matplotlib: plot transaction history in graphical mode diff --git a/srcpkgs/electrum/template b/srcpkgs/electrum/template new file mode 100644 index 000000000000..dcabed755423 --- /dev/null +++ b/srcpkgs/electrum/template @@ -0,0 +1,31 @@ +# Template file for 'electrum' +pkgname=electrum +version=4.2.0 +revision=3 +build_style=python3-module +hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" +depends="python3-aiohttp python3-aiohttp_socks python3-aiorpcx + python3-bitstring python3-dnspython python3-ecdsa python3-jsonrpclib + python3-protobuf python3-pyaes python3-pycryptodomex python3-PyQt5 + python3-qrcode python3-socks python3-cryptography libbitcoin-secp256k1 + python3-certifi" +# Optional dependencies: +# btchip - BTChip hardware wallet support +# trezor - TREZOR hardware wallet support +# keepkey - KeepKey hardware wallet support +# qdarkstyle - Dark theme +checkdepends="$depends python3-pytest" +short_desc="Lightweight Bitcoin wallet" +maintainer="Charles E. Lehner " +license="MIT" +homepage="https://electrum.org/" +distfiles="https://github.com/spesmilo/electrum/archive/${version}.tar.gz" +checksum=3a24c7ed7a2bb47888f308380b8624a3fff3cf3882fd63d904cd9c3ec543fb3b + +post_install() { + vsed -i -e 's|electrum %u|electrum|' \ + -e 's|testnet %u|testnet|' \ + ${DESTDIR}/usr/share/applications/electrum.desktop + vlicense LICENCE + vdoc "${FILESDIR}/README.voidlinux" +} diff --git a/srcpkgs/electrum/update b/srcpkgs/electrum/update new file mode 100644 index 000000000000..4b1b69c33225 --- /dev/null +++ b/srcpkgs/electrum/update @@ -0,0 +1,3 @@ +site="https://download.electrum.org" +pattern=')' + diff --git a/srcpkgs/geth b/srcpkgs/geth new file mode 120000 index 000000000000..643fd89ff2c6 --- /dev/null +++ b/srcpkgs/geth @@ -0,0 +1 @@ +go-ethereum \ No newline at end of file diff --git a/srcpkgs/go-ethereum/template b/srcpkgs/go-ethereum/template new file mode 100644 index 000000000000..1377f4c3ac3f --- /dev/null +++ b/srcpkgs/go-ethereum/template @@ -0,0 +1,27 @@ +# Template file for 'go-ethereum' +pkgname=go-ethereum +version=1.10.1 +revision=2 +build_style=go +go_import_path=github.com/ethereum/go-ethereum +go_package="${go_import_path}/cmd/abigen + ${go_import_path}/cmd/bootnode + ${go_import_path}/cmd/evm + ${go_import_path}/cmd/geth + ${go_import_path}/cmd/puppeth + ${go_import_path}/cmd/rlpdump + ${go_import_path}/cmd/clef" +depends="geth" +short_desc="Full suite of Go Ethereum utilities" +maintainer="Hoang Nguyen " +license="GPL-3.0-only" +homepage="https://github.com/ethereum/go-ethereum" +distfiles="https://${go_import_path}/archive/v${version}.tar.gz" +checksum=485ff7b9e5a34457ab424d7e2cb8d377dc571e8daf666e065a0a327b9e413cab + +geth_package() { + short_desc="Official Go implementation of the Ethereum protocol" + pkg_install() { + vmove usr/bin/geth + } +} diff --git a/srcpkgs/libbitcoin-secp256k1-devel b/srcpkgs/libbitcoin-secp256k1-devel new file mode 120000 index 000000000000..527eb8d59d7e --- /dev/null +++ b/srcpkgs/libbitcoin-secp256k1-devel @@ -0,0 +1 @@ +libbitcoin-secp256k1 \ No newline at end of file diff --git a/srcpkgs/libbitcoin-secp256k1/template b/srcpkgs/libbitcoin-secp256k1/template new file mode 100644 index 000000000000..42f5ad1ded0e --- /dev/null +++ b/srcpkgs/libbitcoin-secp256k1/template @@ -0,0 +1,35 @@ +# Template file for 'libbitcoin-secp256k1' +pkgname=libbitcoin-secp256k1 +version=0.1.0.13 +revision=1 +build_style=gnu-configure +configure_args="--disable-benchmark --disable-coverage --disable-jni + --disable-openssl-tests --enable-exhaustive-tests --enable-module-recovery + --enable-tests --with-gnu-ld" +hostmakedepends="autoconf automake libtool m4 pkg-config" +short_desc="Optimized C library for EC operations on curve secp256k1" +maintainer="Andy Weidenbaum " +license="MIT" +homepage="https://github.com/libbitcoin/secp256k1" +distfiles="https://github.com/libbitcoin/secp256k1/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=9e48dbc88d0fb5646d40ea12df9375c577f0e77525e49833fb744d3c2a69e727 + +pre_configure() { + ./autogen.sh +} + +post_install() { + vlicense COPYING + vdoc README.md +} + +libbitcoin-secp256k1-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/litecoin/patches/fix-include.patch b/srcpkgs/litecoin/patches/fix-include.patch new file mode 100644 index 000000000000..b540db326b87 --- /dev/null +++ b/srcpkgs/litecoin/patches/fix-include.patch @@ -0,0 +1,61 @@ +Index: litecoin-0.18.1/src/bench/block_assemble.cpp +=================================================================== +--- litecoin-0.18.1.orig/src/bench/block_assemble.cpp ++++ litecoin-0.18.1/src/bench/block_assemble.cpp +@@ -20,7 +20,9 @@ + + #include + ++#include + #include ++#include + #include + + static std::shared_ptr PrepareBlock(const CScript& coinbase_scriptPubKey) +Index: litecoin-0.18.1/src/net_processing.cpp +=================================================================== +--- litecoin-0.18.1.orig/src/net_processing.cpp ++++ litecoin-0.18.1/src/net_processing.cpp +@@ -30,7 +30,9 @@ + #include + #include + ++#include + #include ++#include + + #if defined(NDEBUG) + # error "Litecoin cannot be compiled without assertions." +Index: litecoin-0.18.1/src/qt/sendcoinsdialog.cpp +=================================================================== +--- litecoin-0.18.1.orig/src/qt/sendcoinsdialog.cpp ++++ litecoin-0.18.1/src/qt/sendcoinsdialog.cpp +@@ -32,6 +32,8 @@ + #include + #include + ++#include ++ + static const std::array confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} }; + int getConfTargetForIndex(int index) { + if (index+1 > static_cast(confTargets.size())) { +--- a/src/httpserver.cpp 2019-04-08 09:28:20.000000000 +0200 ++++ b/src/httpserver.cpp 2019-04-08 09:28:20.000000000 +0200 +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + + #include + #include +--- a/src/qt/trafficgraphwidget.cpp 2019-04-08 09:28:20.000000000 +0200 ++++ b/src/qt/trafficgraphwidget.cpp 2019-04-08 09:28:20.000000000 +0200 +@@ -6,6 +6,7 @@ + #include + #include + ++#include + #include + #include + #include diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template new file mode 100644 index 000000000000..a7ed18603c20 --- /dev/null +++ b/srcpkgs/litecoin/template @@ -0,0 +1,34 @@ +# Template file for 'litecoin' +pkgname=litecoin +version=0.18.1 +revision=11 +build_style=gnu-configure +configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static + --disable-tests --with-openssl" +hostmakedepends="automake libtool pkg-config yasm protobuf which" +makedepends="libatomic-devel zlib-devel db-devel openssl-devel boost-devel + qt5-tools-devel miniupnpc-devel protobuf-devel libevent-devel" +short_desc="Peer-to-peer Internet currency based on scrypt cryptography" +maintainer="Orphaned " +license="MIT" +homepage="http://www.litecoin.org/" +distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz" +checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools protobuf" + configure_args+=" --with-boost=${XBPS_CROSS_BASE}" +fi + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +post_install() { + rm -rf ${DESTDIR}/usr/include + vsconf share/examples/litecoin.conf + vman doc/man/litecoind.1 litecoind.1 + vlicense COPYING + vmkdir usr/share/bash-completion/completions/${pkgname} + vcopy contrib/*.bash-completion usr/share/bash-completion/completions/${pkgname} +} diff --git a/srcpkgs/monero-devel b/srcpkgs/monero-devel new file mode 120000 index 000000000000..772084db0203 --- /dev/null +++ b/srcpkgs/monero-devel @@ -0,0 +1 @@ +monero \ No newline at end of file diff --git a/srcpkgs/monero-gui/INSTALL.msg b/srcpkgs/monero-gui/INSTALL.msg new file mode 100644 index 000000000000..06ac937bb78f --- /dev/null +++ b/srcpkgs/monero-gui/INSTALL.msg @@ -0,0 +1,4 @@ +For monero-gui to connect to the network, it needs access to a monero node. +You may either enter a remote node in the application itself or provide +a locally running node for it to work with. The necessary daemon software +to run a local node is available in the 'monero' package. diff --git a/srcpkgs/monero-gui/files b/srcpkgs/monero-gui/files new file mode 120000 index 000000000000..0dc85055cb8b --- /dev/null +++ b/srcpkgs/monero-gui/files @@ -0,0 +1 @@ +../monero/patches \ No newline at end of file diff --git a/srcpkgs/monero-gui/template b/srcpkgs/monero-gui/template new file mode 100644 index 000000000000..0f4e06d5c55f --- /dev/null +++ b/srcpkgs/monero-gui/template @@ -0,0 +1,106 @@ +# Template file for 'monero-gui' +pkgname=monero-gui +version=0.18.1.2 +revision=4 +_monero_version=0.18.1.2 +# the revision monero uses as a submodule for the specific version +_randomx_gitrev="261d58c77fc5547c0aa7fdfeb58421ba7e0e6e1c" +_rapidjson_gitrev="129d19ba7f496df5e33658527a7158c79b99c21c" +_supercop_gitrev="633500ad8c8759995049ccd022107d1fa8a1bbc9" +_quirc_gitrev="7e7ab596e4d0988faf1c12ae89c354b114181c40" +build_style=cmake +configure_args="-DVERSION_IS_RELEASE=true -DQt5_LRELEASE_EXECUTABLE=/usr/bin/lrelease" +hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel + qt5-svg-devel qtchooser" +makedepends="boost-devel libunwind-devel miniupnpc-devel +qt5-declarative-devel readline-devel unbound-devel libsodium-devel hidapi-devel + qt5-svg-devel libgcrypt-devel zeromq-devel" +depends="qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2 qt5-xmlpatterns" +short_desc="GUI for the core Monero implementation" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://getmonero.org" +distfiles="https://github.com/monero-project/monero-gui/archive/v${version}.tar.gz + https://github.com/monero-project/monero/archive/v${_monero_version}.tar.gz>monero-${_monero_version}.tar.gz + https://github.com/tevador/RandomX/archive/${_randomx_gitrev}.tar.gz>RandomX-${_randomx_gitrev}.tar.gz + https://github.com/Tencent/rapidjson/archive/${_rapidjson_gitrev}.tar.gz>rapidjson-${_rapidjson_gitrev}.tar.gz + https://github.com/monero-project/supercop/archive/${_supercop_gitrev}.tar.gz>supercop-${_supercop_gitrev}.tar.gz + https://github.com/dlbeer/quirc/archive/${_quirc_gitrev}.tar.gz>quirc-${_quirc_gitrev}.tar.gz" +checksum="b5494830e917231aa7515992c69bcbb495f532fefde42530b265f9fd590e1702 + f7fec9c7456e22b70cb86a34dd9192c948161155fdbdfb8505f8ea95c357a38e + 4aeadafe16810320fd492491e39d03fb6028a2db35916aba0fef96c716aba46f + 44b007d419ac21b6affec58991e865ee572346ead19b73cf1c3e4e11c7a81273 + b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7 + c8366aecb6ba48ec50a7e579a4fa18eb55c3c4be7d3efb2a83726157977f4ca6" +skip_extraction="monero-${version}.tar.gz rapidjson-${_rapidjson_gitrev}.tar.gz supercop-${_supercop_gitrev}.tar.gz RandomX-${_randomx_gitrev}.tar.gz quirc-${_quirc_gitrev}.tar.gz" + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + CFLAGS+=" -latomic" +fi + +case "$XBPS_TARGET_MACHINE" in + *-musl) configure_args+=" -DSTACK_TRACE=OFF" +esac + +case "$XBPS_TARGET_MACHINE" in + armv7*) configure_args+=" -DARCH=armv7" ;; + armv6*) configure_args+=" -DARCH=armv6" ;; + armv5*) configure_args+=" -DARCH=armv5" ;; + aarch64*) configure_args+=" -DARCH=aarch64" ;; + mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;; + ppc64le*) configure_args+=" -DARCH=ppc64le" ;; + ppc64*) configure_args+=" -DARCH=ppc64" ;; + ppc*) configure_args+=" -DARCH=ppc" ;; + *) configure_args+=" -DARCH=default" ;; +esac + +post_extract() { + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/monero-${_monero_version}.tar.gz --strip-components 1 -C monero + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/rapidjson-${_rapidjson_gitrev}.tar.gz --strip-components 1 -C monero/external/rapidjson + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/supercop-${_supercop_gitrev}.tar.gz --strip-components 1 -C monero/external/supercop + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/RandomX-${_randomx_gitrev}.tar.gz --strip-components 1 -C monero/external/randomx + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/quirc-${_quirc_gitrev}.tar.gz --strip-components 1 -C external/quirc +} + +post_patch() { + cd monero + for f in "${FILESDIR}"/*.patch; do + echo "Applying $f" + patch -Np1 -i "$f" + done +} + +pre_configure() { + echo "var GUI_VERSION = \"${version}\"" > version.js + echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + vsed -i monero/CMakeLists.txt -e \ + '/if(ANDROID)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' + fi +} + +pre_build() { + cd src/zxcvbn-c + cmake . + cd ../.. + if [ "$CROSS_BUILD" ]; then + # The dictgen binary is executed during the build to generate code + # but is not included in the binary package. It thus needs to be + # built for the host + CXX=${CXX_host} CXXFLAGS="${XBPS_CXXFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ + make ${makejobs} -C src/zxcvbn-c + # The generate_translations_header binary is executed during the build + # but is not included in the binary package. It thus needs to be + # built for the host + CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ + ninja -C build ${makejobs} generate_translations_header + + fi + make ${makejobs} -C src/zxcvbn-c +} + +do_install() { + vbin build/bin/monero-wallet-gui + vlicense LICENSE +} diff --git a/srcpkgs/monero-gui/update b/srcpkgs/monero-gui/update new file mode 100644 index 000000000000..5254358a1411 --- /dev/null +++ b/srcpkgs/monero-gui/update @@ -0,0 +1,2 @@ +site="https://github.com/monero-project/monero-gui/tags" +pattern='/archive/refs/tags/(v?|\Qmonero-gui\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/monero/files/monerod/run b/srcpkgs/monero/files/monerod/run new file mode 100644 index 000000000000..f485e63659fa --- /dev/null +++ b/srcpkgs/monero/files/monerod/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -u monero:monero /usr/bin/monerod --non-interactive --config-file /etc/monerod.conf diff --git a/srcpkgs/monero/patches/easylogging.patch b/srcpkgs/monero/patches/easylogging.patch new file mode 100644 index 000000000000..5e611672aa71 --- /dev/null +++ b/srcpkgs/monero/patches/easylogging.patch @@ -0,0 +1,11 @@ +--- a/external/easylogging++/easylogging++.h 2020-05-23 09:03:47.678880438 +0200 ++++ b/external/easylogging++/easylogging++.h 2020-05-23 09:04:31.757371549 +0200 +@@ -221,7 +221,7 @@ + # define ELPP_INTERNAL_INFO(lvl, msg) + #endif // (defined(ELPP_DEBUG_INFO)) + #if (defined(ELPP_FEATURE_ALL)) || (defined(ELPP_FEATURE_CRASH_LOG)) +-# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN) ++# if ( __has_include() && ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN) + # define ELPP_STACKTRACE 1 + # else + # define ELPP_STACKTRACE 0 diff --git a/srcpkgs/monero/patches/fix-include.patch b/srcpkgs/monero/patches/fix-include.patch new file mode 100644 index 000000000000..f5ba9fa25d08 --- /dev/null +++ b/srcpkgs/monero/patches/fix-include.patch @@ -0,0 +1,29 @@ +Index: monero-0.18.1.2/src/common/dns_utils.cpp +=================================================================== +--- monero-0.18.1.2.orig/src/common/dns_utils.cpp ++++ monero-0.18.1.2/src/common/dns_utils.cpp +@@ -38,6 +38,12 @@ + #include + #include + #include ++ ++#include ++#include ++#include ++#include ++ + using namespace epee; + + #undef MONERO_DEFAULT_LOG_CATEGORY +Index: monero-0.18.1.2/src/common/threadpool.h +=================================================================== +--- monero-0.18.1.2.orig/src/common/threadpool.h ++++ monero-0.18.1.2/src/common/threadpool.h +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/monero/patches/march_cross.patch b/srcpkgs/monero/patches/march_cross.patch new file mode 100644 index 000000000000..20c3ae90c477 --- /dev/null +++ b/srcpkgs/monero/patches/march_cross.patch @@ -0,0 +1,13 @@ +diff --git CMakeLists.txt CMakeLists.txt +index 953707657..394e8cb32 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -581,7 +581,7 @@ else() + set_default_arch() + endif() + message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}") +- if(ARCH STREQUAL "default") ++ if(ARCH STREQUAL "default" OR CMAKE_CROSSCOMPILING) + set(ARCH_FLAG "") + elseif(PPC64LE) + set(ARCH_FLAG "-mcpu=power8") diff --git a/srcpkgs/monero/patches/system-miniupnpc.patch b/srcpkgs/monero/patches/system-miniupnpc.patch new file mode 100644 index 000000000000..6da9a92d491e --- /dev/null +++ b/srcpkgs/monero/patches/system-miniupnpc.patch @@ -0,0 +1,106 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b05c087cf..4f1a20101 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -676,6 +676,14 @@ ExternalProject_Add(generate_translations_header + include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations") + add_subdirectory(external) + ++# Final setup for miniupnpc ++if(UPNP_STATIC OR IOS) ++ add_definitions("-DUPNP_STATIC") ++else() ++ add_definitions("-DUPNP_DYNAMIC") ++ include_directories(${UPNP_INCLUDE}) ++endif() ++ + # Final setup for libunbound + include_directories(${UNBOUND_INCLUDE_DIR}) + +diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt +index 5b7f69a56..00ef3f43d 100644 +--- a/external/CMakeLists.txt ++++ b/external/CMakeLists.txt +@@ -34,24 +34,47 @@ + # We always compile if we are building statically to reduce static dependency issues... + # ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with + # others. ++if(NOT IOS) ++ find_package(Miniupnpc QUIET) ++endif() + +-find_package(Miniupnpc REQUIRED) +- +-message(STATUS "Using in-tree miniupnpc") + set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE) +-add_subdirectory(miniupnp/miniupnpc) +-set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") +-set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON) +-if(MSVC) +- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") +-elseif(NOT MSVC) +- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") ++# If we have the correct shared version and we're not building static, use it ++if(STATIC OR IOS) ++ set(USE_SHARED_MINIUPNPC false) ++elseif(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER) ++ set(USE_SHARED_MINIUPNPC true) + endif() ++ ++ ++if(USE_SHARED_MINIUPNPC) ++ message(STATUS "Using shared miniupnpc found at ${MINIUPNP_INCLUDE_DIR}") ++ ++ set(UPNP_STATIC false PARENT_SCOPE) ++ set(UPNP_INCLUDE ${MINIUPNP_INCLUDE_DIR} PARENT_SCOPE) ++ set(UPNP_LIBRARIES ${MINIUPNP_LIBRARY} PARENT_SCOPE) ++else() ++ if(STATIC) ++ message(STATUS "Using miniupnpc from local source tree for static build") ++ else() ++ message(STATUS "Using miniupnpc from local source tree (/external/miniupnp/miniupnpc)") ++ endif() ++ add_subdirectory(miniupnp/miniupnpc) ++ ++ set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") ++ if(MSVC) ++ set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") ++ elseif(NOT MSVC) ++ set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") ++ endif() ++ + if(CMAKE_SYSTEM_NAME MATCHES "NetBSD") + set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE") + endif() + +-set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE) ++ set(UPNP_STATIC true PARENT_SCOPE) ++ set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE) ++endif() + + find_package(Unbound) + +diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl +index f33ce977d..87d23a1e1 100644 +--- a/src/p2p/net_node.inl ++++ b/src/p2p/net_node.inl +@@ -60,9 +60,16 @@ + #include "cryptonote_core/cryptonote_core.h" + #include "net/parse.h" + +-#include +-#include +-#include ++// We have to look for miniupnpc headers in different places, dependent on if its compiled or external ++#ifdef UPNP_STATIC ++ #include ++ #include ++ #include ++#else ++ #include "miniupnpc.h" ++ #include "upnpcommands.h" ++ #include "upnperrors.h" ++#endif + + #undef MONERO_DEFAULT_LOG_CATEGORY + #define MONERO_DEFAULT_LOG_CATEGORY "net.p2p" diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template new file mode 100644 index 000000000000..93a3c82fe4d6 --- /dev/null +++ b/srcpkgs/monero/template @@ -0,0 +1,94 @@ +# Template file for 'monero' +pkgname=monero +version=0.18.1.2 +revision=4 +# the revision monero uses as a submodule for the specific version +_randomx_gitrev="261d58c77fc5547c0aa7fdfeb58421ba7e0e6e1c" +_rapidjson_gitrev="129d19ba7f496df5e33658527a7158c79b99c21c" +_supercop_gitrev="633500ad8c8759995049ccd022107d1fa8a1bbc9" +build_style=cmake +conf_files="/etc/monerod.conf" +make_dirs=" + /var/lib/monero 0750 monero monero + /var/log/monero 0755 monero monero" +hostmakedepends="pkg-config" +makedepends="openssl-devel boost-devel libldns-devel libunwind-devel + readline-devel unbound-devel miniupnpc-devel expat-devel + cppzmq czmq-devel libsodium-devel" +short_desc="Private, secure, untraceable, decentralised digital currency" +maintainer="Kevin Crumb " +license="BSD-3-Clause" +homepage="https://getmonero.org" +distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz + https://github.com/tevador/RandomX/archive/${_randomx_gitrev}.tar.gz>RandomX-${_randomx_gitrev}.tar.gz + https://github.com/Tencent/rapidjson/archive/${_rapidjson_gitrev}.tar.gz>rapidjson-${_rapidjson_gitrev}.tar.gz + https://github.com/monero-project/supercop/archive/${_supercop_gitrev}.tar.gz>supercop-${_supercop_gitrev}.tar.gz" +checksum="f7fec9c7456e22b70cb86a34dd9192c948161155fdbdfb8505f8ea95c357a38e + 4aeadafe16810320fd492491e39d03fb6028a2db35916aba0fef96c716aba46f + 44b007d419ac21b6affec58991e865ee572346ead19b73cf1c3e4e11c7a81273 + b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7" +skip_extraction="RandomX-${_randomx_gitrev}.tar.gz rapidjson-${_rapidjson_gitrev}.tar.gz supercop-${_supercop_gitrev}.tar.gz" +system_accounts="monero" + +case "$XBPS_TARGET_MACHINE" in + armv7*) configure_args+=" -DARCH=armv7" ;; + armv6*) configure_args+=" -DARCH=armv6" ;; + armv5*) configure_args+=" -DARCH=armv5" ;; + aarch64*) configure_args+=" -DARCH=aarch64" ;; + mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;; + ppc64le*) configure_args+=" -DARCH=ppc64le" ;; + ppc64*) configure_args+=" -DARCH=ppc64" ;; + ppc*) configure_args+=" -DARCH=ppc" ;; + *) configure_args+=" -DARCH=default" ;; +esac + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + CFLAGS+=" -latomic" +fi + +case "$XBPS_TARGET_MACHINE" in + *-musl) configure_args+=" -DSTACK_TRACE=OFF" +esac + +post_extract() { + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/RandomX-${_randomx_gitrev}.tar.gz \ + --strip-components=1 -C ${wrksrc}/external/randomx + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/rapidjson-${_rapidjson_gitrev}.tar.gz \ + --strip-components=1 -C ${wrksrc}/external/rapidjson + bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/supercop-${_supercop_gitrev}.tar.gz \ + --strip-components=1 -C ${wrksrc}/external/supercop +} + +pre_configure() { + if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + sed -i CMakeLists.txt -e \ + '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' + fi +} + +pre_build() { + if [ "$CROSS_BUILD" ]; then + # The generate_translations_header binary is executed during the build + # but is not included in the binary package. It thus needs to be + # built for the host + CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ + ninja -C build ${makejobs} generate_translations_header + fi +} + +post_install() { + vlicense LICENSE + vbin build/bin/monero-blockchain-import + vbin build/bin/monero-blockchain-export + vinstall utils/conf/monerod.conf 644 etc + vsv monerod +} + +monero-devel_package() { + short_desc+=" - development files" + pkg_install() { + vlicense LICENSE + vmove usr/include + } +} diff --git a/srcpkgs/monero/update b/srcpkgs/monero/update new file mode 100644 index 000000000000..2f68aaf68b71 --- /dev/null +++ b/srcpkgs/monero/update @@ -0,0 +1,2 @@ +site="https://github.com/monero-project/monero/tags" +pattern='/archive/refs/tags/(v?|\Qmonero\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/namecoin/patches/boost-1.80.patch b/srcpkgs/namecoin/patches/boost-1.80.patch new file mode 100644 index 000000000000..5a250af68487 --- /dev/null +++ b/srcpkgs/namecoin/patches/boost-1.80.patch @@ -0,0 +1,57 @@ +--- a/src/names/main.cpp ++++ b/src/names/main.cpp +@@ -365,12 +365,14 @@ ConflictTrackerNotifyEntryRemoved (CName + CNameConflictTracker::CNameConflictTracker (CTxMemPool &p) + : txNameConflicts(std::make_shared>()), pool(p) + { ++ using namespace boost::placeholders; + pool.NotifyEntryRemoved.connect ( + boost::bind (&ConflictTrackerNotifyEntryRemoved, this, _1, _2)); + } + + CNameConflictTracker::~CNameConflictTracker () + { ++ using namespace boost::placeholders; + pool.NotifyEntryRemoved.disconnect ( + boost::bind (&ConflictTrackerNotifyEntryRemoved, this, _1, _2)); + } +--- a/src/wallet/test/init_test_fixture.cpp ++++ b/src/wallet/test/init_test_fixture.cpp +@@ -29,7 +29,7 @@ InitWalletDirTestingSetup::InitWalletDir + fs::create_directories(m_walletdir_path_cases["default"]); + fs::create_directories(m_walletdir_path_cases["custom"]); + fs::create_directories(m_walletdir_path_cases["relative"]); +- std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR); ++ std::ofstream f(BOOST_FILESYSTEM_C_STR(m_walletdir_path_cases["file"])); + f.close(); + } + +@@ -41,4 +41,4 @@ InitWalletDirTestingSetup::~InitWalletDi + void InitWalletDirTestingSetup::SetWalletDir(const fs::path& walletdir_path) + { + gArgs.ForceSetArg("-walletdir", walletdir_path.string()); +-} +\ No newline at end of file ++} +--- a/src/wallet/test/db_tests.cpp ++++ b/src/wallet/test/db_tests.cpp +@@ -18,7 +18,7 @@ BOOST_AUTO_TEST_CASE(getwalletenv_file) + std::string test_name = "test_name.dat"; + fs::path datadir = SetDataDir("tempdir"); + fs::path file_path = datadir / test_name; +- std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR); ++ std::ofstream f(BOOST_FILESYSTEM_C_STR(file_path)); + f.close(); + + std::string filename; +--- a/src/fs.cpp ++++ b/src/fs.cpp +@@ -206,7 +206,7 @@ void ofstream::close() + } + #else // __GLIBCXX__ + +-static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t), ++static_assert(sizeof(BOOST_FILESYSTEM_C_STR(*fs::path())) == sizeof(wchar_t), + "Warning: This build is using boost::filesystem ofstream and ifstream " + "implementations which will fail to open paths containing multibyte " + "characters. You should delete this static_assert to ignore this warning, " diff --git a/srcpkgs/namecoin/patches/fix-include.patch b/srcpkgs/namecoin/patches/fix-include.patch new file mode 100644 index 000000000000..b923004ffa7a --- /dev/null +++ b/srcpkgs/namecoin/patches/fix-include.patch @@ -0,0 +1,77 @@ +Index: namecoin-0.18.1/src/bench/block_assemble.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/bench/block_assemble.cpp ++++ namecoin-0.18.1/src/bench/block_assemble.cpp +@@ -20,7 +20,9 @@ + + #include + ++#include + #include ++#include + #include + + static std::shared_ptr PrepareBlock(const CScript& coinbase_scriptPubKey) +Index: namecoin-0.18.1/src/net_processing.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/net_processing.cpp ++++ namecoin-0.18.1/src/net_processing.cpp +@@ -30,7 +30,9 @@ + #include + #include + ++#include + #include ++#include + + #if defined(NDEBUG) + # error "Bitcoin cannot be compiled without assertions." +Index: namecoin-0.18.1/src/qt/sendcoinsdialog.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/qt/sendcoinsdialog.cpp ++++ namecoin-0.18.1/src/qt/sendcoinsdialog.cpp +@@ -32,6 +32,8 @@ + #include + #include + ++#include ++ + static const std::array confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} }; + int getConfTargetForIndex(int index) { + if (index+1 > static_cast(confTargets.size())) { +Index: namecoin-0.18.1/src/qt/trafficgraphwidget.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/qt/trafficgraphwidget.cpp ++++ namecoin-0.18.1/src/qt/trafficgraphwidget.cpp +@@ -6,6 +6,7 @@ + #include + #include + ++#include + #include + #include + #include +Index: namecoin-0.18.1/src/httpserver.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/httpserver.cpp ++++ namecoin-0.18.1/src/httpserver.cpp +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + + #include + #include +Index: namecoin-0.18.1/src/test/cuckoocache_tests.cpp +=================================================================== +--- namecoin-0.18.1.orig/src/test/cuckoocache_tests.cpp ++++ namecoin-0.18.1/src/test/cuckoocache_tests.cpp +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + /** Test Suite for CuckooCache + * diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template new file mode 100644 index 000000000000..5a77aabf8e5a --- /dev/null +++ b/srcpkgs/namecoin/template @@ -0,0 +1,32 @@ +# Template file for 'namecoin' +pkgname=namecoin +version=0.18.1 +revision=9 +build_style=gnu-configure +configure_args="--with-incompatible-bdb --disable-static + --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr" +hostmakedepends="pkg-config yasm automake libtool which" +makedepends="libevent-devel db-devel protobuf-devel boost-devel + miniupnpc-devel qrencode-devel" +short_desc="Distributed key/value database" +maintainer="ananteris " +license="MIT" +homepage="https://namecoin.org" +distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz" +checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + LDFLAGS+=" -latomic" +fi + +pre_configure() { + ./autogen.sh + sed -i src/compat.h -e "s;;;" +} + +post_install() { + vlicense COPYING + # They don't bother to rename from bitcoin + rm -rf $DESTDIR/usr/share/man/man1 +} diff --git a/srcpkgs/namecoin/update b/srcpkgs/namecoin/update new file mode 100644 index 000000000000..10eae03a7eb4 --- /dev/null +++ b/srcpkgs/namecoin/update @@ -0,0 +1 @@ +pattern='/archive/refs/tags/(nc|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/nxt/files/bin/nxt b/srcpkgs/nxt/files/bin/nxt new file mode 100644 index 000000000000..efc4319206d2 --- /dev/null +++ b/srcpkgs/nxt/files/bin/nxt @@ -0,0 +1,2 @@ +#!/bin/sh +cd /usr/lib/nxt && bash run.sh diff --git a/srcpkgs/nxt/files/bin/nxt-tor b/srcpkgs/nxt/files/bin/nxt-tor new file mode 100644 index 000000000000..4b4104ceca97 --- /dev/null +++ b/srcpkgs/nxt/files/bin/nxt-tor @@ -0,0 +1,2 @@ +#!/bin/sh +cd /usr/lib/nxt && bash run-tor.sh diff --git a/srcpkgs/nxt/files/nxt-tor/run b/srcpkgs/nxt/files/nxt-tor/run new file mode 100644 index 000000000000..c14f448c4950 --- /dev/null +++ b/srcpkgs/nxt/files/nxt-tor/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +sv check tor >/dev/null || exit 1 +exec nxt-tor > /dev/null diff --git a/srcpkgs/nxt/files/nxt/run b/srcpkgs/nxt/files/nxt/run new file mode 100644 index 000000000000..a3479cc97b11 --- /dev/null +++ b/srcpkgs/nxt/files/nxt/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec nxt > /dev/null diff --git a/srcpkgs/nxt/template b/srcpkgs/nxt/template new file mode 100644 index 000000000000..fb6f3eb9f121 --- /dev/null +++ b/srcpkgs/nxt/template @@ -0,0 +1,25 @@ +# Template file for 'nxt' +pkgname=nxt +version=1.12.2 +revision=1 +hostmakedepends="unzip" +depends="virtual?java-runtime" +short_desc="Client for the NXT cryptocurrency" +maintainer="Fabio Krapohl " +license="custom:Jelurida Public License 1.1" +homepage="https://nxt.org" +distfiles="https://bitbucket.org/Jelurida/${pkgname}/downloads/${pkgname}-client-${version}.zip" +checksum=83689f6d85e59be44920328d99aa934bb8998f4b5c7ea8088c83ab4503b49a42 + +do_install() { + vbin ${FILESDIR}/bin/${pkgname} + vbin ${FILESDIR}/bin/${pkgname}-tor + + vsv ${pkgname} + vsv ${pkgname}-tor + + vlicense LICENSE.txt + + vmkdir usr/lib/${pkgname} + vcopy . usr/lib/${pkgname} +} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index bdd9a27b2906..18ad75756903 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages -version=0.1.20230627 -revision=2 +version=0.1.20230701 +revision=1 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -10,7 +10,6 @@ homepage="https://voidlinux.org" replaces=" 6cord<=9.6_1 - Electron-Cash<=4.2.10_3 FeedReader<=2.11.0_2 ImageMagick6<=6.9.12.12_2 Lidarr<=0.5.0.583_1 @@ -40,7 +39,6 @@ replaces=" avogadro<=1.2.0_9 beignet<=1.3.2_10 bgc<=1.0.1_1 - bitcoin<=22.0_5 bokken<=1.8_3 bomi<=0.9.11_17 burp-client<=1.4.40_13 @@ -60,11 +58,9 @@ replaces=" cgminer<=4.11.1_1 clamz<=0.5_4 clementine-spotify<=1.4.0rc1-343-gb49afcc5b - cointop<=1.6.10_1 compton-conf<=0.15.0_1 couchdb<=1.7.1_2 couchpotato<=3.0.1_3 - cpuminer<=2.5.1_1 cracklib-python<=2.9.7_1 crystal<=0.34.0_4 csync-devel<=0.50.0_5 @@ -105,8 +101,6 @@ replaces=" electron13<=13.6.7_1 electron7<=7.3.3_1 electron9<=9.4.1_1 - electrum-ltc<=3.3.8.1_4 - electrum<=4.2.0_3 emacs-gtk2<=27.2_1 empathy<=3.12.14_4 enventor<=1.0.0_2 @@ -128,7 +122,6 @@ replaces=" gens-gs<=2.16.7_2 geoip-data<=20171002_2 gespeaker<=0.8.6_3 - geth<=1.10.1_2 getmail<=5.14_2 gfbgraph<=0.2.5_1 giti<=1.0.0_1 @@ -146,7 +139,6 @@ replaces=" gnome-recipes<=2.0.4_2 gnome-shell-mousewheel-zoom<=0.8.0_2 gnome-twitch<=0.4.2_2 - go-ethereum<=1.10.1_2 go-gdm<=1.4_7 go-langserver<=2.0.0_1 go1.4-bootstrap<=20171003_2 @@ -299,8 +291,6 @@ replaces=" libbitcoin-node<=3.6.0_10 libbitcoin-protocol-devel<=3.6.0_10 libbitcoin-protocol<=3.6.0_10 - libbitcoin-secp256k1-devel<=0.1.0.13_1 - libbitcoin-secp256k1<=0.1.0.13_1 libbitcoin-server-devel<=3.6.0_10 libbitcoin-server<=3.6.0_10 libbitcoin-system-devel<=3.6.0_10 @@ -362,7 +352,6 @@ replaces=" libxnoise<=0.2.21_4 libxslt-python<=1.1.34_5 libzapojit<=0.0.3_10 - litecoin<=0.18.1_11 livewallpaper<=0.5.0_2 llvm3.9<=3.9.1_5 lprng<=3.8.C_1 @@ -380,9 +369,6 @@ replaces=" mimms<=3.2.1_4 miro-video-converter<=3.0.2_3 mirrorbits<=0.5.1_1 - monero-devel<=0.18.1.2_4 - monero-gui<=0.18.1.2_4 - monero<=0.18.1.2_4 mongroup<=0.4.1_2 mopidy-spotify<=4.0.1_5 mozjs68<=68.11.0_1 @@ -392,7 +378,6 @@ replaces=" mpir-devel<=3.0.0_1 mpir<=3.0.0_1 mutagen<=1.43.0_3 - namecoin<=0.18.1_9 nautilus-sendto<=3.8.6_2 ncdns<=0.0.2_12 newt-python<=0.52.21_5 @@ -401,7 +386,6 @@ replaces=" nvidia340-libs<=340.108_4 nvidia340-opencl<=340.108_4 nvidia340<=340.108_4 - nxt<=1.12.2_1 ocaml-lablgtk2-gnomecanvas<=2.18.10_5 ocaml-lablgtk2-gtksourceview2<=2.18.10_5 ocaml-lablgtk2-gtkspell<=2.18.10_5 @@ -572,7 +556,6 @@ replaces=" sqlite-replication<=3.32.3_2 srw<=0.7_1 steam-fonts<=1.0.0_5 - swarm<=0.5.7_2 tagainijisho<=1.0.3_1 taizen<=0.0.0.20180808_4 terminal_markdown_viewer<=1.6.3_4 diff --git a/srcpkgs/swarm/template b/srcpkgs/swarm/template new file mode 100644 index 000000000000..fcc7dc54c098 --- /dev/null +++ b/srcpkgs/swarm/template @@ -0,0 +1,13 @@ +# Template file for 'swarm' +pkgname=swarm +version=0.5.7 +revision=2 +build_style=go +go_import_path=github.com/ethersphere/swarm +go_package="${go_import_path}/cmd/swarm" +short_desc="Censorship resistant storage and communication infrastructure" +maintainer="Hoang Nguyen " +license="GPL-3.0-only" +homepage="https://swarm.ethereum.org" +distfiles="https://${go_import_path}/archive/v${version}.tar.gz" +checksum=027521fc7eec4d579406edefdd6c37b3af5009295bae24597bb26fc1f6844ce7 From b3ef19d3bc9ed223107e69143d409d3b2dded362 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:18:51 +0200 Subject: [PATCH 02/12] Electron-Cash: remove package --- srcpkgs/Electron-Cash/template | 28 ---------------------------- srcpkgs/removed-packages/template | 3 ++- 2 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 srcpkgs/Electron-Cash/template diff --git a/srcpkgs/Electron-Cash/template b/srcpkgs/Electron-Cash/template deleted file mode 100644 index 38ca3449b093..000000000000 --- a/srcpkgs/Electron-Cash/template +++ /dev/null @@ -1,28 +0,0 @@ -# Template file for 'Electron-Cash' -pkgname=Electron-Cash -version=4.2.10 -revision=3 -build_style=python3-module -hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" -depends="python3-PyQt5 python3-PyQt5-svg python3-qrcode python3-dateutil - python3-jsonrpclib python3-protobuf - python3-dnspython python3-requests python3-pysocks python3-stem - python3-ecdsa python3-pyaes python3-pycryptodomex libbitcoin-secp256k1 libzbar - python3-cryptography>=2.6 python3-pathvalidate python3-psutil" -short_desc="Lightweight Bitcoin Cash client" -maintainer="Orphaned " -license="MIT" -homepage="https://electroncash.org" -distfiles="https://github.com/Electron-Cash/Electron-Cash/releases/download/${version}/Electron-Cash-${version}.tar.gz" -checksum=2c77258c0e8ccdc42d16cd9bdbc26b47f94b92d9ba8a86d63c25a17ec832b324 -make_check=no # Depends on unpackaged SimpleWebSocketServer - -post_install() { - # TODO: build these binaries instead of having to remove pre-built ones - rm -f -- "${DESTDIR}/usr/lib/python${py3_ver}/site-packages/electroncash/tor/bin/tor" - - for lib in zbar secp256k1; do - rm -f -- "${DESTDIR}/usr/lib/python${py3_ver}/site-packages/electroncash/lib${lib}.so.0" - done - vlicense LICENCE -} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 18ad75756903..cfbdbd576413 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=1 +revision=2 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -10,6 +10,7 @@ homepage="https://voidlinux.org" replaces=" 6cord<=9.6_1 + Electron-Cash<=4.2.10_3 FeedReader<=2.11.0_2 ImageMagick6<=6.9.12.12_2 Lidarr<=0.5.0.583_1 From 4e9a571c506b7d74c10a61a1f33d9b027c898bbe Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:24:23 +0200 Subject: [PATCH 03/12] cointop: remove package unmaintained --- srcpkgs/cointop/template | 12 ------------ srcpkgs/removed-packages/template | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 srcpkgs/cointop/template diff --git a/srcpkgs/cointop/template b/srcpkgs/cointop/template deleted file mode 100644 index 343f2ad20a49..000000000000 --- a/srcpkgs/cointop/template +++ /dev/null @@ -1,12 +0,0 @@ -# Template file for 'cointop' -pkgname=cointop -version=1.6.10 -revision=1 -build_style=go -go_import_path="github.com/cointop-sh/cointop" -short_desc="Terminal based application for tracking cryptocurrencies" -maintainer="Orphaned " -license="Apache-2.0" -homepage="https://github.com/cointop-sh/cointop" -distfiles="https://github.com/cointop-sh/cointop/archive/v${version}.tar.gz" -checksum=18da0d25288deec7156ddd1d6923960968ab4adcdc917f85726b97d555d9b1b7 diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index cfbdbd576413..f801e498797c 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=2 +revision=3 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -59,6 +59,7 @@ replaces=" cgminer<=4.11.1_1 clamz<=0.5_4 clementine-spotify<=1.4.0rc1-343-gb49afcc5b + cointop<=1.6.10_1 compton-conf<=0.15.0_1 couchdb<=1.7.1_2 couchpotato<=3.0.1_3 From e7ff5847902b389c3fdea742ad6714ae5b5e8df6 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:28:06 +0200 Subject: [PATCH 04/12] cpuminer: remove package unmaintained --- srcpkgs/cpuminer/template | 13 ------------- srcpkgs/removed-packages/template | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 srcpkgs/cpuminer/template diff --git a/srcpkgs/cpuminer/template b/srcpkgs/cpuminer/template deleted file mode 100644 index 8afb7a5c4877..000000000000 --- a/srcpkgs/cpuminer/template +++ /dev/null @@ -1,13 +0,0 @@ -# Template file for 'cpuminer' -pkgname=cpuminer -version=2.5.1 -revision=1 -build_style=gnu-configure -hostmakedepends="pkg-config yasm" -makedepends="libcurl-devel ncurses-devel jansson-devel" -short_desc="Multi-threaded CPU miner for Litecoin and Bitcoin" -maintainer="Orphaned " -license="GPL-2.0-or-later" -homepage="https://github.com/pooler/cpuminer" -distfiles="${SOURCEFORGE_SITE}/${pkgname}/pooler-${pkgname}-${version}.tar.gz" -checksum=337f04fdb32f34b85819d09d59f6d3cf62991ac2e656735c43661dd3d4c57631 diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index f801e498797c..a64212735495 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=3 +revision=4 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -63,6 +63,7 @@ replaces=" compton-conf<=0.15.0_1 couchdb<=1.7.1_2 couchpotato<=3.0.1_3 + cpuminer<=2.5.1_1 cracklib-python<=2.9.7_1 crystal<=0.34.0_4 csync-devel<=0.50.0_5 From 130504ac4e71632d555875c3ff4c9bebbbe715ae Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:46:25 +0200 Subject: [PATCH 05/12] namecoin: remove package unmaintained --- srcpkgs/namecoin/patches/boost-1.80.patch | 57 ---------------- srcpkgs/namecoin/patches/fix-include.patch | 77 ---------------------- srcpkgs/namecoin/template | 32 --------- srcpkgs/namecoin/update | 1 - srcpkgs/removed-packages/template | 3 +- 5 files changed, 2 insertions(+), 168 deletions(-) delete mode 100644 srcpkgs/namecoin/patches/boost-1.80.patch delete mode 100644 srcpkgs/namecoin/patches/fix-include.patch delete mode 100644 srcpkgs/namecoin/template delete mode 100644 srcpkgs/namecoin/update diff --git a/srcpkgs/namecoin/patches/boost-1.80.patch b/srcpkgs/namecoin/patches/boost-1.80.patch deleted file mode 100644 index 5a250af68487..000000000000 --- a/srcpkgs/namecoin/patches/boost-1.80.patch +++ /dev/null @@ -1,57 +0,0 @@ ---- a/src/names/main.cpp -+++ b/src/names/main.cpp -@@ -365,12 +365,14 @@ ConflictTrackerNotifyEntryRemoved (CName - CNameConflictTracker::CNameConflictTracker (CTxMemPool &p) - : txNameConflicts(std::make_shared>()), pool(p) - { -+ using namespace boost::placeholders; - pool.NotifyEntryRemoved.connect ( - boost::bind (&ConflictTrackerNotifyEntryRemoved, this, _1, _2)); - } - - CNameConflictTracker::~CNameConflictTracker () - { -+ using namespace boost::placeholders; - pool.NotifyEntryRemoved.disconnect ( - boost::bind (&ConflictTrackerNotifyEntryRemoved, this, _1, _2)); - } ---- a/src/wallet/test/init_test_fixture.cpp -+++ b/src/wallet/test/init_test_fixture.cpp -@@ -29,7 +29,7 @@ InitWalletDirTestingSetup::InitWalletDir - fs::create_directories(m_walletdir_path_cases["default"]); - fs::create_directories(m_walletdir_path_cases["custom"]); - fs::create_directories(m_walletdir_path_cases["relative"]); -- std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR); -+ std::ofstream f(BOOST_FILESYSTEM_C_STR(m_walletdir_path_cases["file"])); - f.close(); - } - -@@ -41,4 +41,4 @@ InitWalletDirTestingSetup::~InitWalletDi - void InitWalletDirTestingSetup::SetWalletDir(const fs::path& walletdir_path) - { - gArgs.ForceSetArg("-walletdir", walletdir_path.string()); --} -\ No newline at end of file -+} ---- a/src/wallet/test/db_tests.cpp -+++ b/src/wallet/test/db_tests.cpp -@@ -18,7 +18,7 @@ BOOST_AUTO_TEST_CASE(getwalletenv_file) - std::string test_name = "test_name.dat"; - fs::path datadir = SetDataDir("tempdir"); - fs::path file_path = datadir / test_name; -- std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR); -+ std::ofstream f(BOOST_FILESYSTEM_C_STR(file_path)); - f.close(); - - std::string filename; ---- a/src/fs.cpp -+++ b/src/fs.cpp -@@ -206,7 +206,7 @@ void ofstream::close() - } - #else // __GLIBCXX__ - --static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t), -+static_assert(sizeof(BOOST_FILESYSTEM_C_STR(*fs::path())) == sizeof(wchar_t), - "Warning: This build is using boost::filesystem ofstream and ifstream " - "implementations which will fail to open paths containing multibyte " - "characters. You should delete this static_assert to ignore this warning, " diff --git a/srcpkgs/namecoin/patches/fix-include.patch b/srcpkgs/namecoin/patches/fix-include.patch deleted file mode 100644 index b923004ffa7a..000000000000 --- a/srcpkgs/namecoin/patches/fix-include.patch +++ /dev/null @@ -1,77 +0,0 @@ -Index: namecoin-0.18.1/src/bench/block_assemble.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/bench/block_assemble.cpp -+++ namecoin-0.18.1/src/bench/block_assemble.cpp -@@ -20,7 +20,9 @@ - - #include - -+#include - #include -+#include - #include - - static std::shared_ptr PrepareBlock(const CScript& coinbase_scriptPubKey) -Index: namecoin-0.18.1/src/net_processing.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/net_processing.cpp -+++ namecoin-0.18.1/src/net_processing.cpp -@@ -30,7 +30,9 @@ - #include - #include - -+#include - #include -+#include - - #if defined(NDEBUG) - # error "Bitcoin cannot be compiled without assertions." -Index: namecoin-0.18.1/src/qt/sendcoinsdialog.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/qt/sendcoinsdialog.cpp -+++ namecoin-0.18.1/src/qt/sendcoinsdialog.cpp -@@ -32,6 +32,8 @@ - #include - #include - -+#include -+ - static const std::array confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} }; - int getConfTargetForIndex(int index) { - if (index+1 > static_cast(confTargets.size())) { -Index: namecoin-0.18.1/src/qt/trafficgraphwidget.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/qt/trafficgraphwidget.cpp -+++ namecoin-0.18.1/src/qt/trafficgraphwidget.cpp -@@ -6,6 +6,7 @@ - #include - #include - -+#include - #include - #include - #include -Index: namecoin-0.18.1/src/httpserver.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/httpserver.cpp -+++ namecoin-0.18.1/src/httpserver.cpp -@@ -18,6 +18,7 @@ - #include - #include - #include -+#include - - #include - #include -Index: namecoin-0.18.1/src/test/cuckoocache_tests.cpp -=================================================================== ---- namecoin-0.18.1.orig/src/test/cuckoocache_tests.cpp -+++ namecoin-0.18.1/src/test/cuckoocache_tests.cpp -@@ -7,6 +7,7 @@ - #include - #include - #include -+#include - - /** Test Suite for CuckooCache - * diff --git a/srcpkgs/namecoin/template b/srcpkgs/namecoin/template deleted file mode 100644 index 5a77aabf8e5a..000000000000 --- a/srcpkgs/namecoin/template +++ /dev/null @@ -1,32 +0,0 @@ -# Template file for 'namecoin' -pkgname=namecoin -version=0.18.1 -revision=9 -build_style=gnu-configure -configure_args="--with-incompatible-bdb --disable-static - --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr" -hostmakedepends="pkg-config yasm automake libtool which" -makedepends="libevent-devel db-devel protobuf-devel boost-devel - miniupnpc-devel qrencode-devel" -short_desc="Distributed key/value database" -maintainer="ananteris " -license="MIT" -homepage="https://namecoin.org" -distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz" -checksum=7117a0a0b8f48d49e4abf3577660f8a4eb9a4dea753281d19d9470725fc75d8e - -if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - makedepends+=" libatomic-devel" - LDFLAGS+=" -latomic" -fi - -pre_configure() { - ./autogen.sh - sed -i src/compat.h -e "s;;;" -} - -post_install() { - vlicense COPYING - # They don't bother to rename from bitcoin - rm -rf $DESTDIR/usr/share/man/man1 -} diff --git a/srcpkgs/namecoin/update b/srcpkgs/namecoin/update deleted file mode 100644 index 10eae03a7eb4..000000000000 --- a/srcpkgs/namecoin/update +++ /dev/null @@ -1 +0,0 @@ -pattern='/archive/refs/tags/(nc|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index a64212735495..3c2df798b9ff 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=4 +revision=5 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -381,6 +381,7 @@ replaces=" mpir-devel<=3.0.0_1 mpir<=3.0.0_1 mutagen<=1.43.0_3 + namecoin<=0.18.1_9 nautilus-sendto<=3.8.6_2 ncdns<=0.0.2_12 newt-python<=0.52.21_5 From 9f4b9179717e8cd2e227299a3b725e2507e3b1b1 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:47:29 +0200 Subject: [PATCH 06/12] nxt: remove package --- srcpkgs/nxt/files/bin/nxt | 2 -- srcpkgs/nxt/files/bin/nxt-tor | 2 -- srcpkgs/nxt/files/nxt-tor/run | 4 ---- srcpkgs/nxt/files/nxt/run | 3 --- srcpkgs/nxt/template | 25 ------------------------- srcpkgs/removed-packages/template | 3 ++- 6 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 srcpkgs/nxt/files/bin/nxt delete mode 100644 srcpkgs/nxt/files/bin/nxt-tor delete mode 100644 srcpkgs/nxt/files/nxt-tor/run delete mode 100644 srcpkgs/nxt/files/nxt/run delete mode 100644 srcpkgs/nxt/template diff --git a/srcpkgs/nxt/files/bin/nxt b/srcpkgs/nxt/files/bin/nxt deleted file mode 100644 index efc4319206d2..000000000000 --- a/srcpkgs/nxt/files/bin/nxt +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -cd /usr/lib/nxt && bash run.sh diff --git a/srcpkgs/nxt/files/bin/nxt-tor b/srcpkgs/nxt/files/bin/nxt-tor deleted file mode 100644 index 4b4104ceca97..000000000000 --- a/srcpkgs/nxt/files/bin/nxt-tor +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -cd /usr/lib/nxt && bash run-tor.sh diff --git a/srcpkgs/nxt/files/nxt-tor/run b/srcpkgs/nxt/files/nxt-tor/run deleted file mode 100644 index c14f448c4950..000000000000 --- a/srcpkgs/nxt/files/nxt-tor/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -exec 2>&1 -sv check tor >/dev/null || exit 1 -exec nxt-tor > /dev/null diff --git a/srcpkgs/nxt/files/nxt/run b/srcpkgs/nxt/files/nxt/run deleted file mode 100644 index a3479cc97b11..000000000000 --- a/srcpkgs/nxt/files/nxt/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -exec 2>&1 -exec nxt > /dev/null diff --git a/srcpkgs/nxt/template b/srcpkgs/nxt/template deleted file mode 100644 index fb6f3eb9f121..000000000000 --- a/srcpkgs/nxt/template +++ /dev/null @@ -1,25 +0,0 @@ -# Template file for 'nxt' -pkgname=nxt -version=1.12.2 -revision=1 -hostmakedepends="unzip" -depends="virtual?java-runtime" -short_desc="Client for the NXT cryptocurrency" -maintainer="Fabio Krapohl " -license="custom:Jelurida Public License 1.1" -homepage="https://nxt.org" -distfiles="https://bitbucket.org/Jelurida/${pkgname}/downloads/${pkgname}-client-${version}.zip" -checksum=83689f6d85e59be44920328d99aa934bb8998f4b5c7ea8088c83ab4503b49a42 - -do_install() { - vbin ${FILESDIR}/bin/${pkgname} - vbin ${FILESDIR}/bin/${pkgname}-tor - - vsv ${pkgname} - vsv ${pkgname}-tor - - vlicense LICENSE.txt - - vmkdir usr/lib/${pkgname} - vcopy . usr/lib/${pkgname} -} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 3c2df798b9ff..e2e85d6e36eb 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=5 +revision=6 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -390,6 +390,7 @@ replaces=" nvidia340-libs<=340.108_4 nvidia340-opencl<=340.108_4 nvidia340<=340.108_4 + nxt<=1.12.2_1 ocaml-lablgtk2-gnomecanvas<=2.18.10_5 ocaml-lablgtk2-gtksourceview2<=2.18.10_5 ocaml-lablgtk2-gtkspell<=2.18.10_5 From 024bd44f05e083bda9cab5b4f81e9187d7bc4b7f Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 22:52:18 +0200 Subject: [PATCH 07/12] swarm: remove package unmaintained --- srcpkgs/removed-packages/template | 3 ++- srcpkgs/swarm/template | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 srcpkgs/swarm/template diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index e2e85d6e36eb..e32b8d45456d 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=6 +revision=7 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -561,6 +561,7 @@ replaces=" sqlite-replication<=3.32.3_2 srw<=0.7_1 steam-fonts<=1.0.0_5 + swarm<=0.5.7_2 tagainijisho<=1.0.3_1 taizen<=0.0.0.20180808_4 terminal_markdown_viewer<=1.6.3_4 diff --git a/srcpkgs/swarm/template b/srcpkgs/swarm/template deleted file mode 100644 index fcc7dc54c098..000000000000 --- a/srcpkgs/swarm/template +++ /dev/null @@ -1,13 +0,0 @@ -# Template file for 'swarm' -pkgname=swarm -version=0.5.7 -revision=2 -build_style=go -go_import_path=github.com/ethersphere/swarm -go_package="${go_import_path}/cmd/swarm" -short_desc="Censorship resistant storage and communication infrastructure" -maintainer="Hoang Nguyen " -license="GPL-3.0-only" -homepage="https://swarm.ethereum.org" -distfiles="https://${go_import_path}/archive/v${version}.tar.gz" -checksum=027521fc7eec4d579406edefdd6c37b3af5009295bae24597bb26fc1f6844ce7 From 4bda4b29e50de8d358a6aae3568a382747f0c7e0 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 23:39:38 +0200 Subject: [PATCH 08/12] litecoin: remove package --- srcpkgs/litecoin/patches/fix-include.patch | 61 ---------------------- srcpkgs/litecoin/template | 34 ------------ srcpkgs/removed-packages/template | 3 +- 3 files changed, 2 insertions(+), 96 deletions(-) delete mode 100644 srcpkgs/litecoin/patches/fix-include.patch delete mode 100644 srcpkgs/litecoin/template diff --git a/srcpkgs/litecoin/patches/fix-include.patch b/srcpkgs/litecoin/patches/fix-include.patch deleted file mode 100644 index b540db326b87..000000000000 --- a/srcpkgs/litecoin/patches/fix-include.patch +++ /dev/null @@ -1,61 +0,0 @@ -Index: litecoin-0.18.1/src/bench/block_assemble.cpp -=================================================================== ---- litecoin-0.18.1.orig/src/bench/block_assemble.cpp -+++ litecoin-0.18.1/src/bench/block_assemble.cpp -@@ -20,7 +20,9 @@ - - #include - -+#include - #include -+#include - #include - - static std::shared_ptr PrepareBlock(const CScript& coinbase_scriptPubKey) -Index: litecoin-0.18.1/src/net_processing.cpp -=================================================================== ---- litecoin-0.18.1.orig/src/net_processing.cpp -+++ litecoin-0.18.1/src/net_processing.cpp -@@ -30,7 +30,9 @@ - #include - #include - -+#include - #include -+#include - - #if defined(NDEBUG) - # error "Litecoin cannot be compiled without assertions." -Index: litecoin-0.18.1/src/qt/sendcoinsdialog.cpp -=================================================================== ---- litecoin-0.18.1.orig/src/qt/sendcoinsdialog.cpp -+++ litecoin-0.18.1/src/qt/sendcoinsdialog.cpp -@@ -32,6 +32,8 @@ - #include - #include - -+#include -+ - static const std::array confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} }; - int getConfTargetForIndex(int index) { - if (index+1 > static_cast(confTargets.size())) { ---- a/src/httpserver.cpp 2019-04-08 09:28:20.000000000 +0200 -+++ b/src/httpserver.cpp 2019-04-08 09:28:20.000000000 +0200 -@@ -17,6 +17,7 @@ - #include - #include - #include -+#include - - #include - #include ---- a/src/qt/trafficgraphwidget.cpp 2019-04-08 09:28:20.000000000 +0200 -+++ b/src/qt/trafficgraphwidget.cpp 2019-04-08 09:28:20.000000000 +0200 -@@ -6,6 +6,7 @@ - #include - #include - -+#include - #include - #include - #include diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template deleted file mode 100644 index a7ed18603c20..000000000000 --- a/srcpkgs/litecoin/template +++ /dev/null @@ -1,34 +0,0 @@ -# Template file for 'litecoin' -pkgname=litecoin -version=0.18.1 -revision=11 -build_style=gnu-configure -configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static - --disable-tests --with-openssl" -hostmakedepends="automake libtool pkg-config yasm protobuf which" -makedepends="libatomic-devel zlib-devel db-devel openssl-devel boost-devel - qt5-tools-devel miniupnpc-devel protobuf-devel libevent-devel" -short_desc="Peer-to-peer Internet currency based on scrypt cryptography" -maintainer="Orphaned " -license="MIT" -homepage="http://www.litecoin.org/" -distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz" -checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f - -if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" qt5-host-tools protobuf" - configure_args+=" --with-boost=${XBPS_CROSS_BASE}" -fi - -pre_configure() { - NOCONFIGURE=1 ./autogen.sh -} - -post_install() { - rm -rf ${DESTDIR}/usr/include - vsconf share/examples/litecoin.conf - vman doc/man/litecoind.1 litecoind.1 - vlicense COPYING - vmkdir usr/share/bash-completion/completions/${pkgname} - vcopy contrib/*.bash-completion usr/share/bash-completion/completions/${pkgname} -} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index e32b8d45456d..7f3991ede123 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=7 +revision=8 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -355,6 +355,7 @@ replaces=" libxnoise<=0.2.21_4 libxslt-python<=1.1.34_5 libzapojit<=0.0.3_10 + litecoin<=0.18.1_11 livewallpaper<=0.5.0_2 llvm3.9<=3.9.1_5 lprng<=3.8.C_1 From c6d5c5355e70822c265f48fb7263ea278fb51453 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 23:41:54 +0200 Subject: [PATCH 09/12] monero-gui: remove package --- srcpkgs/monero-gui/INSTALL.msg | 4 -- srcpkgs/monero-gui/files | 1 - srcpkgs/monero-gui/template | 106 ------------------------------ srcpkgs/monero-gui/update | 2 - srcpkgs/removed-packages/template | 3 +- 5 files changed, 2 insertions(+), 114 deletions(-) delete mode 100644 srcpkgs/monero-gui/INSTALL.msg delete mode 120000 srcpkgs/monero-gui/files delete mode 100644 srcpkgs/monero-gui/template delete mode 100644 srcpkgs/monero-gui/update diff --git a/srcpkgs/monero-gui/INSTALL.msg b/srcpkgs/monero-gui/INSTALL.msg deleted file mode 100644 index 06ac937bb78f..000000000000 --- a/srcpkgs/monero-gui/INSTALL.msg +++ /dev/null @@ -1,4 +0,0 @@ -For monero-gui to connect to the network, it needs access to a monero node. -You may either enter a remote node in the application itself or provide -a locally running node for it to work with. The necessary daemon software -to run a local node is available in the 'monero' package. diff --git a/srcpkgs/monero-gui/files b/srcpkgs/monero-gui/files deleted file mode 120000 index 0dc85055cb8b..000000000000 --- a/srcpkgs/monero-gui/files +++ /dev/null @@ -1 +0,0 @@ -../monero/patches \ No newline at end of file diff --git a/srcpkgs/monero-gui/template b/srcpkgs/monero-gui/template deleted file mode 100644 index 0f4e06d5c55f..000000000000 --- a/srcpkgs/monero-gui/template +++ /dev/null @@ -1,106 +0,0 @@ -# Template file for 'monero-gui' -pkgname=monero-gui -version=0.18.1.2 -revision=4 -_monero_version=0.18.1.2 -# the revision monero uses as a submodule for the specific version -_randomx_gitrev="261d58c77fc5547c0aa7fdfeb58421ba7e0e6e1c" -_rapidjson_gitrev="129d19ba7f496df5e33658527a7158c79b99c21c" -_supercop_gitrev="633500ad8c8759995049ccd022107d1fa8a1bbc9" -_quirc_gitrev="7e7ab596e4d0988faf1c12ae89c354b114181c40" -build_style=cmake -configure_args="-DVERSION_IS_RELEASE=true -DQt5_LRELEASE_EXECUTABLE=/usr/bin/lrelease" -hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel - qt5-svg-devel qtchooser" -makedepends="boost-devel libunwind-devel miniupnpc-devel -qt5-declarative-devel readline-devel unbound-devel libsodium-devel hidapi-devel - qt5-svg-devel libgcrypt-devel zeromq-devel" -depends="qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2 qt5-xmlpatterns" -short_desc="GUI for the core Monero implementation" -maintainer="Orphaned " -license="BSD-3-Clause" -homepage="https://getmonero.org" -distfiles="https://github.com/monero-project/monero-gui/archive/v${version}.tar.gz - https://github.com/monero-project/monero/archive/v${_monero_version}.tar.gz>monero-${_monero_version}.tar.gz - https://github.com/tevador/RandomX/archive/${_randomx_gitrev}.tar.gz>RandomX-${_randomx_gitrev}.tar.gz - https://github.com/Tencent/rapidjson/archive/${_rapidjson_gitrev}.tar.gz>rapidjson-${_rapidjson_gitrev}.tar.gz - https://github.com/monero-project/supercop/archive/${_supercop_gitrev}.tar.gz>supercop-${_supercop_gitrev}.tar.gz - https://github.com/dlbeer/quirc/archive/${_quirc_gitrev}.tar.gz>quirc-${_quirc_gitrev}.tar.gz" -checksum="b5494830e917231aa7515992c69bcbb495f532fefde42530b265f9fd590e1702 - f7fec9c7456e22b70cb86a34dd9192c948161155fdbdfb8505f8ea95c357a38e - 4aeadafe16810320fd492491e39d03fb6028a2db35916aba0fef96c716aba46f - 44b007d419ac21b6affec58991e865ee572346ead19b73cf1c3e4e11c7a81273 - b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7 - c8366aecb6ba48ec50a7e579a4fa18eb55c3c4be7d3efb2a83726157977f4ca6" -skip_extraction="monero-${version}.tar.gz rapidjson-${_rapidjson_gitrev}.tar.gz supercop-${_supercop_gitrev}.tar.gz RandomX-${_randomx_gitrev}.tar.gz quirc-${_quirc_gitrev}.tar.gz" - -if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - makedepends+=" libatomic-devel" - CFLAGS+=" -latomic" -fi - -case "$XBPS_TARGET_MACHINE" in - *-musl) configure_args+=" -DSTACK_TRACE=OFF" -esac - -case "$XBPS_TARGET_MACHINE" in - armv7*) configure_args+=" -DARCH=armv7" ;; - armv6*) configure_args+=" -DARCH=armv6" ;; - armv5*) configure_args+=" -DARCH=armv5" ;; - aarch64*) configure_args+=" -DARCH=aarch64" ;; - mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;; - ppc64le*) configure_args+=" -DARCH=ppc64le" ;; - ppc64*) configure_args+=" -DARCH=ppc64" ;; - ppc*) configure_args+=" -DARCH=ppc" ;; - *) configure_args+=" -DARCH=default" ;; -esac - -post_extract() { - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/monero-${_monero_version}.tar.gz --strip-components 1 -C monero - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/rapidjson-${_rapidjson_gitrev}.tar.gz --strip-components 1 -C monero/external/rapidjson - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/supercop-${_supercop_gitrev}.tar.gz --strip-components 1 -C monero/external/supercop - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/RandomX-${_randomx_gitrev}.tar.gz --strip-components 1 -C monero/external/randomx - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/quirc-${_quirc_gitrev}.tar.gz --strip-components 1 -C external/quirc -} - -post_patch() { - cd monero - for f in "${FILESDIR}"/*.patch; do - echo "Applying $f" - patch -Np1 -i "$f" - done -} - -pre_configure() { - echo "var GUI_VERSION = \"${version}\"" > version.js - echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js - if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - vsed -i monero/CMakeLists.txt -e \ - '/if(ANDROID)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' - fi -} - -pre_build() { - cd src/zxcvbn-c - cmake . - cd ../.. - if [ "$CROSS_BUILD" ]; then - # The dictgen binary is executed during the build to generate code - # but is not included in the binary package. It thus needs to be - # built for the host - CXX=${CXX_host} CXXFLAGS="${XBPS_CXXFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ - make ${makejobs} -C src/zxcvbn-c - # The generate_translations_header binary is executed during the build - # but is not included in the binary package. It thus needs to be - # built for the host - CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ - ninja -C build ${makejobs} generate_translations_header - - fi - make ${makejobs} -C src/zxcvbn-c -} - -do_install() { - vbin build/bin/monero-wallet-gui - vlicense LICENSE -} diff --git a/srcpkgs/monero-gui/update b/srcpkgs/monero-gui/update deleted file mode 100644 index 5254358a1411..000000000000 --- a/srcpkgs/monero-gui/update +++ /dev/null @@ -1,2 +0,0 @@ -site="https://github.com/monero-project/monero-gui/tags" -pattern='/archive/refs/tags/(v?|\Qmonero-gui\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 7f3991ede123..c592cc0aa862 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=8 +revision=9 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -373,6 +373,7 @@ replaces=" mimms<=3.2.1_4 miro-video-converter<=3.0.2_3 mirrorbits<=0.5.1_1 + monero-gui<=0.18.1.2_4 mongroup<=0.4.1_2 mopidy-spotify<=4.0.1_5 mozjs68<=68.11.0_1 From 7df87dbcf733494223bc2270827ea0aa56434f63 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 23:51:06 +0200 Subject: [PATCH 10/12] monero: remove package --- srcpkgs/monero-devel | 1 - srcpkgs/monero/files/monerod/run | 3 - srcpkgs/monero/patches/easylogging.patch | 11 -- srcpkgs/monero/patches/fix-include.patch | 29 ----- srcpkgs/monero/patches/march_cross.patch | 13 --- srcpkgs/monero/patches/system-miniupnpc.patch | 106 ------------------ srcpkgs/monero/template | 94 ---------------- srcpkgs/monero/update | 2 - srcpkgs/removed-packages/template | 4 +- 9 files changed, 3 insertions(+), 260 deletions(-) delete mode 120000 srcpkgs/monero-devel delete mode 100644 srcpkgs/monero/files/monerod/run delete mode 100644 srcpkgs/monero/patches/easylogging.patch delete mode 100644 srcpkgs/monero/patches/fix-include.patch delete mode 100644 srcpkgs/monero/patches/march_cross.patch delete mode 100644 srcpkgs/monero/patches/system-miniupnpc.patch delete mode 100644 srcpkgs/monero/template delete mode 100644 srcpkgs/monero/update diff --git a/srcpkgs/monero-devel b/srcpkgs/monero-devel deleted file mode 120000 index 772084db0203..000000000000 --- a/srcpkgs/monero-devel +++ /dev/null @@ -1 +0,0 @@ -monero \ No newline at end of file diff --git a/srcpkgs/monero/files/monerod/run b/srcpkgs/monero/files/monerod/run deleted file mode 100644 index f485e63659fa..000000000000 --- a/srcpkgs/monero/files/monerod/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -exec 2>&1 -exec chpst -u monero:monero /usr/bin/monerod --non-interactive --config-file /etc/monerod.conf diff --git a/srcpkgs/monero/patches/easylogging.patch b/srcpkgs/monero/patches/easylogging.patch deleted file mode 100644 index 5e611672aa71..000000000000 --- a/srcpkgs/monero/patches/easylogging.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/external/easylogging++/easylogging++.h 2020-05-23 09:03:47.678880438 +0200 -+++ b/external/easylogging++/easylogging++.h 2020-05-23 09:04:31.757371549 +0200 -@@ -221,7 +221,7 @@ - # define ELPP_INTERNAL_INFO(lvl, msg) - #endif // (defined(ELPP_DEBUG_INFO)) - #if (defined(ELPP_FEATURE_ALL)) || (defined(ELPP_FEATURE_CRASH_LOG)) --# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN) -+# if ( __has_include() && ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID && !ELPP_OS_EMSCRIPTEN) - # define ELPP_STACKTRACE 1 - # else - # define ELPP_STACKTRACE 0 diff --git a/srcpkgs/monero/patches/fix-include.patch b/srcpkgs/monero/patches/fix-include.patch deleted file mode 100644 index f5ba9fa25d08..000000000000 --- a/srcpkgs/monero/patches/fix-include.patch +++ /dev/null @@ -1,29 +0,0 @@ -Index: monero-0.18.1.2/src/common/dns_utils.cpp -=================================================================== ---- monero-0.18.1.2.orig/src/common/dns_utils.cpp -+++ monero-0.18.1.2/src/common/dns_utils.cpp -@@ -38,6 +38,12 @@ - #include - #include - #include -+ -+#include -+#include -+#include -+#include -+ - using namespace epee; - - #undef MONERO_DEFAULT_LOG_CATEGORY -Index: monero-0.18.1.2/src/common/threadpool.h -=================================================================== ---- monero-0.18.1.2.orig/src/common/threadpool.h -+++ monero-0.18.1.2/src/common/threadpool.h -@@ -31,6 +31,7 @@ - #include - #include - #include -+#include - #include - #include - #include diff --git a/srcpkgs/monero/patches/march_cross.patch b/srcpkgs/monero/patches/march_cross.patch deleted file mode 100644 index 20c3ae90c477..000000000000 --- a/srcpkgs/monero/patches/march_cross.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git CMakeLists.txt CMakeLists.txt -index 953707657..394e8cb32 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -581,7 +581,7 @@ else() - set_default_arch() - endif() - message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}") -- if(ARCH STREQUAL "default") -+ if(ARCH STREQUAL "default" OR CMAKE_CROSSCOMPILING) - set(ARCH_FLAG "") - elseif(PPC64LE) - set(ARCH_FLAG "-mcpu=power8") diff --git a/srcpkgs/monero/patches/system-miniupnpc.patch b/srcpkgs/monero/patches/system-miniupnpc.patch deleted file mode 100644 index 6da9a92d491e..000000000000 --- a/srcpkgs/monero/patches/system-miniupnpc.patch +++ /dev/null @@ -1,106 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index b05c087cf..4f1a20101 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -676,6 +676,14 @@ ExternalProject_Add(generate_translations_header - include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations") - add_subdirectory(external) - -+# Final setup for miniupnpc -+if(UPNP_STATIC OR IOS) -+ add_definitions("-DUPNP_STATIC") -+else() -+ add_definitions("-DUPNP_DYNAMIC") -+ include_directories(${UPNP_INCLUDE}) -+endif() -+ - # Final setup for libunbound - include_directories(${UNBOUND_INCLUDE_DIR}) - -diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt -index 5b7f69a56..00ef3f43d 100644 ---- a/external/CMakeLists.txt -+++ b/external/CMakeLists.txt -@@ -34,24 +34,47 @@ - # We always compile if we are building statically to reduce static dependency issues... - # ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with - # others. -+if(NOT IOS) -+ find_package(Miniupnpc QUIET) -+endif() - --find_package(Miniupnpc REQUIRED) -- --message(STATUS "Using in-tree miniupnpc") - set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE) --add_subdirectory(miniupnp/miniupnpc) --set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") --set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON) --if(MSVC) -- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") --elseif(NOT MSVC) -- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") -+# If we have the correct shared version and we're not building static, use it -+if(STATIC OR IOS) -+ set(USE_SHARED_MINIUPNPC false) -+elseif(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER) -+ set(USE_SHARED_MINIUPNPC true) - endif() -+ -+ -+if(USE_SHARED_MINIUPNPC) -+ message(STATUS "Using shared miniupnpc found at ${MINIUPNP_INCLUDE_DIR}") -+ -+ set(UPNP_STATIC false PARENT_SCOPE) -+ set(UPNP_INCLUDE ${MINIUPNP_INCLUDE_DIR} PARENT_SCOPE) -+ set(UPNP_LIBRARIES ${MINIUPNP_LIBRARY} PARENT_SCOPE) -+else() -+ if(STATIC) -+ message(STATUS "Using miniupnpc from local source tree for static build") -+ else() -+ message(STATUS "Using miniupnpc from local source tree (/external/miniupnp/miniupnpc)") -+ endif() -+ add_subdirectory(miniupnp/miniupnpc) -+ -+ set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external") -+ if(MSVC) -+ set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") -+ elseif(NOT MSVC) -+ set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") -+ endif() -+ - if(CMAKE_SYSTEM_NAME MATCHES "NetBSD") - set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE") - endif() - --set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE) -+ set(UPNP_STATIC true PARENT_SCOPE) -+ set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE) -+endif() - - find_package(Unbound) - -diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl -index f33ce977d..87d23a1e1 100644 ---- a/src/p2p/net_node.inl -+++ b/src/p2p/net_node.inl -@@ -60,9 +60,16 @@ - #include "cryptonote_core/cryptonote_core.h" - #include "net/parse.h" - --#include --#include --#include -+// We have to look for miniupnpc headers in different places, dependent on if its compiled or external -+#ifdef UPNP_STATIC -+ #include -+ #include -+ #include -+#else -+ #include "miniupnpc.h" -+ #include "upnpcommands.h" -+ #include "upnperrors.h" -+#endif - - #undef MONERO_DEFAULT_LOG_CATEGORY - #define MONERO_DEFAULT_LOG_CATEGORY "net.p2p" diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template deleted file mode 100644 index 93a3c82fe4d6..000000000000 --- a/srcpkgs/monero/template +++ /dev/null @@ -1,94 +0,0 @@ -# Template file for 'monero' -pkgname=monero -version=0.18.1.2 -revision=4 -# the revision monero uses as a submodule for the specific version -_randomx_gitrev="261d58c77fc5547c0aa7fdfeb58421ba7e0e6e1c" -_rapidjson_gitrev="129d19ba7f496df5e33658527a7158c79b99c21c" -_supercop_gitrev="633500ad8c8759995049ccd022107d1fa8a1bbc9" -build_style=cmake -conf_files="/etc/monerod.conf" -make_dirs=" - /var/lib/monero 0750 monero monero - /var/log/monero 0755 monero monero" -hostmakedepends="pkg-config" -makedepends="openssl-devel boost-devel libldns-devel libunwind-devel - readline-devel unbound-devel miniupnpc-devel expat-devel - cppzmq czmq-devel libsodium-devel" -short_desc="Private, secure, untraceable, decentralised digital currency" -maintainer="Kevin Crumb " -license="BSD-3-Clause" -homepage="https://getmonero.org" -distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz - https://github.com/tevador/RandomX/archive/${_randomx_gitrev}.tar.gz>RandomX-${_randomx_gitrev}.tar.gz - https://github.com/Tencent/rapidjson/archive/${_rapidjson_gitrev}.tar.gz>rapidjson-${_rapidjson_gitrev}.tar.gz - https://github.com/monero-project/supercop/archive/${_supercop_gitrev}.tar.gz>supercop-${_supercop_gitrev}.tar.gz" -checksum="f7fec9c7456e22b70cb86a34dd9192c948161155fdbdfb8505f8ea95c357a38e - 4aeadafe16810320fd492491e39d03fb6028a2db35916aba0fef96c716aba46f - 44b007d419ac21b6affec58991e865ee572346ead19b73cf1c3e4e11c7a81273 - b973b9d8269ec4d97c3c3443f0dad96d09f72b1b30e616e0947557adbdbb03f7" -skip_extraction="RandomX-${_randomx_gitrev}.tar.gz rapidjson-${_rapidjson_gitrev}.tar.gz supercop-${_supercop_gitrev}.tar.gz" -system_accounts="monero" - -case "$XBPS_TARGET_MACHINE" in - armv7*) configure_args+=" -DARCH=armv7" ;; - armv6*) configure_args+=" -DARCH=armv6" ;; - armv5*) configure_args+=" -DARCH=armv5" ;; - aarch64*) configure_args+=" -DARCH=aarch64" ;; - mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON" ;; - ppc64le*) configure_args+=" -DARCH=ppc64le" ;; - ppc64*) configure_args+=" -DARCH=ppc64" ;; - ppc*) configure_args+=" -DARCH=ppc" ;; - *) configure_args+=" -DARCH=default" ;; -esac - -if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - makedepends+=" libatomic-devel" - CFLAGS+=" -latomic" -fi - -case "$XBPS_TARGET_MACHINE" in - *-musl) configure_args+=" -DSTACK_TRACE=OFF" -esac - -post_extract() { - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/RandomX-${_randomx_gitrev}.tar.gz \ - --strip-components=1 -C ${wrksrc}/external/randomx - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/rapidjson-${_rapidjson_gitrev}.tar.gz \ - --strip-components=1 -C ${wrksrc}/external/rapidjson - bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/supercop-${_supercop_gitrev}.tar.gz \ - --strip-components=1 -C ${wrksrc}/external/supercop -} - -pre_configure() { - if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - sed -i CMakeLists.txt -e \ - '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' - fi -} - -pre_build() { - if [ "$CROSS_BUILD" ]; then - # The generate_translations_header binary is executed during the build - # but is not included in the binary package. It thus needs to be - # built for the host - CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \ - ninja -C build ${makejobs} generate_translations_header - fi -} - -post_install() { - vlicense LICENSE - vbin build/bin/monero-blockchain-import - vbin build/bin/monero-blockchain-export - vinstall utils/conf/monerod.conf 644 etc - vsv monerod -} - -monero-devel_package() { - short_desc+=" - development files" - pkg_install() { - vlicense LICENSE - vmove usr/include - } -} diff --git a/srcpkgs/monero/update b/srcpkgs/monero/update deleted file mode 100644 index 2f68aaf68b71..000000000000 --- a/srcpkgs/monero/update +++ /dev/null @@ -1,2 +0,0 @@ -site="https://github.com/monero-project/monero/tags" -pattern='/archive/refs/tags/(v?|\Qmonero\E-)?\K[\d\.]+(?=\.tar\.gz")' diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index c592cc0aa862..2a34a665d30c 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=9 +revision=10 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -373,7 +373,9 @@ replaces=" mimms<=3.2.1_4 miro-video-converter<=3.0.2_3 mirrorbits<=0.5.1_1 + monero-devel<=0.18.1.2_4 monero-gui<=0.18.1.2_4 + monero<=0.18.1.2_4 mongroup<=0.4.1_2 mopidy-spotify<=4.0.1_5 mozjs68<=68.11.0_1 From 92eb672e5da555cdc8596ab41d8e1a85bdaa4718 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 1 Jul 2023 23:54:23 +0200 Subject: [PATCH 11/12] electrum-ltc: remove package --- srcpkgs/electrum-ltc/patches/no-certifi.patch | 97 ------------------- srcpkgs/electrum-ltc/template | 19 ---- srcpkgs/removed-packages/template | 3 +- 3 files changed, 2 insertions(+), 117 deletions(-) delete mode 100644 srcpkgs/electrum-ltc/patches/no-certifi.patch delete mode 100644 srcpkgs/electrum-ltc/template diff --git a/srcpkgs/electrum-ltc/patches/no-certifi.patch b/srcpkgs/electrum-ltc/patches/no-certifi.patch deleted file mode 100644 index 9d68378996ba..000000000000 --- a/srcpkgs/electrum-ltc/patches/no-certifi.patch +++ /dev/null @@ -1,97 +0,0 @@ -diff --git a/electrum_ltc/interface.py b/electrum_ltc/interface.py -index b5eac439c..14bbd7ab9 100644 ---- a/electrum_ltc/interface.py -+++ b/electrum_ltc/interface.py -@@ -40,7 +40,6 @@ from aiorpcx import RPCSession, Notification, NetAddress - from aiorpcx.curio import timeout_after, TaskTimeout - from aiorpcx.jsonrpc import JSONRPC, CodeMessageError - from aiorpcx.rawsocket import RSClient --import certifi - - from .util import ignore_exceptions, log_exceptions, bfh, SilentTaskGroup - from . import util -@@ -57,7 +56,7 @@ if TYPE_CHECKING: - from .network import Network - - --ca_path = certifi.where() -+ca_path = '/etc/ssl/certs/ca-certificates.crt' - - BUCKET_NAME_OF_ONION_SERVERS = 'onion' - -diff --git a/electrum_ltc/paymentrequest.py b/electrum_ltc/paymentrequest.py -index 149065bf3..9580c8d48 100644 ---- a/electrum_ltc/paymentrequest.py -+++ b/electrum_ltc/paymentrequest.py -@@ -29,7 +29,6 @@ import traceback - import json - from typing import Optional - --import certifi - import urllib.parse - import aiohttp - -@@ -54,7 +53,7 @@ _logger = get_logger(__name__) - REQUEST_HEADERS = {'Accept': 'application/litecoin-paymentrequest', 'User-Agent': 'Electrum'} - ACK_HEADERS = {'Content-Type':'application/litecoin-payment','Accept':'application/litecoin-paymentack','User-Agent':'Electrum'} - --ca_path = certifi.where() -+ca_path = '/etc/ssl/certs/ca-certificates.crt' - ca_list = None - ca_keyID = None - -diff --git a/electrum_ltc/util.py b/electrum_ltc/util.py -index bc69800dc..9c32a195a 100644 ---- a/electrum_ltc/util.py -+++ b/electrum_ltc/util.py -@@ -44,7 +44,6 @@ import ssl - import aiohttp - from aiohttp_socks import SocksConnector, SocksVer - from aiorpcx import TaskGroup --import certifi - - from .i18n import _ - from .logging import get_logger, Logger -@@ -62,7 +61,7 @@ def inv_dict(d): - return {v: k for k, v in d.items()} - - --ca_path = certifi.where() -+ca_path = '/etc/ssl/certs/ca-certificates.crt' - - - base_units = {'LTC':8, 'mLTC':5, 'uLTC':2, 'sat':0} -diff --git a/electrum_ltc/x509.py b/electrum_ltc/x509.py -index c38edc77a..e745e4878 100644 ---- a/electrum_ltc/x509.py -+++ b/electrum_ltc/x509.py -@@ -343,7 +343,6 @@ def load_certificates(ca_path): - - - if __name__ == "__main__": -- import certifi - -- ca_path = certifi.where() -+ ca_path = '/etc/ssl/certs/ca-certificates.crt' - ca_list, ca_keyID = load_certificates(ca_path) -diff --git a/run_electrum b/run_electrum -index 978e5fb2f..e8fc3888c 100755 ---- a/run_electrum -+++ b/run_electrum -@@ -58,7 +58,6 @@ def check_imports(): - import dns - import pyaes - import ecdsa -- import certifi - import qrcode - import google.protobuf - import jsonrpclib -@@ -72,7 +71,7 @@ def check_imports(): - from google.protobuf import descriptor_pb2 - from jsonrpclib import SimpleJSONRPCServer - # make sure that certificates are here -- assert os.path.exists(certifi.where()) -+ assert os.path.exists('/etc/ssl/certs/ca-certificates.crt') - - - if not is_android: diff --git a/srcpkgs/electrum-ltc/template b/srcpkgs/electrum-ltc/template deleted file mode 100644 index f476e2de0ed6..000000000000 --- a/srcpkgs/electrum-ltc/template +++ /dev/null @@ -1,19 +0,0 @@ -# Template file for 'electrum-ltc' -pkgname=electrum-ltc -version=3.3.8.1 -revision=4 -build_style=python3-module -hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" -depends="python3-aiohttp python3-aiohttp_socks python3-aiorpcx - python3-dnspython python3-ecdsa python3-jsonrpclib python3-protobuf - python3-pyaes python3-pycryptodome python3-PyQt5 python3-qrcode" -short_desc="Lightweight Litecoin port of the Electrum Bitcoin wallet" -maintainer="Young Jin Park " -license="MIT" -homepage="https://electrum-ltc.org/" -distfiles="https://github.com/pooler/electrum-ltc/archive/${version}.tar.gz" -checksum="6f4049abacfdb125b968e841ec9bc01e386e475f3fac8534103ffea1257b0f0f" - -post_install() { - vlicense LICENCE -} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 2a34a665d30c..e196a659de08 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=10 +revision=11 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -104,6 +104,7 @@ replaces=" electron13<=13.6.7_1 electron7<=7.3.3_1 electron9<=9.4.1_1 + electrum-ltc<=3.3.8.1_4 emacs-gtk2<=27.2_1 empathy<=3.12.14_4 enventor<=1.0.0_2 From 3c353891313291f29d219a339dfb68db1ff2f44d Mon Sep 17 00:00:00 2001 From: lemmi Date: Sun, 2 Jul 2023 00:04:33 +0200 Subject: [PATCH 12/12] go-ethereum: remove package --- srcpkgs/geth | 1 - srcpkgs/go-ethereum/template | 27 --------------------------- srcpkgs/removed-packages/template | 4 +++- 3 files changed, 3 insertions(+), 29 deletions(-) delete mode 120000 srcpkgs/geth delete mode 100644 srcpkgs/go-ethereum/template diff --git a/srcpkgs/geth b/srcpkgs/geth deleted file mode 120000 index 643fd89ff2c6..000000000000 --- a/srcpkgs/geth +++ /dev/null @@ -1 +0,0 @@ -go-ethereum \ No newline at end of file diff --git a/srcpkgs/go-ethereum/template b/srcpkgs/go-ethereum/template deleted file mode 100644 index 1377f4c3ac3f..000000000000 --- a/srcpkgs/go-ethereum/template +++ /dev/null @@ -1,27 +0,0 @@ -# Template file for 'go-ethereum' -pkgname=go-ethereum -version=1.10.1 -revision=2 -build_style=go -go_import_path=github.com/ethereum/go-ethereum -go_package="${go_import_path}/cmd/abigen - ${go_import_path}/cmd/bootnode - ${go_import_path}/cmd/evm - ${go_import_path}/cmd/geth - ${go_import_path}/cmd/puppeth - ${go_import_path}/cmd/rlpdump - ${go_import_path}/cmd/clef" -depends="geth" -short_desc="Full suite of Go Ethereum utilities" -maintainer="Hoang Nguyen " -license="GPL-3.0-only" -homepage="https://github.com/ethereum/go-ethereum" -distfiles="https://${go_import_path}/archive/v${version}.tar.gz" -checksum=485ff7b9e5a34457ab424d7e2cb8d377dc571e8daf666e065a0a327b9e413cab - -geth_package() { - short_desc="Official Go implementation of the Ethereum protocol" - pkg_install() { - vmove usr/bin/geth - } -} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index e196a659de08..6b8ffff3b8e6 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -1,7 +1,7 @@ # Template file for 'removed-packages' pkgname=removed-packages version=0.1.20230701 -revision=11 +revision=12 build_style=meta short_desc="Uninstalls packages removed from repository" maintainer="Piotr Wójcik " @@ -126,6 +126,7 @@ replaces=" gens-gs<=2.16.7_2 geoip-data<=20171002_2 gespeaker<=0.8.6_3 + geth<=1.10.1_2 getmail<=5.14_2 gfbgraph<=0.2.5_1 giti<=1.0.0_1 @@ -145,6 +146,7 @@ replaces=" gnome-twitch<=0.4.2_2 go-gdm<=1.4_7 go-langserver<=2.0.0_1 + go-ethereum<=1.10.1_2 go1.4-bootstrap<=20171003_2 goat<=0.0.0.28022016_10 goffice0.8<=0.8.17_6