sysutils/shunt consists of three utilities. Program Promise string ------- -------------- exactly stdio flyisofs stdio shunt stdio proc exec
The shunt tool was designed to pipe data to repeating child processes, to simplify management of multiple volumes of optical media. The child processes are named by the user in argument strings, and are commonly shell scripts, cdrecord, growisofs, or the "exactly" or the "flyisofs" utilities that aid in sizing optical media from piped data. Of course, exec'd processes might not be pledged. Yet. The patches include a removal of whitespace from the DESCR. Index: Makefile =================================================================== RCS file: /systems/cvs/ports/sysutils/shunt/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 30 May 2013 10:51:23 -0000 1.6 +++ Makefile 27 Apr 2016 23:51:35 -0000 @@ -3,6 +3,7 @@ COMMENT= tools to extend pipe capabilities DISTNAME= shunt-1.7.3 +REVISION= 0 CATEGORIES= sysutils HOMEPAGE= http://www.serice.net/shunt/ Index: patches/patch-src_exactly_main_c =================================================================== RCS file: patches/patch-src_exactly_main_c diff -N patches/patch-src_exactly_main_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_exactly_main_c 27 Apr 2016 23:10:59 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +--- src/exactly/main.c.orig Wed Apr 27 19:08:28 2016 ++++ src/exactly/main.c Wed Apr 27 19:10:31 2016 +@@ -142,6 +142,10 @@ decipher_command_line(int argc, char** argv) + + int main(int argc, char* argv[]) + { ++ if (pledge("stdio", NULL) == -1) { ++ perror("pledge"); ++ exit(2); ++ } + char* block = NULL; + unsigned long int i = 0; + unsigned long int rcount = 0; Index: patches/patch-src_flyisofs_main_c =================================================================== RCS file: patches/patch-src_flyisofs_main_c diff -N patches/patch-src_flyisofs_main_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_flyisofs_main_c 27 Apr 2016 23:23:41 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +--- src/flyisofs/main.c.orig Wed Apr 27 19:20:22 2016 ++++ src/flyisofs/main.c Wed Apr 27 19:23:33 2016 +@@ -879,6 +879,10 @@ write_padding(void) + + int main(int argc, char* argv[]) + { ++ if (pledge("stdio", NULL) == -1) { ++ perror("pledge"); ++ exit(2); ++ } + int rv = 0; + unsigned long int i = 0; + unsigned long int max_files_needed = 0; Index: patches/patch-src_shunt_main_c =================================================================== RCS file: patches/patch-src_shunt_main_c diff -N patches/patch-src_shunt_main_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_shunt_main_c 27 Apr 2016 23:50:22 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +--- src/shunt/main.c.orig Tue Apr 19 22:53:34 2011 ++++ src/shunt/main.c Wed Apr 27 19:48:00 2016 +@@ -693,6 +693,10 @@ is_child_running() + int + main(int argc, char* argv[]) + { ++ if (pledge("stdio proc exec", NULL) == -1) { ++ perror("pledge"); ++ exit(2); ++ } + int rv = 0; + + znum_initialize(); Index: pkg/DESCR =================================================================== RCS file: /systems/cvs/ports/sysutils/shunt/pkg/DESCR,v retrieving revision 1.2 diff -u -p -r1.2 DESCR --- pkg/DESCR 14 Mar 2011 09:15:34 -0000 1.2 +++ pkg/DESCR 27 Apr 2016 23:53:25 -0000 @@ -1,5 +1,5 @@ The shunt utilities: shunt, exactly, and flyisofs, were originally written for burning multi-set CDROM backups using mkiosfs and cdrecord. -The key utility -- shunt -- manages recursive access to piped I/O, so that +The key utility -- shunt -- manages recursive access to piped I/O, so that programs may be re-run without causing a pipe to close. Index: pkg/PLIST =================================================================== RCS file: /systems/cvs/ports/sysutils/shunt/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 14 Sep 2007 18:54:20 -0000 1.1.1.1 +++ pkg/PLIST 27 Apr 2016 23:52:04 -0000 @@ -1,6 +1,6 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/14 18:54:20 steven Exp $ -bin/exactly -bin/flyisofs -bin/shunt +@bin bin/exactly +@bin bin/flyisofs +@bin bin/shunt share/doc/shunt/ share/doc/shunt/README.TXT