pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/rzip initial import of rzip-2.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/bea97dbdf993
branches: trunk
changeset: 480063:bea97dbdf993
user: recht <recht%pkgsrc.org@localhost>
date: Sun Aug 29 15:29:04 2004 +0000
description:
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.
diffstat:
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(+), 0 deletions(-)
diffs (82 lines):
diff -r 5ac35e0643d4 -r bea97dbdf993 archivers/rzip/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/rzip/DESCR Sun Aug 29 15:29:04 2004 +0000
@@ -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 -r 5ac35e0643d4 -r bea97dbdf993 archivers/rzip/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/rzip/Makefile Sun Aug 29 15:29:04 2004 +0000
@@ -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@localhost
+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 -r 5ac35e0643d4 -r bea97dbdf993 archivers/rzip/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/rzip/PLIST Sun Aug 29 15:29:04 2004 +0000
@@ -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 -r 5ac35e0643d4 -r bea97dbdf993 archivers/rzip/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/rzip/distinfo Sun Aug 29 15:29:04 2004 +0000
@@ -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 -r 5ac35e0643d4 -r bea97dbdf993 archivers/rzip/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/rzip/patches/patch-aa Sun Aug 29 15:29:04 2004 +0000
@@ -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 <assert.h>
+
+ 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);
Home |
Main Index |
Thread Index |
Old Index