NetBSD pkgsrc (package source) is a package management system for
Unix-like operating systems
Unzip will list, test, or extract files from a ZIP archive, commonly
found on MS-DOS systems. The default behavior (with no options) is to
extract into the current directory (and subdirectories below it) all
files from the specified ZIP archive. Unzip is compatible with
archives created by PKWARE's PKZIP, but in many cases the program
options or default behaviors differ.
Zipinfo lists technical information about files in a ZIP archive, most
commonly found on MS-DOS systems. Such information includes file access
permissions, encryption status, type of compression, version and operating
system or file system of compressing program, and the like.
Funzip acts as a filter; that is, it assumes that a ZIP archive is
being piped into standard input, and it extracts the first member from
the archive to stdout. If there is an argument, then the input comes
from the specified file instead of from stdin.
Unzipsfx is a modified version of unzip designed to be prepended to
existing ZIP archives in order to form self-extracting archives.
Instead of taking its first non-flag argument to be the zipfile(s) to
be extracted, unzipsfx seeks itself under the name by which it was
invoked and tests or extracts the contents of the appended archive.
# $NetBSD: Makefile,v 1.69 2008/03/23 13:05:31 tron Exp $
DISTNAME= unzip552
PKGNAME= unzip-5.52
PKGREVISION= 4
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/
EXTRACT_SUFX= .tgz
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.info-zip.org/pub/infozip/UnZip.html
COMMENT= List, test and extract compressed files in a ZIP archive
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
DIST_SUBDIR= ${PKGNAME_NOREV} # Remove on next update.
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
MAKE_FILE= unix/Makefile
BUILD_TARGET= generic_zlib unzipsfx
.if ${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin"
CFLAGS+= -DBSD
.endif
CFLAGS+= -I. -DUNIX -Dunix -DUSE_UNSHRINK
MAKE_FLAGS+= CF=${CPPFLAGS:Q}\ ${CFLAGS:Q}
MAKE_FLAGS+= LF2=${_STRIPFLAG_CC:Q}\ ${LDFLAGS:Q}\ -lz
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc
TEST_TARGET= check
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} unzip funzip unzipsfx ${DESTDIR}${PREFIX}/bin
${LN} -sf unzip ${DESTDIR}${PREFIX}/bin/zipinfo
cd ${WRKSRC}/unix && ${INSTALL_SCRIPT} zipgrep ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}/man && ${INSTALL_MAN} funzip.1 unzip.1 unzipsfx.1 \
zipgrep.1 zipinfo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/unzip
cd ${WRKSRC} && ${INSTALL_DATA} BUGS LICENSE README WHERE \
${DESTDIR}${PREFIX}/share/doc/unzip
cd ${WRKSRC} && ${INSTALL_DATA} COPYING.OLD \
${DESTDIR}${PREFIX}/share/doc/unzip/COPYING
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.2 2004/01/05 11:42:20 jlam Exp $
bin/funzip
bin/unzip
bin/unzipsfx
bin/zipgrep
bin/zipinfo
man/man1/funzip.1
man/man1/unzip.1
man/man1/unzipsfx.1
man/man1/zipgrep.1
man/man1/zipinfo.1
share/doc/unzip/BUGS
share/doc/unzip/COPYING
share/doc/unzip/LICENSE
share/doc/unzip/README
share/doc/unzip/WHERE
@dirrm share/doc/unzip
$NetBSD: distinfo,v 1.18 2008/03/23 13:03:13 tron Exp $
SHA1 (unzip-5.52/unzip552.tgz) = 1831bd59b9e607a69052f83b263384895e2d4a19
RMD160 (unzip-5.52/unzip552.tgz) = b749b0923bc4cceaa6f937aef688e9713a84328c
Size (unzip-5.52/unzip552.tgz) = 1140291 bytes
SHA1 (patch-aa) = de66b7b5c45904167e8596ce5235d957c2df4d2a
SHA1 (patch-ab) = dd426fdf4b774bd73f4ee46da470ffa3c2cf6513
SHA1 (patch-ac) = ada9059d9b3384396bbf6437f55fa40f2f6c0c73
SHA1 (patch-ad) = a0ad66bc1f13dd1ec9f9d7c9eb5b49ca3edb09be
SHA1 (patch-ae) = b6f50523a0020b57e3385731dd0c7b447b1a9242