Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 21:38:45 +0100
From:      Radim Kolar <hsn@netmag.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/61801: new port: dt
Message-ID:  <E1Ak84j-0006aX-7i@asura.bsd>
Resent-Message-ID: <200401232050.i0NKoMDi059536@freefall.freebsd.org>

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

>Number:         61801
>Category:       ports
>Synopsis:       new port: dt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 23 12:50:22 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
Sanatana Dharma
>Environment:
System: FreeBSD asura.bsd 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Thu Jan 15 18:35:03 CET 2004 root@asura.bsd:/usr/obj/usr/src/sys/GENERIC i386

>Description:
I am sending a new port of disk test utility. This port has problem
that upstream source is distributed always named dt-source.tar.gz,
so it needs to be copied to some other safe location before adding it
to ports tree. I have not verified that my dt-source.tar.gz is current,
my is from September 2003, so don't be surprices if you got md5 errors.
	<code/input/activities to reproduce the problem (multiple lines)>
>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:
#
#	dt
#	dt/Makefile
#	dt/distinfo
#	dt/pkg-descr
#	dt/pkg-plist
#
echo c - dt
mkdir -p dt > /dev/null 2>&1
echo x - dt/Makefile
sed 's/^X//' >dt/Makefile << 'END-of-dt/Makefile'
X# New ports collection makefile for:    dt
X# Date created:         		14 Jan 2004
X# Whom:                 		Radim Kolar
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dt
XPORTVERSION=	14.31
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.bit-net.com/~rmiller/ftp/dt/
XDISTNAME=	dt-source
X
XMAINTAINER=	hsn@netmag.cz
XCOMMENT=	Data Test Program - disk/tape error diagnostic tool
X
XWRKSRC=		${WRKDIR}/dt.d
X
Xdo-configure:
X	cd ${WRKSRC} && ${CP} Makefile.freebsd Makefile && make clean && make depend
X
XALL_TARGET=dt
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/dt ${PREFIX}/sbin
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/pattern_* ${DATADIR}
X	${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/dta ${WRKSRC}/dtc ${WRKSRC}/dtf ${WRKSRC}/dtr ${WRKSRC}/dts ${WRKSRC}/dtt ${WRKSRC}/dtw ${EXAMPLESDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/MakeTestDisc ${EXAMPLESDIR}
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README.1st ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/ToDoList ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/WhatsNew-* ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/dt-UsersGuide.txt ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/dt.help ${DOCSDIR}/dt-Overview.txt
XPORTDOCS=README.1st ToDoList WhatsNew-* dt-UsersGuide.txt dt-Overview.txt
X.endif
X
X.include <bsd.port.mk>
END-of-dt/Makefile
echo x - dt/distinfo
sed 's/^X//' >dt/distinfo << 'END-of-dt/distinfo'
XMD5 (dt-source.tar.gz) = 4c12035031c6364e852300afe8bfbc23
END-of-dt/distinfo
echo x - dt/pkg-descr
sed 's/^X//' >dt/pkg-descr << 'END-of-dt/pkg-descr'
Xdt is a generic data test program used to verify proper operation of
Xperipherals, file systems, device drivers, or any data stream supported
Xby the operating system. In its' simplest mode of operation, dt writes
Xand then verifys its' default data pattern, then displays performance
Xstatisics and other test parameters before exiting. Since verification
Xof data is performed, dt can be thought of as a generic diagnostic tool.
X
Xdt has been used to successfully test disks, tapes, serial lines,
Xparallel lines, pipes, and memory mapped files. In fact, dt can be used
Xfor any device that allows the standard open, read, write, and close
Xsystem calls.  Special support is necessary for some devices, such as
Xserial lines, for setting up the speed, parity, data bits, etc.
X
XWWW: http://www.bit-net.com/~rmiller/dt.html
END-of-dt/pkg-descr
echo x - dt/pkg-plist
sed 's/^X//' >dt/pkg-plist << 'END-of-dt/pkg-plist'
Xsbin/dt
X%%DATADIR%%/pattern_0
X%%DATADIR%%/pattern_1
X%%DATADIR%%/pattern_2
X%%DATADIR%%/pattern_3
X%%DATADIR%%/pattern_4
X%%DATADIR%%/pattern_5
X%%DATADIR%%/pattern_6
X%%DATADIR%%/pattern_7
X%%DATADIR%%/pattern_8
X%%DATADIR%%/pattern_9
X%%DATADIR%%/pattern_all
X@dirrm %%DATADIR%%
X%%EXAMPLESDIR%%/dta
X%%EXAMPLESDIR%%/dtc
X%%EXAMPLESDIR%%/dtf
X%%EXAMPLESDIR%%/dtr
X%%EXAMPLESDIR%%/dts
X%%EXAMPLESDIR%%/dtt
X%%EXAMPLESDIR%%/dtw
X%%EXAMPLESDIR%%/MakeTestDisc
X@dirrm %%EXAMPLESDIR%%
END-of-dt/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Ak84j-0006aX-7i>