Date: Sun, 14 Aug 2016 15:30:26 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420189 - in head/net-p2p: . torrentcheck Message-ID: <201608141530.u7EFUQaD065311@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Sun Aug 14 15:30:26 2016 New Revision: 420189 URL: https://svnweb.freebsd.org/changeset/ports/420189 Log: Add a port of torrentcheck, command-line torrent viewer and hash checker. NB: TIMESTAMP line in distinfo should read as follows, but has to stay in its current form due to a bug in the hook script: TIMESTAMP (torrentcheck/torrentcheck-1.00.zip) = 1291291031 WWW: https://sourceforge.net/projects/torrentcheck/ Added: head/net-p2p/torrentcheck/ head/net-p2p/torrentcheck/Makefile (contents, props changed) head/net-p2p/torrentcheck/distinfo (contents, props changed) head/net-p2p/torrentcheck/pkg-descr (contents, props changed) Modified: head/net-p2p/Makefile Modified: head/net-p2p/Makefile ============================================================================== --- head/net-p2p/Makefile Sun Aug 14 14:58:09 2016 (r420188) +++ head/net-p2p/Makefile Sun Aug 14 15:30:26 2016 (r420189) @@ -1,7 +1,7 @@ # $FreeBSD$ # - COMMENT = peer-to-peer network applications + COMMENT = Peer-to-peer network applications SUBDIR += amule SUBDIR += amule-devel @@ -80,6 +80,7 @@ SUBDIR += shx SUBDIR += sonarr SUBDIR += squall + SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-cli Added: head/net-p2p/torrentcheck/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/torrentcheck/Makefile Sun Aug 14 15:30:26 2016 (r420189) @@ -0,0 +1,41 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= torrentcheck +PORTVERSION= 1.00 +CATEGORIES= net-p2p +MASTER_SITES= SF/${PORTNAME} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} readme.txt +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${_DISTFILES:N*.txt} + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Command-line torrent viewer and hash checker + +LICENSE= PD + +USES= zip +NO_WRKSUBDIR= yes + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e '/malloc\.h/d' ${WRKSRC}/torrentcheck.c + +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} \ + sha1.c torrentcheck.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +# Convert to Unix line-endings and trim useless compile-related information + ${TR} -d \\r < ${_DISTDIR}/readme.txt | ${SED} '126,$$d' > \ + ${STAGEDIR}${DOCSDIR}/README + +.include <bsd.port.mk> Added: head/net-p2p/torrentcheck/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/torrentcheck/distinfo Sun Aug 14 15:30:26 2016 (r420189) @@ -0,0 +1,5 @@ +TIMESTAMP = 1291291031 +SHA256 (torrentcheck/torrentcheck-1.00.zip) = a839f9ac9669d942f83af33db96ce9902d84f85592c99b568ef0f5232ff318c5 +SIZE (torrentcheck/torrentcheck-1.00.zip) = 28150 +SHA256 (torrentcheck/readme.txt) = 4c91ae5f0a446632fc664b9c6921a3f8e7fc75c3bd152141f2c3352fe0275164 +SIZE (torrentcheck/readme.txt) = 7240 Added: head/net-p2p/torrentcheck/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/torrentcheck/pkg-descr Sun Aug 14 15:30:26 2016 (r420189) @@ -0,0 +1,15 @@ +This program is a command-line utility to catalog and verify torrent files. +Run with only the -t option, it displays the metadata, name, and size of +each file in the torrent. Run with the -t and -p options, it computes the +hashes of all files in the torrent, compares them against the hashes stored +in the metadata, and warns of any errors. + +Torrentcheck also verifies the length of each file, and flags an error if +the length is wrong even if the hash codes match. It is designed to handle +files over 4GB on a 32-bit machine. + +If torrentcheck returns "torrent is good" at the end of its output, every +byte of every file in the torrent is present and correct, to a high degree +of certainty (as explained in the README file). + +WWW: https://sourceforge.net/projects/torrentcheck/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608141530.u7EFUQaD065311>