From nobody Sat May 07 20:51:52 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D83771ADFC71; Sat, 7 May 2022 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KwfkJ4Jy2z3Pwh; Sat, 7 May 2022 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651956712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vVezf0SS1EPHgimL/FM2Xe2a6zFMuQxZs8jtuYbMPMY=; b=U5+sPMYFqRmEaNtWeCjALZGD0XGiUznoJo4TPecEzeeMKj+kLvJjsg7ScqdjjIzZiGNDip Pw85hJKkVpcSQIhCJupi6C8upfDI97panYMF9jvHtWksIWSkKvUDNn88i4YM4QFb6LO+A0 SKHpuWIzMtBIlG3H9mIwPDNqrR0wZG7ZwmJp3HnyJkr/GKsmm/sykZW0EROp45N8UbUjrq fjnUCd3yp8veaPvNE4NcoxvtBt/CRfZ7S7fcVH0pcu2INRr+0GlDx/pr55LETIqOFWQfnh FPgd0vdEcfyHsB/dmrfzGFi/NUzNyApX2nFQuzLxcGhWv+YtHuy/XsNEMH+MTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6474717B34; Sat, 7 May 2022 20:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 247KpqR3017984; Sat, 7 May 2022 20:51:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 247Kpq7T017983; Sat, 7 May 2022 20:51:52 GMT (envelope-from git) Date: Sat, 7 May 2022 20:51:52 GMT Message-Id: <202205072051.247Kpq7T017983@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 1ffaad64df8a - main - finance/libbtc: New port: Tiny Bitcoin Library written in C List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651956712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vVezf0SS1EPHgimL/FM2Xe2a6zFMuQxZs8jtuYbMPMY=; b=E81VHZi7ltF6bpf50SLg6/vwgwhiMTKSXA5z7KmMOj4cwOow+MWjMPt17R67jwH+BAB5pK exKvgyYQR1zyh/vsU57P9Y9tZ2mUaCi7XzcGOrjwXbXJzQduSDVLTcuFVeL6rSzooGl87t USmziivAKxPM+8L+TQBX+OeyJPvkaLUlNee8lUrbq+WZsZ2cZvy7dm9AxZAOuscX4fBHgU fpqiHloVJWUZtAeEPmBIDd++IBQ5wIV7ZgBkpxZGPlZR5Cna5/uDISTPmOlJqWZI0K+3Dp k3Ghrzf7FCkinCW/PK8w4JJpxVNDcl/JpSZjydnsQsgHAx56jZV+Gu4BHnn4GA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651956712; a=rsa-sha256; cv=none; b=AXT0pjBRtNdmofvDFyuu5Fw/ntYCWjWxYWzW1pg4s/ToRb/cpuXNz00Uflg4vc6XVpBA9l 6VpR7g6tKVO04L7H/YY0SMIsN3uQ+QB2GzIXLc6VMzgfSSPvrukXow8bKXPj8E/I8MIT/F TiYFDHmUhb0RpIa+Wqhp/FoIcvRTvDl/72Yaq69mdGWKXKEJbPyWVZeR3A8aWtLcNLCzm4 d/Qd/LrvBf88MF6UyvBGNSIpDZEOYJ22mnz7nXH3927dWi7uKNREcRzvJn/U2tvP0aMFjS 5j49C5pH5KVBBMBGwKy7flDMD8VV6mf5n4O310LlSWNb+vHpJyviwItopIcydA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6 commit 1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6 Author: Yuri Victorovich AuthorDate: 2022-05-07 20:51:24 +0000 Commit: Yuri Victorovich CommitDate: 2022-05-07 20:51:50 +0000 finance/libbtc: New port: Tiny Bitcoin Library written in C --- finance/Makefile | 1 + finance/libbtc/Makefile | 20 +++++++ finance/libbtc/distinfo | 3 ++ .../files/patch-include_btc_portable__endian.h | 18 +++++++ finance/libbtc/pkg-descr | 4 ++ finance/libbtc/pkg-plist | 61 ++++++++++++++++++++++ 6 files changed, 107 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index 70af90836a7c..f1b566cff38f 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -41,6 +41,7 @@ SUBDIR += ktoblzcheck SUBDIR += ledger SUBDIR += ledgersmb12 + SUBDIR += libbtc SUBDIR += libofx SUBDIR += libstocks SUBDIR += moneymanagerex 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