aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/memtest86/Makefile
blob: f15ed4401bcdce4fd19891eb0427bc0fd6f4eeaa (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
# New ports collection makefile for:    memtest86
# Date created:     27 Mar 2004
# Whom:         Radim Kolar
#
# $FreeBSD$
#

PORTNAME=   memtest86
PORTVERSION=    3.3
CATEGORIES= sysutils
MASTER_SITES=   http://www.memtest86.com/download/
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}.iso.zip
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Stand alone memory test for x86 architecture computers

EXTRACT_DEPENDS=    unzip:${PORTSDIR}/archivers/unzip

ONLY_FOR_ARCHS= i386

NO_BUILD=   yes

PORTDOCS=   README
PLIST_FILES=    %%DATADIR%%/floppy.bin %%DATADIR%%/memtest.iso
PLIST_DIRS= %%DATADIR%%

SUB_FILES=  pkg-message

post-extract:
    @${UNZIP_CMD} -qo ${DISTDIR}/${DISTNAME}.iso.zip -d ${WRKSRC}

do-install:
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/precomp.bin ${DATADIR}/floppy.bin
    ${INSTALL_DATA} ${WRKSRC}/memtest.iso ${DATADIR}/memtest.iso
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>