Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 18 years ago
parent
commit
bd51d4208a
9 changed files with 81 additions and 493 deletions
  1. +8
    -8
      package/base/gzip/gzip-1.3.11-addsuffix.patch
  2. +57
    -76
      package/base/gzip/gzip-1.3.11-rsyncable.patch
  3. +11
    -10
      package/base/gzip/gzip-1.3.11-zgreppipe.patch
  4. +0
    -30
      package/base/gzip/gzip-1.3.5-gunzip-dir.patch
  5. +0
    -79
      package/base/gzip/gzip-1.3.5-gzip-perm.patch
  6. +0
    -174
      package/base/gzip/gzip-1.3.5-openbsd-owl-tmp.patch
  7. +0
    -114
      package/base/gzip/gzip-1.3.5-stderr.patch
  8. +3
    -0
      package/base/gzip/gzip.conf
  9. +2
    -2
      package/base/gzip/gzip.desc

package/base/gzip/gzip-1.3.3-addsuffix.patch → package/base/gzip/gzip-1.3.11-addsuffix.patch

@ -17,19 +17,19 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.3/zmore.in.addsuffix 2004-12-13 09:55:48.000000000 +0100
+++ gzip-1.3.3/zmore.in 2004-12-13 09:58:24.641766288 +0100
@@ -50,7 +50,7 @@
FIRST=1
for FILE
do
--- ./zmore.in.addsuffix 2004-12-13 09:55:48.000000000 +0100
+++ ./zmore.in 2004-12-13 09:58:24.641766288 +0100
@@ -66,7 +66,7 @@
--v*) exec echo "$version";;
esac
- < "$FILE" || continue
+ if test -e $FILE || test -e $FILE.gz; then
if test $FIRST -eq 0; then
echo $n1 "--More--(Next file: $FILE)$n2"
stty $cb -echo 2>/dev/null
@@ -68,5 +68,7 @@
if test -t; then
@@ -84,5 +84,7 @@
if test -t 1; then
FIRST=0
fi
+ else < $FILE

package/base/gzip/gzip-1.3-rsync.patch → package/base/gzip/gzip-1.3.11-rsyncable.patch

