aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/bzip/Makefile32
-rw-r--r--archivers/bzip/distinfo1
-rw-r--r--archivers/bzip/files/COPYRIGHT14
-rw-r--r--archivers/bzip/files/patch-aa42
-rw-r--r--archivers/bzip/files/patch-ab12
-rw-r--r--archivers/bzip/pkg-comment1
-rw-r--r--archivers/bzip/pkg-descr22
-rw-r--r--archivers/bzip/pkg-plist4
8 files changed, 128 insertions, 0 deletions
diff --git a/archivers/bzip/Makefile b/archivers/bzip/Makefile
new file mode 100644
index 000000000000..1c3b801dcd99
--- /dev/null
+++ b/archivers/bzip/Makefile
@@ -0,0 +1,32 @@
+# 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:$
+#
+
+DISTNAME= bzip-0.21
+CATEGORIES+= archivers
+MASTER_SITES= http://www.cs.man.ac.uk/arch/people/j-seward/
+
+MAINTAINER= Andreas Klemm <andreas@klemm.gtn.com>
+
+pre-install:
+ @cat ${FILESDIR}/COPYRIGHT
+
+do-install:
+ rm -f ${PREFIX}/bin/bzip ${PREFIX}/bin/bzip
+ ${INSTALL} -C -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${WRKSRC}/bzip ${PREFIX}/bin/bzip
+ ln ${PREFIX}/bin/bzip ${PREFIX}/bin/bunzip
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ ${WRKSRC}/bzip.1 ${PREFIX}/man/man1/bzip.1
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ ${WRKSRC}/bzip.1 ${PREFIX}/man/man1/bunzip.1
+.if !defined(NOMANCOMPRESS)
+ gzip -9nf ${PREFIX}/man/man1/bzip.1
+ gzip -9nf ${PREFIX}/man/man1/bunzip.1
+.endif
+
+.include <bsd.port.mk>
diff --git a/archivers/bzip/distinfo b/archivers/bzip/distinfo
new file mode 100644
index 000000000000..697f194cd4e2
--- /dev/null
+++ b/archivers/bzip/distinfo
@@ -0,0 +1 @@
+MD5 (bzip-0.21.tar.gz) = 03a7fe24ced5ac4401a32092409c78be
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>
+
diff --git a/archivers/bzip/pkg-comment b/archivers/bzip/pkg-comment
new file mode 100644
index 000000000000..d25220321327
--- /dev/null
+++ b/archivers/bzip/pkg-comment
@@ -0,0 +1 @@
+bzip - a block-sorting file compressor - v0.21 (they say even better than gzip)
diff --git a/archivers/bzip/pkg-descr b/archivers/bzip/pkg-descr
new file mode 100644
index 000000000000..e721e41d986f
--- /dev/null
+++ b/archivers/bzip/pkg-descr
@@ -0,0 +1,22 @@
+GREETINGS!
+
+ This is the README for BZIP, my block-sorting file compressor,
+ version 0.21.
+
+ 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.
+
+
+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/pkg-plist b/archivers/bzip/pkg-plist
new file mode 100644
index 000000000000..be533fdb8c08
--- /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