ports/78716: update port: emulators/vmsbackup 3.0 -> 4.0

Danny Koenig dako at bsdberlin.org
Sat Mar 12 01:10:03 UTC 2005


>Number:         78716
>Category:       ports
>Synopsis:       update port: emulators/vmsbackup 3.0 -> 4.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 12 01:10:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Danny Koenig
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD prod410.bsdberlin.org 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Fri Mar 11 20:06:31 CET 2005 dako at prod410.bsdberlin.local:/usr/src/sys/compile/PROD410 i386


	
>Description:
Update port: emulators/vmsbackup from 3.0 to 4.0

Old patches to remove in emulators/vmsbackup/files:
- patch-aa
- patch-ab
- patch-ac

DESCR formated, WWW of vmsbackup added.

Tested on 4.x and 5.x.

	
>How-To-Repeat:
	
>Fix:

	

--- vmsbackup-4.0.patch begins here ---
diff -ruN vmsbackup.old/Makefile vmsbackup/Makefile
--- vmsbackup.old/Makefile	Thu Feb  5 21:37:08 2004
+++ vmsbackup/Makefile	Sat Mar 12 01:33:35 2005
@@ -6,21 +6,23 @@
 #
 
 PORTNAME=	vmsbackup
-PORTVERSION=	3.0
+PORTVERSION=	4.0
 CATEGORIES=	emulators sysutils
-MASTER_SITES=	ftp://ftp.cs.uni-sb.de/pub/utils/
-# slightly different version
-# MASTER_SITES+=	ftp://ftp.uni-passau.de/pub/unix/system/backup/
-DISTNAME=	${PORTNAME}
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	http://www.bsdberlin.org/~dako/distfiles/emulators/
+DISTNAME=	${PORTNAME}-${PORTVERSION}
+EXTRACT_SUFX=	.tar
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	dako at bsdberlin.org
 COMMENT=	Reads VMS BACKUP tapes
 
 MAN1=		vmsbackup.1
 MANCOMPRESSED=	yes
 PLIST_FILES=	bin/vmsbackup
-
 MAKE_FLAGS=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 -f
+USE_REINPLACE=  yes
+
+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
 
 .include <bsd.port.mk>
