Date: Tue, 21 Jul 2020 14:36:15 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> 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 Message-ID: <202007211436.06LEaFPW018415@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <igor.ostapenko@pm.me> 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 <bsd.port.mk> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007211436.06LEaFPW018415>