pkgsrc/archivers/unzip/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.96 2019/07/15 14:08:03 nia Exp $
1997-10-27 03:18:56 +01:00
Update to 6.0: New features in UnZip 6.0, released 20 April 2009: * Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive entries larger than 4 GiBytes and more than 65536 entries within a single Zip archive. This support is currently only available for Unix, OpenVMS and Win32/Win64. * Support for bzip2 compression method. * Support for UTF-8 encoded entry names, both through PKWARE's "General Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path extra field. (Currently, on Windows the UTF-8 handling is limited to the character subset contained in the configured non-unicode "system code page".) * Added "wrong implementation used" warning to error messages of the MSDOS port when used under Win32, in an attempt to reduce false bug reports. * Fixed "Time of Creation/Time of Use" vulnerability when setting attributes of extracted files, for Unix and Unix-like ports. * Fixed memory leak when processing invalid deflated data. * Fixed long-standing bug in unshrink (partial_clear), added boundary checks against invalid compressed data. * On Unix, keep inherited SGID attribute bit for extracted directories unless restoration of owner/group id or SUID/SGID/Tacky attributes was requested. * On Unix, allow extracted filenames to contain embedded control characters when explicitly requested by specifying the new command line option "-^". * On Unix, support restoration of symbolic link attributes. * On Unix, support restoration of 32-bit UID/GID data using the new "ux" IZUNIX3 extra field introduced with Zip 3.0. * Support for ODS5 extended filename syntax on new OpenVMS systems. * Support symbolic links zipped up on VMS. * On VMS (only 8.x or better), support symbolic link creation. * On VMS, support option to create converted text files in Stream_LF format. * New -D option to suppress restoration of timestamps for extracted directory entries (on those ports that support setting of directory timestamps). By specifying "-DD", this new option also allows to suppress timestamp restoration for ALL extracted files on all UnZip ports which support restoration of timestamps. On VMS, the default behaviour is now to skip restoration of directory timestamps; here, "--D" restores ALL timestamps, "-D" restores none. * On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP to allow saving backup copies of overwritten files on extraction is now enabled by default. For the UnZip 6.0 release, we want to give special credit to Myles Bennet, who started the job of supporting ZIP64 extensions and Large-File (> 2GiB) and provided a first (alpha-state) port.
2010-03-03 17:27:57 +01:00
DISTNAME= unzip60
PKGNAME= unzip-6.0
PKGREVISION= 9
1997-10-27 03:18:56 +01:00
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/
EXTRACT_SUFX= .tgz
2006-06-15 15:34:27 +02:00
MAINTAINER= wiz@NetBSD.org
2011-12-28 21:07:34 +01:00
HOMEPAGE= http://www.info-zip.org/UnZip.html
COMMENT= List, test and extract compressed files in a ZIP archive
LICENSE= info-zip
1997-10-27 03:18:56 +01:00
2012-02-15 20:24:39 +01:00
REPLACE_SH= unix/zipgrep
USE_TOOLS+= gmake
2001-06-21 23:08:49 +02:00
CONFLICTS= fcrackzip<1.0nb1
.include "../../mk/bsd.prefs.mk"
2006-09-09 04:41:53 +02:00
MAKE_FILE= unix/Makefile
BUILD_TARGET= generic_zlib unzipsfx
2002-12-25 19:30:24 +01:00
.if ${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin"
CPPFLAGS+= -DBSD
.endif
.if (${OPSYS} == "SunOS" || \
${OPSYS} == "OSF1" || \
${OPSYS} == "AIX" || \
2011-02-05 05:03:48 +01:00
${OPSYS} == "OpenBSD" || \
${OPSYS} == "Cygwin" || \
2014-07-18 13:13:28 +02:00
(${OPSYS} == "Darwin" && !empty(OS_VERSION:M[01234678].*))) || \
2015-06-05 14:22:28 +02:00
${OS_VARIANT} == "SCOOSR5" || \
${OPSYS} == "Linux" || \
2015-06-05 14:22:28 +02:00
${OPSYS} == "Bitrig"
CPPFLAGS+= -DNO_LCHMOD
.endif
CPPFLAGS+= -DUNIX -Dunix -DUSE_UNSHRINK -I.
.if empty(MACHINE_PLATFORM:MSunOS-*-sparc)
CPPFLAGS+= -DLARGE_FILE_SUPPORT
.endif
MAKE_FLAGS+= CF=${CPPFLAGS:Q}\ ${CFLAGS:Q}
MAKE_FLAGS+= LF2=${_STRIPFLAG_CC:Q}\ ${LDFLAGS:Q}\ -lz
Update to 6.0: New features in UnZip 6.0, released 20 April 2009: * Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive entries larger than 4 GiBytes and more than 65536 entries within a single Zip archive. This support is currently only available for Unix, OpenVMS and Win32/Win64. * Support for bzip2 compression method. * Support for UTF-8 encoded entry names, both through PKWARE's "General Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path extra field. (Currently, on Windows the UTF-8 handling is limited to the character subset contained in the configured non-unicode "system code page".) * Added "wrong implementation used" warning to error messages of the MSDOS port when used under Win32, in an attempt to reduce false bug reports. * Fixed "Time of Creation/Time of Use" vulnerability when setting attributes of extracted files, for Unix and Unix-like ports. * Fixed memory leak when processing invalid deflated data. * Fixed long-standing bug in unshrink (partial_clear), added boundary checks against invalid compressed data. * On Unix, keep inherited SGID attribute bit for extracted directories unless restoration of owner/group id or SUID/SGID/Tacky attributes was requested. * On Unix, allow extracted filenames to contain embedded control characters when explicitly requested by specifying the new command line option "-^". * On Unix, support restoration of symbolic link attributes. * On Unix, support restoration of 32-bit UID/GID data using the new "ux" IZUNIX3 extra field introduced with Zip 3.0. * Support for ODS5 extended filename syntax on new OpenVMS systems. * Support symbolic links zipped up on VMS. * On VMS (only 8.x or better), support symbolic link creation. * On VMS, support option to create converted text files in Stream_LF format. * New -D option to suppress restoration of timestamps for extracted directory entries (on those ports that support setting of directory timestamps). By specifying "-DD", this new option also allows to suppress timestamp restoration for ALL extracted files on all UnZip ports which support restoration of timestamps. On VMS, the default behaviour is now to skip restoration of directory timestamps; here, "--D" restores ALL timestamps, "-D" restores none. * On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP to allow saving backup copies of overwritten files on extraction is now enabled by default. For the UnZip 6.0 release, we want to give special credit to Myles Bennet, who started the job of supporting ZIP64 extensions and Large-File (> 2GiB) and provided a first (alpha-state) port.
2010-03-03 17:27:57 +01:00
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/unzip
2004-01-05 12:42:20 +01:00
2005-10-15 22:24:53 +02:00
TEST_TARGET= check
1997-10-27 03:18:56 +01:00
do-install:
2006-11-03 20:14:25 +01:00
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 \
2006-11-03 20:14:25 +01:00
zipgrep.1 zipinfo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
2004-01-05 12:42:20 +01:00
cd ${WRKSRC} && ${INSTALL_DATA} BUGS LICENSE README WHERE \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/share/doc/unzip
2004-01-05 12:42:20 +01:00
cd ${WRKSRC} && ${INSTALL_DATA} COPYING.OLD \
Update to 6.0: New features in UnZip 6.0, released 20 April 2009: * Support PKWARE ZIP64 extensions, allowing Zip archives and Zip archive entries larger than 4 GiBytes and more than 65536 entries within a single Zip archive. This support is currently only available for Unix, OpenVMS and Win32/Win64. * Support for bzip2 compression method. * Support for UTF-8 encoded entry names, both through PKWARE's "General Purpose Flags Bit 11" indicator and Info-ZIP's new "up" unicode path extra field. (Currently, on Windows the UTF-8 handling is limited to the character subset contained in the configured non-unicode "system code page".) * Added "wrong implementation used" warning to error messages of the MSDOS port when used under Win32, in an attempt to reduce false bug reports. * Fixed "Time of Creation/Time of Use" vulnerability when setting attributes of extracted files, for Unix and Unix-like ports. * Fixed memory leak when processing invalid deflated data. * Fixed long-standing bug in unshrink (partial_clear), added boundary checks against invalid compressed data. * On Unix, keep inherited SGID attribute bit for extracted directories unless restoration of owner/group id or SUID/SGID/Tacky attributes was requested. * On Unix, allow extracted filenames to contain embedded control characters when explicitly requested by specifying the new command line option "-^". * On Unix, support restoration of symbolic link attributes. * On Unix, support restoration of 32-bit UID/GID data using the new "ux" IZUNIX3 extra field introduced with Zip 3.0. * Support for ODS5 extended filename syntax on new OpenVMS systems. * Support symbolic links zipped up on VMS. * On VMS (only 8.x or better), support symbolic link creation. * On VMS, support option to create converted text files in Stream_LF format. * New -D option to suppress restoration of timestamps for extracted directory entries (on those ports that support setting of directory timestamps). By specifying "-DD", this new option also allows to suppress timestamp restoration for ALL extracted files on all UnZip ports which support restoration of timestamps. On VMS, the default behaviour is now to skip restoration of directory timestamps; here, "--D" restores ALL timestamps, "-D" restores none. * On OS/2, Win32, and Unix, the (previously optional) feature UNIXBACKUP to allow saving backup copies of overwritten files on extraction is now enabled by default. For the UnZip 6.0 release, we want to give special credit to Myles Bennet, who started the job of supporting ZIP64 extensions and Large-File (> 2GiB) and provided a first (alpha-state) port.
2010-03-03 17:27:57 +01:00
${DESTDIR}${PREFIX}/share/doc/unzip
1997-10-27 03:18:56 +01:00
2004-01-05 12:42:20 +01:00
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"