Date: Sun, 25 Oct 1998 23:39:05 -0500 (EST) From: sjr@home.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/8454: new port copytape - for duplicating magtapes Message-ID: <199810260439.XAA21083@istari.home.net>
next in thread | raw e-mail | index | archive | help
>Number: 8454 >Category: ports >Synopsis: new port copytape - for duplicating magtapes >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 25 20:40:00 PST 1998 >Last-Modified: >Originator: Stephen J. Roznowski >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: copytape is a program to duplicate magtapes by making a bit-for-bit copy of its input. This program can also be used to analyze blocking factors of unknown tapes. >How-To-Repeat: >Fix: #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 52 -rw-r--r-- sysutils/copytape/files/md5 # 13 -rw-r--r-- sysutils/copytape/pkg/PLIST # 40 -rw-r--r-- sysutils/copytape/pkg/COMMENT # 267 -rw-r--r-- sysutils/copytape/pkg/DESCR # 623 -rw-r--r-- sysutils/copytape/patches/patch-aa # 231 -rw-r--r-- sysutils/copytape/patches/patch-ab # 783 -rw-r--r-- sysutils/copytape/Makefile # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi touch -am 1231235999 $$.touch >/dev/null 2>&1 if test ! -f 1231235999 && test -f $$.touch; then shar_touch=touch else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 1231235999 $$.touch # if mkdir _sh18524; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= sysutils/copytape/files/md5 ============== if test ! -d 'sysutils'; then $echo 'x -' 'creating directory' 'sysutils' mkdir 'sysutils' fi if test ! -d 'sysutils/copytape'; then $echo 'x -' 'creating directory' 'sysutils/copytape' mkdir 'sysutils/copytape' fi if test ! -d 'sysutils/copytape/files'; then $echo 'x -' 'creating directory' 'sysutils/copytape/files' mkdir 'sysutils/copytape/files' fi if test -f 'sysutils/copytape/files/md5' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/files/md5' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/files/md5' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/files/md5' && XMD5 (copytape.Z) = 63f035efbfeffd7a34cff86b0b6a6fed SHAR_EOF $shar_touch -am 1023171698 'sysutils/copytape/files/md5' && chmod 0644 'sysutils/copytape/files/md5' || $echo 'restore of' 'sysutils/copytape/files/md5' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/files/md5:' 'MD5 check failed' 5da43f7dfeb87acdcb4e98fa1149d290 sysutils/copytape/files/md5 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/files/md5'`" test 52 -eq "$shar_count" || $echo 'sysutils/copytape/files/md5:' 'original size' '52,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/pkg/PLIST ============== if test ! -d 'sysutils/copytape/pkg'; then $echo 'x -' 'creating directory' 'sysutils/copytape/pkg' mkdir 'sysutils/copytape/pkg' fi if test -f 'sysutils/copytape/pkg/PLIST' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/pkg/PLIST' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/pkg/PLIST' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/pkg/PLIST' && Xbin/copytape SHAR_EOF $shar_touch -am 1025231398 'sysutils/copytape/pkg/PLIST' && chmod 0644 'sysutils/copytape/pkg/PLIST' || $echo 'restore of' 'sysutils/copytape/pkg/PLIST' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/pkg/PLIST:' 'MD5 check failed' 084535032c255bc1ca613dbb1af472e2 sysutils/copytape/pkg/PLIST SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/pkg/PLIST'`" test 13 -eq "$shar_count" || $echo 'sysutils/copytape/pkg/PLIST:' 'original size' '13,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/pkg/COMMENT ============== if test -f 'sysutils/copytape/pkg/COMMENT' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/pkg/COMMENT' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/pkg/COMMENT' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/pkg/COMMENT' && XCopytape is used to duplicate magtapes. SHAR_EOF $shar_touch -am 1023172998 'sysutils/copytape/pkg/COMMENT' && chmod 0644 'sysutils/copytape/pkg/COMMENT' || $echo 'restore of' 'sysutils/copytape/pkg/COMMENT' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/pkg/COMMENT:' 'MD5 check failed' ebe55e5ab58732db9768641b4f065fc0 sysutils/copytape/pkg/COMMENT SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/pkg/COMMENT'`" test 40 -eq "$shar_count" || $echo 'sysutils/copytape/pkg/COMMENT:' 'original size' '40,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/pkg/DESCR ============== if test -f 'sysutils/copytape/pkg/DESCR' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/pkg/DESCR' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/pkg/DESCR' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/pkg/DESCR' && XCopytape duplicates magtapes. It is intended for duplication of Xbootable or other non-file-structured (non-tar-structured) magtapes Xon systems with only one tape drive. Copytape is blissfully ignorant Xof tape formats. It merely makes a bit-for-bit copy of its input. SHAR_EOF $shar_touch -am 1023173198 'sysutils/copytape/pkg/DESCR' && chmod 0644 'sysutils/copytape/pkg/DESCR' || $echo 'restore of' 'sysutils/copytape/pkg/DESCR' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/pkg/DESCR:' 'MD5 check failed' 1809d773217a2df1bcc22c45d610579a sysutils/copytape/pkg/DESCR SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/pkg/DESCR'`" test 267 -eq "$shar_count" || $echo 'sysutils/copytape/pkg/DESCR:' 'original size' '267,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/patches/patch-aa ============== if test ! -d 'sysutils/copytape/patches'; then $echo 'x -' 'creating directory' 'sysutils/copytape/patches' mkdir 'sysutils/copytape/patches' fi if test -f 'sysutils/copytape/patches/patch-aa' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/patches/patch-aa' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/patches/patch-aa' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/patches/patch-aa' && X--- copytape.c.orig Fri Oct 23 17:23:06 1998 X+++ copytape.c Fri Oct 23 17:23:46 1998 X@@ -36,7 +36,7 @@ X X extern int errno; X X-#define BUFLEN 262144 /* max tape block size */ X+#define BUFLEN (1024*1024) /* max tape block size */ X #define TAPE_MARK -100 /* return record length if we read a X * tape mark */ X #define END_OF_TAPE -101 /* 2 consecutive tape marks */ X@@ -149,7 +149,7 @@ X len = input(from); X } while (len > 0); X if (len == FORMAT_ERROR) { X- perror(stderr, "copytape: format error on skip"); X+ perror("copytape: format error on skip"); X exit(-1); X }; X if (len == END_OF_TAPE) { SHAR_EOF $shar_touch -am 1023172598 'sysutils/copytape/patches/patch-aa' && chmod 0644 'sysutils/copytape/patches/patch-aa' || $echo 'restore of' 'sysutils/copytape/patches/patch-aa' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/patches/patch-aa:' 'MD5 check failed' 6983da012e5d9ff10101c6cbb9f0aad2 sysutils/copytape/patches/patch-aa SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/patches/patch-aa'`" test 623 -eq "$shar_count" || $echo 'sysutils/copytape/patches/patch-aa:' 'original size' '623,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/patches/patch-ab ============== if test -f 'sysutils/copytape/patches/patch-ab' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/patches/patch-ab' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/patches/patch-ab' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/patches/patch-ab' && X--- Makefile.orig Fri Oct 23 17:31:20 1998 X+++ Makefile Fri Oct 23 17:31:27 1998 X@@ -5,7 +5,7 @@ X CFLAGS = -O X CC = cc $(CFLAGS) X X-copytape: copytape.c X+all copytape: copytape.c X $(CC) -o copytape copytape.c X X install: copytape SHAR_EOF $shar_touch -am 1023173298 'sysutils/copytape/patches/patch-ab' && chmod 0644 'sysutils/copytape/patches/patch-ab' || $echo 'restore of' 'sysutils/copytape/patches/patch-ab' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/patches/patch-ab:' 'MD5 check failed' 3b602bea840fdd96e33f0e4208661af2 sysutils/copytape/patches/patch-ab SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/patches/patch-ab'`" test 231 -eq "$shar_count" || $echo 'sysutils/copytape/patches/patch-ab:' 'original size' '231,' 'current size' "$shar_count!" fi fi # ============= sysutils/copytape/Makefile ============== if test -f 'sysutils/copytape/Makefile' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'sysutils/copytape/Makefile' '(file already exists)' else $echo 'x -' extracting 'sysutils/copytape/Makefile' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'sysutils/copytape/Makefile' && X# New ports collection makefile for: copytape X# Version required: 1.0 X# Date created: 23 October 1998 X# Whom: Stephen J. Roznowski <sjr@home.net> X# X# $Id$ X# X XDISTNAME= copytape XPKGNAME= copytape-1.0 XCATEGORIES= sysutils XMASTER_SITES= ftp://ftp.uu.net/usenet/comp.sources.unix/volume10/ XEXTRACT_SUFX= .Z X XMAINTAINER= ports@FreeBSD.ORG X XBUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar X XNO_WRKSUBDIR= yes X XEXTRACT_CMD= zcat XEXTRACT_BEFORE_ARGS= XEXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR} X XMAN1= copytape.1 XMAN5= copytape.5 X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/copytape ${PREFIX}/bin/copytape X @${INSTALL_MAN} ${WRKSRC}/copytape.1 ${PREFIX}/man/man1/copytape.1 X @${INSTALL_MAN} ${WRKSRC}/copytape.5 ${PREFIX}/man/man5/copytape.5 X X.include <bsd.port.mk> SHAR_EOF $shar_touch -am 1025230398 'sysutils/copytape/Makefile' && chmod 0644 'sysutils/copytape/Makefile' || $echo 'restore of' 'sysutils/copytape/Makefile' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'sysutils/copytape/Makefile:' 'MD5 check failed' 0b9f320bd21f1170fc283e76cab91cb2 sysutils/copytape/Makefile SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'sysutils/copytape/Makefile'`" test 783 -eq "$shar_count" || $echo 'sysutils/copytape/Makefile:' 'original size' '783,' 'current size' "$shar_count!" fi fi rm -fr _sh18524 exit 0 >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810260439.XAA21083>