Date: Thu, 5 Jun 2014 19:02:33 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r356682 - in head/emulators/vmsbackup: . files Message-ID: <201406051902.s55J2XVm027919@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Thu Jun 5 19:02:33 2014 New Revision: 356682 URL: http://svnweb.freebsd.org/changeset/ports/356682 QAT: https://qat.redports.org/buildarchive/r356682/ Log: emulators/vmsbackup: Unbreak on F9+ This port really does require infozip, the base unzip fails to extract with the message, "Invalid central directory signature". /usr/bin/tar also fails with a similar message. This source file only needed a couple of minor fixes to build again. Passes Redports 8x Added: head/emulators/vmsbackup/files/ head/emulators/vmsbackup/files/patch-vmsbackup.c (contents, props changed) Modified: head/emulators/vmsbackup/Makefile Modified: head/emulators/vmsbackup/Makefile ============================================================================== --- head/emulators/vmsbackup/Makefile Thu Jun 5 18:56:20 2014 (r356681) +++ head/emulators/vmsbackup/Makefile Thu Jun 5 19:02:33 2014 (r356682) @@ -13,30 +13,16 @@ EXTRACT_SUFX= .ZIP MAINTAINER= ports@FreeBSD.org COMMENT= Reads VMS BACKUP tapes -EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip +USES= zip:infozip ALL_TARGET= vmsbackup - -PLIST_FILES= bin/vmsbackup -MAN1= vmsbackup.1 -MANCOMPRESSED= no - -NO_STAGE= yes -do-extract: - ${MKDIR} ${WRKSRC} - ${UNZIP_CMD} ${DISTDIR}/${DISTNAME} -d ${WRKSRC} +NO_WRKSUBDIR= yes +PLIST_FILES= bin/vmsbackup man/man1/vmsbackup.1.gz 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.pre.mk> - -.if ${OSVERSION} >= 900000 -BROKEN= does not build -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/vmsbackup ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/vmsbackup.1 ${STAGEDIR}${PREFIX}/man/man1 -.include <bsd.port.post.mk> +.include <bsd.port.mk> Added: head/emulators/vmsbackup/files/patch-vmsbackup.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/vmsbackup/files/patch-vmsbackup.c Thu Jun 5 19:02:33 2014 (r356682) @@ -0,0 +1,29 @@ +--- vmsbackup.c.orig 1997-08-13 21:48:43.000000000 +0000 ++++ vmsbackup.c +@@ -55,8 +55,8 @@ + #endif + #ifdef REMOTE + #include <local/rmt.h> +-#include <sys/stat.h> + #endif ++#include <sys/stat.h> + #include <sys/file.h> + + #if 0 +@@ -300,7 +300,7 @@ char *fn; + if(procf && wflag) { + printf("extract %s [ny]",filename); + fflush(stdout); +- gets(ans); ++ fgets(ans, 80, stdin); + if(*ans != 'y') procf = 0; + } + if(procf) +@@ -757,6 +757,7 @@ size_t rsize; + * process a virtual block record (file record) + * + */ ++void + process_vbn(buffer, rsize) + char *buffer; + unsigned short rsize;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406051902.s55J2XVm027919>