summaryrefslogtreecommitdiff
path: root/devel/pipestatus
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-03-10 23:47:02 +0000
committerwiz <wiz@pkgsrc.org>2010-03-10 23:47:02 +0000
commitdf3cc68fa029b6befe79dc64b7133989426399ca (patch)
treed3a7352f7598879123990362e43b624d1aefa622 /devel/pipestatus
parent565932a82dfd8ed4760db205aea1fd7d3a321ede (diff)
downloadpkgsrc-df3cc68fa029b6befe79dc64b7133989426399ca.tar.gz
Initial import of pipestatus-0.6.0, packaged for wip by Aleksey Cheusov.
Addresses PR 40250. pipestatus - source file for POSIX shell that allows to obtain an exit status of every program in a pipe. MOTIVATION When we program in shell we often run pipes like this prog1 args1 | prog2 args2 | ... | progN argsN POSIX says that exit status of pipe is the exit status of LAST program in it, i.e. progN in our example. That is, exit status of all other programs in pipe is silently ignored. But in many situations exit status of all programs in pipe should be checked to make program robust. Some shells like BASH and ZSH have special extensions for doing this but POSIX shell unfortunately doesn't provide an EASY way for doing this. In order to solve the problem, described above pipestatus was written.
Diffstat (limited to 'devel/pipestatus')
-rw-r--r--devel/pipestatus/DESCR18
-rw-r--r--devel/pipestatus/Makefile30
-rw-r--r--devel/pipestatus/PLIST4
-rw-r--r--devel/pipestatus/distinfo5
4 files changed, 57 insertions, 0 deletions
diff --git a/devel/pipestatus/DESCR b/devel/pipestatus/DESCR
new file mode 100644
index 00000000000..4b9b4d87571
--- /dev/null
+++ b/devel/pipestatus/DESCR
@@ -0,0 +1,18 @@
+pipestatus - source file for POSIX shell that allows
+to obtain an exit status of every program in a pipe.
+
+ MOTIVATION
+
+When we program in shell we often run pipes like this
+
+ prog1 args1 | prog2 args2 | ... | progN argsN
+
+POSIX says that exit status of pipe is the exit status of LAST program
+in it, i.e. progN in our example. That is, exit status of all other
+programs in pipe is silently ignored. But in many situations exit
+status of all programs in pipe should be checked to make program
+robust. Some shells like BASH and ZSH have special extensions for
+doing this but POSIX shell unfortunately doesn't provide an EASY way
+for doing this.
+
+In order to solve the problem, described above pipestatus was written.
diff --git a/devel/pipestatus/Makefile b/devel/pipestatus/Makefile
new file mode 100644
index 00000000000..a86b2e1b0cb
--- /dev/null
+++ b/devel/pipestatus/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/10 23:47:02 wiz Exp $
+#
+
+DISTNAME= pipestatus-0.6.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pipestatus/}
+
+MAINTAINER= cheusov@tut.by
+HOMEPAGE= http://sourceforge.net/projects/pipestatus/
+COMMENT= UNIX/POSIX shell helper for running pipes safely
+LICENSE= public-domain
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+INSTALLATION_DIRS+= bin share/doc/pipestatus
+DOCS= README NEWS
+
+TEST_TARGET= test
+MAKE_FLAGS+= SH=${SH:Q}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/pipestatus ${DESTDIR}${PREFIX}/bin/
+.for doc in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DESTDIR}${PREFIX}/share/doc/pipestatus/
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pipestatus/PLIST b/devel/pipestatus/PLIST
new file mode 100644
index 00000000000..abacf26e332
--- /dev/null
+++ b/devel/pipestatus/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/10 23:47:02 wiz Exp $
+bin/pipestatus
+share/doc/pipestatus/NEWS
+share/doc/pipestatus/README
diff --git a/devel/pipestatus/distinfo b/devel/pipestatus/distinfo
new file mode 100644
index 00000000000..ffac14bfe0f
--- /dev/null
+++ b/devel/pipestatus/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/10 23:47:02 wiz Exp $
+
+SHA1 (pipestatus-0.6.0.tar.gz) = ea1dfcf05ec421d15ec0c060b0d00a3e4dd59d41
+RMD160 (pipestatus-0.6.0.tar.gz) = 587ca90797dcd67a843bc4bc56ba6cbff2e50d15
+Size (pipestatus-0.6.0.tar.gz) = 6541 bytes