[csw-devel] SF.net SVN: gar:[9817] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed May 5 11:58:52 CEST 2010


Revision: 9817
          http://gar.svn.sourceforge.net/gar/?rev=9817&view=rev
Author:   dmichelsen
Date:     2010-05-05 09:58:52 +0000 (Wed, 05 May 2010)

Log Message:
-----------
mtwrite: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/mtwrite/
    csw/mgar/pkg/mtwrite/branches/
    csw/mgar/pkg/mtwrite/tags/
    csw/mgar/pkg/mtwrite/trunk/
    csw/mgar/pkg/mtwrite/trunk/Makefile
    csw/mgar/pkg/mtwrite/trunk/checksums
    csw/mgar/pkg/mtwrite/trunk/files/
    csw/mgar/pkg/mtwrite/trunk/files/0001-Create-correct-man-directory.patch
    csw/mgar/pkg/mtwrite/trunk/files/0002-Calculate-threadcount-instead-of-hardcoding.patch


Property changes on: csw/mgar/pkg/mtwrite/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/mtwrite/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mtwrite/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mtwrite/trunk/Makefile	2010-05-05 09:58:52 UTC (rev 9817)
@@ -0,0 +1,30 @@
+# : Makefile 9089 2010-03-11 08:34:46Z wahwah $
+GARNAME = mtwrite
+GARVERSION = r90214
+CATEGORIES = lib
+
+DESCRIPTION = Library to enable tar and unzip to write multiple files in parallel
+define BLURB
+endef
+
+MASTER_SITES = http://www.maier-komor.de/mtwrite/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tgz
+PATCHFILES  = 0001-Create-correct-man-directory.patch
+PATCHFILES += 0002-Calculate-threadcount-instead-of-hardcoding.patch
+
+# File name regex to get notifications about upstream software releases
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tgz
+
+LICENSE = lgpl.txt
+
+CONFIGURE_SCRIPTS =
+
+BUILD_OVERRIDE_VARS = CC
+BUILD_OVERRIDE_VAR_CC = $(CC)
+
+TEST_SCRIPTS =
+
+INSTALL_OVERRIDE_DIRS = PREFIX
+PREFIX=$(prefix)
+
+include gar/category.mk


Property changes on: csw/mgar/pkg/mtwrite/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/mtwrite/trunk/checksums
===================================================================
--- csw/mgar/pkg/mtwrite/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/mtwrite/trunk/checksums	2010-05-05 09:58:52 UTC (rev 9817)
@@ -0,0 +1,3 @@
+4a3e8c3a315f81bb36efdee62a2ed770  0001-Create-correct-man-directory.patch
+12d6a72ebbd9d10c1c74740ca3942a15  0002-Calculate-threadcount-instead-of-hardcoding.patch
+d1bf9be5af47ac77f9308e9849453057  mtwrite-r90214.tgz

Added: csw/mgar/pkg/mtwrite/trunk/files/0001-Create-correct-man-directory.patch
===================================================================
--- csw/mgar/pkg/mtwrite/trunk/files/0001-Create-correct-man-directory.patch	                        (rev 0)
+++ csw/mgar/pkg/mtwrite/trunk/files/0001-Create-correct-man-directory.patch	2010-05-05 09:58:52 UTC (rev 9817)
@@ -0,0 +1,25 @@
+From 8463404c64d85f9f39b164f199feefaf20b0d8cc Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 5 May 2010 11:46:44 +0200
+Subject: [PATCH 1/2] Create correct man directory
+
+---
+ Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 822d63d..82e4986 100644
+--- a/Makefile
++++ b/Makefile
+@@ -32,7 +32,7 @@ clean:
+ install: mtwrite.so
+ 	-$(MKDIR) $(PREFIX)/bin
+ 	-$(MKDIR) $(PREFIX)/lib/$(OS)-$(MACH)
+-	-$(MKDIR) $(PREFIX)/share/man/man1
++	-$(MKDIR) $(PREFIX)/share/man/man3
+ 	$(CP) mtwrite.so $(PREFIX)/lib/$(OS)-$(MACH)
+ 	$(CP) mttar mtcp mtgtar mtstar mtunzip $(PREFIX)/bin
+ 	$(CP) mtwrite.3 $(PREFIX)/share/man/man3
+-- 
+1.7.0
+

