[71266] trunk/dports/sysutils

raimue at macports.org raimue at macports.org
Tue Sep 7 08:02:53 PDT 2010


Revision: 71266
          http://trac.macports.org/changeset/71266
Author:   raimue at macports.org
Date:     2010-09-07 08:02:50 -0700 (Tue, 07 Sep 2010)
Log Message:
-----------
sysutils/buffer:
New port, #26139

Added Paths:
-----------
    trunk/dports/sysutils/buffer/
    trunk/dports/sysutils/buffer/Portfile
    trunk/dports/sysutils/buffer/files/
    trunk/dports/sysutils/buffer/files/buffer-patch

Added: trunk/dports/sysutils/buffer/Portfile
===================================================================
--- trunk/dports/sysutils/buffer/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/buffer/Portfile	2010-09-07 15:02:50 UTC (rev 71266)
@@ -0,0 +1,36 @@
+# -*- 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
+# $Id$
+
+PortSystem              1.0
+
+name                    buffer
+version                 1.19
+categories              sysutils
+platforms               darwin
+maintainers             v9g.de:tvb377
+
+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 555 ${worksrcpath}/buffer ${destroot}${prefix}/bin
+    xinstall -m 444 ${worksrcpath}/buffer.man ${destroot}${prefix}/share/man/man1/buffer.1
+}


Property changes on: trunk/dports/sysutils/buffer/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/buffer/files/buffer-patch
===================================================================
--- trunk/dports/sysutils/buffer/files/buffer-patch	                        (rev 0)
+++ trunk/dports/sysutils/buffer/files/buffer-patch	2010-09-07 15:02:50 UTC (rev 71266)
@@ -0,0 +1,63 @@
+--- buffer.c.org	2010-08-18 14:37:21.000000000 +0200
++++ buffer.c	2010-08-18 15:02:36.000000000 +0200
+@@ -109,6 +109,9 @@
+  * Initial revision
+  * 
+  */
++
++#include <stdlib.h>
++#include <strings.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <signal.h>
+@@ -126,10 +129,6 @@
+ static char *rcsid = "$Header: /a/swan/home/swan/staff/csg/lmjm/src/buffer/RCS/buffer.c,v 1.19 1995/08/24 17:46:28 lmjm Exp lmjm $";
+ #endif
+ 
+-#ifndef __alpha
+-extern char *shmat();
+-#endif /* __alpha */
+-
+ /* General macros */
+ #define TRUE 1
+ #define FALSE 0
+@@ -507,9 +506,9 @@
+ 	get_buffer();
+ 
+ 	if( debug )
+-		fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n",
++		fprintf( stderr, "%s pbuffer is 0x%p, buffer_size is %d [%d x %d]\n",
+ 			proc_string,
+-			(char *)pbuffer, buffer_size, blocks, blocksize );
++			(void *)pbuffer, buffer_size, blocks, blocksize );
+ 
+ #ifdef SYS5
+ 	memset( (char *)pbuffer, '\0', buffer_size );
+@@ -648,7 +647,7 @@
+ int
+ fill_block()
+ {
+-	int bytes;
++	int bytes = 0;
+ 	char *start;
+ 	int toread;
+ 	static char eof_reached = 0;
+--- sem.c.org	2010-08-18 15:03:14.000000000 +0200
++++ sem.c	2010-08-18 15:04:15.000000000 +0200
+@@ -27,6 +27,7 @@
+  * semaphores */
+ 
+ #include <stdio.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/ipc.h>
+@@ -95,7 +96,7 @@
+ 	return sem;
+ }
+ 
+-static
++static void
+ do_sem( sem_id, pbuf, err )
+ 	int sem_id;
+ 	struct sembuf *pbuf;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100907/0733f842/attachment.html>


More information about the macports-changes mailing list