%n compress %v 4.0.1 %c * %l * %b * %d * %f * %t compress-4.0.1.tgz %w Misc %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N compress-4.0.1/Makefile compress-MCC/Makefile --- compress-4.0.1/Makefile Tue Sep 6 19:31:54 1988 +++ compress-MCC/Makefile Sat Apr 20 23:31:46 1996 @@ -1,9 +1,9 @@ -bindir=/usr/local -sacred=-DSACREDMEM=256000 -system=-DBSD4_2 -CFLAGS=-O +bindir=/usr/bin +sacred=-DSACREDMEM=1048576 +system= +CFLAGS=-O6 -m386 -fomit-frame-pointer -DUSERMEM=16777216 $(sacred) +LDFLAGS= -compress: compress.c USERMEM - cc $(CFLAGS) $(sacred) $(system) -DUSERMEM=`cat USERMEM` -o compress compress.c +all: compress # USERMEM may have to be set by hand. It should contain the amount of @@ -14,8 +14,8 @@ install: compress - install -s compress $(bindir) - rm -f $(bindir)/uncompress $(bindir)/zcat - ln $(bindir)/compress $(bindir)/uncompress - ln $(bindir)/compress $(bindir)/zcat + install -s -m 555 compress $(bindir) + ln -f $(bindir)/compress $(bindir)/uncompress + install -m 444 compress.1 /usr/man/man1 + gzip -9f /usr/man/man1/compress.1 clean: diff -ru2N compress-4.0.1/compress.c compress-MCC/compress.c --- compress-4.0.1/compress.c Tue Sep 6 19:32:07 1988 +++ compress-MCC/compress.c Sat Apr 20 23:30:08 1996 @@ -275,4 +275,5 @@ #include #include +#include #ifdef MSDOS @@ -756,5 +757,5 @@ cp); # else - if (strlen(cp) > 12) { + if (strlen(cp) > pathconf(cp, _PC_NAME_MAX - 2)) { fprintf(stderr,"%s: filename too long to tack on .Z\n",cp); continue; ENDPATCH make * make install %%