aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/vmsbackup/Makefile
blob: f86079d3646465c40c2f19b0fd67abb6c03f22de (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
# New ports collection makefile for:    vmsbackup
# Date created:     18 Apr 1994
# Whom:         Jonathan M. Bresler (jmb)
#
# $FreeBSD$
#

PORTNAME=   vmsbackup
PORTVERSION=    4.1.1
CATEGORIES= emulators sysutils
MASTER_SITES=   ftp://ftp.lp.se/free-vms/ \
        http://dl.droso.net/FreeBSD/distfiles/
DISTNAME=   VMSBACKUP4-1-1
EXTRACT_SUFX=   .ZIP

MAINTAINER= ports@FreeBSD.org
COMMENT=    Reads VMS BACKUP tapes

EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
USE_REINPLACE=  yes
ALL_TARGET= vmsbackup

PLIST_FILES=    bin/vmsbackup
MAN1=       vmsbackup.1
MANCOMPRESSED=  no

do-extract:
    ${MKDIR} ${WRKSRC}
    unzip ${DISTDIR}/${DISTNAME} -d ${WRKSRC}

post-patch:
    @${REINPLACE_CMD} -e 's#gets(ans);#fgets(ans, 80, stdin);#' ${WRKSRC}/vmsbackup.c
    @${REINPLACE_CMD} -e 's#"getopt.h"#<unistd.h>#' ${WRKSRC}/getoptmain.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/vmsbackup ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1

.include <bsd.port.mk>