From owner-svn-ports-all@freebsd.org Tue Jul 21 14:36:16 2020 Return-Path: Delivered-To: svn-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 A43D135E713; Tue, 21 Jul 2020 14:36:16 +0000 (UTC) (envelope-from lwhsu@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB1PD3wSwz3TTG; Tue, 21 Jul 2020 14:36:16 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69DAF1FADE; Tue, 21 Jul 2020 14:36:16 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06LEaG8J018418; Tue, 21 Jul 2020 14:36:16 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06LEaFPW018415; Tue, 21 Jul 2020 14:36:15 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <202007211436.06LEaFPW018415@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Tue, 21 Jul 2020 14:36:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r542746 - in head/archivers: . tar-stream-chunker X-SVN-Group: ports-head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: in head/archivers: . tar-stream-chunker X-SVN-Commit-Revision: 542746 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 14:36:16 -0000 Author: lwhsu Date: Tue Jul 21 14:36:15 2020 New Revision: 542746 URL: https://svnweb.freebsd.org/changeset/ports/542746 Log: Add archivers/tar-stream-chunker streams stdin of unknown size as a tar to stdout PR: 245748 Submitted by: Igor Ostapenko Added: head/archivers/tar-stream-chunker/ head/archivers/tar-stream-chunker/Makefile (contents, props changed) head/archivers/tar-stream-chunker/distinfo (contents, props changed) head/archivers/tar-stream-chunker/pkg-descr (contents, props changed) Modified: head/archivers/Makefile Modified: head/archivers/Makefile ============================================================================== --- head/archivers/Makefile Tue Jul 21 14:21:42 2020 (r542745) +++ head/archivers/Makefile Tue Jul 21 14:36:15 2020 (r542746) @@ -220,6 +220,7 @@ SUBDIR += star SUBDIR += stuffit SUBDIR += szip + SUBDIR += tar-stream-chunker SUBDIR += tardy SUBDIR += thunar-archive-plugin SUBDIR += torrentzip Added: head/archivers/tar-stream-chunker/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/tar-stream-chunker/Makefile Tue Jul 21 14:36:15 2020 (r542746) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= tar-stream-chunker +PORTVERSION= 1.0.5 +CATEGORIES= archivers + +MAINTAINER= igor.ostapenko@pm.me +COMMENT= Splits stdin of unknown size onto chunks packed as a TAR to stdout + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= ihoro + +PLIST_FILES= bin/tar_stream_chunker + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tar_stream_chunker + +.include Added: head/archivers/tar-stream-chunker/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/tar-stream-chunker/distinfo Tue Jul 21 14:36:15 2020 (r542746) @@ -0,0 +1,3 @@ +TIMESTAMP = 1587339165 +SHA256 (ihoro-tar-stream-chunker-1.0.5_GH0.tar.gz) = 03aadeefe499bff01ca2207a2e0b48630ea79d2e925edb40f3219318083978f3 +SIZE (ihoro-tar-stream-chunker-1.0.5_GH0.tar.gz) = 6994 Added: head/archivers/tar-stream-chunker/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/tar-stream-chunker/pkg-descr Tue Jul 21 14:36:15 2020 (r542746) @@ -0,0 +1,13 @@ +Splits stdin of unknown size onto chunks of given size and collects such chunk +files as a TAR archive what is written to stdout. + +Initial motivation was to use it as a packer of a data stream what pipes it to +https://tarsnap.com for backup purposes, with a requirement of low and more +predictable memory consumption. And the problem solved here is that TAR file +header should specify size of a file, but it's unknown due to the nature of +input data stream. + +The following real case could be an example: +$ pg_dump ... | tar_stream_chunker ... | tarsnap -c ... @- + +WWW: https://github.com/ihoro/tar-stream-chunker/