From f5ee8e2561694e498edddcfba4a7f15ea35e3c17 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 11 Oct 1997 21:53:59 +0000 Subject: Import as of 09/25/97 --- misc/buffer/Makefile | 18 ++++++++++++++++++ misc/buffer/files/md5 | 1 + misc/buffer/patches/patch-aa | 31 +++++++++++++++++++++++++++++++ misc/buffer/pkg/COMMENT | 1 + misc/buffer/pkg/DESCR | 27 +++++++++++++++++++++++++++ misc/buffer/pkg/PLIST | 2 ++ 6 files changed, 80 insertions(+) create mode 100644 misc/buffer/Makefile create mode 100644 misc/buffer/files/md5 create mode 100644 misc/buffer/patches/patch-aa create mode 100644 misc/buffer/pkg/COMMENT create mode 100644 misc/buffer/pkg/DESCR create mode 100644 misc/buffer/pkg/PLIST (limited to 'misc/buffer') 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 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 -- cgit v1.2.3