diff --git a/finance/Makefile b/finance/Makefile index 70af90836a7c..f1b566cff38f 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -1,122 +1,123 @@ COMMENT = Monetary, financial, and related applications SUBDIR += R-cran-AER SUBDIR += R-cran-PerformanceAnalytics SUBDIR += R-cran-RFinanceYJ SUBDIR += R-cran-TTR SUBDIR += R-cran-ccgarch SUBDIR += R-cran-fBasics SUBDIR += R-cran-fGarch SUBDIR += R-cran-gmm SUBDIR += R-cran-lmtest SUBDIR += R-cran-plm SUBDIR += R-cran-quantmod SUBDIR += R-cran-strucchange SUBDIR += R-cran-timeDate SUBDIR += R-cran-timeSeries SUBDIR += R-cran-tseries SUBDIR += R-cran-urca SUBDIR += R-cran-vars SUBDIR += alkimia SUBDIR += aqbanking SUBDIR += beancount SUBDIR += beanie SUBDIR += chiapos SUBDIR += cointop SUBDIR += electrum SUBDIR += expense SUBDIR += fava SUBDIR += fixc SUBDIR += frontaccounting SUBDIR += gnucash SUBDIR += gnucash-docs SUBDIR += grisbi SUBDIR += homebank SUBDIR += hs-hledger SUBDIR += hs-hledger-ui SUBDIR += hs-hledger-web SUBDIR += jgnash SUBDIR += kmymoney SUBDIR += kraft SUBDIR += ktoblzcheck SUBDIR += ledger SUBDIR += ledgersmb12 + SUBDIR += libbtc SUBDIR += libofx SUBDIR += libstocks SUBDIR += moneymanagerex SUBDIR += myphpmoney SUBDIR += nextcloud-cospend SUBDIR += odoo SUBDIR += p5-Business-CreditCard SUBDIR += p5-Business-MaxMind-CreditCardFraudDetection SUBDIR += p5-Business-OCV SUBDIR += p5-Business-OnlinePayment SUBDIR += p5-Business-OnlinePayment-2CheckOut SUBDIR += p5-Business-OnlinePayment-AuthorizeNet SUBDIR += p5-Business-OnlinePayment-BankOfAmerica SUBDIR += p5-Business-OnlinePayment-Beanstream SUBDIR += p5-Business-OnlinePayment-Cardstream SUBDIR += p5-Business-OnlinePayment-Jettis SUBDIR += p5-Business-OnlinePayment-LinkPoint SUBDIR += p5-Business-OnlinePayment-MerchantCommerce SUBDIR += p5-Business-OnlinePayment-Network1Financial SUBDIR += p5-Business-OnlinePayment-OCV SUBDIR += p5-Business-OnlinePayment-PayConnect SUBDIR += p5-Business-OnlinePayment-PaymenTech SUBDIR += p5-Business-OnlinePayment-PaymentsGateway SUBDIR += p5-Business-OnlinePayment-SurePay SUBDIR += p5-Business-OnlinePayment-TCLink SUBDIR += p5-Business-OnlinePayment-VirtualNet SUBDIR += p5-Business-OnlinePayment-eSec SUBDIR += p5-Business-OnlinePayment-iAuthorizer SUBDIR += p5-Business-PayPal-IPN SUBDIR += p5-Business-Stripe SUBDIR += p5-Business-TW-Invoice-U420 SUBDIR += p5-Business-TW-TSIB-CStorePayment SUBDIR += p5-Business-TW-TSIB-VirtualAccount SUBDIR += p5-Business-WorldPay-Junior SUBDIR += p5-Data-Currency SUBDIR += p5-Finance-Amortization SUBDIR += p5-Finance-Bitcoin SUBDIR += p5-Finance-Currency-Convert SUBDIR += p5-Finance-Currency-Convert-WebserviceX SUBDIR += p5-Finance-Currency-Convert-XE SUBDIR += p5-Finance-Quote SUBDIR += p5-Finance-QuoteHist SUBDIR += p5-Finance-QuoteTW SUBDIR += p5-Finance-TW-EmergingQuote SUBDIR += p5-Finance-TW-TSEQuote SUBDIR += p5-Finance-YahooQuote SUBDIR += p5-Locale-Currency-Format SUBDIR += p5-Math-Financial SUBDIR += p5-PayflowPro SUBDIR += pear_Payment_DTA SUBDIR += prestashop SUBDIR += py-backtrader SUBDIR += py-bitcoin SUBDIR += py-ebaysdk SUBDIR += py-mplfinance SUBDIR += py-ofxparse SUBDIR += py-pycoin SUBDIR += py-python-bitcoinlib SUBDIR += py-python-obelisk SUBDIR += py-quantecon SUBDIR += py-stripe SUBDIR += py-ta-lib SUBDIR += py-vatnumber SUBDIR += py-yfinance SUBDIR += py-ystockquote SUBDIR += qtbitcointrader SUBDIR += quantlib SUBDIR += quickfix SUBDIR += rubygem-money SUBDIR += skrooge SUBDIR += sql-ledger SUBDIR += ticker SUBDIR += tickrs SUBDIR += vanitygen SUBDIR += venice SUBDIR += weberp SUBDIR += xtrader .include diff --git a/finance/libbtc/Makefile b/finance/libbtc/Makefile new file mode 100644 index 000000000000..7e7ff809085f --- /dev/null +++ b/finance/libbtc/Makefile @@ -0,0 +1,20 @@ +PORTNAME= libbtc +PORTVERSION= g20210428 +CATEGORIES= finance + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tiny Bitcoin Library written in C + +LICENSE= MIT + +LIB_DEPENDS= libevent_core.so:devel/libevent + +USES= autoreconf gmake libtool localbase +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_TAGNAME= 0793399 + +GNU_CONFIGURE= yes + +.include diff --git a/finance/libbtc/distinfo b/finance/libbtc/distinfo new file mode 100644 index 000000000000..603f2fcf7ef6 --- /dev/null +++ b/finance/libbtc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621492607 +SHA256 (libbtc-libbtc-g20210428-0793399_GH0.tar.gz) = 02059305a8a5c8a26787ef74fdb2ec39fb2e68a99dc90310dad69be7ddc9726c +SIZE (libbtc-libbtc-g20210428-0793399_GH0.tar.gz) = 1285466 diff --git a/finance/libbtc/files/patch-include_btc_portable__endian.h b/finance/libbtc/files/patch-include_btc_portable__endian.h new file mode 100644 index 000000000000..578623acad8b --- /dev/null +++ b/finance/libbtc/files/patch-include_btc_portable__endian.h @@ -0,0 +1,18 @@ +--- include/btc/portable_endian.h.orig 2022-05-07 20:37:35 UTC ++++ include/btc/portable_endian.h +@@ -49,6 +49,7 @@ + + #include + ++#if !defined(__FreeBSD__) + #define be16toh(x) betoh16(x) + #define le16toh(x) letoh16(x) + +@@ -57,6 +58,7 @@ + + #define be64toh(x) betoh64(x) + #define le64toh(x) letoh64(x) ++#endif + + #elif defined(__WINDOWS__) + diff --git a/finance/libbtc/pkg-descr b/finance/libbtc/pkg-descr new file mode 100644 index 000000000000..2bda7cb02551 --- /dev/null +++ b/finance/libbtc/pkg-descr @@ -0,0 +1,4 @@ +Libbtc is a very portable C library for creating and manipulating +bitcoin data structures and interacting with the p2p network. + +WWW: https://github.com/libbtc/libbtc diff --git a/finance/libbtc/pkg-plist b/finance/libbtc/pkg-plist new file mode 100644 index 000000000000..ac059b23c6b8 --- /dev/null +++ b/finance/libbtc/pkg-plist @@ -0,0 +1,61 @@ +bin/bitcoin-send-tx +bin/bitcoin-spv +bin/bitcointool +include/btc/aes256_cbc.h +include/btc/base58.h +include/btc/bip32.h +include/btc/block.h +include/btc/blockchain.h +include/btc/btc.h +include/btc/buffer.h +include/btc/chainparams.h +include/btc/cstr.h +include/btc/ctaes.h +include/btc/ecc.h +include/btc/ecc_key.h +include/btc/hash.h +include/btc/headersdb.h +include/btc/headersdb_file.h +include/btc/hmac.h +include/btc/memory.h +include/btc/net.h +include/btc/netspv.h +include/btc/portable_endian.h +include/btc/protocol.h +include/btc/random.h +include/btc/ripemd160.h +include/btc/script.h +include/btc/segwit_addr.h +include/btc/serialize.h +include/btc/sha2.h +include/btc/tool.h +include/btc/tx.h +include/btc/utils.h +include/btc/vector.h +include/btc/wallet.h +include/logdb/logdb.h +include/logdb/logdb_base.h +include/logdb/logdb_core.h +include/logdb/logdb_memdb_llist.h +include/logdb/logdb_memdb_rbtree.h +include/logdb/logdb_rec.h +include/logdb/red_black_tree.h +include/trezor-crypto/base58.h +include/trezor-crypto/blake256.h +include/trezor-crypto/blake2_common.h +include/trezor-crypto/blake2b.h +include/trezor-crypto/groestl.h +include/trezor-crypto/groestl_internal.h +include/trezor-crypto/hasher.h +include/trezor-crypto/hmac.h +include/trezor-crypto/memzero.h +include/trezor-crypto/options.h +include/trezor-crypto/ripemd160.h +include/trezor-crypto/segwit_addr.h +include/trezor-crypto/sha2.h +include/trezor-crypto/sha3.h +lib/libbtc.a +lib/libbtc.so +lib/libbtc.so.0 +lib/libbtc.so.0.0.0 +libdata/pkgconfig/libbtc.pc