%n tar %v 1.11.8 %c * %l * %b * %d * %f * %t tar-1.11.8.tgz %w Gnu %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N tar-1.11.8/Makefile.in tar-MCC/Makefile.in --- tar-1.11.8/Makefile.in Sat Jun 17 14:29:49 1995 +++ tar-MCC/Makefile.in Sat Aug 10 17:12:10 1996 @@ -35,8 +35,8 @@ CC = @CC@ -CFLAGS = @CFLAGS@ +CFLAGS = -O6 INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = install -m 444 +INSTALL_PROGRAM = install -s -m 555 LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ @@ -48,9 +48,10 @@ MDEFINES = CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \ +INSTALL_DATA='$(INSTALL_DATA)' INSTALL_PROGRAM='$(INSTALL_PROGRAM)' \ prefix='$(prefix)' exec_prefix='$(exec_prefix)' \ bindir='$(bindir)' libexecdir='$(libexecdir)' \ infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)' -SUBDIRS = doc lib intl src scripts po +SUBDIRS = doc lib intl src DISTFILES = \ diff -ru2N tar-1.11.8/doc/Makefile.in tar-MCC/doc/Makefile.in --- tar-1.11.8/doc/Makefile.in Thu Jun 15 20:03:46 1995 +++ tar-MCC/doc/Makefile.in Sat Aug 10 17:12:46 1996 @@ -68,8 +68,4 @@ install: all - $(top_srcdir)/mkinstalldirs $(infodir) - cd $(srcdir); for file in tar.info*; do \ - $(INSTALL_DATA) $$file $(infodir)/$$file; \ - done uninstall: diff -ru2N tar-1.11.8/lib/Makefile.in tar-MCC/lib/Makefile.in --- tar-1.11.8/lib/Makefile.in Sat Jun 17 23:38:33 1995 +++ tar-MCC/lib/Makefile.in Sat Aug 10 17:17:18 1996 @@ -51,5 +51,5 @@ error.c getdate.y getopt.c getopt1.c stpcpy.c xgetcwd.c xmalloc.c xstrdup.c OBJECTS = @ALLOCA@ @LIBOBJS@ \ -error.o getdate.o getopt.o getopt1.o stpcpy.o xgetcwd.o xmalloc.o xstrdup.o +error.o getdate.o stpcpy.o xgetcwd.o xmalloc.o xstrdup.o DISTFILES = Makefile.in $(HEADERS) $(SOURCES) \ diff -ru2N tar-1.11.8/src/create.c tar-MCC/src/create.c --- tar-1.11.8/src/create.c Sat Jun 17 22:08:13 1995 +++ tar-MCC/src/create.c Sat Aug 10 17:09:40 1996 @@ -889,5 +889,6 @@ msdos-fs tar: size=7205, st_blocks=16 and ST_NBLOCKS=16 */ - if (hstat.st_size > ST_NBLOCKS (hstat) * RECORDSIZE) + if (flag_sparse_files > 1 || + hstat.st_size > ST_NBLOCKS (hstat) * RECORDSIZE) { int filesize = hstat.st_size; diff -ru2N tar-1.11.8/src/rtapelib.c tar-MCC/src/rtapelib.c --- tar-1.11.8/src/rtapelib.c Wed Mar 15 04:29:24 1995 +++ tar-MCC/src/rtapelib.c Sat Aug 10 16:50:40 1996 @@ -309,5 +309,5 @@ /* FIXME: Should somewhat validate the decoding, here. */ - if (*remote_user == '\0') + if (remote_user && *remote_user == '\0') remote_user = NULL; diff -ru2N tar-1.11.8/src/tar.c tar-MCC/src/tar.c --- tar-1.11.8/src/tar.c Sat Jun 17 21:48:32 1995 +++ tar-MCC/src/tar.c Sat Aug 10 17:10:55 1996 @@ -933,4 +933,5 @@ {"show-omitted-dirs", no_argument, &flag_show_omitted_dirs, 1}, {"sparse", no_argument, NULL, 'S'}, + {"sparse-all-files", no_argument, &flag_sparse_files, 2}, {"starting-file", required_argument, NULL, 'K'}, {"tape-length", required_argument, NULL, 'L'}, @@ -985,5 +986,6 @@ --remove-files remove files after adding them to the archive\n\ -k, --keep-old-files don't overwrite existing files from archive\n\ - -S, --sparse handle sparse files efficiently\n\ + -S, --sparse store files with holes efficiently in archive\n\ + -SS, --sparse-all-files check files without holes for zero blocks too\n\ -O, --to-stdout extract files to standard output\n\ -G, --incremental handle old GNU-format incremental backup\n\ ENDPATCH ./configure --prefix=/usr --disable-nls make * make install %%