summaryrefslogtreecommitdiff
path: root/archivers/bzip/files
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1996-09-27 11:47:06 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1996-09-27 11:47:06 +0000
commit43681e685c50bb41cc525730de2193d2793aa363 (patch)
treea69a7f5b48cd13b9c6ae8e186fc578b32e3dadc9 /archivers/bzip/files
parentadded bzip to archivers (diff)
imported new port of bpatch 0.21, a compression program, that seems to have
some advantages over gzip concerning compression and memory consumption.
Notes
Notes: svn path=/head/; revision=3887
Diffstat (limited to 'archivers/bzip/files')
-rw-r--r--archivers/bzip/files/COPYRIGHT14
-rw-r--r--archivers/bzip/files/patch-aa42
-rw-r--r--archivers/bzip/files/patch-ab12
3 files changed, 68 insertions, 0 deletions
diff --git a/archivers/bzip/files/COPYRIGHT b/archivers/bzip/files/COPYRIGHT
new file mode 100644
index 000000000000..2b689b3d24f8
--- /dev/null
+++ b/archivers/bzip/files/COPYRIGHT
@@ -0,0 +1,14 @@
+COPYRIGHT:
+
+ GNU PUBLIC LICENSE Version 2, but see below !
+
+COMMERCIAL USE:
+
+ This program may or may not infringe certain US patents
+ pertaining to arithmetic coding and to the block-sorting
+ transformation itself. Opinions differ as to the precise
+ legal status of some of the algorithms used. Nevertheless,
+ you should be aware that commercial use of this program
+ could render you liable to unfriendly legal action.
+
+
diff --git a/archivers/bzip/files/patch-aa b/archivers/bzip/files/patch-aa
new file mode 100644
index 000000000000..a08a49f31c33
--- /dev/null
+++ b/archivers/bzip/files/patch-aa
@@ -0,0 +1,42 @@
+--- Makefile.orig Sat Aug 31 09:50:33 1996
++++ Makefile Fri Sep 27 12:54:40 1996
+@@ -1,29 +1,15 @@
+-
+-CC = gcc
+-SH = /bin/sh
+-
+-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -Wall -Winline -Wshadow -W
+-
+-
+-
+ all:
+- cat words0
+ $(CC) $(CFLAGS) -o bzip bzip.c
+- rm -f bunzip
+- ln -s ./bzip ./bunzip
+- cat words1
+- ./bzip -Q -1 < sample1.ref > sample1.rbz
+- ./bzip -Q -2 < sample2.ref > sample2.rbz
+- ./bunzip -Q < sample1.bz > sample1.tst
+- ./bunzip -Q < sample2.bz > sample2.tst
+- cat words2
+- cmp sample1.bz sample1.rbz
+- cmp sample2.bz sample2.rbz
+- cmp sample1.tst sample1.ref
+- cmp sample2.tst sample2.ref
+- cat words3
+-
++ @ln -fs ./bzip ./bunzip
++ @echo "*** testing bzip and bunzip ***"
++ ./bzip -Q -1 < sample1.ref > sample1.rbz || exit 1
++ ./bzip -Q -2 < sample2.ref > sample2.rbz || exit 1
++ ./bunzip -Q < sample1.bz > sample1.tst || exit 1
++ ./bunzip -Q < sample2.bz > sample2.tst || exit 1
++ cmp sample1.bz sample1.rbz || exit 1
++ cmp sample2.bz sample2.rbz || exit 1
++ cmp sample1.tst sample1.ref || exit 1
++ cmp sample2.tst sample2.ref || exit 1
+
+ clean:
+ rm -f bzip bunzip sample*.tst sample*.rbz
+-
diff --git a/archivers/bzip/files/patch-ab b/archivers/bzip/files/patch-ab
new file mode 100644
index 000000000000..cb8349efe736
--- /dev/null
+++ b/archivers/bzip/files/patch-ab
@@ -0,0 +1,12 @@
+--- bzip.c.orig Fri Sep 27 12:33:18 1996
++++ bzip.c Fri Sep 27 12:35:48 1996
+@@ -116,7 +116,9 @@
+ #if BZ_UNIX_32
+ #include <utime.h>
+ #include <unistd.h>
++#ifndef __FreeBSD__ /* stdlib already included above */
+ #include <malloc.h>
++#endif
+ #include <sys/stat.h>
+ #include <sys/times.h>
+