%n cpio %v 2.4.2 %c * %l * %b * %d * %f * %t cpio-2.4.2.tgz %w Gnu %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N cpio-2.4.2/Makefile.in cpio-MCC/Makefile.in --- cpio-2.4.2/Makefile.in Wed Dec 20 16:28:30 1995 +++ cpio-MCC/Makefile.in Sun Aug 11 01:09:09 1996 @@ -28,6 +28,6 @@ # If you don't have a BSD or GNU install program, use cp. INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = install -s -m 555 +INSTALL_DATA = install -m 444 # Things you might add to DEFS: @@ -60,5 +60,5 @@ RTAPELIB = @RTAPELIB@ -CFLAGS = @CFLAGS@ +CFLAGS = -O6 LDFLAGS = @LDFLAGS@ @@ -104,10 +104,10 @@ userspec.c xstrdup.c bcopy.c fnmatch.c mkdir.c strdup.c OBJS = copyin.o copyout.o copypass.o defer.o dstring.o global.o \ -main.o tar.o util.o error.o getopt.o getopt1.o filemode.o version.o \ +main.o tar.o util.o error.o filemode.o version.o \ $(RTAPELIB) dirname.o idcache.o makepath.o xmalloc.o stripslash.o \ userspec.o xstrdup.o @LIBOBJS@ @FNMATCH@ @ALLOCA@ # mt source files not shared with cpio. MT_SRCS = mt.c argmatch.c -MT_OBJS = mt.o argmatch.o error.o getopt.o getopt1.o \ +MT_OBJS = mt.o argmatch.o error.o \ xmalloc.o version.o $(RTAPELIB) @ALLOCA@ HDRS = cpio.h cpiohdr.h tar.h tarhdr.h defer.h dstring.h extern.h filetypes.h \ @@ -129,4 +129,5 @@ -$(INSTALL_DATA) $(srcdir)/cpio.1 $(mandir)/$(manprefix)cpio.$(manext) -test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(mandir)/$(manprefix)mt.$(manext) + gzip -9f $(mandir)/$(manprefix)cpio.1 $(mandir)/$(manprefix)mt.1 installdirs: @@ -183,5 +184,5 @@ dvi:: $(DVIS) -install:: install-info +install:: install-info: $(INFO_DEPS) diff -ru2N cpio-2.4.2/mt.c cpio-MCC/mt.c --- cpio-2.4.2/mt.c Wed Nov 22 21:31:49 1995 +++ cpio-MCC/mt.c Sun Aug 11 01:10:37 1996 @@ -298,5 +298,13 @@ error (2, errno, "%s", dev); - printf ("drive type = %d\n", (int) status.mt_type); + if ((int) status.mt_type & 0x800000) { + printf ("qic-117 drive type = 0x%05x, ", (int) status.mt_type & 0x1ffff); + if (GMT_DR_OPEN( (long) status.mt_gstat)) + printf ("no tape or door open\n"); + else printf ("%s-line%s\n", + GMT_ONLINE( (long) status.mt_gstat) ? "on" : "off", + GMT_WR_PROT( (long) status.mt_gstat) ? " and write-protected" : ""); + } + else printf ("drive type = %d\n", (int) status.mt_type); #if defined(hpux) || defined(__hpux) printf ("drive status (high) = %d\n", (int) status.mt_dsreg1); ENDPATCH ./configure --prefix=/usr make make rmt * make install * rmdir /usr/info %%