debian/0000755000000000000000000000000012330417463007171 5ustar debian/watch0000644000000000000000000000012012176475020010214 0ustar version=3 http://www.steve.org.uk/Software/mousetrap/mousetrap-([\d\.]+).tar.gz debian/rules0000755000000000000000000000067112176603342010256 0ustar #!/usr/bin/make -f # 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 %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man/man6 \ --bindir=/usr/games \ --datadir=/usr/share/games CFLAGS="$(CFLAGS)" debian/mousetrap.manpages0000644000000000000000000000002012176475020012716 0ustar man/mousetrap.6 debian/copyright0000644000000000000000000000214312176475020011125 0ustar This package was debianized by Anibal Avelar on Sun, 13 Jan 2008 21:32:32 +0200. It was downloaded from http://www.steve.org.uk/Software/mousetrap Upstream Author: Steve Kemp Copyright: 2007, Steve Kemp License: 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 can be found in `/usr/share/common-licenses/GPL-2'. debian/mousetrap.menu0000644000000000000000000000015212176475020012075 0ustar ?package(mousetrap):needs="X11" section="Games/Board"\ title="Mousetrap" command="/usr/games/mousetrap" debian/source/0000755000000000000000000000000012176475032010475 5ustar debian/source/format0000644000000000000000000000001412176475040011702 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012176603216010621 5ustar debian/patches/02_sdl_error_checks.patch0000644000000000000000000000170012176603216015454 0ustar Description: Improve some error checking on SDL_Init and SDL_SetVideoMode. Author: Barry deFreese Index: mousetrap-1.0c/src/mousetrap.cpp =================================================================== --- mousetrap-1.0c.orig/src/mousetrap.cpp 2013-08-01 20:50:12.850774261 -0400 +++ mousetrap-1.0c/src/mousetrap.cpp 2013-08-01 20:54:22.756013474 -0400 @@ -346,13 +346,16 @@ srand( (unsigned)time( NULL ) ); /* initialize SDL. */ - SDL_Init(SDL_INIT_VIDEO); + if (SDL_Init(SDL_INIT_VIDEO) < 0) + printf("Failed to initialized SDL: %s.\n", SDL_GetError()); /* set the title bar */ SDL_WM_SetCaption("MouseTrap", "MouseTrap"); /* create window */ screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0); + if (screen == NULL) + printf("Failed to set video mode: %s.\n", SDL_GetError()); /* load sprite */ temp = loadImage((char *)"data/images/sprite.bmp"); debian/patches/series0000644000000000000000000000006312176601141012030 0ustar 01_buffer_overflow.patch 02_sdl_error_checks.patch debian/patches/01_buffer_overflow.patch0000644000000000000000000000122212176601052015327 0ustar Description: Fix segfault with path that is too long for char buffer. Author: Barry deFreese Index: mousetrap-1.0c/src/mousetrap.cpp =================================================================== --- mousetrap-1.0c.orig/src/mousetrap.cpp 2013-05-20 09:52:46.000000000 -0400 +++ mousetrap-1.0c/src/mousetrap.cpp 2013-08-01 20:48:36.334295662 -0400 @@ -373,7 +373,7 @@ font = initFont((char *)"data/font1"); if ( font == NULL ) { - char path_font[30]; + char path_font[100]; sprintf(path_font, "%s/%s/data/font1", DEFAULT_LIBDIR, PACKAGE); font = initFont( path_font ); if ( font == NULL ) debian/compat0000644000000000000000000000000212176475073010400 0ustar 9 debian/control0000644000000000000000000000134512176604234010601 0ustar Source: mousetrap Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Barry deFreese Build-Depends: debhelper (>= 9), dh-autoreconf, libsdl1.2-dev, libsdl-gfx1.2-dev, libsdl-mixer1.2-dev Homepage: http://www.steve.org.uk/Software/mousetrap/ Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-games/mousetrap.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/mousetrap.git;a=summary Package: mousetrap Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Simple game of ball chasing This is a simple game in which the player moves their character to capture the white balls while avoiding the red ones. debian/changelog0000644000000000000000000000364412330417463011052 0ustar mousetrap (1.0c-1build1) utopic; urgency=medium * Rebuild against libsdl-gfx1.2-5. -- Colin Watson Thu, 01 May 2014 11:17:23 +0100 mousetrap (1.0c-1) unstable; urgency=low * Adopting for the Debian Games Team. (Closes: #694606). * New upstream release. * Update debhelper build-dep and compat to 9. + Move rules to simple dh style. * Update to source format 3.0 (quilt). (Closes: #664342). * Remove unnecessary build-deps on autoconf and automake. * Bump Standards Version to 3.9.4. -- Barry deFreese Thu, 01 Aug 2013 10:58:54 -0400 mousetrap (0.9-2.2) unstable; urgency=low * Non-maintainer upload. * Fix build failure with GCC 4.7. Closes: #667286. -- Matthias Klose Tue, 17 Apr 2012 14:33:27 +0200 mousetrap (0.9-2.1) unstable; urgency=low * Non-maintainer upload. * hurd_ftbfs.dpatch - Fix FTBFS on Hurd. (Closes: #533735). -- Barry deFreese Wed, 23 Dec 2009 16:07:29 -0500 mousetrap (0.9-2) unstable; urgency=low * Fixed the bug FTBFS with GCC 4.3: missing #includes (Closes: #463742) * Moved to /usr/share/games the datadir directory. * Added the dependency with dpatch package, dpatch is used to apply the patch for GCC 4.3. * Fixed the debian/rules file to include the dpatch. * Added a debian/watch file. -- Anibal Avelar Sun, 10 Feb 2008 21:25:56 +0000 mousetrap (0.9-1) unstable; urgency=low * First upload to debian archive (Closes: #454104) * New upstream release. * Updated standards version to 3.7.3 * Fixed debian/rules to build the package with configure script * Fixed the debian/copyright to agree the Debian Policy * Added autoconf package in the dependencies inside debian/control file * Added automake1.9 package in the dependencies inside debian/control file -- Anibal Avelar (Fixxxer) Sun, 09 Dec 2007 21:25:56 +0000