From owner-dev-commits-ports-all@freebsd.org Mon May 10 09:17:31 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A370631836; Mon, 10 May 2021 09:17:31 +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 4FdwSB6t8Tz4v6F; Mon, 10 May 2021 09:17:30 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 DEFC921D3F; Mon, 10 May 2021 09:17:30 +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 14A9HUZQ068204; Mon, 10 May 2021 09:17:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14A9HUYK068203; Mon, 10 May 2021 09:17:30 GMT (envelope-from git) Date: Mon, 10 May 2021 09:17:30 GMT Message-Id: <202105100917.14A9HUYK068203@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 5899c04eff96 - main - BtCheck is BitTorrent data checker and torrent file content viewer. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5899c04eff968eef1bf356dc964ddc66123a7489 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2021 09:17:31 -0000 The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=5899c04eff968eef1bf356dc964ddc66123a7489 commit 5899c04eff968eef1bf356dc964ddc66123a7489 Author: Alexey Dokuchaev AuthorDate: 2021-05-10 09:15:26 +0000 Commit: Alexey Dokuchaev CommitDate: 2021-05-10 09:15:30 +0000 BtCheck is BitTorrent data checker and torrent file content viewer. WWW: https://sourceforge.net/projects/btcheck/ --- net-p2p/Makefile | 1 + net-p2p/btcheck/Makefile | 62 +++++++++++++++++++++++++++++++++ net-p2p/btcheck/distinfo | 3 ++ net-p2p/btcheck/files/patch-src_check.c | 32 +++++++++++++++++ net-p2p/btcheck/pkg-descr | 6 ++++ 5 files changed, 104 insertions(+) diff --git a/net-p2p/Makefile b/net-p2p/Makefile index f588d7e18d85..7f849ecae71c 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -11,6 +11,7 @@ SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder + SUBDIR += btcheck SUBDIR += btpd SUBDIR += c-lightning SUBDIR += cpuminer diff --git a/net-p2p/btcheck/Makefile b/net-p2p/btcheck/Makefile new file mode 100644 index 000000000000..c205af140e70 --- /dev/null +++ b/net-p2p/btcheck/Makefile @@ -0,0 +1,62 @@ +# Created by: Alexey Dokuchaev + +PORTNAME= btcheck +PORTVERSION= 2.1 +CATEGORIES= net-p2p +MASTER_SITES= SF/${PORTNAME} + +MAINTAINER= danfe@FreeBSD.org +COMMENT= BitTorrent data checker and torrent file content viewer + +LICENSE= GPLv3 + +GNU_CONFIGURE= yes + +PLIST_FILES= bin/btcheck man/man1/btcheck.1.gz +PORTDOCS= AUTHORS ChangeLog NEWS README + +OPTIONS_DEFINE= DOCS +OPTIONS_RADIO= SHA1 +SHA1_DESC= Optimized SHA-1 calculation +OPTIONS_RADIO_SHA1= BEECRYPT GCRYPT GNUTLS MBEDTLS NETTLE OPENSSL TOMCRYPT +OPTIONS_DEFAULT= OPENSSL + +BEECRYPT_DESC= Use SHA-1 implementation from BeeCrypt +BEECRYPT_LIB_DEPENDS= libbeecrypt.so:security/beecrypt +BEECRYPT_USES= localbase +BEECRYPT_CONFIGURE_ON= --with-beecrypt + +GCRYPT_DESC= Use SHA-1 implementation from GNU crypt +GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt +GCRYPT_USES= localbase +GCRYPT_CONFIGURE_ON= --with-gcrypt + +GNUTLS_DESC= Use SHA-1 implementation from GnuTLS +GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls +GNUTLS_USES= localbase +GNUTLS_CONFIGURE_ON= --with-gnutls + +MBEDTLS_DESC= Use SHA-1 implementation from mbedTLS/PolarSSL +MBEDTLS_LIB_DEPENDS= libmbedcrypto.so:security/mbedtls +MBEDTLS_USES= localbase +MBEDTLS_CONFIGURE_ON= --with-polarssl + +NETTLE_DESC= Use SHA-1 implementation from Nettle +NETTLE_LIB_DEPENDS= libnettle.so:security/nettle +NETTLE_USES= localbase +NETTLE_CONFIGURE_ON= --with-nettle + +OPENSSL_DESC= Use SHA-1 implementation from OpenSSL +OPENSSL_USES= ssl +OPENSSL_CONFIGURE_ON= --with-openssl + +TOMCRYPT_DESC= Use SHA-1 implementation from LibTomCrypt +TOMCRYPT_LIB_DEPENDS= libtomcrypt.so:security/libtomcrypt +TOMCRYPT_USES= localbase +TOMCRYPT_CONFIGURE_ON= --with-tomcrypt + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/net-p2p/btcheck/distinfo b/net-p2p/btcheck/distinfo new file mode 100644 index 000000000000..13ece7bf10cb --- /dev/null +++ b/net-p2p/btcheck/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1503959726 +SHA256 (btcheck-2.1.tar.gz) = 4718109d591e27bd58e1b2b07dbed7b63ae2fe869f5ced58c45b8aa64543c4b4 +SIZE (btcheck-2.1.tar.gz) = 155618 diff --git a/net-p2p/btcheck/files/patch-src_check.c b/net-p2p/btcheck/files/patch-src_check.c new file mode 100644 index 000000000000..a04553d43300 --- /dev/null +++ b/net-p2p/btcheck/files/patch-src_check.c @@ -0,0 +1,32 @@ +--- src/check.c.orig 2017-08-26 19:37:29 UTC ++++ src/check.c +@@ -36,7 +36,7 @@ int check(btree_t *torrentbtree) + btfile_t *btfile; + void *piecebuffer, *piecedigest; + size_t size, length; +- int ret, pieceindex, failure; ++ int ret, pieceindex, failure, numpieces; + + torrentinfo = search_dict_value(torrentbtree, TorrentInfoSearch); + if (torrentinfo == NULL) { +@@ -80,6 +80,7 @@ int check(btree_t *torrentbtree) + fprintf(stderr, "Can't open btfile.\n"); + } + ++ numpieces = (torrentinfolength + torrentinfopiecelength - 1) / torrentinfopiecelength; + failure = 0; + pieceindex = 0; + readlength = 0; +@@ -99,10 +100,10 @@ int check(btree_t *torrentbtree) + } + if (ret == 0) { + if (Verbose >= 0) +- printf("\rpiece[%d] OK ", pieceindex); ++ printf("\rpiece[%d/%d] OK ", pieceindex, numpieces); + } else { + if (Verbose >= 0) +- printf("\rpiece[%d] BAD \n", pieceindex); ++ printf("\rpiece[%d/%d] BAD \n", pieceindex, numpieces); + failure++; + } + fflush(stdout); diff --git a/net-p2p/btcheck/pkg-descr b/net-p2p/btcheck/pkg-descr new file mode 100644 index 000000000000..5df215fd333e --- /dev/null +++ b/net-p2p/btcheck/pkg-descr @@ -0,0 +1,6 @@ +BtCheck can check downloaded data integrity according to the given +torrent and it can also show the information stored in the torrent +file: announce trackers, list of files with their size, hash value, +creation date, comments, etc. + +WWW: https://sourceforge.net/projects/btcheck/