Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 22:15:29 -0300 (EST)
From:      Joao Carlos Mendes Luis <jonny@jonny.eng.br>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/10233: Revive old port: misc/buffer
Message-ID:  <199902240115.WAA07205@roma.coe.ufrj.br>

next in thread | raw e-mail | index | archive | help

>Number:         10233
>Category:       ports
>Synopsis:       misc/buffer has been removed, let's revive it!
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 23 17:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Joao Carlos Mendes Luis
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
COPPE/UFRJ
>Environment:

>Description:

misc/buffer was a useful port, at least for me.  Most FreeBSD hackers
recommend team instead, but I do prefer the old pal buffer.

Mark Murray removed this port (he was the previous maintainer) for
lack of distsites.  I revived the port using Usenet archives.

The Makefile is a mess, and portlint refuses to accept it, but I could
not find a better way.  If the FreeBSD team does not accept this
humble contribution, I will still continue using it in my systems, as
I have been doing since the removal of the old port.  It's life.  :)

>How-To-Repeat:

>Fix:
	

Here's the shar file, as requested in the handbook:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	buffer
#	buffer/pkg
#	buffer/pkg/COMMENT
#	buffer/pkg/DESCR
#	buffer/pkg/PLIST
#	buffer/patches
#	buffer/patches/patch-aa
#	buffer/patches/patch-ab
#	buffer/files
#	buffer/files/md5
#	buffer/Makefile
#
echo c - buffer
mkdir -p buffer > /dev/null 2>&1
echo c - buffer/pkg
mkdir -p buffer/pkg > /dev/null 2>&1
echo x - buffer/pkg/COMMENT
sed 's/^X//' >buffer/pkg/COMMENT << 'END-of-buffer/pkg/COMMENT'
Xbuffer sporadic I/O for faster tape and pipe throuput
END-of-buffer/pkg/COMMENT
echo x - buffer/pkg/DESCR
sed 's/^X//' >buffer/pkg/DESCR << 'END-of-buffer/pkg/DESCR'
XThis is a program designed initially to speed up writing tapes on remote
Xtape drives, but may be used as a general pipe buffering utility.
XNote: You must have SYSVSHM support in FreeBSD kernel.
X
XThe program splits itself into two processes.  The first process reads
X(and reblocks) from stdin into a shared memory buffer.  The second
Xwrites from the shared memory buffer to stdout.  Doing it this way
Xmeans that the writing side effectly sits in a tight write loop and
Xdoesn't have to wait for input.  Similarly for the input side.  It is
Xthis waiting that slows down other reblocking processes, like dd.
END-of-buffer/pkg/DESCR
echo x - buffer/pkg/PLIST
sed 's/^X//' >buffer/pkg/PLIST << 'END-of-buffer/pkg/PLIST'
Xbin/buffer
END-of-buffer/pkg/PLIST
echo c - buffer/patches
mkdir -p buffer/patches > /dev/null 2>&1
echo x - buffer/patches/patch-aa
sed 's/^X//' >buffer/patches/patch-aa << 'END-of-buffer/patches/patch-aa'
X--- buffer.ORG/buffer.c	Wed Jul 14 17:59:17 1993
X+++ buffer.c	Fri Nov 17 20:23:58 1995
X@@ -384,6 +384,7 @@
X }
X 
X /* The interrupt handler */
X+void
X shutdown()
X {
X 	static int shutting;
X@@ -400,6 +401,7 @@
X }
X 
X /* Shutdown because the child has ended */
X+void
X child_shutdown()
X {
X 	/* Find out which child has died.  (They may not be my
END-of-buffer/patches/patch-aa
echo x - buffer/patches/patch-ab
sed 's/^X//' >buffer/patches/patch-ab << 'END-of-buffer/patches/patch-ab'
X--- ../dist/Makefile	Tue Feb 23 22:00:21 1999
X+++ Makefile	Tue Feb 23 22:02:32 1999
X@@ -4,13 +4,11 @@
X #   You should also add -DSYS5 for Ultrix, AIX, and Solarix.
X # Add -DDEF_SHMEM=n if you can only have n bytes of shared memory
X #   (eg: -DDEF_SHMEM=524288 if you can only have half a meg.)
X-CFLAGS=
X+#CFLAGS=  Honor FreeBSD CFLAGS
X 
X # Where to install buffer and its manual pages
X-INSTBIN=/usr/local/bin
X-INSTMAN=/usr/man/manl
X-# The manual page section (normally l or 1)
X-S=l
X+INSTBIN=${PREFIX}/bin
X+INSTMAN=${PREFIX}/man/man1
X 
X RM=/bin/rm
X ALL=README buffer.man Makefile buffer.c sem.c COPYING
X@@ -24,12 +22,8 @@
X 	$(RM) -f *.o core buffer .merrs
X 
X install: buffer
X-	rm -f $(INSTBIN)/buffer
X-	cp buffer $(INSTBIN)/buffer
X-	chmod 111 $(INSTBIN)/buffer
X-	rm -f $(INSTMAN)/buffer.$S
X-	cp buffer.man $(INSTMAN)/buffer.$S
X-	chmod 444 $(INSTMAN)/buffer.$S
X+	install -cs -m 0755 -o root -g wheel buffer $(INSTBIN)/buffer
X+	install -c  -m 0644 -o root -g wheel buffer.man $(INSTMAN)/buffer.1
X 
X buffer.tar: $(ALL)
X 	$(RM) -f buffer.tar
END-of-buffer/patches/patch-ab
echo c - buffer/files
mkdir -p buffer/files > /dev/null 2>&1
echo x - buffer/files/md5
sed 's/^X//' >buffer/files/md5 << 'END-of-buffer/files/md5'
X# The .gz checksum may vary from site to site.
XMD5 (buffer/part01.gz) = 48eba2425bfa4f7a5b0863e84785098a
XMD5 (buffer/part01.Z) = 309530f6ef35dcd1333f949a33afedbd
END-of-buffer/files/md5
echo x - buffer/Makefile
sed 's/^X//' >buffer/Makefile << 'END-of-buffer/Makefile'
X# New ports collection makefile for:	buffer
X# Version required:     1.17
X# Date created:         23 February 1998
X# Whom:                 Joao Carlos Mendes Luis <jonny@jonny.eng.br>
X#
X# $Id: $
X#
X
XPKGNAME=	buffer-1.17
XDISTFILES=	part01.Z
X
XCATEGORIES=	misc
X
XNO_CHECKSUM=	yes	# There's no standard compressor for usenet archives :(
X
X#  buffer can only be found in comp.sources shar format, so let's get that
X#  version and deal with it.  Probably bsd.ports.mk should have support
X#  for this kind of distribution also.
X
X# Some sites keep the compress version, other, the gz version.  Here's
X# a small list, in case you need to get it manually.
X
X# Z version
XMASTER_SITES=   ftp://ftp.uu.net/usenet/comp.sources.misc/volume38/buffer/ \
X		ftp://gatekeeper.dec.com/pub/usenet/comp.sources.misc/volume38/buffer/ \
X		ftp://brolga.cc.uq.oz.au/comp.sources.misc/volume38/buffer/ \
X		ftp://ftp.uni-paderborn.de/news/comp.sources.misc/volume38/buffer/ \
X		ftp://ring.aist.go.jp/pub/misc/NetNews/comp.sources.misc/volume38/buffer/
X
X# gz version
X#MASTER_SITES=	ftp://ftp.uni-koeln.de/usenet/comp.sources.misc/volume38/buffer/ \
X#		ftp://ftp.is.co.za/pub/usenet/comp.sources.misc/volume38/buffer/
X#		ftp://ftp.sunet.se/pub/usenet/ftp.uu.net/comp.sources.misc/volume38/buffer/ \
X#		ftp://ftp.op.net/pub/archives/comp.sources.misc/volume38/buffer/ \
X#		ftp://ftp.funet.fi/pub/archive/comp.sources.misc/volume38/buffer/ \
X
XDIST_SUBDIR=	buffer
X
XMAINTAINER=	jonny@jonny.eng.br
X
XNO_WRKSUBDIR=	yes
XMAN1=		buffer.1
X
Xdo-extract:
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} ${WRKDIR}
X	@gzcat ${_DISTDIR}/${EXTRACT_ONLY} | ${SED} -n '/^#!/,$$p' | \
X		( cd ${WRKDIR} ; sh )
X
X.include <bsd.port.mk>
END-of-buffer/Makefile
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902240115.WAA07205>