Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 May 1999 03:36:56 +0200 (CEST)
From:      Christian Weisgerber <naddy@mips.rhein-neckar.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11718: New port: sdd
Message-ID:  <199905150136.DAA23485@bigeye.rhein-neckar.de>

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

>Number:         11718
>Category:       ports
>Synopsis:       New port: sdd
>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:   Fri May 14 19:40:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:


>Description:

sdd: Joerg Schilling's enhanced dd(1),
     a companion program to sysutils/star.

>How-To-Repeat:


>Fix:
	
# 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:
#
#	sdd
#	sdd/files
#	sdd/files/md5
#	sdd/pkg
#	sdd/pkg/COMMENT
#	sdd/pkg/DESCR
#	sdd/pkg/PLIST
#	sdd/Makefile
#	sdd/patches
#	sdd/patches/patch-aa
#	sdd/patches/patch-ab
#
echo c - sdd
mkdir -p sdd > /dev/null 2>&1
echo c - sdd/files
mkdir -p sdd/files > /dev/null 2>&1
echo x - sdd/files/md5
sed 's/^X//' >sdd/files/md5 << 'END-of-sdd/files/md5'
XMD5 (sdd-1.22.tar.gz) = 2046babedb375af6bc4ce11ba2db8b0a
END-of-sdd/files/md5
echo c - sdd/pkg
mkdir -p sdd/pkg > /dev/null 2>&1
echo x - sdd/pkg/COMMENT
sed 's/^X//' >sdd/pkg/COMMENT << 'END-of-sdd/pkg/COMMENT'
XFaster and improved version of dd.
END-of-sdd/pkg/COMMENT
echo x - sdd/pkg/DESCR
sed 's/^X//' >sdd/pkg/DESCR << 'END-of-sdd/pkg/DESCR'
Xsdd is a replacement for dd(1).
X
X- Much faster than dd in cases where input block size (ibs) is not equal
X  to the output block size (obs).
X- sdd does not share the design bugs of dd that cause fragments to be
X  read from a pipe and filled up to input block size.
X- Statistics are much better readable as from 'dd'.
X- Timing available, -time option will print transfer speed
X- Timing & Statistics available at any time with SIGQUIT (^\)
X- Can seek on input and output
X- Fast null input
X- Fast null output
X- Reblocking on pipes does not fill small input blocks to 
X  input block size
X- Debug printing
X- Progress printing
X
XAuthor: Joerg Schilling <schilling@fokus.gmd.de>
XPlease mail bugs and suggestions to him.
END-of-sdd/pkg/DESCR
echo x - sdd/pkg/PLIST
sed 's/^X//' >sdd/pkg/PLIST << 'END-of-sdd/pkg/PLIST'
Xbin/sdd
END-of-sdd/pkg/PLIST
echo x - sdd/Makefile
sed 's/^X//' >sdd/Makefile << 'END-of-sdd/Makefile'
X# New ports collection makefile for:	sdd
X# Version required:	1.22
X# Date created:		1999-05-05
X# Whom:			Christian Weisgerber <naddy@mips.rhein-neckar.de>
X#
X# $Id$
X#
X
XDISTNAME=	sdd-1.22
XCATEGORIES=	sysutils
XMASTER_SITES=	ftp://ftp.fokus.gmd.de/pub/unix/sdd/
X
XMAINTAINER=	naddy@mips.rhein-neckar.de
X
XUSE_GMAKE=	yes
XMAKE_ENV=	MAKEPROG=gmake CCOM=${CC}
XMAN1=		sdd.1
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} != i386 || ${CC} != cc
Xdo-configure:
X	@${CP} -f ${WRKSRC}/RULES/i386-freebsd-cc.rul \
X		${WRKSRC}/RULES/${ARCH}-freebsd-${CC}.rul
X.endif
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/sdd/OBJ/${ARCH}-freebsd-${CC}/sdd \
X		${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/sdd/sdd.1 ${PREFIX}/man/man1
X
X.include <bsd.port.post.mk>
END-of-sdd/Makefile
echo c - sdd/patches
mkdir -p sdd/patches > /dev/null 2>&1
echo x - sdd/patches/patch-aa
sed 's/^X//' >sdd/patches/patch-aa << 'END-of-sdd/patches/patch-aa'
X--- RULES/i386-freebsd-cc.rul.orig	Sun Apr 27 01:46:00 1997
X+++ RULES/i386-freebsd-cc.rul	Thu May  6 02:12:08 1999
X@@ -24,7 +24,7 @@
X ###########################################################################
X 
X CPPFLAGS=	$(CPPOPTS) $(CPPOPTX)
X-CFLAGS=		$(COPTS) $(CWARNOPTS) $(COPTOPT) $(COPTX)
X+CFLAGS+=	$(COPTS) $(CWARNOPTS) $(COPTX)
X 
X CPPOPTS=	-I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
X COPTS=
X@@ -47,7 +47,7 @@
X 
X LIBS_PATH=	-L$(OLIBSDIR)
X 
X-LDFLAGS=	$(LDOPTS) $(LDOPTX)
X+LDFLAGS+=	$(LDOPTS) $(LDOPTX)
X LDLIBS=		$(LIBS) $(LIBX)
X 
X #LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH)
X@@ -57,14 +57,14 @@
X 
X FLOAT_OPTIONS=	
X 
X-CC=		@echo "	==> COMPILING \"$@\""; gcc
X-LDCC=		@echo "	==> LINKING \"$@\""; gcc
X-DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; gcc
X+CC=		@echo "	==> COMPILING \"$@\""; ${CCOM}
X+LDCC=		@echo "	==> LINKING \"$@\""; ${CCOM}
X+DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; ${CCOM}
X RANLIB=		@echo "	==> RANDOMIZING ARCHIVE \"$@\""; ranlib
X ARFLAGS=	cr
X LORDER=		lorder
X TSORT=		tsort
X 
X RMDEP=		:
X-MKDEP=		@echo "	==> MAKE DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
X+MKDEP=		@echo "	==> MAKE DEPENDENCIES \"$@\""; $(RMDEP); ${CCOM} -M
X MKDEP_OUT=
END-of-sdd/patches/patch-aa
echo x - sdd/patches/patch-ab
sed 's/^X//' >sdd/patches/patch-ab << 'END-of-sdd/patches/patch-ab'
X--- sdd/sdd.c.orig	Wed May  5 17:54:07 1999
X+++ sdd/sdd.c	Wed May  5 17:56:34 1999
X@@ -1378,11 +1378,13 @@
X usage(ex)
X 	int ex;
X {
X-	error("\
X+	FILE *fp = ex ? stderr : stdout;
X+
X+	fprintf(fp, "\
X Usage:	sdd [option=value] [-flag]\n\
X Options:\n\
X ");
X-	error ("\
X+	fprintf(fp, "\
X 	if=name		  Read  input from name instead of stdin\n\
X 	of=name		  Write output to name instead of stdout\n\
X 	-inull		  Do not read input from file (use null char's)\n\
X@@ -1396,7 +1398,7 @@
X 	seek=#,skip=#	  Seek/skip # bytes on input/output before starting\n\
X 	ivseek=#,ovseek=# Seek # bytes on input/output volumes before starting\n\
X ");
X-	error("\
X+	fprintf(fp, "\
X 	-notrunc	  Do not trunctate existing output file\n\
X 	-pg		  Print a dot on each write to indicate progress\n\
X 	-noerror	  Do not stop on error\n\
END-of-sdd/patches/patch-ab
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?199905150136.DAA23485>