@ -1,25 +1,23 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/gzip-1.3-rsync.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.2/deflate.c.rsync Fri Oct 8 08:46:28 1999
+++ gzip-1.3.2/deflate.c Sun Mar 10 12:35:00 2002
@@ -122,6 +122,14 @@
--- ./doc/gzip.texi.orig 2007-02-06 00:29:04.000000000 +0100
+++ ./doc/gzip.texi 2007-05-16 11:42:11.000000000 +0200
@@ -350,6 +350,14 @@
into the directory and compress all the files it finds there (or
decompress them in the case of @command{gunzip}).
+@item --rsyncable
+While compressing, synchronize the output occasionally based on the
+input. This reduces compression by about 1 percent most cases, but
+means that the @code{rsync} program can take advantage of similarities
+in the uncompressed input when syncronizing two files compressed with
+this flag. @code{gunzip} cannot tell the difference between a
+compressed file created with this option, and one created without it.
+
@item --suffix @var{suf}
@itemx -S @var{suf}
Use suffix @var{suf} instead of @samp{.gz}. Any suffix can be
--- ./deflate.c.orig 2006-12-08 00:53:00.000000000 +0100
+++ ./deflate.c 2007-05-16 11:43:55.000000000 +0200
@@ -135,6 +135,14 @@
#endif
/* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
@ -34,7 +32,7 @@
/* ===========================================================================
* Local data used by the "longest match" routines.
*/
@@ -203,6 +211,8 @@
@@ -216,6 +224,8 @@
unsigned near good_match;
/* Use a faster search when the previous match is longer than this */
@ -43,7 +41,7 @@
/* Values for max_lazy_match, good_match and max_chain_length, depending on
* the desired pack level (0..9). The values given below have been tuned to
@@ -301,6 +311,10 @@
@@ -314,6 +324,10 @@
#endif
/* prev will be initialized on the fly */
@ -54,7 +52,7 @@
/* Set the default configuration parameters:
*/
max_lazy_match = configuration_table[pack_level].max_lazy;
@@ -537,6 +551,8 @@
@@ -550,6 +564,8 @@
memcpy((char*)window, (char*)window+WSIZE, (unsigned)WSIZE);
match_start -= WSIZE;
strstart -= WSIZE; /* we now have strstart >= MAX_DIST: */
@ -63,7 +61,7 @@
block_start -= (long) WSIZE;
@@ -564,13 +580,46 @@
@@ -577,13 +593,46 @@
}
}
@ -111,7 +109,7 @@
/* ===========================================================================
* Processes a new input file and return its compressed length. This
@@ -581,7 +630,7 @@
@@ -594,7 +643,7 @@
local off_t deflate_fast()
{
IPos hash_head; /* head of the hash chain */
@ -120,7 +118,7 @@
unsigned match_length = 0; /* length of best match */
prev_length = MIN_MATCH-1;
@@ -610,6 +659,7 @@
@@ -624,6 +673,7 @@
lookahead -= match_length;
@ -128,22 +126,22 @@
/* Insert new strings in the hash table only if the match length
* is not too large. This saves time but degrades compression.
*/
@@ -638,9 +688,14 @@
@@ -652,9 +702,14 @@
/* No match, output a literal byte */
Tracevv((stderr,"%c",window[strstart]));
flush = ct_tally (0, window[strstart]);
+ RSYNC_ROLL(strstart, 1);
+ RSYNC_ROLL(strstart, 1);
lookahead--;
strstart++;
strstart++;
}
+ if (rsync && strstart > rsync_chunk_end) {
+ rsync_chunk_end = 0xFFFFFFFFUL;
+ flush = 2;
+ }
+ if (rsync && strstart > rsync_chunk_end) {
+ rsync_chunk_end = 0xFFFFFFFFUL;
+ flush = 2;
+ }
if (flush) FLUSH_BLOCK(0), block_start = strstart;
/* Make sure that we always have enough lookahead, except
@@ -713,6 +768,7 @@
@@ -728,6 +783,7 @@
*/
lookahead -= prev_length-1;
prev_length -= 2;
@ -151,7 +149,7 @@
do {
strstart++;
INSERT_STRING(strstart, hash_head);
@@ -725,24 +781,39 @@
@@ -740,24 +796,39 @@
match_available = 0;
match_length = MIN_MATCH-1;
strstart++;
@ -195,9 +193,9 @@
strstart++;
lookahead--;
}
--- gzip-1.3.2/gzip.c.rsync Mon Oct 1 07:28:16 2001
+++ gzip-1.3.2/gzip.c Sun Mar 10 12:35:00 2002
@@ -249,6 +249,7 @@
--- ./gzip.c.orig 2007-02-05 21:54:26.000000000 +0100
+++ ./gzip.c 2007-05-16 11:46:16.000000000 +0200
@@ -238,6 +238,7 @@
unsigned insize; /* valid bytes in inbuf */
unsigned inptr; /* index of next byte to be processed in inbuf */
unsigned outcnt; /* bytes in output buffer */
@ -205,7 +203,7 @@
struct option longopts[] =
{
@@ -278,6 +279,7 @@
@@ -267,6 +268,7 @@
{"best", 0, 0, '9'}, /* compress better */
{"lzw", 0, 0, 'Z'}, /* make output compatible with old compress */
{"bits", 1, 0, 'b'}, /* max number of bits per code (implies -Z) */
@ -213,27 +211,27 @@
{ 0, 0, 0, 0 }
};
@@ -368,6 +370,7 @@
" -Z --lzw produce output compatible with old compress",
" -b --bits maxbits max number of bits per code (implies -Z)",
@@ -348,6 +350,7 @@
" -Z, --lzw produce output compatible with old compress",
" -b, --bits=BITS max number of bits per code (implies -Z)",
#endif
+ " --rsyncable Make rsync-friendly archive",
" file... files to (de)compress. If none given, use standard input.",
"Report bugs to <bug-gzip@gnu.org>.",
0};
@@ -546,6 +549,9 @@
#else
recursive = 1; break;
+ " --rsyncable Make rsync-friendly archive",
"",
"With no FILE, or when FILE is -, read standard input.",
"",
@@ -476,6 +479,9 @@
recursive = 1;
#endif
break;
+ case 'R':
+ rsync = 1; break;
+
case 'S':
#ifdef NO_MULTIPLE_DOTS
if (*optarg == '.') optarg++;
--- gzip-1.3.2/gzip.h.rsync Mon Oct 1 07:24:52 2001
+++ gzip-1.3.2/gzip.h Sun Mar 10 12:36:12 2002
@@ -133,6 +133,7 @@
--- ./gzip.h.orig 2006-12-11 19:54:39.000000000 +0100
+++ ./gzip.h 2007-05-16 11:41:41.000000000 +0200
@@ -155,6 +155,7 @@
extern unsigned insize; /* valid bytes in inbuf */
extern unsigned inptr; /* index of next byte to be processed in inbuf */
extern unsigned outcnt; /* bytes in output buffer */
@ -241,7 +239,7 @@
extern off_t bytes_in; /* number of input bytes */
extern off_t bytes_out; /* number of output bytes */
@@ -281,7 +282,7 @@
@@ -303,7 +304,7 @@
/* in trees.c */
void ct_init OF((ush *attr, int *method));
int ct_tally OF((int dist, int lc));
@ -250,26 +248,9 @@
/* in bits.c */
void bi_init OF((file_t zipfile));
--- gzip-1.3.2/gzip.texi.rsync Sun Nov 4 08:39:35 2001
+++ gzip-1.3.2/gzip.texi Sun Mar 10 12:35:00 2002
@@ -340,6 +340,14 @@
into the directory and compress all the files it finds there (or
decompress them in the case of @code{gunzip}).
+@item --rsyncable
+While compressing, synchronize the output occasionally based on the
+input. This reduces compression by about 1 percent most cases, but
+means that the @code{rsync} program can take advantage of similarities
+in the uncompressed input when syncronizing two files compressed with
+this flag. @code{gunzip} cannot tell the difference between a
+compressed file created with this option, and one created without it.
+
@item --suffix @var{suf}
@itemx -S @var{suf}
Use suffix @samp{@var{suf}} instead of @samp{.gz}. Any suffix can be
--- gzip-1.3.2/trees.c.rsync Wed Oct 6 07:00:00 1999
+++ gzip-1.3.2/trees.c Sun Mar 10 12:37:05 2002
@@ -847,9 +847,10 @@
--- ./trees.c.orig 2006-11-20 09:40:33.000000000 +0100
+++ ./trees.c 2007-05-16 11:42:11.000000000 +0200
@@ -860,9 +860,10 @@
* trees or store, and output the encoded block to the zip file. This function
* returns the total compressed length for the file so far.
*/
@ -281,7 +262,7 @@
int eof; /* true if this is the last block for a file */
{
ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */
@@ -941,6 +942,10 @@
@@ -955,6 +956,10 @@
Assert (input_len == bytes_in, "bad input size");
bi_windup();
compressed_len += 7; /* align on byte boundary */

package/base/gzip/gzip-1.3.1-zgreppipe.patch → package/base/gzip/gzip-1.3.11-zgreppipe.patch

@ -17,19 +17,20 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.1/zgrep.in
+++ gzip-1.3.1/zgrep.in
@@ -92,6 +92,7 @@
fi
--- ./zgrep.in
+++ ./zgrep.in
@@ -141,6 +141,8 @@
exec 3>&1
res=0
+trap break SIGPIPE
for i do
gzip -cdfq "$i" |
if test $files_with_matches -eq 1; then
@@ -110,5 +111,8 @@
fi
+
for i
do
# Fail if gzip or grep (or sed) fails.
@@ -184,5 +186,8 @@
r=$?
test "$gzip_status" -eq 0 || test "$gzip_status" -eq 2 || r=2
test $res -lt $r && res=$r
+ # SIGPIPE + 128
+ test "$r" -eq 141 && exit $res

+ 0
- 30
package/base/gzip/gzip-1.3.5-gunzip-dir.patch

@ -1,30 +0,0 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/gzip-1.3.5-gunzip-dir.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.5/gzip.c.pom 2005-04-29 14:25:23.000000000 +0200
+++ gzip-1.3.5/gzip.c 2005-04-29 14:24:42.000000000 +0200
@@ -1344,6 +1344,8 @@
error("corrupted input -- file name too large");
}
}
+ char *base2 = base_name (base); /* there should be problem with file name */
+ strcpy(base, base2); /* in this name there can't be path */
/* If necessary, adapt the name to local OS conventions: */
if (!list) {
MAKE_LEGAL_NAME(base);

+ 0
- 79
package/base/gzip/gzip-1.3.5-gzip-perm.patch

@ -1,79 +0,0 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/gzip-1.3.5-gzip-perm.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.5/gzip.c.perm 2005-04-26 14:22:58.211395152 +0200
+++ gzip-1.3.5/gzip.c 2005-04-26 14:24:10.414418624 +0200
@@ -881,6 +881,20 @@
}
close(ifd);
+ /* ofd ownership and permissions have to be set before close(ofd)*/
+ if (!to_stdout) {
+ if (fchmod(ofd, istat.st_mode & 07777)) {
+ int e = errno;
+ WARN((stderr, "%s: ", progname));
+ if (!quiet) {
+ errno = e;
+ perror(ofname);
+ }
+ }
+#ifndef NO_CHOWN
+ fchown(ofd, istat.st_uid, istat.st_gid); /* Copy ownership */
+#endif
+ }
if (!to_stdout && close(ofd)) {
write_error();
}
@@ -902,7 +916,7 @@
}
fprintf(stderr, "\n");
}
- /* Copy modes, times, ownership, and remove the input file */
+ /* Copy times and remove the input file */
if (!to_stdout) {
copy_stat(&istat);
}
@@ -1715,7 +1729,7 @@
/* ========================================================================
- * Copy modes, times, ownership from input file to output file.
+ * Copy times from input file to output file.
* IN assertion: to_stdout is false.
*/
local void copy_stat(ifstat)
@@ -1730,18 +1744,6 @@
}
reset_times(ofname, ifstat);
#endif
- /* Copy the protection modes */
- if (chmod(ofname, ifstat->st_mode & 07777)) {
- int e = errno;
- WARN((stderr, "%s: ", progname));
- if (!quiet) {
- errno = e;
- perror(ofname);
- }
- }
-#ifndef NO_CHOWN
- chown(ofname, ifstat->st_uid, ifstat->st_gid); /* Copy ownership */
-#endif
remove_ofname = 0;
/* It's now safe to remove the input file: */
if (xunlink (ifname)) {

+ 0
- 174
package/base/gzip/gzip-1.3.5-openbsd-owl-tmp.patch

@ -1,174 +0,0 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/gzip-1.3.5-openbsd-owl-tmp.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3.5/znew.in.owl-tmp 2002-09-27 08:17:09.000000000 +0200
+++ gzip-1.3.5/znew.in 2005-03-21 18:15:37.956717675 +0100
@@ -14,29 +14,27 @@
# block is the disk block size (best guess, need not be exact)
warn="(does not preserve modes and timestamp)"
-tmp=/tmp/zfoo.$$
-set -C
-echo hi > $tmp.1
-echo hi > $tmp.2
-if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then
- cpmod=${CPMOD-cpmod}
+cpmod=
+cpmodarg=
+if type ${CPMOD:-cpmod} 2>/dev/null; then
+ cpmod=${CPMOD:-cpmod}
warn=""
fi
-if test -z "$cpmod" && ${TOUCH-touch} -r $tmp.1 $tmp.2 2>/dev/null; then
- cpmod="${TOUCH-touch}"
+if test -z "$cpmod"; then
+ cpmod=touch
cpmodarg="-r"
warn="(does not preserve file modes)"
fi
-# check if GZIP env. variable uses -S or --suffix
-gzip -q $tmp.1
-ext=`echo $tmp.1* | sed "s|$tmp.1||"`
-rm -f $tmp.[12]*
-if test -z "$ext"; then
- echo znew: error determining gzip extension
- exit 1
-fi
+case "$GZIP" in
+ *-S*) ext=`echo "$GZIP" | sed 's/^.*-S[[:space:]]*\([^[:space:]]*\).*$/\1/'`
+ ;;
+ *-suffix*) ext=`echo "$GZIP" | sed 's/^.*--suffix=\([^[:space:]]*\).*$/\1/'`
+ ;;
+ *) ext='.gz'
+ ;;
+esac
if test "$ext" = ".Z"; then
echo znew: cannot use .Z as gzip extension.
exit 1
--- gzip-1.3.5/gzexe.in.owl-tmp 2002-09-28 08:18:11.000000000 +0200
+++ gzip-1.3.5/gzexe.in 2005-03-21 18:25:32.932597213 +0100
@@ -34,7 +34,7 @@
PATH="BINDIR:$PATH"
-x=`basename $0`
+x=`basename "$0"`
if test $# = 0; then
echo compress executables. original file foo is renamed to foo~
echo usage: ${x} [-d] files...
@@ -42,8 +42,9 @@
exit 1
fi
-tmp=gz$$
-trap "rm -f $tmp; exit 1" 1 2 3 5 10 13 15
+tmp=`/bin/mktemp ${TMPDIR:-/tmp}/gzexe.XXXXXXXXXX` || exit 1
+trap "rm -f $tmp; exit 1" HUP INT QUIT PIPE TERM
+trap "rm -f $tmp; exit 0" EXIT
decomp=0
res=0
@@ -53,12 +54,10 @@
shift
fi
-echo hi > zfoo1$$
-echo hi > zfoo2$$
-if test -z "`(${CPMOD-cpmod} zfoo1$$ zfoo2$$) 2>&1`"; then
- cpmod=${CPMOD-cpmod}
+cpmod=
+if type ${CPMOD:-cpmod} 2>/dev/null; then
+ cpmod=${CPMOD:-cpmod}
fi
-rm -f zfoo[12]$$
tail=""
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
@@ -99,7 +98,7 @@
continue
fi
case "`basename $i`" in
- gzip | tail | sed | chmod | ln | sleep | rm)
+ bash | chmod | gzip | ln | mktemp | rm | sed | sh | tail)
echo "${x}: $i would depend on itself"; continue ;;
esac
if test -z "$cpmod"; then
@@ -112,27 +111,19 @@
fi
fi
if test $decomp -eq 0; then
- sed 1q $0 > $tmp
+ sed 1q "$0" > $tmp
sed "s|^if tail|if $tail|" >> $tmp <<'EOF'
-skip=22
-set -C
-umask=`umask`
-umask 77
-if tail +$skip "$0" | "BINDIR"/gzip -cd > /tmp/gztmp$$; then
- umask $umask
- /bin/chmod 700 /tmp/gztmp$$
- prog="`echo $0 | /bin/sed 's|^.*/||'`"
- if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then
- trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0
- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null &
- /tmp/"$prog" ${1+"$@"}; res=$?
- else
- trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0
- (/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null &
- /tmp/gztmp$$ ${1+"$@"}; res=$?
- fi
+skip=14
+tmpdir=`/bin/mktemp -d ${TMPDIR:-/tmp}/gzexe.XXXXXXXXXX` || exit 1
+prog="${tmpdir}/`echo \"$0\" | sed 's|^.*/||'`"
+if tail +$skip "$0" | "BINDIR"/gzip -cd > "$prog"; then
+ /bin/chmod 700 "$prog"
+ trap '/bin/rm -rf $tmpdir; exit $res' EXIT
+ "$prog" ${1+"$@"}; res=$?
else
- echo Cannot decompress $0; exit 1
+ echo "Cannot decompress $0"
+ /bin/rm -rf $tmpdir
+ exit 1
fi; exit $res
EOF
gzip -cv9 "$i" >> $tmp || {
--- gzip-1.3.5/zdiff.in.owl-tmp 2002-09-26 10:33:24.000000000 +0200
+++ gzip-1.3.5/zdiff.in 2005-03-21 18:35:36.669875653 +0100
@@ -46,13 +46,13 @@
case "$2" in
*[-.]gz* | *[-.][zZ] | *.t[ga]z)
F=`echo "$2" | sed 's|.*/||;s|[-.][zZtga]*||'`
- set -C
- trap 'rm -f /tmp/"$F".$$; exit 2' HUP INT PIPE TERM 0
- gzip -cdfq "$2" > /tmp/"$F".$$ || exit
- gzip -cdfq "$1" | $comp $OPTIONS - /tmp/"$F".$$
+ TF=`/bin/mktemp ${TMPDIR:-/tmp}/"$F".XXXXXXXXXX` || exit 1
+ trap 'rm -f "$TF"; exit 2' EXIT HUP INT PIPE TERM
+ gzip -cdfq "$2" > "$TF" || exit
+ gzip -cdfq "$1" | $comp $OPTIONS - "$TF"
STAT="$?"
- /bin/rm -f /tmp/"$F".$$ || STAT=2
- trap - HUP INT PIPE TERM 0
+ rm -f "$TF" || STAT=2
+ trap - EXIT HUP INT PIPE TERM
exit $STAT;;
*) gzip -cdfq "$1" | $comp $OPTIONS - "$2";;

