- Clarify LICENSE

- Add LICENSE_FILE
- Switch to options helpers
- Regenerate patches with `make makepatch`
This commit is contained in:
Dmitry Marakasov 2016-01-07 14:44:08 +00:00
parent 983088abc6
commit f1d6818c98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405448
2 changed files with 11 additions and 7 deletions

View file

@ -10,18 +10,22 @@ MASTER_SITES= SUNSITE/system/backup
MAINTAINER= ports@FreeBSD.org
COMMENT= Unix reader for the Microsoft Tape Format used by NT Backup
LICENSE= GPLv2
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:tgz
ALL_TARGET= # empty
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
PLIST_FILES= bin/mtf
PORTDOCS= README
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mtf ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

View file

@ -1,6 +1,6 @@
--- mtfread.c.orig Wed Sep 13 23:14:33 2000
+++ mtfread.c Wed Jun 26 14:28:48 2002
@@ -42,7 +42,11 @@
--- mtfread.c.orig 2000-09-13 15:14:33 UTC
+++ mtfread.c
@@ -42,7 +42,11 @@ See mtf.c for version history, contribut
#include <limits.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
@ -12,7 +12,7 @@
#include <utime.h>
#include <unistd.h>
#include <time.h>
@@ -363,7 +367,7 @@
@@ -363,7 +367,7 @@ INT32 readTapeBlock(void)
{
stream = (MTF_STREAM_HDR*) ((char*) tape + dbHdr->off);
result = skipToNextBlock();
@ -21,7 +21,7 @@
{
fprintf(stderr, "Error traversing to end of descriptor block!\n");
return(-1);
@@ -671,7 +675,8 @@
@@ -671,7 +675,8 @@ INT32 readFileBlock(void)
INT32 result;
char *ptr, *ptr2, filePath[MAXPATHLEN + 1], fullPath[MAXPATHLEN + 1];
char tmpPath[MAXPATHLEN + 1];