summaryrefslogtreecommitdiff
path: root/archivers/bzip
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/bzip')
-rw-r--r--archivers/bzip/Makefile28
-rw-r--r--archivers/bzip/files/COPYRIGHT21
-rw-r--r--archivers/bzip/files/md51
-rw-r--r--archivers/bzip/patches/patch-aa43
-rw-r--r--archivers/bzip/patches/patch-ab12
-rw-r--r--archivers/bzip/patches/patch-ac35
-rw-r--r--archivers/bzip/pkg/COMMENT1
-rw-r--r--archivers/bzip/pkg/DESCR20
-rw-r--r--archivers/bzip/pkg/PLIST4
9 files changed, 165 insertions, 0 deletions
diff --git a/archivers/bzip/Makefile b/archivers/bzip/Makefile
new file mode 100644
index 00000000000..0a8ad78102a
--- /dev/null
+++ b/archivers/bzip/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: bzip
+# Version required: 0.21
+# Date created: Fr 27 Sep 1996 11:47:35 MET DST
+# Whom: Andreas Klemm <andreas@klemm.gtn.com>
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/27 02:18:57 hubertf Exp $
+#
+
+DISTNAME= bzip-0.21
+CATEGORIES= archivers
+MASTER_SITES= http://www.cs.man.ac.uk/arch/people/j-seward/
+
+MAINTAINER= andreas@klemm.gtn.com
+
+NO_CDROM= "Restrictive copyright (don't sell for profit)"
+MAN1= bzip.1 bunzip.1
+
+pre-install:
+ @${CAT} ${FILESDIR}/COPYRIGHT
+
+do-install:
+ ${RM} -f ${PREFIX}/bin/bzip ${PREFIX}/bin/bunzip
+ ${INSTALL_PROGRAM} ${WRKSRC}/bzip ${PREFIX}/bin/bzip
+ ln -fs ${PREFIX}/bin/bzip ${PREFIX}/bin/bunzip
+ ${INSTALL_MAN} ${WRKSRC}/bzip.1 ${PREFIX}/man/man1/bzip.1
+ ${INSTALL_MAN} ${WRKSRC}/bzip.1 ${PREFIX}/man/man1/bunzip.1
+
+.include <bsd.port.mk>
diff --git a/archivers/bzip/files/COPYRIGHT b/archivers/bzip/files/COPYRIGHT
new file mode 100644
index 00000000000..5f20d917c09
--- /dev/null
+++ b/archivers/bzip/files/COPYRIGHT
@@ -0,0 +1,21 @@
+COPYRIGHT
+=========
+
+BZIP is distributed under the GNU General Public License version
+2; for details, see the file LICENSE. Pointers to the algorithms
+used are in ALGORITHMS.
+
+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.
+
+ Julian Seward <sewardj@cs.man.ac.uk>
+ Manchester, UK
+ 18 July 1996 (version 0.15)
+ 25 August 1996 (version 0.21)
diff --git a/archivers/bzip/files/md5 b/archivers/bzip/files/md5
new file mode 100644
index 00000000000..697f194cd4e
--- /dev/null
+++ b/archivers/bzip/files/md5
@@ -0,0 +1 @@
+MD5 (bzip-0.21.tar.gz) = 03a7fe24ced5ac4401a32092409c78be
diff --git a/archivers/bzip/patches/patch-aa b/archivers/bzip/patches/patch-aa
new file mode 100644
index 00000000000..69b52ae7048
--- /dev/null
+++ b/archivers/bzip/patches/patch-aa
@@ -0,0 +1,43 @@
+--- Makefile.orig Sat Aug 31 09:50:33 1996
++++ Makefile Fri Sep 27 13:57:55 1996
+@@ -1,29 +1,17 @@
+-
+-CC = gcc
+-SH = /bin/sh
+-
+-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -Wall -Winline -Wshadow -W
+-
+-
++CFLAGS+= -fomit-frame-pointer
+
+ 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/patches/patch-ab b/archivers/bzip/patches/patch-ab
new file mode 100644
index 00000000000..8a349de5f3e
--- /dev/null
+++ b/archivers/bzip/patches/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>
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) /* stdlib already included above */
+ #include <malloc.h>
++#endif
+ #include <sys/stat.h>
+ #include <sys/times.h>
+
diff --git a/archivers/bzip/patches/patch-ac b/archivers/bzip/patches/patch-ac
new file mode 100644
index 00000000000..ca210ce4094
--- /dev/null
+++ b/archivers/bzip/patches/patch-ac
@@ -0,0 +1,35 @@
+--- bzip.c.orig Sat Sep 28 03:32:05 1996
++++ bzip.c Sat Sep 28 03:37:53 1996
+@@ -114,6 +114,7 @@
+ --*/
+
+ #if BZ_UNIX_32
++ #include <sys/types.h>
+ #include <utime.h>
+ #include <unistd.h>
+ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) /* stdlib already included above */
+@@ -3132,11 +3133,6 @@
+ signal (SIGBUS, mySIGSEGVorSIGBUScatcher);
+ #endif
+
+- if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
+- fprintf ( stderr,
+- "BZIP, a block-sorting file compressor. "
+- "Version 0.21, 25-August-96.\n" );
+-
+ #if DEBUG
+ if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
+ fprintf ( stderr, "BZIP: *** compiled with debugging ON ***\n" );
+@@ -3206,6 +3202,12 @@
+ exit ( 1 );
+ break;
+ }
++
++ if (verbose) {
++ fprintf ( stderr,
++ "BZIP, a block-sorting file compressor. "
++ "Version 0.21, 25-August-96.\n" );
++ }
+
+ if ( opMode == OM_FILE_TO_STDOUT && numFileNames != 1) {
+ fprintf ( stderr, "%s: Option -c requires you to supply exactly one filename.\n",
diff --git a/archivers/bzip/pkg/COMMENT b/archivers/bzip/pkg/COMMENT
new file mode 100644
index 00000000000..4a54023fe56
--- /dev/null
+++ b/archivers/bzip/pkg/COMMENT
@@ -0,0 +1 @@
+A block-sorting file compressor.
diff --git a/archivers/bzip/pkg/DESCR b/archivers/bzip/pkg/DESCR
new file mode 100644
index 00000000000..c773207da1f
--- /dev/null
+++ b/archivers/bzip/pkg/DESCR
@@ -0,0 +1,20 @@
+Bzip compresses files using the Burrows-Wheeler-Fenwick
+block-sorting text compression algorithm.
+
+Compression is generally considerably better than that achieved by
+more conventional LZ77/LZ78-based compressors, and competitive with
+all but the best of the PPM family of statistical compressors.
+
+BZIP is distributed under the GNU General Public License version
+2; for details, see the file LICENSE. Pointers to the algorithms
+used are in ALGORITHMS.
+
+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/pkg/PLIST b/archivers/bzip/pkg/PLIST
new file mode 100644
index 00000000000..be533fdb8c0
--- /dev/null
+++ b/archivers/bzip/pkg/PLIST
@@ -0,0 +1,4 @@
+bin/bzip
+bin/bunzip
+man/man1/bzip.1.gz
+man/man1/bunzip.1.gz