mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
imported new port of bpatch 0.21, a compression program, that seems to have
some advantages over gzip concerning compression and memory consumption.
This commit is contained in:
parent
50050d2820
commit
43681e685c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3887
32
archivers/bzip/Makefile
Normal file
32
archivers/bzip/Makefile
Normal file
@ -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>
|
1
archivers/bzip/distinfo
Normal file
1
archivers/bzip/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (bzip-0.21.tar.gz) = 03a7fe24ced5ac4401a32092409c78be
|
14
archivers/bzip/files/COPYRIGHT
Normal file
14
archivers/bzip/files/COPYRIGHT
Normal file
@ -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.
|
||||
|
||||
|
42
archivers/bzip/files/patch-aa
Normal file
42
archivers/bzip/files/patch-aa
Normal file
@ -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
|
||||
-
|
12
archivers/bzip/files/patch-ab
Normal file
12
archivers/bzip/files/patch-ab
Normal file
@ -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>
|
||||
|
1
archivers/bzip/pkg-comment
Normal file
1
archivers/bzip/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
bzip - a block-sorting file compressor - v0.21 (they say even better than gzip)
|
22
archivers/bzip/pkg-descr
Normal file
22
archivers/bzip/pkg-descr
Normal file
@ -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.
|
4
archivers/bzip/pkg-plist
Normal file
4
archivers/bzip/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/bzip
|
||||
bin/bunzip
|
||||
man/man1/bzip.1.gz
|
||||
man/man1/bunzip.1.gz
|
Loading…
Reference in New Issue
Block a user