Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2020 09:21:57 +0000 (UTC)
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r535986 - in head/sysutils: . xpipe xpipe/files
Message-ID:  <202005200921.04K9Lvxg051490@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tagattie
Date: Wed May 20 09:21:57 2020
New Revision: 535986
URL: https://svnweb.freebsd.org/changeset/ports/535986

Log:
  The xpipe command reads input from stdin and splits it by the given number of
  bytes, lines, or if matching the given pattern. It then invokes the given
  utility repeatedly, feeding it the generated data chunks as input. You can
  think of it as a Unix love-child of the split(1), tee(1), and xargs(1)
  commands.
  
  WWW: https://github.com/jschauma/xpipe
  
  PR:		246195
  Submitted by:	jjuanino@gmail.com
  Approved by:	ehaupt (mentor)

Added:
  head/sysutils/xpipe/
  head/sysutils/xpipe/Makefile   (contents, props changed)
  head/sysutils/xpipe/distinfo   (contents, props changed)
  head/sysutils/xpipe/files/
  head/sysutils/xpipe/files/patch-Makefile   (contents, props changed)
  head/sysutils/xpipe/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Wed May 20 08:43:11 2020	(r535985)
+++ head/sysutils/Makefile	Wed May 20 09:21:57 2020	(r535986)
@@ -1461,6 +1461,7 @@
     SUBDIR += xmbmon
     SUBDIR += xorriso
     SUBDIR += xosview
+    SUBDIR += xpipe
     SUBDIR += xstow
     SUBDIR += xsysstats
     SUBDIR += xvidcap

Added: head/sysutils/xpipe/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xpipe/Makefile	Wed May 20 09:21:57 2020	(r535986)
@@ -0,0 +1,24 @@
+# Created by: Jose G. Juanino <jjuanino@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	xpipe
+DISTVERSION=	g20200503
+CATEGORIES=	sysutils
+
+MAINTAINER=	jjuanino@gmail.com
+COMMENT=	Split input and feed it into the given utility
+
+LICENSE=	BSD2CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	jschauma
+GH_TAGNAME=	60b0aec
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/share/man/man1
+
+.include <bsd.port.mk>

Added: head/sysutils/xpipe/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xpipe/distinfo	Wed May 20 09:21:57 2020	(r535986)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1589718950
+SHA256 (jschauma-xpipe-g20200503-60b0aec_GH0.tar.gz) = 1baea1b7106b5ee66502d166512bfe56d38fa362da7d42f6e8959617ca54c8ec
+SIZE (jschauma-xpipe-g20200503-60b0aec_GH0.tar.gz) = 12399

Added: head/sysutils/xpipe/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xpipe/files/patch-Makefile	Wed May 20 09:21:57 2020	(r535986)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2020-05-19 16:52:46 UTC
++++ Makefile
+@@ -1,7 +1,7 @@
+ NAME= xpipe
+ OBJS= src/xpipe.o
+ 
+-CFLAGS= -g -Wall -Werror -Wextra
++CFLAGS+=-Wall -Werror -Wextra
+ LIBS= -lm
+ 
+ PREFIX?=/usr/local

Added: head/sysutils/xpipe/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xpipe/pkg-descr	Wed May 20 09:21:57 2020	(r535986)
@@ -0,0 +1,7 @@
+The xpipe command reads input from stdin and splits it by the given number of
+bytes, lines, or if matching the given pattern. It then invokes the given
+utility repeatedly, feeding it the generated data chunks as input. You can
+think of it as a Unix love-child of the split(1), tee(1), and xargs(1)
+commands.
+
+WWW: https://github.com/jschauma/xpipe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005200921.04K9Lvxg051490>