debian/0000755000000000000000000000000012216261021007157 5ustar debian/rules0000755000000000000000000000231412216260714010247 0ustar #!/usr/bin/make -f # -*- makefile -*- # Use debhelper default for all targets (but some are overridden below). %: dh $@ # Enable all hardening options (since grfcodec potentially handles # untrusted data files). DEB_BUILD_MAINT_OPTIONS=hardening=+all # Load buildflags (this uses dpkg-buildflags). Note that we don't export # them, but instead pass them to ./configure explicitly. include /usr/share/dpkg/buildflags.mk # Don't use dh for clean. Since the upstream Makefile generates # dependency information before any error messages, dh_auto_clean # sometimes thinks make distclean is supported, while it isn't. Instead, # we use make mrproper, which does something similar. override_dh_auto_clean: make mrproper # Remove files autogenerated by make, but not removed by make # mrproper. rm -f Makefile.local override_dh_auto_configure: # Disable UPX binary compression, it is not available on all # platforms. echo "UPX=" >> Makefile.local echo "DO_NOT_INSTALL_CHANGELOG=1" >> Makefile.local echo "DO_NOT_INSTALL_LICENSE=1" >> Makefile.local echo "V=1" >> Makefile.local echo "CXXFLAGS=$(CXXFLAGS) $(CPPFLAGS)" >> Makefile.local echo "LDOPT=$(LDFLAGS)" >> Makefile.local echo "prefix=/usr" >> Makefile.local debian/watch0000644000000000000000000000027512216260714010224 0ustar # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://www.openttd.org/en/download-grfcodec .*/grfcodec-(\d.*)-source\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian/changelog0000644000000000000000000001024212216260714011040 0ustar grfcodec (6.0.3-1) unstable; urgency=low * [b229ba6] New upstream release 6.0.3. - Fixes crash on invalid input files. (Closes: #715995) * [90ec679] Add patch to pass LDFLAGS for grfmrgc.bin * [4979bd2] Use canonical Vcs urls (on anonscm.debian.org) -- Matthijs Kooijman Wed, 18 Sep 2013 10:16:05 +0200 grfcodec (6.0.2-1) unstable; urgency=low * [664d753] New upstream release 6.0.2. * [a52bd90] Bump Standards-Version to 3.9.4, no changes required. * [a9ace4b] Make builds verbose. * [3dad868] Update watch file, upstream changed download urls. * [71790cd] Use flags from dpkg-buildflags. -- Matthijs Kooijman Fri, 15 Mar 2013 16:03:42 +0100 grfcodec (6.0.0-1) unstable; urgency=low * [09f0358] New upstream release 6.0.0. * [b47c90b] Update copyright file and convert to use the new copyright- format-1.0. * [ecf1baa] Bump Standars-Version to 3.9.3, no changes required. -- Matthijs Kooijman Wed, 18 Apr 2012 13:01:58 +0200 grfcodec (5.1.2-1) unstable; urgency=low * [36684f3] New upstream release 5.1.2. * [14174a4] Remove fix-action-14-big-endian.patch, which is included upstream. -- Matthijs Kooijman Tue, 06 Dec 2011 14:43:46 +0100 grfcodec (5.1.1-2) unstable; urgency=low * [3ee0c62] Add fix-action-14-big-endian.patch. * [45cdd2b] Reword description to comply with policy. -- Matthijs Kooijman Fri, 05 Aug 2011 22:32:42 +0200 grfcodec (5.1.1-1) unstable; urgency=low * [a9f555f] New upstream release 5.1.1. * [9227de5] Conflict and replace nforenum, which is included with grfcodec now. * [54aa8a6] Build-Depend on libpng-dev, to support png sprite sheets (new in 5.1.0). * [90314ef] Remove big-endian-fix.patch, which was included upstream. * [a08a5a1] Bump Standards-Version to 3.9.2, no changes required. -- Matthijs Kooijman Thu, 04 Aug 2011 21:22:40 +0200 grfcodec (1.0.0+debian1-2) unstable; urgency=low * [148a2e3] Add big-endian-fix.patch, fixing grfcodec on s390. (Closes: #596056) -- Matthijs Kooijman Fri, 10 Sep 2010 18:20:12 +0200 grfcodec (1.0.0+debian1-1) unstable; urgency=low * [30caa6a] Repackaged upstream source, to remove a duplicate file (which the lenny version of tar --keep-old-files doesn't like. * [331d12b] Update watch file to upstream's new versioning scheme. * [28b6b51] Mangle the +debian suffix in the watch file. -- Matthijs Kooijman Mon, 23 Aug 2010 14:45:52 +0200 grfcodec (1.0.0-1) unstable; urgency=low * [bdf9657] New upstream release 1.0.0. * [fd3f79e] Remove svn version mangling, upstream uses sane versioning again. * [8893585] Remove our manpages, upstream now provides them. * [d023444] Bump Standards-Version to 3.9.1, no changes required. * [911d6fe] Remove optional-upx.patch, which was included upstream. * [5441697] Update upstream homepage. * [bffa177] Build-Depend on libboost-dev, it is now required. * [05e2298] Don't point users to the upstream homepage for docs. * [various] Update packaging for upstream build system changes. -- Matthijs Kooijman Thu, 19 Aug 2010 16:00:12 +0200 grfcodec (0.9.10+svn2306-1) unstable; urgency=low * [60e6925] New upstream release 0.9.10+svn2306. * [61f5b99] Add optional-upx.patch, making upx compression optional. * [d9464d5] Disable UPX binary compression, it is not available on all platforms. (Closes: #576374) * [27f8520] Don't Build-Depend on upx anymore. -- Matthijs Kooijman Sun, 04 Apr 2010 14:11:22 +0200 grfcodec (0.9.10+svn2294-1) unstable; urgency=low * [af496d7] New upstream release 0.9.10+svn2294. * [51e47c9] Remove patch gcc-4.4-compile-fixes, which was imported upstream. * [1f37c17] Update the watch file to the new upstream url scheme. * [9c8d66d] Add some copyright holders I missed. - thanks to Alexander Reichle-Schmehl -- Matthijs Kooijman Thu, 11 Mar 2010 17:20:42 +0100 grfcodec (0.9.10+svn2247-1) unstable; urgency=low * Initial release (Closes: #565392) -- Matthijs Kooijman Mon, 01 Feb 2010 12:42:13 +0100 debian/grfcodec.lintian-overrides0000644000000000000000000000203012216260714014316 0ustar # It seems hardening-check triggers a false positive on nforenum. Even # with the hardening flags correctly passed, it outputs: # # /usr/bin/nforenum: # Position Independent Executable: yes # Stack protected: yes # Fortify Source functions: no, only unprotected functions found! # unprotected: memset # unprotected: fgets # unprotected: memmove # unprotected: getcwd # unprotected: memcpy # unprotected: fread # Read-only relocations: yes # Immediate binding: yes # # Given that this warning only occurs for nforenum and not for the other # binaries in the package, it seems the hardening flags are properly # applied but the nforenum binary does not have any calls to library # functions that would profit from hardening (hardening-check can only # do a heuristic, it cannot actually see if the hardening flags were # applied or if they should have been). grfcodec binary: hardening-no-fortify-functions usr/bin/nforenum debian/compat0000644000000000000000000000000212216260714010365 0ustar 7 debian/source/0000755000000000000000000000000012216260714010467 5ustar debian/source/format0000644000000000000000000000001412216260714011675 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000443412216260714011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: GRFCodec Upstream-Contact: http://dev.openttdcoop.org/projects/grfcodec Source: http://dev.openttdcoop.org/projects/grfcodec Files: * Copyright: © 1999-2005 by Josef Drexler © 2004-2010 by Dale McCoy © 2006 by Dan Masek © 2009 by Peter Nelson © 2009, 2012 by Remko Bijker © 2010 by Thijs Marinussen, Remko Bijker, Christoph Elsenhans © 1989, 1991 Free Software Foundation, Inc., License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it 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. . This package is distributed in the hope that it 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. Files: src/md5.cpp src/md5.h Copyright: © 1999, 2002 Aladdin Enterprises. All rights reserved. License: Zlib This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. debian/patches/0000755000000000000000000000000012216260714010616 5ustar debian/patches/fix-ldflags.patch0000644000000000000000000000112612216260714014037 0ustar From: Matthijs Kooijman Subject: Pass LDOPT to the linker for grfmrgc.bin Forwarded: https://dev.openttdcoop.org/issues/6317 Make sure that also the grfmrgc.bin (grfmerge optimized for size) executable gets compiled with the proper LDFLAGS (called LDOPT in the makefile). --- a/Makefile +++ b/Makefile @@ -249,7 +249,7 @@ endif objs/grfmrgc.bin: objs/grfmerge.os $(GRFMERGESRC:%.cpp=objs/%.os) $(_C)rm -f $@ $(_E) [LD] $@ - $(_C)$(CXX) -o $@ $(MY_CXXFLAGS) -Os $^ + $(_C)$(CXX) -o $@ $(MY_CXXFLAGS) $(LDOPT) -Os $^ ifneq ($(STRIP),) $(_E) [STRIP] $@ $(_C)$(STRIP) $@ debian/patches/series0000644000000000000000000000005412216260714012032 0ustar # Series of quilt patches fix-ldflags.patch debian/README.Debian0000644000000000000000000000053612216260714011234 0ustar grfcodec for Debian ------------------- grfcodec is a set of tools for working with the GRF files used by the Transport Tycoon Deluxe, TTDPatch and OpenTTD games. To get started with grfcodec, have a look at the documentation in /usr/share/doc/grfcodec/ and the manpages. -- Matthijs Kooijman Thu, 24 Dec 2009 11:09:08 +0100 debian/control0000644000000000000000000000146612216260714010601 0ustar Source: grfcodec Section: devel Priority: extra Maintainer: Matthijs Kooijman Uploaders: Jordi Mallach Build-Depends: debhelper (>= 7.0.50), libboost-dev, libpng-dev, dpkg-dev (>=1.16.1) Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/grfcodec.git Vcs-Git: git://anonscm.debian.org/collab-maint/grfcodec.git Homepage: http://dev.openttdcoop.org/projects/grfcodec Package: grfcodec Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Replaces: nforenum Conflicts: nforenum Description: suite of programs to modify Transport Tycoon Deluxe's GRF files This package provides the grfcodec, grfdiff, grfmerge and nforenum commands which can be used to work with the GRF used by the Transport Tycoon Deluxe, TTDPatch and OpenTTD games.