summaryrefslogtreecommitdiff
path: root/misc/buffer
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1997-10-11 21:53:59 +0000
committerhubertf <hubertf@pkgsrc.org>1997-10-11 21:53:59 +0000
commit240eed442d1f97f7d7dd9430673499ef25dd1f36 (patch)
treecd1e0be6347cb17aeb9201b0ecc45b0286c98b53 /misc/buffer
parent652e2956ee0721786181dcf43d7559a17c9b93f9 (diff)
downloadpkgsrc-240eed442d1f97f7d7dd9430673499ef25dd1f36.tar.gz
Import as of 09/25/97
Diffstat (limited to 'misc/buffer')
-rw-r--r--misc/buffer/Makefile18
-rw-r--r--misc/buffer/files/md51
-rw-r--r--misc/buffer/patches/patch-aa31
-rw-r--r--misc/buffer/pkg/COMMENT1
-rw-r--r--misc/buffer/pkg/DESCR27
-rw-r--r--misc/buffer/pkg/PLIST2
6 files changed, 80 insertions, 0 deletions
diff --git a/misc/buffer/Makefile b/misc/buffer/Makefile
new file mode 100644
index 00000000000..ec436609d67
--- /dev/null
+++ b/misc/buffer/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: buffer
+# Version required: 1.17
+# Date created: 17 Nov 1995
+# Whom: markm
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/11 21:54:02 hubertf Exp $
+#
+
+DISTNAME= buffer-1.17
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.sun.ac.za/pub/unix/misc/
+
+MAINTAINER= markm@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+MANL= buffer.l
+
+.include <bsd.port.mk>
diff --git a/misc/buffer/files/md5 b/misc/buffer/files/md5
new file mode 100644
index 00000000000..7fc3aa45b30
--- /dev/null
+++ b/misc/buffer/files/md5
@@ -0,0 +1 @@
+MD5 (buffer-1.17.tar.gz) = 6c5236ed99f4df0832623f4c0498c681
diff --git a/misc/buffer/patches/patch-aa b/misc/buffer/patches/patch-aa
new file mode 100644
index 00000000000..1e9af6b12cb
--- /dev/null
+++ b/misc/buffer/patches/patch-aa
@@ -0,0 +1,31 @@
+diff -udr buffer.ORG/Makefile buffer/Makefile
+--- buffer.ORG/Makefile Wed Jul 14 17:59:17 1993
++++ Makefile Thu Nov 16 20:09:23 1995
+@@ -8,7 +8,7 @@
+
+ # Where to install buffer and its manual pages
+ INSTBIN=/usr/local/bin
+-INSTMAN=/usr/man/manl
++INSTMAN=/usr/local/man/manl
+ # The manual page section (normally l or 1)
+ S=l
+
+diff -udr buffer.ORG/buffer.c buffer/buffer.c
+--- buffer.ORG/buffer.c Wed Jul 14 17:59:17 1993
++++ buffer.c Fri Nov 17 20:23:58 1995
+@@ -384,6 +384,7 @@
+ }
+
+ /* The interrupt handler */
++void
+ shutdown()
+ {
+ static int shutting;
+@@ -400,6 +401,7 @@
+ }
+
+ /* Shutdown because the child has ended */
++void
+ child_shutdown()
+ {
+ /* Find out which child has died. (They may not be my
diff --git a/misc/buffer/pkg/COMMENT b/misc/buffer/pkg/COMMENT
new file mode 100644
index 00000000000..dddb0d3bcf5
--- /dev/null
+++ b/misc/buffer/pkg/COMMENT
@@ -0,0 +1 @@
+buffer sporadic binary I/O for faster tape use
diff --git a/misc/buffer/pkg/DESCR b/misc/buffer/pkg/DESCR
new file mode 100644
index 00000000000..c5c68ac6433
--- /dev/null
+++ b/misc/buffer/pkg/DESCR
@@ -0,0 +1,27 @@
+This is a program designed to speed up writing tapes on remote tape
+drives. Requirements are shared memory and locks which normally
+means that these are supported in your kernel.
+
+[for FreeBSD, this means you MUST have a kernel with
+ options SYSVSHM
+ compiled in - markm]
+
+Buffer has been tested under SunOS 4.0.*, SunOS 4.1.*, Solarix, HP-UX 7.0,
+and Gould UTX 2.1A (sv universe).
+
+The program splits itself into two processes. The first process reads
+(and reblocks) from stdin into a shared memory buffer. The second
+writes from the shared memory buffer to stdout. Doing it this way
+means that the writing side effectly sits in a tight write loop and
+doesn't have to wait for input. Similarly for the input side. It is
+this waiting that slows down other reblocking processes, like dd.
+
+I run an archive and need to write large chunks out to tape regularly
+with an ethernet in the way. Using 'buffer' in a command like:
+
+ tar cvf - stuff | rsh somebox "buffer > /dev/rst8"
+
+is a factor of 5 faster than the best alternative, gnu tar with its
+remote tape option:
+
+ tar cvf somebox:/dev/rst8 stuff
diff --git a/misc/buffer/pkg/PLIST b/misc/buffer/pkg/PLIST
new file mode 100644
index 00000000000..2277e3890a2
--- /dev/null
+++ b/misc/buffer/pkg/PLIST
@@ -0,0 +1,2 @@
+bin/buffer
+man/manl/buffer.l.gz