+ 0
- 114
package/base/gzip/gzip-1.3.5-stderr.patch

@ -1,114 +0,0 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/base/gzip/gzip-1.3.5-stderr.patch
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
--- gzip-1.3/gzexe.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/gzexe.in Thu Nov 9 15:09:09 2000
@@ -15,9 +15,9 @@
x=`basename $0`
if test $# = 0; then
- echo compress executables. original file foo is renamed to foo~
- echo usage: ${x} [-d] files...
- echo " -d decompress the executables"
+ echo compress executables. original file foo is renamed to foo~ 1&>2
+ echo usage: ${x} [-d] files... 1>&2
+ echo " -d decompress the executables" 1>&2
exit 1
fi
--- gzip-1.3/zdiff.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/zdiff.in Thu Nov 9 15:09:29 2000
@@ -32,7 +32,7 @@
esac
done
if test -z "$FILES"; then
- echo "Usage: $prog [${comp}_options] file [file]"
+ echo "Usage: $prog [${comp}_options] file [file]" 1>&2
exit 2
fi
set $FILES
@@ -64,6 +64,6 @@
esac;;
esac
else
- echo "Usage: $prog [${comp}_options] file [file]"
+ echo "Usage: $prog [${comp}_options] file [file]" 1>&2
exit 2
fi
--- gzip-1.3/zforce.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/zforce.in Thu Nov 9 15:09:47 2000
@@ -9,8 +9,8 @@
PATH="BINDIR:$PATH"; export PATH
x=`basename $0`
if test $# = 0; then
- echo "force a '.gz' extension on all gzip files"
- echo usage: $x files...
+ echo "force a '.gz' extension on all gzip files" 1>&2
+ echo usage: $x files... 1>&2
exit 1
fi
--- gzip-1.3/zgrep.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/zgrep.in Thu Nov 9 15:12:21 2000
@@ -31,8 +31,8 @@
done
if test -z "$pat"; then
- echo "grep through gzip files"
- echo "usage: $prog [grep_options] pattern [files]"
+ echo "grep through gzip files" 1>&2
+ echo "usage: $prog [grep_options] pattern [files]" 1>&2
exit 2
fi
--- gzip-1.3/zmore.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/zmore.in Thu Nov 9 15:13:49 2000
@@ -23,7 +23,8 @@
if test $# = 0; then
if test -t 0; then
- echo usage: ${ZMORE_PROGRAM_NAME-zmore} files...
+ echo usage: ${ZMORE_PROGRAM_NAME-zmore} files... 1>&2
+ exit 1
else
gzip -cdfq | eval ${PAGER-more}
fi
--- gzip-1.3/znew.in.orig Thu Nov 9 15:08:50 2000
+++ gzip-1.3/znew.in Thu Nov 9 15:14:20 2000
@@ -51,13 +51,13 @@
done
if test $# -eq 0; then
- echo "recompress .Z files into $ext (gzip) files"
- echo usage: `echo $0 | sed 's,^.*/,,'` "[-tv9KP]" file.Z...
- echo " -t tests the new files before deleting originals"
- echo " -v be verbose"
- echo " -9 use the slowest compression method (optimal compression)"
- echo " -K keep a .Z file when it is smaller than the $ext file"
- echo " -P use pipes for the conversion $warn"
+ echo "recompress .Z files into $ext (gzip) files" 1>&2
+ echo usage: `echo $0 | sed 's,^.*/,,'` "[-tv9KP]" file.Z... 1>&2
+ echo " -t tests the new files before deleting originals" 1>&2
+ echo " -v be verbose" 1>&2
+ echo " -9 use the slowest compression method (optimal compression)" 1>&2
+ echo " -K keep a .Z file when it is smaller than the $ext file" 1>&2
+ echo " -P use pipes for the conversion $warn" 1>&2
exit 1
fi

+ 3
- 0
package/base/gzip/gzip.conf

@ -35,3 +35,6 @@ if [ $stagelevel -gt 0 ]; then
hook_add postmake 5 "pm_move_to_bin"
fi
# build with support for 'gunzip' and 'zcat'
var_append CC_WRAPPER_INSERT " " "-DGNU_STANDARD=0"

+ 2
- 2
package/base/gzip/gzip.desc

@ -41,8 +41,8 @@
[L] GPL
[S] Alpha
[V] 1.3.5
[V] 1.3.11
[P] X X1---5---9 100.800
[D] 4282551372 gzip-1.3.5.tar.gz ftp://alpha.gnu.org/gnu/gzip/
[D] 1280351601 gzip-1.3.11.tar.gz ftp://alpha.gnu.org/gnu/gzip/

Loading…
Cancel
Save