diff -ruN vmsbackup.old/distinfo vmsbackup/distinfo
--- vmsbackup.old/distinfo	Thu Jan 29 08:23:40 2004
+++ vmsbackup/distinfo	Sat Mar 12 01:40:31 2005
@@ -1,2 +1,2 @@
-MD5 (vmsbackup.tgz) = c39a2fae9c29b48701cf1c93890562ce
-SIZE (vmsbackup.tgz) = 9589
+MD5 (vmsbackup-4.0.tar) = 8474a1b215a6380a00cfccd5c6e4829b
+SIZE (vmsbackup-4.0.tar) = 59392
diff -ruN vmsbackup.old/files/patch-aa vmsbackup/files/patch-aa
--- vmsbackup.old/files/patch-aa	Wed Apr 19 04:30:19 1995
+++ vmsbackup/files/patch-aa	Thu Jan  1 01:00:00 1970
@@ -1,43 +0,0 @@
-*** Makefile	Tue Jun 13 04:49:54 1989
---- ../../src/Makefile	Tue Apr 18 20:43:30 1995
-***************
-*** 6,22 ****
-  CFLAGS= $(SWAP) $(REMOTE) -O
-  LFLAGS=
-! LIBS= -lrmt   			# remote magtape library
-! OWNER=tar			# user for remote tape access
-! MODE=4755
-  BINDIR=/usr/local/bin
-! MANSEC=l
-! MANDIR=/usr/man/man$(MANSEC)
-  
-- #
-  vmsbackup: vmsbackup.o match.o
-! 	cc $(LFLAGS) -o vmsbackup vmsbackup.o match.o -lV
-  install:
-  	install -m $(MODE) -o $(OWNER) -s vmsbackup $(BINDIR)	
-! 	cp vmsbackup.1 $(MANDIR)/vmsbackup.$(MANSEC)
-  clean:
-  	rm -f vmsbackup *.o core
---- 6,26 ----
-  CFLAGS= $(SWAP) $(REMOTE) -O
-  LFLAGS=
-! #	LIBS= -lrmt   			# remote magtape library
-! OWNER=bin			# user for remote tape access
-! MODE=755
-  BINDIR=/usr/local/bin
-! MANSEC=1
-! MANDIR=/usr/local/man/man$(MANSEC)
-! 
-! all:	vmsbackup
-  
-  vmsbackup: vmsbackup.o match.o
-! 	cc $(LFLAGS) -o vmsbackup vmsbackup.o match.o
-! 
-  install:
-  	install -m $(MODE) -o $(OWNER) -s vmsbackup $(BINDIR)	
-! 	gzip vmsbackup.1
-! 	cp vmsbackup.1.gz $(MANDIR)
-! 
-  clean:
-  	rm -f vmsbackup *.o core
diff -ruN vmsbackup.old/files/patch-ab vmsbackup/files/patch-ab
--- vmsbackup.old/files/patch-ab	Wed Apr 19 04:30:19 1995
+++ vmsbackup/files/patch-ab	Thu Jan  1 01:00:00 1970
@@ -1,162 +0,0 @@
-*** vmsbackup.1	Sun Feb 19 10:35:29 1989
---- ../../src/vmsbackup.1	Tue Apr 18 20:59:08 1995
-***************
-*** 4,18 ****
-  .SH SYNOPSIS
-  .B vmsbackup
-! .B \-{tx}[cdevw][s setnumber][f tapefile] 
-  [ name ... ]
-  .SH DESCRIPTION
-  .I vmsbackup 
-  reads a VMS generated backup tape, converting the files
-! to Unix format and writing the files to disc.
-  The default operation of the program is to go through an entire
-! tape, extracting every file and writing it to disc.
-  This may be modified by the following options.
-  .TP 8
-! .B c
-  Use complete filenames, including the version number.
-  A colon and the octal version number will be appended to all filenames.
---- 4,18 ----
-  .SH SYNOPSIS
-  .B vmsbackup
-! .B \-[txcdevw][s setnumber][f tapefile] 
-  [ name ... ]
-  .SH DESCRIPTION
-  .I vmsbackup 
-  reads a VMS generated backup tape, converting the files
-! to Unix format and writing the files to disk.
-  The default operation of the program is to go through an entire
-! tape, extracting every file and writing it to disk.
-  This may be modified by the following options.
-  .TP 8
-! .B -c
-  Use complete filenames, including the version number.
-  A colon and the octal version number will be appended to all filenames.
-***************
-*** 26,33 ****
-  The default is to ignore version numbers.
-  .TP 8
-! .B d
-  use the directory structure from VMS, the default value is off.
-  .TP 8
-! .B e
-  Process all filename extensions.
-  Since this program is mainly intended to move source code and possibly
---- 26,33 ----
-  The default is to ignore version numbers.
-  .TP 8
-! .B -d
-  use the directory structure from VMS, the default value is off.
-  .TP 8
-! .B -e
-  Process all filename extensions.
-  Since this program is mainly intended to move source code and possibly
-***************
-*** 35,39 ****
-  all files whose filename extension specifies system dependent data.
-  The file types which will be ignored, unless the
-! .B e
-  option is specified, are
-  .IP "" 10
---- 35,39 ----
-  all files whose filename extension specifies system dependent data.
-  The file types which will be ignored, unless the
-! .B -e
-  option is specified, are
-  .IP "" 10
-***************
-*** 57,61 ****
-  .PP
-  .TP 8
-! .B f
-  Use the next argument in the command line as the tape device to
-  be used, rather than the default.
---- 57,61 ----
-  .PP
-  .TP 8
-! .B -f
-  Use the next argument in the command line as the tape device to
-  be used, rather than the default.
-***************
-*** 83,94 ****
-  This must be a raw mode tape device.
-  .TP 8
-! .B s saveset
-  Process only the given saveset number.
-  .TP 8
-! .B t
-! Produce a table of contents (a directory listing) on the standard output
-! of the files on tape.
-  .TP 8
-! .B v
-  Verbose output.
-  Normally
---- 83,94 ----
-  This must be a raw mode tape device.
-  .TP 8
-! .B -s saveset
-  Process only the given saveset number.
-  .TP 8
-! .B -t
-! Produce a table of contents (a recursive directory listing) on the 
-! standard output of the files on tape.
-  .TP 8
-! .B -v
-  Verbose output.
-  Normally
-***************
-*** 98,102 ****
-  tape to disk to be output on the standard output.
-  .TP 8
-! .B w
-  .I vmsbackup
-  prints the action to be taken followed by file name, then
---- 98,102 ----
-  tape to disk to be output on the standard output.
-  .TP 8
-! .B -w
-  .I vmsbackup
-  prints the action to be taken followed by file name, then
-***************
-*** 104,108 ****
-  is given, the action is done. Any other input means don't do it.
-  .TP 8
-! .B x
-  extract the named files from the tape.
-  .TP 8
---- 104,108 ----
-  is given, the action is done. Any other input means don't do it.
-  .TP 8
-! .B -x
-  extract the named files from the tape.
-  .TP 8
-***************
-*** 111,122 ****
-  argument specifies one or more filenames to be
-  searched for specifically on the tape and only those files are to be processed.
-! The name may contain the usal sh(1) meta-characters *?![] \nnn.
-  .SH FILES
-! /dev/rmt\fIx\fP
-  .SH SEE ALSO
-! rmtops(3)
-  .SH BUGS
-  The filename match uses the complete VMS file names.
-! 
-  .SH AUTHOR
-  John Douglas Carey
---- 111,124 ----
-  argument specifies one or more filenames to be
-  searched for specifically on the tape and only those files are to be processed.
-! The name may contain the usal 
-! .I sh(1)
-! meta-characters *?![].
-  .SH FILES
-! /dev/rmt\fIx\fP, /dev/rst\fIx\fP
-  .SH SEE ALSO
-! rsh(1), rmt(8)
-  .SH BUGS
-  The filename match uses the complete VMS file names.
-! Filename matching does not use libregex.a
-  .SH AUTHOR
-  John Douglas Carey
diff -ruN vmsbackup.old/files/patch-ac vmsbackup/files/patch-ac
--- vmsbackup.old/files/patch-ac	Wed Sep 24 02:56:53 1997
+++ vmsbackup/files/patch-ac	Thu Jan  1 01:00:00 1970
@@ -1,15 +0,0 @@
-*** vmsbackup.c	Tue Sep 23 17:27:13 1997
---- ../../src/vmsbackup.c	Tue Sep 23 17:30:12 1997
-***************
-*** 262,266 ****
-  		printf("extract %s [ny]",filename);
-  		fflush(stdout);
-! 		gets(ans);
-  		if(*ans != 'y') procf = NULL;
-  	}
---- 262,266 ----
-  		printf("extract %s [ny]",filename);
-  		fflush(stdout);
-! 		fgets(ans, 80, stdin);
-  		if(*ans != 'y') procf = NULL;
-  	}
diff -ruN vmsbackup.old/pkg-descr vmsbackup/pkg-descr
--- vmsbackup.old/pkg-descr	Sat Apr 10 18:57:07 2004
+++ vmsbackup/pkg-descr	Sat Mar 12 01:59:10 2005
@@ -1,8 +1,10 @@
-    VMSBACKUP reads VMS BACKUP tapes.
+VMSBACKUP reads VMS BACKUP tapes.
 
-    Main features:
-	swaps bytes from big-endian to little-endian, if required.
-	savesets can be selected individually.
-	can preserve directory structure.
-	excludes vms specific files (eg executables and objects).
-	converts vms version numbering semicolons to colons.
+Main features:
+ - swaps bytes from big-endian to little-endian, if required.
+ - savesets can be selected individually.
+ - can preserve directory structure.
+ - excludes vms specific files (eg executables and objects).
+ - converts vms version numbering semicolons to colons.
+
+WWW: http://www.panix.com/~kingdon/vms/backup.html
--- vmsbackup-4.0.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list