mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
Add rzip, a compression program, similar in functionality to gzip or bzip2, but
able to take advantage from long distance redundancies in files, which can sometimes allow rzip to produce much better compression ratios than other programs. WWW: http://rzip.samba.org/
This commit is contained in:
parent
78553307d2
commit
b738c01a80
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107704
5 changed files with 54 additions and 0 deletions
|
@ -60,6 +60,7 @@
|
|||
SUBDIR += ruby-bz2
|
||||
SUBDIR += ruby-zip
|
||||
SUBDIR += rvm
|
||||
SUBDIR += rzip
|
||||
SUBDIR += sectar
|
||||
SUBDIR += sharutils
|
||||
SUBDIR += squsq
|
||||
|
|
20
archivers/rzip/Makefile
Normal file
20
archivers/rzip/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# New ports collection makefile for: rzip
|
||||
# Date created: 9 April 2004
|
||||
# Whom: Pav Lucistnik <pav@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rzip
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= http://rzip.samba.org/ftp/rzip/
|
||||
|
||||
MAINTAINER= pav@FreeBSD.org
|
||||
COMMENT= Compression program similar to gzip or bzip2
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
MAN1= rzip.1
|
||||
PLIST_FILES= bin/rzip
|
||||
|
||||
.include <bsd.port.mk>
|
2
archivers/rzip/distinfo
Normal file
2
archivers/rzip/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (rzip-2.0.tar.gz) = 8a88b445afba919b122a3899d6d26b2a
|
||||
SIZE (rzip-2.0.tar.gz) = 42699
|
15
archivers/rzip/files/patch-main.c
Normal file
15
archivers/rzip/files/patch-main.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- main.c.orig Thu Feb 12 01:01:08 2004
|
||||
+++ main.c Fri Apr 9 18:28:33 2004
|
||||
@@ -137,10 +137,8 @@
|
||||
strlen(control->infile) - strlen(control->suffix)) != 0) {
|
||||
fatal("%s: unknown suffix\n", control->infile);
|
||||
}
|
||||
-
|
||||
- control->outfile = strndup(control->infile,
|
||||
- strlen(control->infile) -
|
||||
- strlen(control->suffix));
|
||||
+ control->outfile = malloc(strlen(control->infile) - strlen(control->suffix) + 1);
|
||||
+ strncpy(control->outfile, control->infile, strlen(control->infile) - strlen(control->suffix));
|
||||
}
|
||||
|
||||
fd_in = open(control->infile,O_RDONLY);
|
16
archivers/rzip/pkg-descr
Normal file
16
archivers/rzip/pkg-descr
Normal file
|
@ -0,0 +1,16 @@
|
|||
rzip is a compression program, similar in functionality to gzip or bzip2, but
|
||||
able to take advantage from long distance redundancies in files, which can
|
||||
sometimes allow rzip to produce much better compression ratios than other
|
||||
programs.
|
||||
|
||||
The principal advantage of rzip is that it has an effective history buffer of
|
||||
900 Mbyte. This means it can find matching pieces of the input file over huge
|
||||
distances compared to other commonly used compression programs. The gzip
|
||||
program by comparison uses a history buffer of 32 kbyte and bzip2 uses a
|
||||
history buffer of 900 kbyte. The second advantage of rzip over bzip2 is that it
|
||||
is usually faster. This may seem surprising at first given that rzip uses the
|
||||
bzip2 library as a backend (for handling the short-range compression), but it
|
||||
makes sense when you realise that rzip has usually reduced the data a fair bit
|
||||
before handing it to bzip2, so bzip2 has to do less work.
|
||||
|
||||
WWW: http://rzip.samba.org/
|
Loading…
Add table
Reference in a new issue