From 82c13e3027103a89f76cfe4213c97875a92840fe Mon Sep 17 00:00:00 2001 From: recht Date: Sun, 29 Aug 2004 15:29:04 +0000 Subject: initial import of rzip-2.0 package provided by Miles Nordin in PR 26774 rzip is a compression program, similar in functionality to gzip or bzip2, but able to take advantage long distance redundencies in files, which can sometimes allow rzip to produce much better compression ratios than other programs. --- archivers/rzip/DESCR | 4 ++++ archivers/rzip/Makefile | 20 ++++++++++++++++++++ archivers/rzip/PLIST | 5 +++++ archivers/rzip/distinfo | 5 +++++ archivers/rzip/patches/patch-aa | 28 ++++++++++++++++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 archivers/rzip/DESCR create mode 100644 archivers/rzip/Makefile create mode 100644 archivers/rzip/PLIST create mode 100644 archivers/rzip/distinfo create mode 100644 archivers/rzip/patches/patch-aa (limited to 'archivers/rzip') diff --git a/archivers/rzip/DESCR b/archivers/rzip/DESCR new file mode 100644 index 00000000000..009bee7c34c --- /dev/null +++ b/archivers/rzip/DESCR @@ -0,0 +1,4 @@ +rzip is a compression program, similar in functionality to gzip or +bzip2, but able to take advantage long distance redundencies in files, +which can sometimes allow rzip to produce much better compression +ratios than other programs. diff --git a/archivers/rzip/Makefile b/archivers/rzip/Makefile new file mode 100644 index 00000000000..479f6a9106a --- /dev/null +++ b/archivers/rzip/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/08/29 15:29:04 recht Exp $ +# FreeBSD Id: Makefile,v 1.10 1997/04/27 16:06:15 ache Exp +# + +DISTNAME= rzip-2.0 +CATEGORIES= archivers +MASTER_SITES= http://rzip.samba.org/ftp/rzip/ + +MAINTAINER= carton@Ivy.NET +HOMEPAGE= http://rzip.samba.org/ +COMMENT= Create or extract .rz files, like gzip but smaller + +GNU_CONFIGURE= YES + +post-install: + ${LN} -f ${PREFIX}/bin/rzip ${PREFIX}/bin/runzip + ${RM} -f ${PREFIX}/man/man1/runzip.1 + ${LN} -s ${PREFIX}/man/man1/rzip.1 ${PREFIX}/man/man1/runzip.1 + +.include "../../mk/bsd.pkg.mk" diff --git a/archivers/rzip/PLIST b/archivers/rzip/PLIST new file mode 100644 index 00000000000..b61e98bc2b6 --- /dev/null +++ b/archivers/rzip/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/29 15:29:04 recht Exp $ +bin/runzip +bin/rzip +man/man1/runzip.1 +man/man1/rzip.1 diff --git a/archivers/rzip/distinfo b/archivers/rzip/distinfo new file mode 100644 index 00000000000..49e68644d12 --- /dev/null +++ b/archivers/rzip/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/08/29 15:29:04 recht Exp $ + +SHA1 (rzip-2.0.tar.gz) = 65d3d95689d14a6fb3b7c805768bf34868de5c17 +Size (rzip-2.0.tar.gz) = 42699 bytes +SHA1 (patch-aa) = efa046e26d01dc5d38cb4648119e8cd2ad91ea41 diff --git a/archivers/rzip/patches/patch-aa b/archivers/rzip/patches/patch-aa new file mode 100644 index 00000000000..6f47ed7bb82 --- /dev/null +++ b/archivers/rzip/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/08/29 15:29:04 recht Exp $ + +--- main.c.orig Thu Aug 26 23:31:21 2004 ++++ main.c Thu Aug 26 23:35:52 2004 +@@ -18,6 +18,7 @@ + /* rzip compression - main program */ + + #include "rzip.h" ++#include + + static void usage(void) + { +@@ -138,9 +139,14 @@ + fatal("%s: unknown suffix\n", control->infile); + } + +- control->outfile = strndup(control->infile, ++ control->outfile = malloc(strlen(control->infile) - ++ strlen(control->suffix) + 1); ++ assert(control->outfile); ++ strncpy(control->outfile, control->infile, + strlen(control->infile) - + strlen(control->suffix)); ++ *(control->outfile + strlen(control->infile) - ++ strlen(control->suffix)) = '\0'; + } + + fd_in = open(control->infile,O_RDONLY); -- cgit v1.2.3