Added: csw/mgar/pkg/mtwrite/trunk/files/0002-Calculate-threadcount-instead-of-hardcoding.patch
===================================================================
--- csw/mgar/pkg/mtwrite/trunk/files/0002-Calculate-threadcount-instead-of-hardcoding.patch	                        (rev 0)
+++ csw/mgar/pkg/mtwrite/trunk/files/0002-Calculate-threadcount-instead-of-hardcoding.patch	2010-05-05 09:58:52 UTC (rev 9817)
@@ -0,0 +1,89 @@
+From bbacd109a1314356064f26397ff68dd1a7fa72f4 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 5 May 2010 11:55:37 +0200
+Subject: [PATCH 2/2] Calculate threadcount instead of hardcoding
+
+---
+ mtcp    |    4 ++--
+ mtgtar  |    4 ++--
+ mtstar  |    4 ++--
+ mttar   |    2 +-
+ mtunzip |    4 ++--
+ 5 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/mtcp b/mtcp
+index 5e9a373..62a38f2 100755
+--- a/mtcp
++++ b/mtcp
+@@ -1,8 +1,8 @@
+ #!/bin/ksh
+ INSTALLDIR=`dirname $0`/../lib
+-LD_PRELOAD=$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
++LD_PRELOAD=${LD_PRELOAD:-}:$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
+ MTWRITE_VERBOSE=${MTWRITE_VERBOSE:=1}			# default
+-MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=32}		# default
++MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=`/usr/sbin/psrinfo | wc -l`}		# default
+ MTWRITE_MEMPERTHREAD=${MTWRITE_MEMPERTHREAD:=16M}	# default
+ export LD_PRELOAD MTWRITE_VERBOSE MTWRITE_MAXTHREADS MTWRITE_MEMPERTHREAD
+ exec cp $@
+diff --git a/mtgtar b/mtgtar
+index b56399c..0a8e9f3 100755
+--- a/mtgtar
++++ b/mtgtar
+@@ -1,8 +1,8 @@
+ #!/bin/ksh
+ INSTALLDIR=`dirname $0`/../lib
+-LD_PRELOAD=$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
++LD_PRELOAD=${LD_PRELOAD:-}:$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
+ MTWRITE_VERBOSE=${MTWRITE_VERBOSE:=1}			# default
+-MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=32}		# default
++MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=`/usr/sbin/psrinfo | wc -l`}		# default
+ MTWRITE_MEMPERTHREAD=${MTWRITE_MEMPERTHREAD:=16M}	# default
+ export LD_PRELOAD MTWRITE_VERBOSE MTWRITE_MAXTHREADS MTWRITE_MEMPERTHREAD
+ exec gtar $@
+diff --git a/mtstar b/mtstar
+index ed37a89..3cb2b1f 100755
+--- a/mtstar
++++ b/mtstar
+@@ -1,8 +1,8 @@
+ #!/bin/ksh
+ INSTALLDIR=`dirname $0`/../lib
+-LD_PRELOAD=$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
++LD_PRELOAD=${LD_PRELOAD:-}:$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
+ MTWRITE_VERBOSE=${MTWRITE_VERBOSE:=1}			# default
+-MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=32}		# default
++MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=`/usr/sbin/psrinfo | wc -l`}		# default
+ MTWRITE_MEMPERTHREAD=${MTWRITE_MEMPERTHREAD:=16M}	# default
+ export LD_PRELOAD MTWRITE_VERBOSE MTWRITE_MAXTHREADS MTWRITE_MEMPERTHREAD
+ exec star $@
+diff --git a/mttar b/mttar
+index ec45cec..49e985f 100755
+--- a/mttar
++++ b/mttar
+@@ -2,7 +2,7 @@
+ INSTALLDIR=`dirname $0`/../lib
+ LD_PRELOAD=${LD_PRELOAD:-}:$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
+ MTWRITE_VERBOSE=${MTWRITE_VERBOSE:=1}			# default
+-MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=32}		# default
++MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=`/usr/sbin/psrinfo | wc -l`}		# default
+ MTWRITE_MEMPERTHREAD=${MTWRITE_MEMPERTHREAD:=16M}	# default
+ export LD_PRELOAD MTWRITE_VERBOSE MTWRITE_MAXTHREADS MTWRITE_MEMPERTHREAD
+ exec tar $@
+diff --git a/mtunzip b/mtunzip
+index 1763686..200d0d6 100755
+--- a/mtunzip
++++ b/mtunzip
+@@ -1,8 +1,8 @@
+ #!/bin/ksh
+ INSTALLDIR=`dirname $0`/../lib
+-LD_PRELOAD=$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
++LD_PRELOAD=${LD_PRELOAD:-}:$INSTALLDIR/`uname -s`-`uname -m`/mtwrite.so
+ MTWRITE_VERBOSE=${MTWRITE_VERBOSE:=1}			# default
+-MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=32}		# default
++MTWRITE_MAXTHREADS=${MTWRITE_MAXTHREADS:=`/usr/sbin/psrinfo | wc -l`}		# default
+ MTWRITE_MEMPERTHREAD=${MTWRITE_MEMPERTHREAD:=16M}	# default
+ export LD_PRELOAD MTWRITE_VERBOSE MTWRITE_MAXTHREADS MTWRITE_MEMPERTHREAD
+ exec unzip $@
+-- 
+1.7.0
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list