debian/0000755000000000000000000000000012235456617007201 5ustar debian/rules0000755000000000000000000000021211775714005010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --parallel --list-missing --with autoreconf debian/control0000644000000000000000000000416211756432454010607 0ustar Source: libzip Priority: optional Maintainer: Fathi Boudra Build-Depends: debhelper (>= 8), dh-autoreconf, zlib1g-dev Standards-Version: 3.9.3 Section: libs Homepage: http://www.nih.at/libzip/ Package: libzip-dev Section: libdevel Architecture: any Depends: libzip2 (= ${binary:Version}), zlib1g-dev, ${misc:Depends} Description: library for reading, creating, and modifying zip archives (development) libzip is a C library for reading, creating, and modifying zip archives. Files can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted. . This package contains the static libraries and headers for developing applications that use the libzip library API. Package: libzip2 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: library for reading, creating, and modifying zip archives (runtime) libzip is a C library for reading, creating, and modifying zip archives. Files can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted. . This package contains the files necessary for running applications that use the libzip library. Package: zipcmp Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: compare contents of zip archives zipcmp compares two zip archives and checks if they contain the same files, comparing their names, uncompressed sizes, and CRCs. File order and compressed size differences are ignored. Package: zipmerge Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: merge zip archives zipmerge merges a source zip archives into a target zip archive. By default, files in the source zip archives overwrite existing files of the same name in the target zip archive. Package: ziptorrent Section: utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: torrentzip zip archives ziptorrent torrentzips archive. This is a restricted file format used for using bittorrent on zip files. debian/zipmerge.install0000644000000000000000000000002111756432443012402 0ustar usr/bin/zipmerge debian/source/0000755000000000000000000000000011557256377010510 5ustar debian/source/format0000644000000000000000000000001411557256377011716 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000554512235456603011057 0ustar libzip (0.10.1-1.2) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: dh_auto_test: make -j1 check returned exit code 2": add patch fix_autotools_tests.diff (autotools test fix, backported from upstream 0.11.1), taken from Ubuntu package. Thanks, Bjoern Michaelsen. (Closes: #713393, LP: #1197023) -- gregor herrmann Sun, 03 Nov 2013 15:27:06 +0100 libzip (0.10.1-1.1) unstable; urgency=low * Non-maintainer upload. * Re-enable tests * Fix broken decrypt on amd64 (Closes: 665225). -- Luk Claes Sat, 07 Jul 2012 02:03:46 +0000 libzip (0.10.1-1) unstable; urgency=low * New upstream release: fix CVE-2012-1162 and CVE-2012-1163 Incorrect loop construct and numeric overflow. (Closes: #664990, #665957) -- Fathi Boudra Mon, 21 May 2012 15:16:11 +0300 libzip (0.10-1) unstable; urgency=low * New upstream release. (Closes: #647131) * Add patches: - fix_open_nonarchive_test.patch - fix_zipconf_path.patch * Update debian/compat: bump to 8. * Update debian/rules: - build depends on dh-autoreconf. - bump debhelper build dependency to 8.0.0. - bump Standards-Version to 3.9.0 - no changes needed. - rename libzip1 to libzip2 (bump soname). * Update debian/rules: - use dh with autoreconf. - drop override_dh_auto_test. * Update debian/*.install files. -- Fathi Boudra Sat, 31 Dec 2011 14:39:13 +0200 libzip (0.9.3-1) unstable; urgency=low * New upstream release. (Closes: #567769) * Drop patch to support archives with 64k entries - stolen upstream. * Add libzip1 symbols file. * Switch to dpkg-source 3.0 (quilt) format: - drop quilt build dependency. * Switch to dh: - drop cdbs build dependency. - bump debhelper build dependency version to 7.4.15. - enable parallel build (pass --parallel option to dh). * Bump Standards-Version to 3.8.4 (no changes needed). * Update debian/copyright file: - upstream contact e-mail, years and explicit GPL version. -- Fathi Boudra Wed, 24 Mar 2010 10:55:48 +0100 libzip (0.9-3) unstable; urgency=low * Add patch to support archives with 64k entries. (Closes: #536215) Thanks to Dieter Baron. -- Fathi Boudra Tue, 28 Jul 2009 22:21:37 +0200 libzip (0.9-2) unstable; urgency=low * Fix shlibs. (Closes: #537954) -- Fathi Boudra Sat, 25 Jul 2009 11:47:15 +0200 libzip (0.9-1) unstable; urgency=low * New upstream release (Closes: #537349) [ Fathi Boudra ] * Add ziptorrent package. [ Matthew Rosewarne ] * Update debian/control: add Homepage field. * Add watch file. -- Fathi Boudra Fri, 17 Jul 2009 15:01:02 +0200 libzip (0.8-1) unstable; urgency=low * Initial release. (Closes: #446583) -- Fathi Boudra Sun, 14 Oct 2007 09:20:12 +0200 debian/zipcmp.install0000644000000000000000000000001711756432443012067 0ustar usr/bin/zipcmp debian/libzip2.install0000644000000000000000000000002411756432443012136 0ustar usr/lib/libzip.so.* debian/compat0000644000000000000000000000000211756432462010376 0ustar 8 debian/ziptorrent.install0000644000000000000000000000002311756432443013002 0ustar usr/bin/ziptorrent debian/zipcmp.manpages0000644000000000000000000000001711557256377012225 0ustar man/zipcmp.man debian/libzip2.symbols0000644000000000000000000000531211557273221012161 0ustar libzip.so.2 libzip2 #MINVER# _zip_cdir_free@Base 0.10 _zip_cdir_grow@Base 0.10 _zip_cdir_new@Base 0.10 _zip_cdir_write@Base 0.10 _zip_changed@Base 0.10 _zip_dirent_finalize@Base 0.10 _zip_dirent_init@Base 0.10 _zip_dirent_read@Base 0.10 _zip_dirent_torrent_normalize@Base 0.10 _zip_dirent_write@Base 0.10 _zip_entry_free@Base 0.10 _zip_entry_new@Base 0.10 _zip_err_str@Base 0.10 _zip_err_type@Base 0.10 _zip_error_clear@Base 0.10 _zip_error_copy@Base 0.10 _zip_error_fini@Base 0.10 _zip_error_get@Base 0.10 _zip_error_init@Base 0.10 _zip_error_set@Base 0.10 _zip_error_set_from_source@Base 0.10 _zip_error_strerror@Base 0.10 _zip_file_get_offset@Base 0.10 _zip_filerange_crc@Base 0.10 _zip_free@Base 0.10 _zip_get_name@Base 0.10 _zip_memdup@Base 0.10 _zip_name_locate@Base 0.10 _zip_nerr_str@Base 0.10 _zip_new@Base 0.10 _zip_open@Base 0.10 _zip_read2@Base 0.10 _zip_read4@Base 0.10 _zip_replace@Base 0.10 _zip_set_name@Base 0.10 _zip_source_file_or_p@Base 0.10 _zip_source_new@Base 0.10 _zip_u2d_time@Base 0.10 _zip_unchange@Base 0.10 _zip_unchange_data@Base 0.10 zip_add@Base 0.10 zip_add_dir@Base 0.10 zip_close@Base 0.10 zip_delete@Base 0.10 zip_error_clear@Base 0.10 zip_error_get@Base 0.10 zip_error_get_sys_type@Base 0.10 zip_error_to_str@Base 0.10 zip_fclose@Base 0.10 zip_fdopen@Base 0.10 zip_file_error_clear@Base 0.10 zip_file_error_get@Base 0.10 zip_file_strerror@Base 0.10 zip_fopen@Base 0.10 zip_fopen_encrypted@Base 0.10 zip_fopen_index@Base 0.10 zip_fopen_index_encrypted@Base 0.10 zip_fread@Base 0.10 zip_get_archive_comment@Base 0.10 zip_get_archive_flag@Base 0.10 zip_get_compression_implementation@Base 0.10 zip_get_encryption_implementation@Base 0.10 zip_get_file_comment@Base 0.10 zip_get_file_extra@Base 0.10 zip_get_name@Base 0.10 zip_get_num_entries@Base 0.10 zip_get_num_files@Base 0.10 zip_name_locate@Base 0.10 zip_open@Base 0.10 zip_rename@Base 0.10 zip_replace@Base 0.10 zip_set_archive_comment@Base 0.10 zip_set_archive_flag@Base 0.10 zip_set_default_password@Base 0.10 zip_set_file_comment@Base 0.10 zip_set_file_extra@Base 0.10 zip_source_buffer@Base 0.10 zip_source_close@Base 0.10 zip_source_crc@Base 0.10 zip_source_deflate@Base 0.10 zip_source_error@Base 0.10 zip_source_file@Base 0.10 zip_source_filep@Base 0.10 zip_source_free@Base 0.10 zip_source_function@Base 0.10 zip_source_layered@Base 0.10 zip_source_open@Base 0.10 zip_source_pkware@Base 0.10 zip_source_pop@Base 0.10 zip_source_read@Base 0.10 zip_source_stat@Base 0.10 zip_source_zip@Base 0.10 zip_stat@Base 0.10 zip_stat_index@Base 0.10 zip_stat_init@Base 0.10 zip_strerror@Base 0.10 zip_unchange@Base 0.10 zip_unchange_all@Base 0.10 zip_unchange_archive@Base 0.10 debian/patches/0000755000000000000000000000000012235456432010623 5ustar debian/patches/fix_zipconf_path.patch0000644000000000000000000000046111557271435015203 0ustar --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -2,7 +2,7 @@ libincludedir = ${libdir}/@PACKAGE@/incl lib_LTLIBRARIES = libzip.la noinst_HEADERS = zipint.h -include_HEADERS = zip.h +include_HEADERS = zip.h zipconf.h libinclude_HEADERS = zipconf.h # also update CMakeLists.txt when changing version debian/patches/fix_open_nonarchive_test.patch0000644000000000000000000000157611557267154016746 0ustar --- a/regress/open_new_but_exists.test +++ b/regress/open_new_but_exists.test @@ -3,4 +3,4 @@ program tryopen args -e test.zip return 1 file test.zip test.zip test.zip -stdout opening `test.zip' returned error 10/0 +stdout opening `test.zip' returned error 10 --- a/regress/open_nonarchive.test +++ b/regress/open_nonarchive.test @@ -3,4 +3,4 @@ program tryopen file Makefile.am Makefile.am Makefile.am args Makefile.am return 1 -stdout opening `Makefile.am' returned error 19/2 +stdout opening `Makefile.am' returned error 19 --- a/regress/tryopen.c +++ b/regress/tryopen.c @@ -90,7 +90,9 @@ main(int argc, char *argv[]) return 0; } - printf("opening `%s' returned error %d/%d\n", - fname, ze, errno); + printf("opening `%s' returned error %d", fname, ze); + if (zip_error_get_sys_type(ze) == ZIP_ET_SYS) + printf("/%d", errno); + printf("\n"); return 1; } debian/patches/series0000644000000000000000000000015012235456166012040 0ustar fix_open_nonarchive_test.patch fix_zipconf_path.patch fix_broken_decrypt.patch fix_autotools_tests.diff debian/patches/fix_autotools_tests.diff0000644000000000000000000000127312235456432015601 0ustar Subject: lp#1197023: fix autotools tests ftbfs backported diff from upstream 0.11.1 Origin: upstream Bug-Debian: http://bugs.debian.org/713393 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libzip/+bug/1197023 Forwarded: not-needed From: Bjoern Michaelsen Reviewed-by: gregor herrmann Last-Update: 2013-11-03 --- a/regress/Makefile.am +++ b/regress/Makefile.am @@ -36,7 +36,9 @@ teststored.zip \ testtorrent.tzip -TESTS_ENVIRONMENT= ZIPCMP=${top_builddir}/src/zipcmp ${srcdir}/runtest +TESTS_ENVIRONMENT= ZIPCMP=${top_builddir}/src/zipcmp +TEST_EXTENSIONS= .test +TEST_LOG_COMPILER= ${srcdir}/runtest TESTS= \ add_dir.test \ debian/patches/fix_broken_decrypt.patch0000644000000000000000000000214211775714366015536 0ustar Index: libzip-0.10.1/lib/zip_source_pkware.c =================================================================== --- libzip-0.10.1.orig/lib/zip_source_pkware.c 2012-03-15 09:27:50.000000000 +0000 +++ libzip-0.10.1/lib/zip_source_pkware.c 2012-07-07 02:03:29.000000000 +0000 @@ -49,10 +49,6 @@ #define KEY1 591751049 #define KEY2 878082192 -static const uLongf *crc = NULL; - -#define CRC32(c, b) (crc[((c) ^ (b)) & 0xff] ^ ((c) >> 8)) - static void decrypt(struct trad_pkware *, zip_uint8_t *, @@ -80,9 +76,6 @@ return NULL; } - if (crc == NULL) - crc = get_crc_table(); - if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) { _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); return NULL; @@ -128,10 +121,10 @@ out[i] = b; /* update keys */ - ctx->key[0] = CRC32(ctx->key[0], b); + ctx->key[0] = crc32(ctx->key[0] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; ctx->key[1] = (ctx->key[1] + (ctx->key[0] & 0xff)) * 134775813 + 1; b = ctx->key[1] >> 24; - ctx->key[2] = CRC32(ctx->key[2], b); + ctx->key[2] = crc32(ctx->key[2] ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL; } } debian/copyright0000644000000000000000000000410211756432443011127 0ustar This package was debianized by Fathi Boudra on Sun, 14 Oct 2007 09:20:12 +0200. It was downloaded from http://www.nih.at/libzip/ Upstream Authors: Dieter Baron Thomas Klausner The authors can be contacted at Copyright: Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner Copyright for mkstemp code: Copyright (C) 1987, 1993 The Regents of the University of California. All rights reserved. License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is: Copyright (C) 2007-2010 Fathi Boudra and is licensed under the GPL version 3, see "/usr/share/common-licenses/GPL-3". debian/zipmerge.manpages0000644000000000000000000000002111557256377012540 0ustar man/zipmerge.man debian/docs0000644000000000000000000000002111557256377010054 0ustar NEWS README TODO debian/watch0000644000000000000000000000007011557256377010236 0ustar version=3 http://www.nih.at/libzip/libzip-(.*)\.tar\.gz debian/ziptorrent.manpages0000644000000000000000000000002311557256377013140 0ustar man/ziptorrent.man debian/libzip-dev.install0000644000000000000000000000017411756432443012636 0ustar usr/include/zip.h usr/include/zipconf.h usr/lib/libzip.a usr/lib/libzip.so usr/lib/pkgconfig/libzip.pc usr/share/man/man3/*