--- zziplib-0.13.50.orig/debian/control +++ zziplib-0.13.50/debian/control @@ -0,0 +1,50 @@ +Source: zziplib +Section: libs +Priority: optional +Maintainer: Anibal Monsalve Salazar +Build-Depends: debhelper (>= 7), autotools-dev, pkg-config, zlib1g-dev, python, quilt +Standards-Version: 3.8.1 +Homepage: http://zziplib.sourceforge.net + +Package: zziplib-bin +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: library providing read access on ZIP-archives - binaries + The zziplib library is intentionally lightweight, it offers the ability + to easily extract data from files archived in a single zip file. + Applications can bundle files into a single zip archive and access them. + The implementation is based only on the (free) subset of compression + with the zlib algorithm which is actually used by the zip/unzip tools. + . + This package contains some useful binaries to extract data from zip + archives. + +Package: libzzip-0-13 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: libzzip-0-12 +Conflicts: libzzip-0-12 +Description: library providing read access on ZIP-archives - library + The zziplib library is intentionally lightweight, it offers the ability + to easily extract data from files archived in a single zip file. + Applications can bundle files into a single zip archive and access them. + The implementation is based only on the (free) subset of compression + with the zlib algorithm which is actually used by the zip/unzip tools. + . + This package contains the zziplib runtime library. + +Package: libzzip-dev +Section: libdevel +Architecture: any +Depends: libzzip-0-13 (= ${binary:Version}) +Description: library providing read access on ZIP-archives - development + The zziplib library is intentionally lightweight, it offers the ability + to easily extract data from files archived in a single zip file. + Applications can bundle files into a single zip archive and access them. + The implementation is based only on the (free) subset of compression + with the zlib algorithm which is actually used by the zip/unzip tools. + . + This package contains the header files and static library needed to + compile applications that use zziplib. --- zziplib-0.13.50.orig/debian/zziplib-bin.1 +++ zziplib-0.13.50/debian/zziplib-bin.1 @@ -0,0 +1,54 @@ +.TH ZZIPLIB-BIN 1 "June 25, 2004" +.SH NAME +zzcat, zzdir, zzxorcat, zzxordir zzxorcopy - small tools using zziplib +.SH SYNOPSIS +.B zzcat FILE [...] +.B zzdir DIR [...] +.B zzxorcat [-HEX] FILE [...] +.B zzxordir [-HEX] DIR [...] +.B zzxorcopy [-HEX] FILE OUTFILE +.SH DESCRIPTION +.PP +\fIzzcat\fP prints the given files to stdout, so you may want to +redirect the output. The FILE can be a normal file or an inflated +part of a zip archive (see OPTIONS). +.PP +\fIzzdir\fP prints the content table to stdout of the given DIR or +zipfile. +.PP +\fIzzxorcat\fP prints the given files to stdout, so you may want to +redirect the output. The FILE is an inflated part of a zip archive +obfusctated with a xor value optionally given by the HEX option. +.PP +\fIzzxordir\fP prints the content table to stdout of the given DIR or +zipfile. The DIR can br an inflated part of a zip archive obfusctated +with a xor value optionally given by the HEX option. +.PP +\fIzzxorcopy\fP copies data from FILE to OUTFILE adding simple +obfuscation by xor-ing each byte with the HEX value given. +Remember that copying data twice with the same xor-value will result +in the original file data. +. +.SH OPTIONS +.l +\fIzziplib-bin\fP tools accept the following options: +.TP 8 +.B FILE +Input filename for reading or part (if supported by tool). Part +is written as zipname/filename, e.g.: for accessing README inside +of data.zip you'll specify data/README. +.TP 8 +.B DIR +Disk directory, zipfile or inflated part of a zipfile. +.TP 8 +.B \-HEX +Hex number for xor-ing the zipfile contents. If not supplied all +tools that use it take 0x55 as default value for xor-ing. +.B OUTFILE +Output file name for zzxorcopy. +.SH AUTHORS +.B zziplib +was written by Guido Draheim . + +This manual page was written by Ricardo Mones , +for the Debian GNU/Linux system (but may be used by others). --- zziplib-0.13.50.orig/debian/libzzip-dev.install +++ zziplib-0.13.50/debian/libzzip-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.la +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/share/aclocal/* --- zziplib-0.13.50.orig/debian/libzzip-0-13.install +++ zziplib-0.13.50/debian/libzzip-0-13.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- zziplib-0.13.50.orig/debian/libzzip-dev.dirs +++ zziplib-0.13.50/debian/libzzip-dev.dirs @@ -0,0 +1 @@ +usr/share/man/man3 --- zziplib-0.13.50.orig/debian/zzxorcat.1 +++ zziplib-0.13.50/debian/zzxorcat.1 @@ -0,0 +1 @@ +.so man1/zziplib-bin.1 --- zziplib-0.13.50.orig/debian/compat +++ zziplib-0.13.50/debian/compat @@ -0,0 +1 @@ +7 --- zziplib-0.13.50.orig/debian/zzdir.1 +++ zziplib-0.13.50/debian/zzdir.1 @@ -0,0 +1 @@ +.so man1/zziplib-bin.1 --- zziplib-0.13.50.orig/debian/watch +++ zziplib-0.13.50/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/zziplib/zziplib-(.+)\.tar\.bz2 --- zziplib-0.13.50.orig/debian/rules +++ zziplib-0.13.50/debian/rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + -test -r /usr/share/misc/config.sub && \ + cp -f /usr/share/misc/config.sub config.sub && \ + cp -f /usr/share/misc/config.sub zziplib/config.sub + + -test -r /usr/share/misc/config.guess && \ + cp -f /usr/share/misc/config.guess config.guess && \ + cp -f /usr/share/misc/config.guess zziplib/config.guess + + CFLAGS="$(CFLAGS)" ./configure \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --datadir=\$${prefix}/share + + touch configure-stamp + +build: patch build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + $(MAKE) docs + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f configure-stamp build-stamp + rm -f config.sub config.guess zziplib/config.sub zziplib/config.guess docs/zzipdoc/*.pyc + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + # Move all files in their corresponding package + dh_install --list-missing -s --sourcedir=debian/tmp + + cd $(CURDIR)/debian/libzzip-dev/usr/share/man/man3/ \ + && ar x $(CURDIR)/docs/zziplib-manpages.ar + +# cd $(CURDIR)/debian/libzzip-dev/usr/share/doc/libzzip-dev/html/ \ +# && ar x $(CURDIR)/docs/htmpages.ar \ +# && rm written.lst + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installman + cd $(CURDIR)/debian/zziplib-bin/usr/share/man/man1/ \ + && ln -s zziplib-bin.1.gz zzcat.1.gz \ + && ln -s zziplib-bin.1.gz zzdir.1.gz \ + && ln -s zziplib-bin.1.gz zzxorcat.1.gz \ + && ln -s zziplib-bin.1.gz zzxordir.1.gz \ + && ln -s zziplib-bin.1.gz zzxorcopy.1.gz + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- zziplib-0.13.50.orig/debian/copyright +++ zziplib-0.13.50/debian/copyright @@ -0,0 +1,138 @@ +This package was debianized by Aurelien Jarno on +Sat, 17 Apr 2004 21:09:27 +0200. + +It was downloaded from http://zziplib.sourceforge.net + +Upstream Author: Guido Draheim + + +Copyright: + +Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim + + +License: + + THE ZZIP LICENSE + +All rights on the project sources are reserved. + +use freely under the restrictions of the Lesser GNU General Public License +or the exceptions described in the following sections that offer additional +rules foremost for static linking of the library into other software parts. + +* LGPL clarifications + +The project material has not been cross licensed with the +Free Software Foundation (FSF) and it will not do at any point. + +The FSF has written the original Lesser GNU General Public +License (LGPL) which is the main opensource license used by +this project. The FSF has no copyright on the sources. + +All rights to the project sources are reserved and the +copyright holders are entitled to negotiate other licenses +with interested parties. The LGPL is used as the General +Public License that can be used without any special +license agreement with the copyright holders. + +The license holders feel that sometimes the LGPL is a bit +too restrictive but nonetheless good to protect the freedom +of this software. Feel free to contact us on any special +permission you need for your opensource project or some +form of commercial software. + +In general, special license agreements will only be made if +they benefit the creation of free software including donations +to projects and non-profit organization promoting free software +(from which one can generally get a tax reduction offer). + +Regarding example programs you will find a notice in the source +header that they are not under LGPL but the ZLIB license to allow +you to derive your own programs freely from these source code parts. + +* additional static linking + +1) Static Linking Exception + + The LGPL describes ways to combine the project sources with + other work not under the same license - the programmers do + generally call it linking and separate it by their link + time into dynamic linking and static linking. The LGPL + ensures that the final recipient of a combined work can + relink a combined work, including a rule in section 6 + to allow shipping of static linked program binaries. + + The rules in section 6 of the LGPL are often inconvenient and + not useful to promote and protect the opensource character of + this project. The recepient relinking freedom can be dropped as + an extension to the LGPL rules, provided the following rules + apply. Note that these rules only apply to static linking and + as an extension to section 6 and do not touch any other part + of the LGPL. + +2) OSI-approved Opensource Projects + + You may static link with any opensource project material + which is under an OSI-approved license. (general-opensource). + + You may static link with any project material under a + license derived from an OSI-approved license by + removing restrictions including the removal of + restrictions under certain explicit conditions + that can be fulfilled by all possible licensees + in a way that the license can be possibly OSI-approved + later on. (opensource-like). + + A project that applies to these rules can even ship + with modified sources of the project provided that + the modifications are still under LGPL and these + exceptions. (merge-back-acceptance). + + This rule is made under the assumption that relinking is + not required if the combined work can be derived from + their pristine sources made available to the final + recipient. (i-am-no-lawyer). + +3) Published And Supported Derivative Work + + Any software, including commercial applications, may + static link with a modified derivate of this project + when ALL of the following conditions are met which + are extracted from the Mozilla Public License 1.0, and + called section 3.2 and 3.3. over there - these will + require you to redistribute the modified sources. You + may not offer or impose any terms on any Source Code + version that alters or restricts the applicable version + of this License or the recipients' rights hereunder. + + 3.2. Availability of Source Code. + + Any Modification which You create or to which You contribute + must be made available in Source Code form under the terms of + this License either on the same media as an Executable version + or via an accepted Electronic Distribution Mechanism to anyone + to whom you made an Executable version available; and if made + available via Electronic Distribution Mechanism, must remain + available for at least twelve (12) months after the date it + initially became available, or at least six (6) months after + a subsequent version of that particular Modification has been + made available to such recipients. You are responsible for + ensuring that the Source Code version remains available even + if the Electronic Distribution Mechanism is maintained by a + third party. + + 3.3. Description of Modifications. + + You must cause all Covered Code to which you contribute to + contain a file documenting the changes You made to create that + Covered Code and the date of any change. You must include a + prominent statement that the Modification is derived, directly + or indirectly, from Original Code provided by the Initial + Developer and including the name of the Initial Developer in + (a) the Source Code, and (b) in any notice in an Executable + version or related documentation in which You describe the + origin or ownership of the Covered Code. + +On Debian GNU/Linux systems, the complete text of the GNU Library General +Public License can be found in `/usr/share/common-licenses/LGPL-2' --- zziplib-0.13.50.orig/debian/zzxordir.1 +++ zziplib-0.13.50/debian/zzxordir.1 @@ -0,0 +1 @@ +.so man1/zziplib-bin.1 --- zziplib-0.13.50.orig/debian/zzxorcopy.1 +++ zziplib-0.13.50/debian/zzxorcopy.1 @@ -0,0 +1 @@ +.so man1/zziplib-bin.1 --- zziplib-0.13.50.orig/debian/zziplib-bin.manpages +++ zziplib-0.13.50/debian/zziplib-bin.manpages @@ -0,0 +1,6 @@ +debian/zziplib-bin.1 +debian/zzcat.1 +debian/zzdir.1 +debian/zzxorcat.1 +debian/zzxordir.1 +debian/zzxorcopy.1 --- zziplib-0.13.50.orig/debian/zzcat.1 +++ zziplib-0.13.50/debian/zzcat.1 @@ -0,0 +1 @@ +.so man1/zziplib-bin.1 --- zziplib-0.13.50.orig/debian/zziplib-bin.install +++ zziplib-0.13.50/debian/zziplib-bin.install @@ -0,0 +1,5 @@ +usr/bin/zzxorcopy +usr/bin/zzxordir +usr/bin/zzxorcat +usr/bin/zzdir +usr/bin/zzcat --- zziplib-0.13.50.orig/debian/changelog +++ zziplib-0.13.50/debian/changelog @@ -0,0 +1,132 @@ +zziplib (0.13.50-1) unstable; urgency=low + + * New upstream version + - Update 01-fetch.patch + * debhelper compat version is 7 + * Standards version is 3.8.1 + * Run dh_prep instead of dh_clean -k + * Add debian/watch + + -- Anibal Monsalve Salazar Mon, 23 Mar 2009 21:13:57 +1100 + +zziplib (0.13.49-4) unstable; urgency=low + + * NMU acknowledgement. Closes: #443880 + * Fixed the following lintian issues: + - zziplib source: out-of-date-standards-version 3.7.2 (current is 3.7.3) + - zziplib: description-contains-homepage + + -- Anibal Monsalve Salazar Sun, 06 Apr 2008 08:13:02 +1000 + +zziplib (0.13.49-3.1) unstable; urgency=low + + * NMU from the Cambridge BSP + * Fixed SIGBUS due to alignment problems, closes: #443880. + Patch: 01-fetch.patch + + -- Steve McIntyre <93sam@debian.org> Sat, 05 Apr 2008 17:54:27 +0100 + +zziplib (0.13.49-3) unstable; urgency=low + + * Fixed SIGSEGV on hppa, ia64, sparc, closes: #443880. + Patch by brian m. carlson + Patch: 01-zip.c.patch + * Fixed FTBFS if build twice in a row, closes: #442779. + * Build-depends on quilt + + -- Anibal Monsalve Salazar Wed, 07 Nov 2007 17:43:35 +1100 + +zziplib (0.13.49-2) unstable; urgency=low + + * debian/rules: added configure option --datadir, closes: #439395. + + -- Anibal Monsalve Salazar Sat, 25 Aug 2007 10:29:31 +1000 + +zziplib (0.13.49-1) unstable; urgency=low + + * libzzip-0-13 Replaces & Conflicts: libzzip-0-12 + + -- Anibal Monsalve Salazar Fri, 24 Aug 2007 08:41:46 +1000 + +zziplib (0.13.49-0) unstable; urgency=low + + * New upstream version. Closes: #399617. + - zzip-config was removed by upstream maintainer. + - htmpages.ar was not shipped by upstream maintainer. + - new build dependency: python. + * Fixed: CVE-2007-1614 DoS and execution of arbitrary code. + Closes: #436701. + * Fixed the following lintian messages: + - W: zziplib source: substvar-source-version-is-deprecated libzzip-dev + - W: zziplib source: debian-rules-ignores-make-clean-error line 62 + + -- Anibal Monsalve Salazar Thu, 09 Aug 2007 18:47:38 +1000 + +zziplib (0.12.83-8) unstable; urgency=low + + * New maintainer. + * Fixed "libzzip-dev: Override says libdevel - optional, .deb says + devel - optional". + + -- Anibal Monsalve Salazar Tue, 03 Oct 2006 11:08:37 +1000 + +zziplib (0.12.83-7) unstable; urgency=low + + * Orphaning this package, setting maintainer field to + packages@qa.debian.org. + + -- Aurelien Jarno Mon, 2 Oct 2006 11:03:22 +0200 + +zziplib (0.12.83-6) unstable; urgency=low + + * bins/zziptest.c: fixed a cast to pointer from integer of different size. + * Bumped Standards-Version to 3.7.2 (nochanges). + + -- Aurelien Jarno Wed, 7 Jun 2006 14:31:12 +0200 + +zziplib (0.12.83-5) unstable; urgency=low + + * zzip/zzip.h: include sys/types.h instead of stddef.h, so that zziplib + could be built on GNU/Hurd and GNU/kFreeBSD. + + -- Aurelien Jarno Sun, 3 Jul 2005 11:42:08 +0200 + +zziplib (0.12.83-4) unstable; urgency=low + + * Libtool update for kfreebsd-gnu in zziplib/ directory (closes: + bug#294730). + + -- Aurelien Jarno Fri, 18 Feb 2005 12:45:00 +0100 + +zziplib (0.12.83-3) unstable; urgency=low + + * Added GCC 4.0 fixes from Andreas Jochens (closes: bug#295055). + + -- Aurelien Jarno Sun, 13 Feb 2005 16:10:27 +0100 + +zziplib (0.12.83-2) unstable; urgency=low + + * Libtool update for kfreebsd-gnu (closes: bug#294730). + + -- Aurelien Jarno Fri, 11 Feb 2005 17:32:04 +0100 + +zziplib (0.12.83-1) unstable; urgency=low + + * New upstream version. + + -- Aurelien Jarno Sun, 26 Sep 2004 21:48:52 +0200 + +zziplib (0.12.82-1) unstable; urgency=low + + * New upstream version. + * Added manpages for zziplib-bin and included tools. Thanks to Ricardo + Mones (closes: bug#256186). + + -- Aurelien Jarno Sat, 26 Jun 2004 16:33:10 +0200 + +zziplib (0.10.82-1) unstable; urgency=low + + * Initial Release (closes: bug#173511, bug#222397). + + -- Aurelien Jarno Mon, 29 Mar 2004 12:41:28 +0200 + --- zziplib-0.13.50.orig/debian/patches/series +++ zziplib-0.13.50/debian/patches/series @@ -0,0 +1 @@ +01-fetch.patch --- zziplib-0.13.50.orig/debian/patches/01-fetch.patch +++ zziplib-0.13.50/debian/patches/01-fetch.patch @@ -0,0 +1,60 @@ +diff -uNrBb a/zzip/fetch.c b/zzip/fetch.c +--- a/zzip/fetch.c 2008-04-05 17:56:49.000000000 +0100 ++++ b/zzip/fetch.c 2008-04-05 17:56:44.000000000 +0100 +@@ -16,17 +16,6 @@ + + #include + +-#if defined ZZIP_WORDS_BIGENDIAN && \ +- defined bswap_16 && defined bswap_32 && defined bswap_64 +-# define __ZZIP_GET16(__p) bswap_16(*(uint16_t*)(__p)) +-# define __ZZIP_GET32(__p) bswap_32(*(uint32_t*)(__p)) +-# define __ZZIP_SET16(__p,__x) (*(uint16_t*)(__p) = bswap_16((uint16_t)(__x))) +-# define __ZZIP_SET32(__p,__x) (*(uint32_t*)(__p) = bswap_32((uint32_t)(__x))) +-# define __ZZIP_GET64(__p) bswap_64(*(zzip_off64_t*)(__p)) +-# define __ZZIP_SET64(__p,__x) \ +- (*(zzip_off64_t*)(__p) = bswap_64((zzip_off64_t)(__x))) +-#endif +- + /* ------------------------- fetch helpers --------------------------------- */ + + /** +diff -up a/zzip/fetch.h b/zzip/fetch.h +--- a/zzip/fetch.h 2008-03-23 07:41:26.000000000 +1100 ++++ b/zzip/fetch.h 2009-03-23 21:28:05.000000000 +1100 +@@ -23,35 +23,12 @@ extern void __zzip_set16(zzip_byte_t + extern uint64_t __zzip_get64(zzip_byte_t * s) __zzip_attribute__((const)); + extern void __zzip_set64(zzip_byte_t * s, uint64_t v); + +-#ifdef ZZIP_WORDS_BIGENDIAN +-# if defined bswap_16 && defined bswap_32 && defined bswap_64 /* i.e. linux */ +-# ifndef ZZIP_HAVE_ALIGNED_ACCESS_REQUIRED +-# define _ZZIP_USE_BSWAP +-# endif +-# endif +-# ifdef _ZZIP_USE_BSWAP +-# define ZZIP_GET16(__p) bswap_16(*(uint16_t*)(__p)) +-# define ZZIP_GET32(__p) bswap_32(*(uint32_t*)(__p)) +-# define ZZIP_GET64(__p) bswap_64(*(uint64_t*)(__p)) +-# define ZZIP_SET16(__p,__x) (*(uint16_t*)(__p) = bswap_16((uint16_t)(__x))) +-# define ZZIP_SET32(__p,__x) (*(uint32_t*)(__p) = bswap_32((uint32_t)(__x))) +-# define ZZIP_SET64(__p,__x) (*(uint64_t*)(__p) = bswap_64((uint64_t)(__x))) +-# else + # define ZZIP_GET64(__p) (__zzip_get64((__p))) + # define ZZIP_GET32(__p) (__zzip_get32((__p))) + # define ZZIP_GET16(__p) (__zzip_get16((__p))) + # define ZZIP_SET64(__p,__x) (__zzip_set64((__p),(__x))) + # define ZZIP_SET32(__p,__x) (__zzip_set32((__p),(__x))) + # define ZZIP_SET16(__p,__x) (__zzip_set16((__p),(__x))) +-# endif +-#else /* little endian is the original zip format byteorder */ +-# define ZZIP_GET16(__p) (*(uint16_t*)(__p)) +-# define ZZIP_GET32(__p) (*(uint32_t*)(__p)) +-# define ZZIP_GET64(__p) (*(uint64_t*)(__p)) +-# define ZZIP_SET16(__p,__x) (*(uint16_t*)(__p) = (uint16_t)(__x)) +-# define ZZIP_SET32(__p,__x) (*(uint32_t*)(__p) = (uint32_t)(__x)) +-# define ZZIP_SET64(__p,__x) (*(uint64_t*)(__p) = (uint64_t)(__x)) +-#endif + + /* ..................... bitcorrect physical access .................... */ +