aboutsummaryrefslogtreecommitdiff
path: root/archivers/mtf
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-26 06:33:35 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-26 06:33:35 +0000
commit3abb566b23658043de38308b8f57a752e4fad40c (patch)
tree2cb4d987e3b13c948408b353c4945f2277fd285b /archivers/mtf
parent4c3152710f9190551b18b6e4b4fec9815ea12100 (diff)
downloadports-3abb566b23658043de38308b8f57a752e4fad40c.tar.gz
ports-3abb566b23658043de38308b8f57a752e4fad40c.zip
add mtf 0.21
A Unix reader for the Microsoft Tape Format used by NT Backup PR: 34452 Submitted by: Philippe CASIDY <pcasidy@casidy.com>
Notes
Notes: svn path=/head/; revision=62001
Diffstat (limited to 'archivers/mtf')
-rw-r--r--archivers/mtf/Makefile26
-rw-r--r--archivers/mtf/distinfo1
-rw-r--r--archivers/mtf/files/patch-Makefile11
-rw-r--r--archivers/mtf/files/patch-mtfread.c33
-rw-r--r--archivers/mtf/pkg-comment1
-rw-r--r--archivers/mtf/pkg-descr4
-rw-r--r--archivers/mtf/pkg-plist3
7 files changed, 79 insertions, 0 deletions
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 <pcasidy@casidy.com>
+#
+# $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 <bsd.port.mk>
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 <limits.h>
+ #include <sys/stat.h>
+ #include <sys/fcntl.h>
++#if defined(BSD)
++#include <sys/mount.h>
++#else
+ #include <sys/vfs.h>
++#endif
+ #include <utime.h>
+ #include <unistd.h>
+ #include <time.h>
+@@ -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