pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   jschauma
Date:           Sun Sep 18 22:38:45 UTC 2022

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/xpipe: DESCR Makefile PLIST distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.1015 -r1.1016 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xpipe/DESCR \
    pkgsrc/sysutils/xpipe/Makefile pkgsrc/sysutils/xpipe/PLIST \
    pkgsrc/sysutils/xpipe/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.1015 pkgsrc/sysutils/Makefile:1.1016
--- pkgsrc/sysutils/Makefile:1.1015     Sat Sep 17 16:03:12 2022
+++ pkgsrc/sysutils/Makefile    Sun Sep 18 22:38:44 2022
@@ -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+=    xmbmon
 SUBDIR+=       xmeter
 SUBDIR+=       xnc
 SUBDIR+=       xosview
+SUBDIR+=       xpipe
 SUBDIR+=       xplr
 SUBDIR+=       xps
 SUBDIR+=       xuvmstat

Added files:

Index: pkgsrc/sysutils/xpipe/DESCR
diff -u /dev/null pkgsrc/sysutils/xpipe/DESCR:1.1
--- /dev/null   Sun Sep 18 22:38:45 2022
+++ pkgsrc/sysutils/xpipe/DESCR Sun Sep 18 22:38:44 2022
@@ -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.
Index: pkgsrc/sysutils/xpipe/Makefile
diff -u /dev/null pkgsrc/sysutils/xpipe/Makefile:1.1
--- /dev/null   Sun Sep 18 22:38:45 2022
+++ pkgsrc/sysutils/xpipe/Makefile      Sun Sep 18 22:38:44 2022
@@ -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"
Index: pkgsrc/sysutils/xpipe/PLIST
diff -u /dev/null pkgsrc/sysutils/xpipe/PLIST:1.1
--- /dev/null   Sun Sep 18 22:38:45 2022
+++ pkgsrc/sysutils/xpipe/PLIST Sun Sep 18 22:38:44 2022
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2022/09/18 22:38:44 jschauma Exp $
+bin/xpipe
+man/man1/xpipe.1
Index: pkgsrc/sysutils/xpipe/distinfo
diff -u /dev/null pkgsrc/sysutils/xpipe/distinfo:1.1
--- /dev/null   Sun Sep 18 22:38:45 2022
+++ pkgsrc/sysutils/xpipe/distinfo      Sun Sep 18 22:38:44 2022
@@ -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