pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils add xpipe(1)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c9f19150f37
branches:  trunk
changeset: 385541:7c9f19150f37
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Sun Sep 18 22:38:44 2022 +0000

description:
add xpipe(1)

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.

https://github.com/jschauma/xpipe

diffstat:

 sysutils/Makefile       |   3 ++-
 sysutils/xpipe/DESCR    |   5 +++++
 sysutils/xpipe/Makefile |  33 +++++++++++++++++++++++++++++++++
 sysutils/xpipe/PLIST    |   3 +++
 sysutils/xpipe/distinfo |   5 +++++
 5 files changed, 48 insertions(+), 1 deletions(-)

diffs (79 lines):

diff -r 5a5cf90ce00c -r 7c9f19150f37 sysutils/Makefile
--- a/sysutils/Makefile Sun Sep 18 21:38:33 2022 +0000
+++ b/sysutils/Makefile Sun Sep 18 22:38:44 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1015 2022/09/17 16:03:12 pin Exp $
+# $NetBSD: Makefile,v 1.1016 2022/09/18 22:38:44 jschauma Exp $
 #
 
 COMMENT=       System utilities
@@ -907,6 +907,7 @@
 SUBDIR+=       xmeter
 SUBDIR+=       xnc
 SUBDIR+=       xosview
+SUBDIR+=       xpipe
 SUBDIR+=       xplr
 SUBDIR+=       xps
 SUBDIR+=       xuvmstat
diff -r 5a5cf90ce00c -r 7c9f19150f37 sysutils/xpipe/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xpipe/DESCR      Sun Sep 18 22:38:44 2022 +0000
@@ -0,0 +1,5 @@
+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.
diff -r 5a5cf90ce00c -r 7c9f19150f37 sysutils/xpipe/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xpipe/Makefile   Sun Sep 18 22:38:44 2022 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2022/09/18 22:38:44 jschauma Exp $
+
+DISTNAME=      xpipe-2.2
+CATEGORIES=    sysutils
+MASTER_SITES=  http://www.netmeister.org/apps/
+
+MAINTAINER=    jschauma%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/jschauma/xpipe
+COMMENT=       split input and feed it into the given utility
+LICENSE=       2-clause-bsd
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux
+LDFLAGS+=       -lbsd
+CFLAGS+=       -I${PREFIX}/bsd
+.endif
+
+MAKE_FLAGS+=   LDFLAGS=${LDFLAGS:Q}
+MAKE_FLAGS+=   CFLAGS=${CFLAGS:Q}
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/xpipe      \
+               ${DESTDIR}${PREFIX}/bin/xpipe
+       ${INSTALL_MAN} ${WRKSRC}/doc/xpipe.1    \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xpipe.1
+
+.if ${OPSYS} == "Linux"
+.include "../../devel/libbsd/buildlink3.mk"
+.endif
+.include "../../mk/bsd.pkg.mk"
diff -r 5a5cf90ce00c -r 7c9f19150f37 sysutils/xpipe/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xpipe/PLIST      Sun Sep 18 22:38:44 2022 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2022/09/18 22:38:44 jschauma Exp $
+bin/xpipe
+man/man1/xpipe.1
diff -r 5a5cf90ce00c -r 7c9f19150f37 sysutils/xpipe/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xpipe/distinfo   Sun Sep 18 22:38:44 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/09/18 22:38:44 jschauma Exp $
+
+BLAKE2s (xpipe-2.2.tar.gz) = 88d5d04b765bbbabbac366aa91d5f7f7d8ec610dc25dc275a54a5bd27445aae1
+SHA512 (xpipe-2.2.tar.gz) = 768cba31c265a0b7f150f29804c150d660eb97aeb2f28aa47ee018fdd60563523c3d753aabe1efaf363c02353f09158fda5d3da87a182a227c52fe3737d1a424
+Size (xpipe-2.2.tar.gz) = 14611 bytes



Home | Main Index | Thread Index | Old Index