update to unzip 6.0 which adds support for ZIP64 & UTF8 filenames

among other things.
This commit is contained in:
jsg 2010-04-25 10:36:05 +00:00
parent 55343eab07
commit f53bbab61e
4 changed files with 14 additions and 58 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.40 2008/03/25 19:39:30 jasper Exp $
# $OpenBSD: Makefile,v 1.41 2010/04/25 10:36:05 jsg Exp $
COMMENT= extract, list & test files in a ZIP archive
VERSION= 5.52
VERSION= 6.0
DISTNAME= unzip${VERSION:S/.//}
PKGNAME= unzip-${VERSION}p0
PKGNAME= unzip-${VERSION}
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=infozip/} \
http://mirror.switch.ch/ftp/mirror/infozip/src/ \
@ -24,17 +24,15 @@ FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
# Workaround compiler bug on hppa which causes crashes
.if ${MACHINE_ARCH} == "hppa"
MAKE_FLAGS+= LOC="${CFLAGS} -O0 -DUSE_UNSHRINK"
MAKE_FLAGS+= LOC="${CFLAGS} -O0 -DUSE_UNSHRINK -DNO_LCHMOD -DNO_LCHOWN"
.else
MAKE_FLAGS+= LOC="${CFLAGS} -DUSE_UNSHRINK"
MAKE_FLAGS+= LOC="${CFLAGS} -DUSE_UNSHRINK -DNO_LCHMOD -DNO_LCHOWN"
.endif
MAKE_FILE= unix/Makefile
ALL_TARGET= bsd
WRKDIST= ${WRKDIR}/unzip-${VERSION}
DOCS= COPYING.OLD LICENSE README WHERE
post-install:

View File

@ -1,5 +1,5 @@
MD5 (unzip552.tar.gz) = nSORmZnW6skhfR9BRyA0qQ==
RMD160 (unzip552.tar.gz) = t0mwkjvEzOqm+Teu9ojpcTqEMow=
SHA1 (unzip552.tar.gz) = GDG9WbnmB6aQUvg7JjOEiV4tShk=
SHA256 (unzip552.tar.gz) = FF2V4u8e+a3S48l9E0CQfjOrh0nrEjU3Ln8LevYAqOk=
SIZE (unzip552.tar.gz) = 1140291
MD5 (unzip60.tar.gz) = YrSQQHSJUh24Y7Ujp/hjdQ==
RMD160 (unzip60.tar.gz) = SK9mYG6UcuRfu5S8Tihdoj0bibo=
SHA1 (unzip60.tar.gz) = q/feikAYqYNZDtb1y9mQ1HQPiiI=
SHA256 (unzip60.tar.gz) = A22WmRZG0ESe0KqVLk++IbR2zplKvCduSdMOaGcIvTc=
SIZE (unzip60.tar.gz) = 1376845

View File

@ -1,42 +0,0 @@
$OpenBSD: patch-inflate_c,v 1.1 2008/03/25 19:39:30 jasper Exp $
--- inflate.c.orig Tue Mar 25 16:15:47 2008
+++ inflate.c Tue Mar 25 16:17:38 2008
@@ -983,6 +983,7 @@ static int inflate_dynamic(__G)
unsigned l; /* last length */
unsigned m; /* mask for bit lengths table */
unsigned n; /* number of lengths to get */
+ struct huft *tlp;
struct huft *tl; /* literal/length code table */
struct huft *td; /* distance code table */
unsigned bl; /* lookup bits for tl */
@@ -995,6 +996,7 @@ static int inflate_dynamic(__G)
register unsigned k; /* number of bits in bit buffer */
int retval = 0; /* error code returned: initialized to "no error" */
+ td = tlp = tl = (struct huft *)NULL;
/* make local bit buffer */
Trace((stderr, "\ndynamic block"));
@@ -1047,9 +1049,9 @@ static int inflate_dynamic(__G)
while (i < n)
{
NEEDBITS(bl)
- j = (td = tl + ((unsigned)b & m))->b;
+ j = (tlp = tl + ((unsigned)b & m))->b;
DUMPBITS(j)
- j = td->v.n;
+ j = tlp->v.n;
if (j < 16) /* length of code in bits (0..15) */
ll[i++] = l = j; /* save last length in l */
else if (j == 16) /* repeat last length 3 to 6 times */
@@ -1149,8 +1151,8 @@ static int inflate_dynamic(__G)
cleanup_and_exit:
/* free the decoding tables, return */
- huft_free(tl);
- huft_free(td);
+ if (tl) huft_free(tl);
+ if (td) huft_free(td);
return retval;
}

View File

@ -1,7 +1,7 @@
@comment $OpenBSD: PLIST,v 1.9 2004/08/03 11:30:02 espie Exp $
bin/funzip
bin/unzip
bin/unzipsfx
@comment $OpenBSD: PLIST,v 1.10 2010/04/25 10:36:06 jsg Exp $
@bin bin/funzip
@bin bin/unzip
@bin bin/unzipsfx
bin/zipgrep
bin/zipinfo
@man man/man1/funzip.1