Kevin Day's version of the gzip-rsyncable patch that uses the rsync
checksum algorithm.
---- original-1.2.2/deflate.c 2004-09-15 10:28:14.000000000 -0700
-+++ rsyncable-1.2.2/deflate.c 2005-02-17 14:37:14.660957200 -0700
+--- gzip-1.2.2/deflate.c 2004-09-15 10:28:14.000000000 -0700
++++ rsyncable/deflate.c 2005-02-17 14:37:14.660957200 -0700
@@ -98,6 +98,10 @@
int length));
#endif
return flush == Z_FINISH ? finish_done : block_done;
}
#endif /* FASTEST */
-diff -Naur original-1.2.2/deflate.h rsyncable-1.2.2/deflate.h
---- original-1.2.2/deflate.h 2004-02-24 07:38:44.000000000 -0700
-+++ rsyncable-1.2.2/deflate.h 2005-02-17 13:46:12.056551200 -0700
+--- gzip-1.2.2/deflate.h 2004-02-24 07:38:44.000000000 -0700
++++ rsyncable/deflate.h 2005-02-17 13:46:12.056551200 -0700
@@ -254,6 +254,17 @@
* are always zero.
*/
void _tr_align OF((deflate_state *s));
void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
int eof));
-diff -Naur original-1.2.2/minigzip.c rsyncable-1.2.2/minigzip.c
---- original-1.2.2/minigzip.c 2003-11-04 18:19:26.000000000 -0700
-+++ rsyncable-1.2.2/minigzip.c 2005-02-17 13:11:35.472851600 -0700
+--- gzip-1.2.2/minigzip.c 2003-11-04 18:19:26.000000000 -0700
++++ rsyncable/minigzip.c 2005-02-17 13:11:35.472851600 -0700
@@ -215,7 +215,7 @@
}
gz_compress(in, out);
}
-diff -Naur original-1.2.2/trees.c rsyncable-1.2.2/trees.c
---- original-1.2.2/trees.c 2004-02-24 07:36:38.000000000 -0700
-+++ rsyncable-1.2.2/trees.c 2005-02-17 13:09:38.768435100 -0700
+--- gzip-1.2.2/trees.c 2004-02-24 07:36:38.000000000 -0700
++++ rsyncable/trees.c 2005-02-17 13:09:38.768435100 -0700
@@ -918,10 +918,11 @@
* Determine the best encoding for the current block: dynamic trees, static
* trees or store, and output the encoded block to the zip file.
}
Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
s->compressed_len-7*eof));
-diff -Naur original-1.2.2/zlib.def rsyncable-1.2.2/zlib.def
---- original-1.2.2/zlib.def 1969-12-31 17:00:00.000000000 -0700
-+++ rsyncable-1.2.2/zlib.def 2005-02-17 14:01:48.972258000 -0700
+--- gzip-1.2.2/zlib.def 1969-12-31 17:00:00.000000000 -0700
++++ rsyncable/zlib.def 2005-02-17 14:01:48.972258000 -0700
@@ -0,0 +1,61 @@
+LIBRARY
+; zlib data compression library
+ zError
+ deflateSetRsyncParameters_
\ No newline at end of file
-diff -Naur original-1.2.2/zlib.h rsyncable-1.2.2/zlib.h
---- original-1.2.2/zlib.h 2004-10-03 22:57:26.000000000 -0700
-+++ rsyncable-1.2.2/zlib.h 2005-02-17 14:02:11.753362200 -0700
+--- gzip-1.2.2/zlib.h 2004-10-03 22:57:26.000000000 -0700
++++ rsyncable/zlib.h 2005-02-17 14:02:11.753362200 -0700
@@ -179,6 +179,13 @@
#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */