diff options
author | pav <pav@FreeBSD.org> | 2004-01-23 23:28:58 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-01-23 23:28:58 +0000 |
commit | 5bc180b91bdaa8ed40997eb4171b11d1f7f74b58 (patch) | |
tree | 78504dfac28f22ef181f2a6860bad6063b0c9661 | |
parent | 0eb15bdbf2719d4f481617faf0c10040dd13503d (diff) | |
download | FreeBSD-ports-5bc180b91bdaa8ed40997eb4171b11d1f7f74b58.zip FreeBSD-ports-5bc180b91bdaa8ed40997eb4171b11d1f7f74b58.tar.gz |
dt is a generic data test program used to verify proper operation of
peripherals, file systems, device drivers, or any data stream supported
by the operating system. In its' simplest mode of operation, dt writes
and then verifys its' default data pattern, then displays performance
statisics and other test parameters before exiting. Since verification
of data is performed, dt can be thought of as a generic diagnostic tool.
WWW: http://www.bit-net.com/~rmiller/dt.html
PR: ports/61801
Submitted by: Radim Kolar <hsn@netmag.cz>
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/dt/Makefile | 43 | ||||
-rw-r--r-- | sysutils/dt/distinfo | 1 | ||||
-rw-r--r-- | sysutils/dt/files/patch-Makefile.freebsd | 213 | ||||
-rw-r--r-- | sysutils/dt/pkg-descr | 14 | ||||
-rw-r--r-- | sysutils/dt/pkg-plist | 22 |
6 files changed, 294 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 5ae9e70..0aef826 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -84,6 +84,7 @@ SUBDIR += diskusage SUBDIR += dmidecode SUBDIR += doconfig + SUBDIR += dt SUBDIR += du2ps SUBDIR += dump9660 SUBDIR += duplicity diff --git a/sysutils/dt/Makefile b/sysutils/dt/Makefile new file mode 100644 index 0000000..dda31b0 --- /dev/null +++ b/sysutils/dt/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: dt +# Date created: 14 Jan 2004 +# Whom: Radim Kolar +# +# $FreeBSD$ +# + +PORTNAME= dt +PORTVERSION= 14.33 +CATEGORIES= sysutils +MASTER_SITES= http://www.bit-net.com/~rmiller/ftp/dt/ +DISTNAME= dt-source + +MAINTAINER= hsn@netmag.cz +COMMENT= Data Test Program - disk/tape error diagnostic tool + +USE_REINPLACE= yes + +WRKSRC= ${WRKDIR}/dt.d +ALL_TARGET= dt + +PORTDOCS= README.1st ToDoList WhatsNew-* dt-UsersGuide.txt dt-Overview.txt + +post-patch: + @${CP} ${WRKSRC}/Makefile.freebsd ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dt ${PREFIX}/sbin + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pattern_* ${DATADIR} + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/dta ${WRKSRC}/dtc ${WRKSRC}/dtf ${WRKSRC}/dtr ${WRKSRC}/dts ${WRKSRC}/dtt ${WRKSRC}/dtw ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/MakeTestDisc ${EXAMPLESDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.1st ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/ToDoList ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/WhatsNew-* ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/dt-UsersGuide.txt ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/dt.help ${DOCSDIR}/dt-Overview.txt +.endif + +.include <bsd.port.mk> diff --git a/sysutils/dt/distinfo b/sysutils/dt/distinfo new file mode 100644 index 0000000..e27aa88 --- /dev/null +++ b/sysutils/dt/distinfo @@ -0,0 +1 @@ +MD5 (dt-source.tar.gz) = a20d34e3593fc308311a9dec8edb7142 diff --git a/sysutils/dt/files/patch-Makefile.freebsd b/sysutils/dt/files/patch-Makefile.freebsd new file mode 100644 index 0000000..e3473c5 --- /dev/null +++ b/sysutils/dt/files/patch-Makefile.freebsd @@ -0,0 +1,213 @@ +--- Makefile.freebsd.orig Wed Oct 20 20:46:21 1999 ++++ Makefile.freebsd Sat Jan 24 00:23:32 2004 +@@ -185,196 +185,17 @@ + + # DO NOT DELETE THIS LINE + +-dt.o dt.ln: dt.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/ctype.h \ +- /usr/include/runetype.h /usr/include/signal.h \ +- /usr/include/sys/ioctl.h /usr/include/sys/filio.h \ +- /usr/include/sys/sockio.h /usr/include/sys/file.h \ +- /usr/include/sys/fcntl.h /usr/include/sys/param.h \ +- /usr/include/sys/syslimits.h /usr/include/machine/param.h \ +- /usr/include/machine/alpha_cpu.h /usr/include/machine/cpu.h \ +- /usr/include/machine/frame.h /usr/include/machine/limits.h \ +- /usr/include/sys/wait.h +-dtgen.o dtgen.ln: dtgen.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/file.h \ +- /usr/include/sys/fcntl.h +-dtinfo.o dtinfo.ln: dtinfo.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/ioctl.h \ +- /usr/include/sys/filio.h /usr/include/sys/sockio.h +-dtread.o dtread.ln: dtread.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/file.h \ +- /usr/include/sys/fcntl.h +-dtwrite.o dtwrite.ln: dtwrite.c dt.h /usr/include/stdio.h \ +- /usr/include/sys/cdefs.h /usr/include/machine/ansi.h \ +- /usr/include/stdlib.h /usr/include/string.h /usr/include/fcntl.h \ +- /usr/include/sys/types.h /usr/include/sys/inttypes.h \ +- /usr/include/machine/types.h /usr/include/machine/endian.h \ +- /usr/include/termios.h /usr/include/sys/ttycom.h \ +- /usr/include/sys/ioccom.h /usr/include/sys/ttydefaults.h \ +- /usr/include/time.h /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/file.h \ +- /usr/include/sys/fcntl.h +-dtstats.o dtstats.ln: dtstats.c dt.h /usr/include/stdio.h \ +- /usr/include/sys/cdefs.h /usr/include/machine/ansi.h \ +- /usr/include/stdlib.h /usr/include/string.h /usr/include/fcntl.h \ +- /usr/include/sys/types.h /usr/include/sys/inttypes.h \ +- /usr/include/machine/types.h /usr/include/machine/endian.h \ +- /usr/include/termios.h /usr/include/sys/ttycom.h \ +- /usr/include/sys/ioccom.h /usr/include/sys/ttydefaults.h \ +- /usr/include/time.h /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h +-dttty.o dttty.ln: dttty.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/ioctl.h \ +- /usr/include/sys/filio.h /usr/include/sys/sockio.h \ +- /usr/include/sys/file.h /usr/include/sys/fcntl.h \ +- /usr/include/sys/param.h /usr/include/sys/syslimits.h \ +- /usr/include/machine/param.h /usr/include/machine/alpha_cpu.h \ +- /usr/include/machine/cpu.h /usr/include/machine/frame.h \ +- /usr/include/machine/limits.h +-dtutil.o dtutil.ln: dtutil.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/ctype.h \ +- /usr/include/runetype.h /usr/include/stdarg.h +-dtusage.o dtusage.ln: dtusage.c dt.h /usr/include/stdio.h \ +- /usr/include/sys/cdefs.h /usr/include/machine/ansi.h \ +- /usr/include/stdlib.h /usr/include/string.h /usr/include/fcntl.h \ +- /usr/include/sys/types.h /usr/include/sys/inttypes.h \ +- /usr/include/machine/types.h /usr/include/machine/endian.h \ +- /usr/include/termios.h /usr/include/sys/ttycom.h \ +- /usr/include/sys/ioccom.h /usr/include/sys/ttydefaults.h \ +- /usr/include/time.h /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h +-dtprocs.o dtprocs.ln: dtprocs.c dt.h /usr/include/stdio.h \ +- /usr/include/sys/cdefs.h /usr/include/machine/ansi.h \ +- /usr/include/stdlib.h /usr/include/string.h /usr/include/fcntl.h \ +- /usr/include/sys/types.h /usr/include/sys/inttypes.h \ +- /usr/include/machine/types.h /usr/include/machine/endian.h \ +- /usr/include/termios.h /usr/include/sys/ttycom.h \ +- /usr/include/sys/ioccom.h /usr/include/sys/ttydefaults.h \ +- /usr/include/time.h /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/signal.h \ +- /usr/include/sys/wait.h +-dtmmap.o dtmmap.ln: dtmmap.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/limits.h \ +- /usr/include/machine/limits.h /usr/include/sys/syslimits.h \ +- /usr/include/sys/mman.h +-dtfifo.o dtfifo.ln: dtfifo.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h +-dttape.o dttape.ln: dttape.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/sys/ioctl.h \ +- /usr/include/sys/filio.h /usr/include/sys/sockio.h \ +- /usr/include/sys/mtio.h +-dtaio.o dtaio.ln: dtaio.c dt.h /usr/include/stdio.h /usr/include/sys/cdefs.h \ +- /usr/include/machine/ansi.h /usr/include/stdlib.h \ +- /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/types.h \ +- /usr/include/sys/inttypes.h /usr/include/machine/types.h \ +- /usr/include/machine/endian.h /usr/include/termios.h \ +- /usr/include/sys/ttycom.h /usr/include/sys/ioccom.h \ +- /usr/include/sys/ttydefaults.h /usr/include/time.h \ +- /usr/include/sys/_posix.h /usr/include/unistd.h \ +- /usr/include/sys/unistd.h /usr/include/math.h /usr/include/errno.h \ +- /usr/include/sys/times.h /usr/include/sys/stat.h \ +- /usr/include/sys/time.h /usr/include/aio.h /usr/include/sys/signal.h \ +- /usr/include/machine/signal.h /usr/include/limits.h \ +- /usr/include/machine/limits.h /usr/include/sys/syslimits.h ++dt.o dt.ln: dt.c dt.h ++dtgen.o dtgen.ln: dtgen.c ++dtinfo.o dtinfo.ln: dtinfo.c dt.h ++dtread.o dtread.ln: dtread.c dt.h ++dtwrite.o dtwrite.ln: dtwrite.c dt.h ++dtstats.o dtstats.ln: dtstats.c dt.h ++dttty.o dttty.ln: dttty.c dt.h ++dtutil.o dtutil.ln: dtutil.c dt.h ++dtusage.o dtusage.ln: dtusage.c dt.h ++dtprocs.o dtprocs.ln: dtprocs.c dt.h ++dtmmap.o dtmmap.ln: dtmmap.c dt.h ++dtfifo.o dtfifo.ln: dtfifo.c dt.h ++dttape.o dttape.ln: dttape.c dt.h ++dtaio.o dtaio.ln: dtaio.c dt.h diff --git a/sysutils/dt/pkg-descr b/sysutils/dt/pkg-descr new file mode 100644 index 0000000..f62d436 --- /dev/null +++ b/sysutils/dt/pkg-descr @@ -0,0 +1,14 @@ +dt is a generic data test program used to verify proper operation of +peripherals, file systems, device drivers, or any data stream supported +by the operating system. In its' simplest mode of operation, dt writes +and then verifys its' default data pattern, then displays performance +statisics and other test parameters before exiting. Since verification +of data is performed, dt can be thought of as a generic diagnostic tool. + +dt has been used to successfully test disks, tapes, serial lines, +parallel lines, pipes, and memory mapped files. In fact, dt can be used +for any device that allows the standard open, read, write, and close +system calls. Special support is necessary for some devices, such as +serial lines, for setting up the speed, parity, data bits, etc. + +WWW: http://www.bit-net.com/~rmiller/dt.html diff --git a/sysutils/dt/pkg-plist b/sysutils/dt/pkg-plist new file mode 100644 index 0000000..ef41862 --- /dev/null +++ b/sysutils/dt/pkg-plist @@ -0,0 +1,22 @@ +sbin/dt +%%DATADIR%%/pattern_0 +%%DATADIR%%/pattern_1 +%%DATADIR%%/pattern_2 +%%DATADIR%%/pattern_3 +%%DATADIR%%/pattern_4 +%%DATADIR%%/pattern_5 +%%DATADIR%%/pattern_6 +%%DATADIR%%/pattern_7 +%%DATADIR%%/pattern_8 +%%DATADIR%%/pattern_9 +%%DATADIR%%/pattern_all +@dirrm %%DATADIR%% +%%EXAMPLESDIR%%/dta +%%EXAMPLESDIR%%/dtc +%%EXAMPLESDIR%%/dtf +%%EXAMPLESDIR%%/dtr +%%EXAMPLESDIR%%/dts +%%EXAMPLESDIR%%/dtt +%%EXAMPLESDIR%%/dtw +%%EXAMPLESDIR%%/MakeTestDisc +@dirrm %%EXAMPLESDIR%% |