debian/0000755000000000000000000000000012230733123007162 5ustar debian/README.Debian0000644000000000000000000000074312230730067011233 0ustar upx-ucl for Debian ------------------ UPX is an advanced executable file compressor. UPX will typically reduce the file size of programs and DLLs by around 50%-70%, thus reducing disk space, network load times, download times and other distribution and storage costs. Programs and libraries compressed by UPX are completely self-contained and run exactly as before, with no runtime or memory penalty for most of the supported formats. This package is linked with the UCL library. debian/changelog0000644000000000000000000003331312230730067011043 0ustar upx-ucl (3.91-1) unstable; urgency=low * New upstream version with experimental support for Windows 64-bit PE files. -- Robert Luberda Sun, 20 Oct 2013 12:27:21 +0200 upx-ucl (3.09-2) unstable; urgency=low * Upload to unstable. * Standard-Version: 3.9.4: + add Built-Using field referring to version of lzma-dev package. -- Robert Luberda Fri, 10 May 2013 09:18:12 +0200 upx-ucl (3.09-1) experimental; urgency=low * New upstream version 3.09: + g++-4.8 compilation issue fixed by upstream (closes: #701368). * Compile with -D_FILE_OFFSET_BITS=64 to fix `file not found' error on Windows samba shares (closes: #698029). * Bump Standards-Version to 3.9.3 (no changes required). -- Robert Luberda Sun, 24 Mar 2013 11:03:52 +0100 upx-ucl (3.08-2) unstable; urgency=low * Upload to unstable. * LZMA compression is now supported (LP: #625158). -- Robert Luberda Mon, 09 Jan 2012 00:56:10 +0100 upx-ucl (3.08-1) experimental; urgency=low * New upstream version 3.08. * Switch to tiny rules format and debhelper v9. * Rename & refresh patches with gbp-pq import/export. * Add VCS fields. -- Robert Luberda Sun, 08 Jan 2012 16:41:22 +0100 upx-ucl (3.07-4) experimental; urgency=low * Compile with the latest version of lzma-dev (closes: #452817): + add 02_lzma.patch for minor changes required to accomplish the above; + introduce build dependency on lzma-dev (>= 9.22). * 03_typos.patch, debian/doc-base: Fix typos found by lintian. * Remove leading article from package's description (lintian). * Bump Standards-Version to 3.9.2 (no changes required). -- Robert Luberda Tue, 13 Sep 2011 07:55:34 +0200 upx-ucl (3.07-3) unstable; urgency=low * debian/rules: use CPPFLAGS instead of CXXFLAGS for setting preprocessor macros to fix FTBFS on sparc introduced in previous upload. -- Robert Luberda Wed, 09 Feb 2011 08:21:54 +0100 upx-ucl (3.07-2) unstable; urgency=low * Upload to unstable. * Remove dh_upx, is not needed at all. * debian/rules: + provide build-indep, build-arch targets; + call dpkg-buildflags for getting CXXFLAGS and LDFLAGS; + use dh_auto_build and dh_auto_clean. -- Robert Luberda Tue, 08 Feb 2011 20:19:12 +0100 upx-ucl (3.07-1) experimental; urgency=low * New upstream release. * Build with debhelper v8. * Standards-Version: 3.9.1 (no changes). -- Robert Luberda Sun, 12 Sep 2010 16:44:13 +0200 upx-ucl (3.05-1) unstable; urgency=low * New upstream release. * Switch to the `3.0 (quilt)' source format: + split previous changes into two patches: 00_Makefile.patch and 01_documentation.patch. * Standards-Version: 3.8.4 (no changes). -- Robert Luberda Sat, 12 Jun 2010 16:21:24 +0200 upx-ucl (3.04-1) unstable; urgency=low * New upstream release: + FTBFS with gcc 4.4 fixed by upstream (closes: #548566). * p_mach.cpp: Fix from upstream vcs: mach/fat needs seek() after set_extent(). -- Robert Luberda Fri, 16 Oct 2009 12:56:47 +0200 upx-ucl (3.03-3) unstable; urgency=low * Upload to unstable. * Standards-Version: 3.8.3 (no changes). * Build with debhelper v7. * rules: call dh_prep instead of `dh_clean -k'. -- Robert Luberda Sun, 20 Sep 2009 21:34:57 +0200 upx-ucl (3.03-2) experimental; urgency=low * Merge changes from 3.01-2.1 and 3.01-3. -- Robert Luberda Sun, 27 Jul 2008 23:38:45 +0200 upx-ucl (3.03-1) experimental; urgency=low * New upstream release. * Fix bashism in debian/rules (closes: #478635). -- Robert Luberda Tue, 29 Apr 2008 23:01:31 +0200 upx-ucl (3.02-2) experimental; urgency=low * Merge changes from 3.01-2. -- Robert Luberda Sun, 27 Apr 2008 09:37:26 +0200 upx-ucl (3.02-1) experimental; urgency=low * New upstream version. * Standards-Version: 3.7.3 (no changes). * Move homepage url from Description to its own field. -- Robert Luberda Sat, 05 Jan 2008 10:03:36 +0100 upx-ucl (3.01-3) unstable; urgency=low * Applied patch from Ubuntu to fix ftbfs due to "format not a string literal and no format arguments" warning. -- Robert Luberda Sun, 27 Jul 2008 13:06:38 +0200 upx-ucl (3.01-2.1) unstable; urgency=medium * Non-maintainer upload. * Fix bashism in debian/rules (Closes: #478635) * Bump Standards-Version to 3.8.0. -- Chris Lamb Sat, 07 Jun 2008 21:21:37 +0100 upx-ucl (3.01-2) unstable; urgency=low * Merge changes from experimental: + Standards-Version: 3.7.3 (no changes). + Move homepage url from Description to its own field. * Build with debhelper v6. * Remove debian revision from libucl-dev build dependency (lintian). * Change doc-base section to `File Management' (lintian). -- Robert Luberda Sat, 26 Apr 2008 18:45:42 +0200 upx-ucl (3.01-1) unstable; urgency=low * New upstream version. -- Robert Luberda Thu, 09 Aug 2007 22:59:19 +0200 upx-ucl (3.00-2) unstable; urgency=low * Fix FTBFS on big-endian archs (hppa, ia64,sparc). -- Robert Luberda Fri, 06 Jul 2007 09:03:34 +0200 upx-ucl (3.00-1) unstable; urgency=low * New upstream version (closes: #422910). -- Robert Luberda Sun, 20 May 2007 13:43:54 +0200 upx-ucl (2.03-3) unstable; urgency=low * Upload to unstable. * Fix FTBFS with gcc 4.3 (closes: #417676). -- Robert Luberda Mon, 23 Apr 2007 21:50:34 +0200 upx-ucl (2.03-2) experimental; urgency=low * Sync debian/rules with upx-ucl-beta 2.93-1. * dh_upx: Fix broken i386-linux architecture check. -- Robert Luberda Sat, 10 Mar 2007 22:12:32 +0100 upx-ucl (2.03-1) unstable; urgency=low * New upstream version. -- Robert Luberda Wed, 31 Jan 2007 00:45:25 +0100 upx-ucl (2.01-1) unstable; urgency=low * New upstream version. * Standards-Version: 3.7.2 (no changes). -- Robert Luberda Tue, 13 Jun 2006 21:23:23 +0200 upx-ucl (2.00-1) unstable; urgency=low * New upstream version: + support for a few new executable formats, like arm/pe, linux elf/amd64, linux elf/ppc32, mach/ppc32, bootable Linux kernels ("vmlinuz/386"), Playstation exes ("ps1/exe") + new options for compression tuning (e.g. '--brute') + improved win32/pe compatibility + direct ELF-to-memory decompression. * Update package description. * Add build dependency on zlib1g-dev, remove unneeded dependency on man-db. * Use debhelper v5. * Standards-Version: 3.7.0. -- Robert Luberda Mon, 1 May 2006 18:09:52 +0200 upx-ucl (1.25-5) unstable; urgency=low * debian/doc-base: change section to Apps/Tools (closes: #335075). -- Robert Luberda Sat, 22 Oct 2005 20:08:00 +0200 upx-ucl (1.25-4) unstable; urgency=low * Rebuild for g++ transition. * Standards-Version: 3.6.2 (no changes). -- Robert Luberda Sun, 7 Aug 2005 22:01:10 +0200 upx-ucl (1.25-3) unstable; urgency=low * Try to fix problem with compling on arm. -- Robert Luberda Sun, 10 Oct 2004 20:48:04 +0200 upx-ucl (1.25-2) unstable; urgency=low * Upload to unstable. * Fix typo in debian/watch file. -- Robert Luberda Tue, 28 Sep 2004 21:34:32 +0200 upx-ucl (1.25-1) experimental; urgency=low * New upstream version: + build with libucl-dev 1.03-1 * Standards-Version: 3.6.1 (no changes). * Add debian/watch file. * Add lintian source override file for `cvsignore-file-in-source'. * Add homepage link to the package description. -- Robert Luberda Mon, 26 Jul 2004 21:00:43 +0200 upx-ucl (1.24-2) unstable; urgency=low * Rebuild with g++-3.2 for C++ transition. * Standards-Version: 3.5.8 (no changes). * Reformat this changelog with `fmt -80 -s' to get rid of too long lines. -- Robert Luberda Sat, 18 Jan 2003 16:10:53 +0100 upx-ucl (1.24-1) unstable; urgency=low * New upstream version. -- Robert Luberda Sat, 16 Nov 2002 10:53:14 +0100 upx-ucl (1.23-2) unstable; urgency=low * doc/upx.pod: We don't include the LICENSE file in the package, so replace all references to this file with references to /usr/share/doc/upx-ucl/copyright. (see: #161647). -- Robert Luberda Sun, 29 Sep 2002 14:41:57 +0200 upx-ucl (1.23-1) unstable; urgency=low * New upstream version. * Standards-Version: 3.5.7 * Support DEB_BUILD_OPTIONS=noopt,nostrip * Build with debhelper v4. -- Robert Luberda Thu, 12 Sep 2002 22:11:17 +0200 upx-ucl (1.22-1) unstable; urgency=low * New upstream version. -- Robert Luberda Tue, 2 Jul 2002 20:19:29 +0200 upx-ucl (1.21-2) unstable; urgency=low * Fix problem with building the package on archs other than i386. -- Robert Luberda Tue, 4 Jun 2002 21:15:23 +0200 upx-ucl (1.21-1) unstable; urgency=low * New upstream version. * Use debhelper v4. * Update copyright file. -- Robert Luberda Mon, 3 Jun 2002 21:32:18 +0200 upx-ucl (1.20-2) unstable; urgency=low * Rebuild with the newset libucl-dev to get proper dependency on libucl0. * Better handle update-alternatives in postinst & prerm scripts. * Updated dh_upx, based on the newest dh_strip. -- Robert Luberda Thu, 4 Apr 2002 07:04:24 +0200 upx-ucl (1.20-1) unstable; urgency=low * New upstream version. * Added support for DEB_BUILD_OPTIONS. * Standards-Version: 3.5.6 * Don't include UCL source in source package, build-depends on libucl instead. * Removed build dependency on automake. * Updated README.Debian. * Upgrade debian/rules to the newest debhelper. * Closing NMU fixed bugs: closes: #128453, #131369. -- Robert Luberda Fri, 29 Mar 2002 00:32:50 +0100 upx-ucl (1.07-10) unstable; urgency=low * New maintainer (closes: #136971). -- Robert Luberda Thu, 28 Mar 2002 02:15:29 +0100 upx-ucl (1.07-9.1) unstable; urgency=low * NMU * This package builds on most architectures. Don't hardcode things to make it not build elsewhere. Closes: #128453, #131369 -- Randolph Chung Mon, 28 Jan 2002 21:02:19 -0800 upx-ucl (1.07-9) unstable; urgency=low * no idea what sparc's problem (with groff-base) is, but I wanted to drop the PS docs though. Closes: #116395 -- Eduard Bloch Sat, 20 Oct 2001 21:38:47 +0200 upx-ucl (1.07-8) unstable; urgency=low * better automake dependency, closes: #116218 * dependency on gcc-2.95, gcc-3.0 is still broken * cosmetical fixes -- Eduard Bloch Fri, 19 Oct 2001 11:51:08 +0200 upx-ucl (1.07-7) unstable; urgency=low * added architecture test to dh_upx. prevents compressing if the target architecture is not i386/linux. * UPX compresses himself if dh_upx works -- Eduard Bloch Tue, 17 Apr 2001 01:45:46 +0200 upx-ucl (1.07-6) unstable; urgency=low * discovered bugs in dh_upx and fixed them -- Eduard Bloch Mon, 16 Apr 2001 18:41:10 +0200 upx-ucl (1.07-5) unstable; urgency=low * limited number of Architectures to i386, m68k, sparc and powerpc. These seem to be the only plattforms where upx compiles. Prevention of RC bug reports. * wrote dh_upx, based on dh_strip. Changed control file to provide dh-upx. For possible changes in the future. * removed developer docs, not needed for end-users * fixed the clean rule to remove _all_ generated docs -- Eduard Bloch Mon, 16 Apr 2001 15:49:47 +0200 upx-ucl (1.07-4) unstable; urgency=low * tested compilation on misc. architectures. Unfortunately, the build fails on architectures other than i386, sparc and ppc. * changed arch back to any -- Eduard Bloch Sun, 1 Apr 2001 23:47:48 +0200 upx-ucl (1.07-3) unstable; urgency=low * set arch to i386 only. Closes: #92408 * changed Makefile to remove pentium dependency -- Eduard Bloch Sun, 1 Apr 2001 10:34:48 +0200 upx-ucl (1.07-2) unstable; urgency=low * changed section to unstable -- Eduard Bloch Fri, 16 Mar 2001 17:30:10 +0100 upx-ucl (1.07-1) stable; urgency=low * new upstream version * mixed with ucl-0.92 -- Eduard Bloch Sat, 10 Mar 2001 22:59:58 +0100 upx (1.01-5) stable; urgency=low * Major changes after discussion with the upstream author. ucl is integrated into upx-ucl package, since it probably won't be used anywhere else. * Removed unused stuff from the ucl-package. * Renamed to upx-ucl and created alternatives system, suggested by the upstream author. * Still looking for anyone to overtake it. -- Eduard Bloch Wed, 10 May 2000 22:32:54 +0200 upx (1.01-4) unstable; urgency=low * Changed the copyright again after having discussed it on debian-devel ML. Still looking for a sponsor. -- Eduard Bloch Tue, 11 Apr 2000 9:30:10 +0200 upx (1.01-3) unstable; urgency=low * Updated again, changed the copyright file. This package should probably go into the non-free section, since the LICENSE requires the compressed binaries to be GPLed. -- Eduard Bloch Tue, 11 Apr 2000 11:48:33 +0200 upx (1.01-2) unstable; urgency=low * Updated. Fixed bugs. -- Eduard Bloch Mon, 10 Apr 2000 15:33:31 +0200 upx (1.01-1) unstable; urgency=low * Initial Release. -- Eduard Bloch Mon, 10 Apr 2000 15:33:31 +0200 debian/compat0000644000000000000000000000000212230730067010364 0ustar 9 debian/control0000644000000000000000000000177112230730067010577 0ustar Source: upx-ucl Section: utils Priority: optional Maintainer: Robert Luberda Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), libucl-dev (>= 1.03), lzma-dev (>= 9.22), zlib1g-dev (>= 1:1.1.4) Homepage: http://upx.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/users/robert/upx-ucl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/robert/upx-ucl.git Package: upx-ucl Architecture: any Built-Using: ${Built-Using} Provides: upx Depends: ${misc:Depends}, ${shlibs:Depends} Description: efficient live-compressor for executables UPX is an advanced executable file compressor. UPX will typically reduce the file size of programs and DLLs by around 50%-70%, thus reducing disk space, network load times, download times etc. The current version can compress executables for DOS, Linux/ELF (i386, amd64, ppc32) and some other files for different OS. . NOTE: This package is based on the UCL library, which is licensed under GPL. debian/copyright0000644000000000000000000001400712230730067011123 0ustar This package was debianized by Eduard Bloch on Mon, 10 Apr 2000 15:33:31 +0200. The package is currently maintained by Robert Luberda . It was downloaded from http://upx.sourceforge.net Upstream Authors: Markus F.X.J. Oberhumer Laszlo Molnar Copyright: UPX and UCL are copyrighted software distributed under the terms of the GNU General Public License (hereinafter the "GPL"). On Debian GNU/Linux systems, you can find a copy of the GPL in /usr/share/common-licenses/GPL-2. Read the special license agreement below if you plan to use UPX for programs which are not distributed under the terms of the GPL. -----BEGIN PGP SIGNED MESSAGE----- ooooo ooo ooooooooo. ooooooo ooooo `888' `8' `888 `Y88. `8888 d8' 888 8 888 .d88' Y888..8P 888 8 888ooo88P' `8888' 888 8 888 .8PY888. `88. .8' 888 d8' `888b `YbodP' o888o o888o o88888o The Ultimate Packer for eXecutables Copyright (c) 1996-2000 Markus Oberhumer & Laszlo Molnar http://wildsau.idv.uni-linz.ac.at/mfx/upx.html http://www.nexus.hu/upx http://upx.tsx.org PLEASE CAREFULLY READ THIS LICENSE AGREEMENT, ESPECIALLY IF YOU PLAN TO MODIFY THE UPX SOURCE CODE OR USE A MODIFIED UPX VERSION. ABSTRACT ======== UPX and UCL are copyrighted software distributed under the terms of the GNU General Public License (hereinafter the "GPL"). The stub which is imbedded in each UPX compressed program is part of UPX and UCL, and contains code that is under our copyright. The terms of the GNU General Public License still apply as compressing a program is a special form of linking with our stub. As a special exception we grant the free usage of UPX for all executables, including commercial programs. See below for details and restrictions. COPYRIGHT ========= UPX and UCL are copyrighted software. All rights remain with the authors. UPX is Copyright (C) 1996-2000 Markus Franz Xaver Johannes Oberhumer UPX is Copyright (C) 1996-2000 Laszlo Molnar UCL is Copyright (C) 1996-2000 Markus Franz Xaver Johannes Oberhumer GNU GENERAL PUBLIC LICENSE ========================== UPX and the UCL library are free software; you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. UPX and UCL are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. SPECIAL EXCEPTION FOR COMPRESSED EXECUTABLES ============================================ The stub which is imbedded in each UPX compressed program is part of UPX and UCL, and contains code that is under our copyright. The terms of the GNU General Public License still apply as compressing a program is a special form of linking with our stub. Hereby Markus F.X.J. Oberhumer and Laszlo Molnar grant you special permission to freely use and distribute all UPX compressed programs (including commercial ones), subject to the following restrictions: 1. You must compress your program with a completely unmodified UPX version; either with our precompiled version, or (at your option) with a self compiled version of the unmodified UPX sources as distributed by us. 2. This also implies that the UPX stub must be completely unmodfied, i.e. the stub imbedded in your compressed program must be byte-identical to the stub that is produced by the official unmodified UPX version. 3. The decompressor and any other code from the stub must exclusively get used by the unmodified UPX stub for decompressing your program at program startup. No portion of the stub may get read, copied, called or otherwise get used or accessed by your program. ANNOTATIONS =========== - You can use a modified UPX version or modified UPX stub only for programs that are compatible with the GNU General Public License. - We grant you special permission to freely use and distribute all UPX compressed programs. But any modification of the UPX stub (such as, but not limited to, removing our copyright string or making your program non-decompressible) will immediately revoke your right to use and distribute a UPX compressed program. - UPX is not a software protection tool; by requiring that you use the unmodified UPX version for your proprietary programs we make sure that any user can decompress your program. This protects both you and your users as nobody can hide malicious code - any program that cannot be decompressed is highly suspicious by definition. - You can integrate all or part of UPX and UCL into projects that are compatible with the GNU GPL, but obviously you cannot grant any special exceptions beyond the GPL for our code in your project. - We want to actively support manufacturers of virus scanners and similar security software. Please contact us if you would like to incorporate parts of UPX or UCL into such a product. Markus F.X.J. Oberhumer Laszlo Molnar markus.oberhumer@jk.uni-linz.ac.at ml1050@cdata.tvnet.hu Linz, Austria, 25 Feb 2000 -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: noconv iQCVAwUBOLaLS210fyLu8beJAQFYVAP/ShzENWKLTvedLCjZbDcwaBEHfUVcrGMI wE7frMkbWT2zmkdv9hW90WmjMhOBu7yhUplvN8BKOtLiolEnZmLCYu8AGCwr5wBf dfLoClxnzfTtgQv5axF1awp4RwCUH3hf4cDrOVqmAsWXKPHtm4hx96jF6L4oHhjx OO03+ojZdO8= =CS52 -----END PGP SIGNATURE----- debian/dirs0000644000000000000000000000001012230730067010041 0ustar usr/bin debian/doc-base0000644000000000000000000000056412230730067010573 0ustar Document: upx-ucl Title: Miscellaneous upx(ucl) documentation Author: Markus F.X.J. Oberhumer & Laszlo Molnar Abstract: This document is the documentation for upx compression utility (ucl-version). Section: File Management Format: HTML Index: /usr/share/doc/upx-ucl/upx.html Files: /usr/share/doc/upx-ucl/upx.html Format: text Files: /usr/share/doc/upx-ucl/upx.doc.gz debian/docs0000644000000000000000000000007212230730067010040 0ustar BUGS PROJECTS README THANKS TODO doc/upx.html doc/upx.doc debian/patches/0000755000000000000000000000000012230730067010615 5ustar debian/patches/00-Makefile.patch0000644000000000000000000000103112230730067013563 0ustar From: Robert Luberda Date: Fri, 6 Jul 2007 08:04:24 +0100 Subject: 00 Makefile. Fix CFLAGS. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 5375f81..054ed1b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -36,7 +36,7 @@ ifeq ($(USE_GNUC),1) ifeq ($(DEBUG),1) CXXFLAGS += -O0 -g else -CXXFLAGS += -O2 +##CXXFLAGS += -O2 endif CXXFLAGS_WERROR = -Werror CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wpointer-arith -Wshadow -Wwrite-strings debian/patches/01-Documentation.patch0000644000000000000000000000306712230730067014673 0ustar From: Robert Luberda Date: Sun, 29 Sep 2002 13:50:30 +0100 Subject: 01 Documentation. Add full path to the copyright file. --- doc/upx.pod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/upx.pod b/doc/upx.pod index e504201..d56edf0 100644 --- a/doc/upx.pod +++ b/doc/upx.pod @@ -24,7 +24,7 @@ no memory overhead or other drawbacks for most of the formats supported, because of in-place decompression. While you may use B freely for both non-commercial and commercial -executables (for details see the file LICENSE), we would highly +executables (for details see the file /usr/share/doc/upx-ucl/copyright), we would highly appreciate if you credit B and ourselves in the documentation, possibly including a reference to the B home page. Thanks. @@ -35,7 +35,7 @@ is considered not politically correct ;-) ] =head1 DISCLAIMER -B comes with ABSOLUTELY NO WARRANTY; for details see the file LICENSE. +B comes with ABSOLUTELY NO WARRANTY; for details see the file /usr/share/doc/upx-ucl/copyright. This is the first production quality release, and we plan that future 1.xx releases will be backward compatible with this version. @@ -950,5 +950,5 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the B for more details. You should have received a copy of the UPX License Agreement along -with this program; see the file LICENSE. If not, visit the UPX home page. +with this program; see the file /usr/share/doc/upx-ucl/copyright. If not, visit the UPX home page. debian/patches/02-Lzma-support.patch0000644000000000000000000000417612230730067014502 0ustar From: Robert Luberda Date: Mon, 12 Sep 2011 20:25:03 +0200 Subject: 02 Lzma support. Make upx compilable with the latest version of lzma-dev package. --- src/compress_lzma.cpp | 15 ++++++++------- src/stub/src/c/Makevars.lzma | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/compress_lzma.cpp b/src/compress_lzma.cpp index decca78..9206bb0 100644 --- a/src/compress_lzma.cpp +++ b/src/compress_lzma.cpp @@ -94,11 +94,11 @@ int compress_lzma_dummy = 0; #if (WITH_LZMA >= 0x461) -#include "C/7zVersion.h" +#include "7zVersion.h" #if (WITH_LZMA != (0x100 * MY_VER_MAJOR) + (0x10 * (MY_VER_MINOR / 10)) + (MY_VER_MINOR % 10)) # error "WITH_LZMA version mismatch" #endif -#include "C/Types.h" +#include "Types.h" static void *cb_alloc(void *, size_t size) { return malloc(size); } @@ -232,9 +232,10 @@ error: #if (WITH_LZMA >= 0x461) #define _7ZIP_ST 1 #define kLiteralNextStates kLiteralNextStates_enc -#include "C/LzmaEnc.h" -#include "C/LzmaEnc.c" -#include "C/LzFind.c" +#define _7ZIP_ST 1 +#include "LzmaEnc.h" +#include "LzmaEnc.c" +#include "LzFind.c" #undef kLiteralNextStates #undef kNumFullDistances @@ -566,8 +567,8 @@ error: #if (WITH_LZMA >= 0x461) #undef _LZMA_PROB32 -#include "C/LzmaDec.h" -#include "C/LzmaDec.c" +#include "LzmaDec.h" +#include "LzmaDec.c" int upx_lzma_decompress ( const upx_bytep src, unsigned src_len, diff --git a/src/stub/src/c/Makevars.lzma b/src/stub/src/c/Makevars.lzma index e55b783..c0cc231 100644 --- a/src/stub/src/c/Makevars.lzma +++ b/src/stub/src/c/Makevars.lzma @@ -11,8 +11,8 @@ endif endif endif -ifneq ($(wildcard $(UPX_LZMADIR)/C/7zVersion.h),) -UPX_LZMA_VERSION := $(shell perl -ne 'print "0x$$1$$2" if /^\s*\#\s*define\s+MY_VERSION\s+"(\d)\.(\d\d)[\s\w]*"/;' $(UPX_LZMADIR)/C/7zVersion.h) +ifneq ($(wildcard $(UPX_LZMADIR)/7zVersion.h),) +UPX_LZMA_VERSION := $(shell perl -ne 'print "0x$$1$$2" if /^\s*\#\s*define\s+MY_VERSION\s+"(\d)\.(\d\d)[\s\w]*"/;' $(UPX_LZMADIR)/7zVersion.h) else ifneq ($(wildcard $(UPX_LZMADIR)/CPP/Windows/Time.cpp),) UPX_LZMA_VERSION = 0x459 else ifneq ($(wildcard $(UPX_LZMADIR)/C/7zBuf.h),) debian/patches/series0000644000000000000000000000007712230730067012036 0ustar 00-Makefile.patch 01-Documentation.patch 02-Lzma-support.patch debian/postinst0000644000000000000000000000062012230730067010772 0ustar #!/bin/sh set -e update_alt() { # arguments: link program priority if ! update-alternatives --display "$1" | grep -q "^/usr/bin/$2" ; then update-alternatives --install "/usr/bin/$1" "$1" "/usr/bin/$2" "$3" \ --slave "/usr/share/man/man1/$1.1.gz" "$1.1.gz" \ "/usr/share/man/man1/$2.1.gz" fi } if [ "$1" = "configure" ] ; then update_alt upx upx-ucl 30 fi #DEBHELPER# exit 0 debian/prerm0000644000000000000000000000016212230730067010235 0ustar #!/bin/sh # set -e [ "$1" = "remove" ] && update-alternatives --remove upx /usr/bin/upx-ucl #DEBHELPER# exit 0 debian/rules0000755000000000000000000000326312230730067010252 0ustar #!/usr/bin/make -f DH_AUTO_OPTIONS := -v -Smakefile --parallel BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W lzma-dev) package := $(shell dh_listpackages) BIG_ENDIAN_ARCHS := hppa ia64 sparc DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) export DESTDIR := $(CURDIR)/debian/$(package) export CC := gcc export CXX := g++ export UPX_UCLDIR := /none export UPX_LZMADIR := /usr/include/lzma export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) export CPPFLAGS := -DWITH_UCL -D_FILE_OFFSET_BITS=64 \ $(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) ifneq (,$(findstring $(DEB_BUILD_ARCH), $(BIG_ENDIAN_ARCHS))) CPPFLAGS += -D__BIG_ENDIAN__=1 endif %: dh "$@" override_dh_auto_build: build-stamp build-stamp: rm -f .pc/.*unapply # see bug#649521 # Add here commands to compile the package. @echo "Starting build process ($(DEB_BUILD_ARCH))" dh_auto_build $(DH_AUTO_OPTIONS) -- \ exeext="" \ target=linux \ all cd doc && mv upx.1 $(package).1 touch "$@" override_dh_auto_clean: rm -f build-stamp dh_auto_clean $(DH_AUTO_OPTIONS) -- \ exeext="" rm -rf doc/*.1 doc/*.ps override_dh_auto_install: install -pm 0755 src/upx $(DESTDIR)/usr/bin/$(package) override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_installman: dh_installman doc/*.1 override_dh_gencontrol: dh_gencontrol -- -VBuilt-Using="$(BUILT_USING)" debian/source/0000755000000000000000000000000012230730067010466 5ustar debian/source/format0000644000000000000000000000001412230730067011674 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000016612230730067010222 0ustar # control file for the uscan(1) tool version=2 http://upx.sourceforge.net/ \ (?:.*/)upx-([\d\.]+)-src\.tar\.(gz|bz2)