aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dt/Makefile
blob: 1dec95c8b131245e4213e55e1edd43e1a2419239 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Radim Kolar
# $FreeBSD$

PORTNAME=	dt
PORTVERSION=	17.07
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/dt/ \
		http://ionut.tetcu.info/FreeBSD/ports/distfiles/
#PORTVERSION=	18.32
#MASTER_SITES=	http://www.scsifaq.org/RMiller_Tools/ftp/dt/ \
#		http://dl.dropboxusercontent.com/u/32363629/Datatest/
#DISTNAME=	${PORTNAME}-source-v${PORTVERSION
DISTNAME=	${PORTNAME}-source

MAINTAINER=	itetcu@FreeBSD.org
COMMENT=	Data Test Program - disk/tape error diagnostic tool

LICENSE=	ISCL

OPTIONS_DEFINE=	DOCS

USES=		shebangfix
SHEBANG_FILES=	Scripts/DiskTests.ksh \
		Scripts/butterfly.ksh \
		Scripts/butterfly_file.ksh \
		Scripts/dt_noprog_script.ksh
WRKSRC=		${WRKDIR}/dt.d
MAKEFILE=	Makefile.freebsd
ALL_TARGET=	dt

PORTDOCS=	README.1st ToDoList WhatsNew-* dt-UsersGuide.pdf dt-Overview.txt

post-patch:
	@${REINPLACE_CMD} -i '' -e 's|/usr/bin/ksh|${ksh_CMD}|' \
		${WRKSRC}/Scripts/trigger-AIX.ksh

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dt ${STAGEDIR}${PREFIX}/sbin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/data/pattern_* ${STAGEDIR}${DATADIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for script in DiskTests.ksh butterfly.ksh butterfly_file.ksh dt_noprog_script.ksh \
	dta dtc dtf dtr dts dtt dtw trigger-AIX.ksh
	${INSTALL_SCRIPT} ${WRKSRC}/Scripts/${script} ${STAGEDIR}${EXAMPLESDIR}
.endfor
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.1st \
		${WRKSRC}/ToDoList \
		${WRKSRC}/WhatsNewFiles/WhatsNew-* \
		${WRKSRC}/Documentation/dt-UsersGuide.pdf ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/Documentation/dt.help ${STAGEDIR}${DOCSDIR}/dt-Overview.txt

.include <bsd.port.mk>