From 3abb566b23658043de38308b8f57a752e4fad40c Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Wed, 26 Jun 2002 06:33:35 +0000 Subject: add mtf 0.21 A Unix reader for the Microsoft Tape Format used by NT Backup PR: 34452 Submitted by: Philippe CASIDY --- archivers/Makefile | 1 + archivers/mtf/Makefile | 26 ++++++++++++++++++++++++++ archivers/mtf/distinfo | 1 + archivers/mtf/files/patch-Makefile | 11 +++++++++++ archivers/mtf/files/patch-mtfread.c | 33 +++++++++++++++++++++++++++++++++ archivers/mtf/pkg-comment | 1 + archivers/mtf/pkg-descr | 4 ++++ archivers/mtf/pkg-plist | 3 +++ 8 files changed, 80 insertions(+) create mode 100644 archivers/mtf/Makefile create mode 100644 archivers/mtf/distinfo create mode 100644 archivers/mtf/files/patch-Makefile create mode 100644 archivers/mtf/files/patch-mtfread.c create mode 100644 archivers/mtf/pkg-comment create mode 100644 archivers/mtf/pkg-descr create mode 100644 archivers/mtf/pkg-plist (limited to 'archivers') diff --git a/archivers/Makefile b/archivers/Makefile index 859442f4e634..d70985361a96 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -27,6 +27,7 @@ SUBDIR += macutils SUBDIR += makeself SUBDIR += mscompress + SUBDIR += mtf SUBDIR += nomarch SUBDIR += nulib SUBDIR += p5-Archive-Tar diff --git a/archivers/mtf/Makefile b/archivers/mtf/Makefile new file mode 100644 index 000000000000..74f0e1a69b51 --- /dev/null +++ b/archivers/mtf/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: mtf +# Date created: 29 January 2002 +# Whom: Philippe Casidy +# +# $FreeBSD$ +# + +PORTNAME= mtf +PORTVERSION= 0.2.1 +CATEGORIES= archivers +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= system/backup +EXTRACT_SUFX= .tgz + +MAINTAINER= pcasidy@casidy.com + +ALL_TARGET= # empty + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mtf ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include diff --git a/archivers/mtf/distinfo b/archivers/mtf/distinfo new file mode 100644 index 000000000000..592a22d6e292 --- /dev/null +++ b/archivers/mtf/distinfo @@ -0,0 +1 @@ +MD5 (mtf-0.2.1.tgz) = a6190d8e3162f3aea7bb586c9cf2a98c diff --git a/archivers/mtf/files/patch-Makefile b/archivers/mtf/files/patch-Makefile new file mode 100644 index 000000000000..acffeaba4533 --- /dev/null +++ b/archivers/mtf/files/patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig Wed Sep 13 23:06:02 2000 ++++ Makefile Wed Jun 26 14:28:48 2002 +@@ -2,7 +2,7 @@ + + #ARCH=-mpentiumpro -march=pentiumpro + +-CFLAGS=-Wall -O2 $(DEFINES) $(ARCH) ++CFLAGS+=-Wall + OFILES=mtf.o mtfread.o mtfutil.o + + .SUFFIXES: .c .o diff --git a/archivers/mtf/files/patch-mtfread.c b/archivers/mtf/files/patch-mtfread.c new file mode 100644 index 000000000000..b31776f69f46 --- /dev/null +++ b/archivers/mtf/files/patch-mtfread.c @@ -0,0 +1,33 @@ +--- mtfread.c.orig Wed Sep 13 23:14:33 2000 ++++ mtfread.c Wed Jun 26 14:28:48 2002 +@@ -42,7 +42,11 @@ + #include + #include + #include ++#if defined(BSD) ++#include ++#else + #include ++#endif + #include + #include + #include +@@ -363,7 +367,7 @@ + { + stream = (MTF_STREAM_HDR*) ((char*) tape + dbHdr->off); + result = skipToNextBlock(); +- if (result != 1) ++ if (result != 0) /* skipToNextBlock returns 0 upon success -1 otherwise */ + { + fprintf(stderr, "Error traversing to end of descriptor block!\n"); + return(-1); +@@ -671,7 +675,8 @@ + INT32 result; + char *ptr, *ptr2, filePath[MAXPATHLEN + 1], fullPath[MAXPATHLEN + 1]; + char tmpPath[MAXPATHLEN + 1]; +- int i, output; ++ int i; ++ int output=-1; /* Initialized to avoid gcc warning */ + struct tm tbuf; + struct utimbuf utbuf; + UINT32 threshold; diff --git a/archivers/mtf/pkg-comment b/archivers/mtf/pkg-comment new file mode 100644 index 000000000000..8f558a55744d --- /dev/null +++ b/archivers/mtf/pkg-comment @@ -0,0 +1 @@ +A Unix reader for the Microsoft Tape Format used by NT Backup diff --git a/archivers/mtf/pkg-descr b/archivers/mtf/pkg-descr new file mode 100644 index 000000000000..e26493da6134 --- /dev/null +++ b/archivers/mtf/pkg-descr @@ -0,0 +1,4 @@ +This is the port of the Microsoft Tape Format / NT Baclup reader. +It is in a "work for me" state. + +WWW: http://layton-graphics.com/mtf/ diff --git a/archivers/mtf/pkg-plist b/archivers/mtf/pkg-plist new file mode 100644 index 000000000000..a9ea57e88dbb --- /dev/null +++ b/archivers/mtf/pkg-plist @@ -0,0 +1,3 @@ +bin/mtf +%%PORTDOCS%%share/doc/mtf/README +%%PORTDOCS%%@dirrm share/doc/mtf -- cgit v1.2.3