diff options
author | Steve Price <steve@FreeBSD.org> | 1999-06-09 00:51:12 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-06-09 00:51:12 +0000 |
commit | 079b2fc2f4083ccd92c8a64a10d155a5c3582bd5 (patch) | |
tree | 31bd78a2f0e1224f7afca936e06d237489fee76f /sysutils/sdd | |
parent | Activate the gup port. (diff) |
Initial import of sdd version 1.22.
A faster and improved version of dd.
PR: 11718
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
Notes
Notes:
svn path=/head/; revision=19355
Diffstat (limited to 'sysutils/sdd')
-rw-r--r-- | sysutils/sdd/Makefile | 32 | ||||
-rw-r--r-- | sysutils/sdd/distinfo | 1 | ||||
-rw-r--r-- | sysutils/sdd/files/patch-aa | 39 | ||||
-rw-r--r-- | sysutils/sdd/files/patch-ab | 27 | ||||
-rw-r--r-- | sysutils/sdd/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/sdd/pkg-descr | 19 | ||||
-rw-r--r-- | sysutils/sdd/pkg-plist | 1 |
7 files changed, 120 insertions, 0 deletions
diff --git a/sysutils/sdd/Makefile b/sysutils/sdd/Makefile new file mode 100644 index 000000000000..e0197e5e6b2f --- /dev/null +++ b/sysutils/sdd/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: sdd +# Version required: 1.22 +# Date created: 1999-05-05 +# Whom: Christian Weisgerber <naddy@mips.rhein-neckar.de> +# +# $Id$ +# + +DISTNAME= sdd-1.22 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.fokus.gmd.de/pub/unix/sdd/ + +MAINTAINER= naddy@mips.rhein-neckar.de + +USE_GMAKE= yes +MAKE_ENV= MAKEPROG=gmake CCOM=${CC} +MAN1= sdd.1 + +.include <bsd.port.pre.mk> + +.if ${ARCH} != i386 || ${CC} != cc +do-configure: + @${CP} -f ${WRKSRC}/RULES/i386-freebsd-cc.rul \ + ${WRKSRC}/RULES/${ARCH}-freebsd-${CC}.rul +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sdd/OBJ/${ARCH}-freebsd-${CC}/sdd \ + ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sdd/sdd.1 ${PREFIX}/man/man1 + +.include <bsd.port.post.mk> diff --git a/sysutils/sdd/distinfo b/sysutils/sdd/distinfo new file mode 100644 index 000000000000..eff928fc779a --- /dev/null +++ b/sysutils/sdd/distinfo @@ -0,0 +1 @@ +MD5 (sdd-1.22.tar.gz) = 2046babedb375af6bc4ce11ba2db8b0a diff --git a/sysutils/sdd/files/patch-aa b/sysutils/sdd/files/patch-aa new file mode 100644 index 000000000000..92db3e7bbaaa --- /dev/null +++ b/sysutils/sdd/files/patch-aa @@ -0,0 +1,39 @@ +--- RULES/i386-freebsd-cc.rul.orig Sun Apr 27 01:46:00 1997 ++++ RULES/i386-freebsd-cc.rul Thu May 6 02:12:08 1999 +@@ -24,7 +24,7 @@ + ########################################################################### + + CPPFLAGS= $(CPPOPTS) $(CPPOPTX) +-CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(COPTX) ++CFLAGS+= $(COPTS) $(CWARNOPTS) $(COPTX) + + CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) + COPTS= +@@ -47,7 +47,7 @@ + + LIBS_PATH= -L$(OLIBSDIR) + +-LDFLAGS= $(LDOPTS) $(LDOPTX) ++LDFLAGS+= $(LDOPTS) $(LDOPTX) + LDLIBS= $(LIBS) $(LIBX) + + #LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) +@@ -57,14 +57,14 @@ + + FLOAT_OPTIONS= + +-CC= @echo " ==> COMPILING \"$@\""; gcc +-LDCC= @echo " ==> LINKING \"$@\""; gcc +-DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc ++CC= @echo " ==> COMPILING \"$@\""; ${CCOM} ++LDCC= @echo " ==> LINKING \"$@\""; ${CCOM} ++DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ${CCOM} + RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib + ARFLAGS= cr + LORDER= lorder + TSORT= tsort + + RMDEP= : +-MKDEP= @echo " ==> MAKE DEPENDENCIES \"$@\""; $(RMDEP); gcc -M ++MKDEP= @echo " ==> MAKE DEPENDENCIES \"$@\""; $(RMDEP); ${CCOM} -M + MKDEP_OUT= diff --git a/sysutils/sdd/files/patch-ab b/sysutils/sdd/files/patch-ab new file mode 100644 index 000000000000..d6e676fd32b5 --- /dev/null +++ b/sysutils/sdd/files/patch-ab @@ -0,0 +1,27 @@ +--- sdd/sdd.c.orig Wed May 5 17:54:07 1999 ++++ sdd/sdd.c Wed May 5 17:56:34 1999 +@@ -1378,11 +1378,13 @@ + usage(ex) + int ex; + { +- error("\ ++ FILE *fp = ex ? stderr : stdout; ++ ++ fprintf(fp, "\ + Usage: sdd [option=value] [-flag]\n\ + Options:\n\ + "); +- error ("\ ++ fprintf(fp, "\ + if=name Read input from name instead of stdin\n\ + of=name Write output to name instead of stdout\n\ + -inull Do not read input from file (use null char's)\n\ +@@ -1396,7 +1398,7 @@ + seek=#,skip=# Seek/skip # bytes on input/output before starting\n\ + ivseek=#,ovseek=# Seek # bytes on input/output volumes before starting\n\ + "); +- error("\ ++ fprintf(fp, "\ + -notrunc Do not trunctate existing output file\n\ + -pg Print a dot on each write to indicate progress\n\ + -noerror Do not stop on error\n\ diff --git a/sysutils/sdd/pkg-comment b/sysutils/sdd/pkg-comment new file mode 100644 index 000000000000..42987c6d3ee0 --- /dev/null +++ b/sysutils/sdd/pkg-comment @@ -0,0 +1 @@ +Faster and improved version of dd. diff --git a/sysutils/sdd/pkg-descr b/sysutils/sdd/pkg-descr new file mode 100644 index 000000000000..ed5e80fa3964 --- /dev/null +++ b/sysutils/sdd/pkg-descr @@ -0,0 +1,19 @@ +sdd is a replacement for dd(1). + +- Much faster than dd in cases where input block size (ibs) is not equal + to the output block size (obs). +- sdd does not share the design bugs of dd that cause fragments to be + read from a pipe and filled up to input block size. +- Statistics are much better readable as from 'dd'. +- Timing available, -time option will print transfer speed +- Timing & Statistics available at any time with SIGQUIT (^\) +- Can seek on input and output +- Fast null input +- Fast null output +- Reblocking on pipes does not fill small input blocks to + input block size +- Debug printing +- Progress printing + +Author: Joerg Schilling <schilling@fokus.gmd.de> +Please mail bugs and suggestions to him. diff --git a/sysutils/sdd/pkg-plist b/sysutils/sdd/pkg-plist new file mode 100644 index 000000000000..6f39f2fd4f0a --- /dev/null +++ b/sysutils/sdd/pkg-plist @@ -0,0 +1 @@ +bin/sdd |