# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0

name                    buffer
version                 1.19
revision                1
categories              sysutils
platforms               darwin
maintainers             nomaintainer
license                 GPL-2

description             Reblocking buffer for tape writes

long_description        This is a program designed to speed up writing tapes. \
                        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.

homepage                http://gd.tuwien.ac.at/utils/archivers/buffer
master_sites            http://ftp.roedu.net/pub/mirrors/gentoo.org/distfiles
extract.suffix          .tgz
use_configure           no

checksums               md5     ef1f84473adb3bc2870dd5b0ad4ea82a \
                        sha1    acb7c516c8fc41d7356db673057e34506fab7c23 \
                        rmd160  f520d63aa3da22b505f8ecbcb779e6c59508918a

patchfiles              buffer-patch

destroot {
    xinstall -s -m 755 ${worksrcpath}/buffer ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/buffer.man ${destroot}${prefix}/share/man/man1/buffer.1
}