debian/0000755000000000000000000000000012227020431007157 5ustar debian/control0000644000000000000000000000112312227016010010555 0ustar Source: zip Section: utils Priority: optional Maintainer: Santiago Vila Standards-Version: 3.9.4 Build-Depends: libbz2-dev Homepage: http://www.info-zip.org/Zip.html Package: zip Architecture: any Depends: ${shlibs:Depends} Recommends: unzip Multi-Arch: foreign Description: Archiver for .zip files This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the command line options are not identical. In other words, the end result is the same, but the methods differ. :-) . This version supports encryption. debian/rules0000755000000000000000000000345312227016010010242 0ustar #!/usr/bin/make -f package = zip docdir = debian/tmp/usr/share/doc/$(package) CC = gcc CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall -I. -DUNIX LDFLAGS := `dpkg-buildflags --get LDFLAGS` CPPFLAGS := `dpkg-buildflags --get CPPFLAGS` STRIP = true DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CC=$(DEB_HOST_GNU_TYPE)-gcc STRIPCMD=$(DEB_HOST_GNU_TYPE)-strip else STRIPCMD=strip endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) STRIP = $(STRIPCMD) --remove-section=.comment --remove-section=.note endif build: LDFLAGS="$(LDFLAGS)" sh unix/configure "$(CC)" "$(CFLAGS) $(CPPFLAGS)" $(MAKE) -f unix/Makefile generic touch build clean: rm -f build $(MAKE) -f unix/Makefile clean rm -rf debian/tmp debian/files* debian/*~ debian/*.bak debian/substvars binary-indep: build binary-arch: build rm -rf debian/tmp install -d debian/tmp/DEBIAN $(docdir) cd debian/tmp && install -d usr/bin usr/man/man1 $(MAKE) -f unix/Makefile install prefix=`pwd`/debian/tmp/usr chmod 755 debian/tmp/usr/bin/* cat debian/copyright.in LICENSE > $(docdir)/copyright cp debian/changelog $(docdir)/changelog.Debian cp -p CHANGES TODO WHATSNEW $(docdir) cd $(docdir) && gzip -9 changelog.Debian CHANGES ln -s CHANGES.gz $(docdir)/changelog.gz $(STRIP) debian/tmp/usr/bin/* gzip -r9 debian/tmp/usr/man cd debian/tmp && mv usr/man usr/share dpkg-shlibdeps debian/tmp/usr/bin/* dpkg-gencontrol cd debian/tmp && \ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums chown -R 0:0 debian/tmp chmod -R u+w,go=rX debian/tmp dpkg --build debian/tmp .. binary: binary-indep binary-arch build-arch: build build-indep: build .PHONY: binary binary-arch binary-indep clean debian/copyright.in0000644000000000000000000000062312227016010011516 0ustar This is the Debian prepackaged version of "zip", Info-Zip's fast, portable, zipfile compression utility. This package is currently maintained by Santiago Vila and built from sources obtained from: ftp://ftp.info-zip.org/pub/infozip/src/zip30.tgz The changes were fairly minimal, and consisted solely of adding various debian/* files to the distribution. Copyright and license: debian/patches/0000755000000000000000000000000011756473043010627 5ustar debian/patches/06-stack-markings-to-avoid-executable-stack0000644000000000000000000000104011756466113020650 0ustar From: Kees Cook Subject: put stack markings in i386 assembly to avoid executable stack Bug-Debian: http://bugs.debian.org/528280 X-Debian-version: 3.0-2 --- a/crc_i386.S +++ b/crc_i386.S @@ -302,3 +302,5 @@ #endif /* i386 || _i386 || _I386 || __i386 */ #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */ +.section .note.GNU-stack, "", @progbits +.previous --- a/match.S +++ b/match.S @@ -405,3 +405,5 @@ #endif /* i386 || _I386 || _i386 || __i386 */ #endif /* !USE_ZLIB */ +.section .note.GNU-stack, "", @progbits +.previous debian/patches/07-fclose-in-file-not-fclose-x0000644000000000000000000000073111756466117016113 0ustar From: Christian Spieler Subject: zipnote.c: Close in_file instead of undefined file x Bug-Debian: http://bugs.debian.org/628594 X-Debian-version: 3.0-4 --- a/zipnote.c +++ b/zipnote.c @@ -661,7 +661,7 @@ if ((r = zipcopy(z)) != ZE_OK) ziperr(r, "was copying an entry"); } - fclose(x); + fclose(in_file); /* Write central directory and end of central directory with new comments */ if ((c = zftello(y)) == (zoff_t)-1) /* get start of central */ debian/patches/09-hardening-build-fix-20000644000000000000000000000051311756472737014767 0ustar From: Santiago Vila Subject: unix/configure: Take linking flags from the environment Bug-Debian: http://bugs.debian.org/673476 X-Debian-version: 3.0-5 --- a/unix/configure +++ b/unix/configure @@ -18,7 +18,7 @@ CC=${1-cc} CFLAGS=${2-"-I. -DUNIX"} -LFLAGS1='' +LFLAGS1=${LDFLAGS} LFLAGS2='' LN="ln -s" debian/patches/05-typo-it-is-preceding-not-preceeding0000644000000000000000000000175511756466107017664 0ustar From: Santiago Vila Subject: manpage typo: preceeding -> preceding X-Debian-version: 3.0-2 --- a/man/zip.1 +++ b/man/zip.1 @@ -502,7 +502,7 @@ where the option starts with --, has a multicharacter name, can include a trailing dash to negate the option (if the option supports it), and can have a value (option argument) specified by -preceeding it with = (no spaces). Values can also follow the +preceding it with = (no spaces). Values can also follow the argument. So .IP \fC--before-date=mmddyyyy\fP --- a/zip.txt +++ b/zip.txt @@ -376,7 +376,7 @@ where the option starts with --, has a multicharacter name, can include a trailing dash to negate the option (if the option supports it), and - can have a value (option argument) specified by preceeding it with = + can have a value (option argument) specified by preceding it with = (no spaces). Values can also follow the argument. So --before-date=mmddyyyy debian/patches/01-typo-it-is-transferring-not-transfering0000644000000000000000000000217411756466066020641 0ustar From: A Costa Subject: manpage typo: transfering -> transferring Bug-Debian: http://bugs.debian.org/301914 X-Debian-version: 2.31-2 --- a/man/zip.1 +++ b/man/zip.1 @@ -2756,7 +2756,7 @@ .I zip handles some of the conversion internally. When using Kermit to transfer zip files from VMS to MSDOS, type "set -file type block" on VMS. When transfering from MSDOS to VMS, type +file type block" on VMS. When transferring from MSDOS to VMS, type "set file type fixed" on VMS. In both cases, type "set file type binary" on MSDOS. .LP --- a/zip.txt +++ b/zip.txt @@ -1957,7 +1957,7 @@ be converted using Rahul Dhesi's BILF program. This version of zip handles some of the conversion internally. When using Kermit to trans- fer zip files from VMS to MSDOS, type "set file type block" on VMS. - When transfering from MSDOS to VMS, type "set file type fixed" on VMS. + When transferring from MSDOS to VMS, type "set file type fixed" on VMS. In both cases, type "set file type binary" on MSDOS. Under some older VMS versions, zip may hang for file specifications debian/patches/04-do-not-set-unwanted-cflags0000644000000000000000000000076111756466103016047 0ustar From: Santiago Vila Subject: Do not set unwanted CFLAGS, as it breaks DEB_BUILD_OPTIONS X-Debian-version: 2.32-1 --- a/unix/configure +++ b/unix/configure @@ -98,7 +98,7 @@ _EOF_ $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null if test $? -eq 0; then - CFLAGS_OPT='-O3' + # CFLAGS_OPT='-O3' echo " GNU C ($CFLAGS_OPT)" # Special Mac OS X shared library "ld" option? if test ` uname -s 2> /dev/null ` = 'Darwin'; then debian/patches/series0000644000000000000000000000050011756473032012035 0ustar 01-typo-it-is-transferring-not-transfering 02-typo-it-is-privileges-not-priviliges 03-manpages-in-section-1-not-in-section-1l 04-do-not-set-unwanted-cflags 05-typo-it-is-preceding-not-preceeding 06-stack-markings-to-avoid-executable-stack 07-fclose-in-file-not-fclose-x 08-hardening-build-fix-1 09-hardening-build-fix-2 debian/patches/08-hardening-build-fix-10000644000000000000000000000126211756466123014757 0ustar From: Santiago Vila Subject: Use format specifier %s to print strings, not the string itself Bug-Debian: http://bugs.debian.org/673476 X-Debian-version: 3.0-5 --- a/zip.c +++ b/zip.c @@ -1028,7 +1028,7 @@ for (i = 0; i < sizeof(text)/sizeof(char *); i++) { - printf(text[i]); + printf("%s", text[i]); putchar('\n'); } #ifdef DOS @@ -1225,7 +1225,7 @@ CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE); for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++) { - printf(cryptnote[i]); + printf("%s", cryptnote[i]); putchar('\n'); } ++i; /* crypt support means there IS at least one compilation option */ debian/patches/03-manpages-in-section-1-not-in-section-1l0000644000000000000000000000224011756466077020156 0ustar From: Lior Kaplan Subject: put manpages in section 1, not in section 1L Bug-Debian: http://bugs.debian.org/308045 X-Debian-version: 2.31-3 --- a/man/zip.1 +++ b/man/zip.1 @@ -13,7 +13,7 @@ .\" 30 August 2007, 27 April 2008, 25 May 2008, 27 May 2008 by EG, .\" 7 June 2008 by SMS and EG; 12 June 2008 by EG) .\" -.TH ZIP 1L "16 June 2008 (v3.0)" Info-ZIP +.TH ZIP 1 "16 June 2008 (v3.0)" Info-ZIP .SH NAME zip \- package and compress (archive) files .SH SYNOPSIS @@ -53,14 +53,14 @@ and is compatible with PKZIP (Phil Katz's ZIP for MSDOS systems). .LP A companion program -.RI ( unzip (1L)) +.RI ( unzip (1)) unpacks .I zip archives. The .I zip and -.IR unzip (1L) +.IR unzip (1) programs can work with archives produced by PKZIP (supporting most PKZIP features up to PKZIP version 4.6), and PKZIP and PKUNZIP can work with archives produced by @@ -2661,10 +2661,10 @@ [VMS] see ZIPOPT .SH "SEE ALSO" compress(1), -shar(1L), +shar(1), tar(1), -unzip(1L), -gzip(1L) +unzip(1), +gzip(1) .SH DIAGNOSTICS The exit status (or error level) approximates the exit codes defined by PKWARE and takes on the following values, except under VMS: debian/patches/02-typo-it-is-privileges-not-priviliges0000644000000000000000000000130011756466074020127 0ustar From: A Costa Subject: manpage typo: priviliges -> privileges Bug-Debian: http://bugs.debian.org/309877 X-Debian-version: 2.31-3 --- a/man/zip.1 +++ b/man/zip.1 @@ -2403,7 +2403,7 @@ .TP .PD .B \-\-use\-privileges -[WIN32] Use priviliges (if granted) to obtain all aspects of WinNT security. +[WIN32] Use privileges (if granted) to obtain all aspects of WinNT security. .TP .PD 0 .B \-@ --- a/zip.txt +++ b/zip.txt @@ -1696,7 +1696,7 @@ -! --use-privileges - [WIN32] Use priviliges (if granted) to obtain all aspects of + [WIN32] Use privileges (if granted) to obtain all aspects of WinNT security. -@ debian/changelog0000644000000000000000000002066112227020425011041 0ustar zip (3.0-8) unstable; urgency=low * Dropped copyright sentence saying zcrypt was in the public domain. The whole zip package is now under Info-ZIP license. * Added recommended targets build-arch and build-indep. * Dropped obsolete Conflicts and Replaces on zip-crypt, for which the last version was a dummy transitional package. * The copyright file is generated from copyright.in at build time. Added lintian override for no-debian-copyright. -- Santiago Vila Mon, 14 Oct 2013 18:51:24 +0200 zip (3.0-7) unstable; urgency=low * Use the right strip command when cross-building. Closes: #695429. -- Santiago Vila Sun, 24 Feb 2013 17:12:14 +0100 zip (3.0-6) unstable; urgency=low * Added Multi-Arch: foreign. -- Santiago Vila Sat, 30 Jun 2012 14:20:38 +0200 zip (3.0-5) unstable; urgency=low * Build with hardening flags. Closes: #673476. -- Santiago Vila Mon, 21 May 2012 19:17:26 +0200 zip (3.0-4) unstable; urgency=low * zipnote.c: Close `in_file' instead of undefined file `x'. Should make zipnote to work again. Closes: #628594. -- Santiago Vila Thu, 09 Jun 2011 15:30:08 +0200 zip (3.0-3) unstable; urgency=low * Added homepage field to control file. * Switch to 3.0 (quilt) source format. * Support cross-build. -- Santiago Vila Sun, 21 Feb 2010 17:08:02 +0100 zip (3.0-2) unstable; urgency=low * Fixed two manpage spelling errors (lintian warning). * Mark old changelog entries as such (lintian warning). * Remove .comment section from executables (lintian warning). * Added stack markings to avoid executable stack. Closes: #528280. * Added bzip2 support. Use "-Z bzip2" on the command line to enable it. -- Santiago Vila Mon, 08 Feb 2010 17:51:18 +0100 zip (3.0-1) unstable; urgency=low * New upstream release. Closes: #496986, #520562. * This release has large file support. Closes: #308345. * zipcloak, zipnote and zipsplit have now manpages. Closes: #411828. * Warning: If you use any of the new features, you might need unzip 6.0 (not released yet) for unzipping. You have been warned. -- Santiago Vila Sat, 11 Apr 2009 20:27:34 +0200 zip (2.32-1) unstable; urgency=low * New upstream release. * Changed unix/configure to not break DEB_BUILD_OPTIONS. -- Santiago Vila Thu, 6 Jul 2006 18:53:40 +0200 zip (2.31-3) unstable; urgency=low * Put manpages in section 1, not 1L (Closes: #308045). * Fixed another typo (Closes: #309877). -- Santiago Vila Wed, 25 May 2005 16:03:26 +0200 zip (2.31-2) unstable; urgency=low * Fixed manpage typo (Closes: #301914). -- Santiago Vila Sun, 24 Apr 2005 19:23:48 +0200 zip (2.31-1) unstable; urgency=low * New upstream release. -- Santiago Vila Wed, 23 Mar 2005 20:12:12 +0100 zip (2.30-8) unstable; urgency=medium * Applied patch for Bug#279867 (CAN-2004-1010) by Greg Roelofs. Based on the patch by Josh Bressers, this one actually makes long filenames to be supported, as the string `name' is now allocated dynamically. -- Santiago Vila Mon, 15 Nov 2004 17:06:32 +0100 zip (2.30-7) unstable; urgency=medium * Fixed buffer overflow in unix.c, which happens when creating archives with very long file names (Closes: #279867). This is CAN-2004-1010. Patch by Martin Pitt, gives an error if len >= FNMAX. Thanks a lot. -- Santiago Vila Wed, 10 Nov 2004 19:10:28 +0100 zip (2.30-6) unstable; urgency=low * Removed doc symlinks. * Check for strchr using -fno-builtin to make gcc happy. * Added DEB_BUILD_OPTIONS support for noopt, dropped debug. -- Santiago Vila Sun, 24 Aug 2003 13:26:10 +0200 zip (2.30-5) unstable; urgency=low * Moved from non-US/main to main. Section: utils. -- Santiago Vila Sun, 24 Mar 2002 15:56:28 +0100 zip (2.30-4) unstable; urgency=low * Added support for DEB_BUILD_OPTIONS. * Updated upstream URL in copyright file. -- Santiago Vila Sun, 11 Nov 2001 16:19:30 +0100 zip (2.30-3) unstable; urgency=low * Added encryption support, moved to non-US/main. * Install man symlinks for zipnote, zipsplit and zipcloak, following clarified policy about this (Closes: #99575). * Modified unix/unix.c to compile under gcc-3.0/glibc-2.2 where printf is now a macro (Closes: #99659). Patch by Matthew Wilcox, modified later by Christian Spieler. * Removed some redundant bits from extended description. * Conflicts and Replaces are now versioned. * Recommends: unzip again. -- Santiago Vila Mon, 18 Jun 2001 17:37:32 +0200 zip (2.30-2) unstable; urgency=low * Updated upstream URL in copyright file. -- Santiago Vila Mon, 1 Jan 2001 18:09:38 +0100 zip (2.30-1) unstable; urgency=low * New upstream release. * Standards-Version: 3.1.1. * Removed Recommends: unzip. * Fixed URL location in copyright file. * Moved to main. License is now DFSG-compliant. * copyright file generated from `LICENSE' file. -- Santiago Vila Wed, 12 Jan 2000 13:22:41 +0100 zip (2.20-3) unstable; urgency=low * copyright file is not generated from README anymore (Bug #35019). The result was not completely appropriate for a copyright file. * Removed `email-from-greg' file, since it did not have any real value. -- Santiago Vila Sun, 4 Apr 1999 00:31:55 +0200 zip (2.20-2) unstable; urgency=low * Conflicts: zip-crypt, Replaces: zip-crypt. -- Santiago Vila Wed, 3 Dec 1997 17:46:34 +0100 zip (2.20-1) unstable; urgency=low * `copyright' file is generated from README automatically. * New upstream release, using pristine source. * Distribution unstable, Section non-free. * build is no longer a PHONY target. * Added WHATSNEW to /usr/doc/zip. * First libc6 release. * Added md5sums. -- Santiago Vila Tue, 4 Nov 1997 20:54:11 +0100 zip (2.10-4) unstable; urgency=low * Simplified debian/rules a little bit. * Changed section from `misc' to `utils'. * Removed spurious symlinks for zipsplit and zipnote. If some automated bug reporting program complains, it's a bug in the automated reporting program, not our fault. * Copied `history' as is. Added the symlink changelog -> history. * Added TODO to /usr/doc/zip. * New maintainer. -- Santiago Vila Sun, 16 Feb 1997 19:05:35 +0100 zip (2.10-3) unstable; urgency=low * removed zipcloak from the distribution (no encryption) * added symlinks to zip.1.gz for zipsplit and zipnote. Useless - man picks it up even without symlinks - but it'll at least stop automated bug reports complaining about the "lack". * renamed the Debian changelog * installed the upstream changelog * gzipped the copyright notice -- Stuart Lamble Wed, 8 Jan 1996 19:39:00 +1100 zip (2.10-2) unstable; urgency=low * New Debian revision: I uploaded the wrong copy of zip_2.10-1. Oops. -- Stuart Lamble Sat, 16 Nov 1996 18:17:00 +1100 zip (2.10-1) unstable; urgency=low * New upstream version (InfoZIP's 2.1, which is being called 2.10 for Debian: InfoZIP view this as an identical version number.) * Modified the copyright to include the copyright from 2.1 - just in case it's changed. * corrected several bugs in the rules script - all should work fine now. * removed zipgrep from the zip package (it's in unzip, where it really belongs.) -- Stuart Lamble Wed, 13 Nov 1996 19:35:24 +1100 zip (2.01-14) unstable; urgency=low * Stripped the installed binaries * Upgraded to the 2.1.1.0 source format * Received email from the upstream maintainers: zip can now go into the distribution proper. Yippee! :-) * Added the email in question to the copyright information document. -- Stuart Lamble Sat, 19 Oct 1996 18:33:55 +1000 Old Changelog: 30 July 1996 Stuart Lamble * New maintainer. * Changed debian.rules to support multiple architectures in the control file. * Uses dpkg-name rather than a manual mv of the end .deb file. zip 2.01 Debian 2 - 5/9/95 Carl Streeter * initial release (used 2 to avoid confusion with old zip) debian/source/0000755000000000000000000000000012226740240010465 5ustar debian/source/format0000644000000000000000000000001411337561437011706 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000011412226740240014042 0ustar # generated from copyright.in at build time zip source: no-debian-copyright