summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorrecht <recht>2004-08-29 15:29:04 +0000
committerrecht <recht>2004-08-29 15:29:04 +0000
commit5a099b9d88a478ab3f7dd3f92f5f7924ca4db28f (patch)
treed4aaee5b09c35e84d53dd192909ee34322fcae50 /archivers
parentfab8ce334544dab14f4b553422e3758aeaa55869 (diff)
downloadpkgsrc-5a099b9d88a478ab3f7dd3f92f5f7924ca4db28f.tar.gz
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 (limited to 'archivers')
-rw-r--r--archivers/rzip/DESCR4
-rw-r--r--archivers/rzip/Makefile20
-rw-r--r--archivers/rzip/PLIST5
-rw-r--r--archivers/rzip/distinfo5
-rw-r--r--archivers/rzip/patches/patch-aa28
5 files changed, 62 insertions, 0 deletions
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 <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);