--- vectoroids-1.1.0.orig/debian/vectoroids.desktop +++ vectoroids-1.1.0/debian/vectoroids.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Vectoroids +Comment=A clone of the classic arcade game "Asteroids" +Exec=vectoroids --fullscreen +Icon=/usr/share/pixmaps/vectoroids-icon.xpm +Terminal=false +Type=Application +Categories=Application;Game; --- vectoroids-1.1.0.orig/debian/control +++ vectoroids-1.1.0/debian/control @@ -0,0 +1,19 @@ +Source: vectoroids +Section: games +Priority: optional +Maintainer: Christian T. Steigies +Build-Depends: debhelper (>>5), libsdl1.2-dev (>=1.2.2-3.3), libsdl-image1.2-dev (>=1.2.1-1.1), libsdl-mixer1.2-dev (>=1.2.1-2.2) +Standards-Version: 3.7.2 + +Package: vectoroids +Architecture: any +Depends: ${shlibs:Depends} +Description: vector-based rock-shooting + "Vectoroids" is a vector-based rock-shooting game similar to the + arcade classic "Asteroids." + Pilot a spaceship and destroy asteroids by shooting them into smaller and + smaller pieces while trying to avoid being smashed or shot by UFOs. + . + "Vectoroids" is an SDL game based on the source for + "Agendaroids," an X-Window game written for the Agenda VR3 Linux-based PDA + written by the same author. \ No newline at end of file --- vectoroids-1.1.0.orig/debian/menu +++ vectoroids-1.1.0/debian/menu @@ -0,0 +1,6 @@ +?package(vectoroids):\ + needs="x11" \ + section="Games/Arcade" \ + title="vectoroids" \ + command="/usr/games/vectoroids --fullscreen" \ + icon="/usr/share/pixmaps/vectoroids-icon.xpm" --- vectoroids-1.1.0.orig/debian/rules +++ vectoroids-1.1.0/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +installdoc = install -g root -o root -m 644 + +TARGET=vectoroids + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=4 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + patch -p0 < debian/patches/001_buffer-overflow.patch + $(MAKE) DATA_PREFIX=$(DESTDIR)/usr/share/games/$(TARGET)/ + patch -R -p0 < debian/patches/001_buffer-overflow.patch + #/usr/bin/docbook-to-man debian/vectoroids.sgml > vectoroids.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + # remove .xvpics directory + -rm -rf data/images/.xvpics + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/vectoroids. + $(MAKE) install \ + DESTDIR=$(CURDIR)/debian/$(TARGET) \ + BIN_PREFIX=$(CURDIR)/debian/$(TARGET)/usr/games/ \ + MAN_PREFIX=$(CURDIR)/debian/$(TARGET)/usr/share/ \ + DATA_PREFIX=$(CURDIR)/debian/$(TARGET)/usr/share/games/$(TARGET)/ + + $(installdoc) debian/$(TARGET)-icon.xpm \ + debian/$(TARGET)/usr/share/pixmaps/ + $(installdoc) debian/$(TARGET).desktop \ + debian/$(TARGET)/usr/share/applications + # where does this dir come from? + -rm -rf debian/$(TARGET)/usr/share/games/$(TARGET)/images/.xvpics + +# 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_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs CHANGES.txt + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- vectoroids-1.1.0.orig/debian/patches/001_buffer-overflow.patch +++ vectoroids-1.1.0/debian/patches/001_buffer-overflow.patch @@ -0,0 +1,56 @@ +Package: vectoroids +Version: 1.1.0-1 +Severity: normal +Tags: upstream patch + + + +Hi, + + Whilst performing a minimal source code audit of vectoroids I + discovered that it contains a buffer overflow condition - because + it doesn't test the length of one of the environmental variables + it uses. + + Thankfully this game isn't installed setuid/setgid - or this + would be security issue. + + The patch below closes the hole. + +Steve +--- + +-- System Information: +Debian Release: testing/unstable +Architecture: i386 +Kernel: Linux hell.my.flat 2.4.21 #1 Fri Jun 13 21:42:54 BST 2003 i686 +Locale: LANG=C, LC_CTYPE=C + +Versions of packages vectoroids depends on: +ii libc6 2.3.1-17 GNU C Library: Shared libraries an +ii libsdl-image1.2 1.2.3-1 image loading library for Simple D +ii libsdl-mixer1.2 1.2.5-2 mixer library for Simple DirectMed +ii libsdl1.2debian 1.2.5-8 Simple DirectMedia Layer + +-- no debconf information + + +--- vectoroids.c-orig 2003-07-28 21:44:22.000000000 +0100 ++++ vectoroids.c 2003-07-28 21:45:03.000000000 +0100 +@@ -596,8 +596,12 @@ + #ifndef _WIN32 + /* snprintf(statefile, sizeof(statefile), "%s/.vectoroids-state", + getenv("HOME")); */ +- sprintf(statefile, "%s/.vectoroids-state", +- getenv("HOME")); ++ if (getenv("HOME") != NULL ) ++ { ++ memset(statefile, '\0', sizeof(statefile)); ++ snprintf(statefile,sizeof(statefile)-1, "%s/.vectoroids-state", ++ getenv("HOME")); ++ } + #else + sprintf(statefile, "vectoroids-state.dat"); + #endif + + --- vectoroids-1.1.0.orig/debian/watch +++ vectoroids-1.1.0/debian/watch @@ -0,0 +1,7 @@ +# format version number, currently 2; this line is compulsory! +version=2 + +# Site Directory Pattern Version Script +#ftp://ftp.sonic.net/pub/users/nbs/unix/x/vectoroids/src/vectoroids-([\d\.]+)\.tar\.gz debian uupdate + +ftp://ftp.billsgames.com/unix/x/vectoroids/src/vectoroids-([\d\.]+)\.tar\.gz debian uupdate \ No newline at end of file --- vectoroids-1.1.0.orig/debian/changelog +++ vectoroids-1.1.0/debian/changelog @@ -0,0 +1,89 @@ +vectoroids (1.1.0-7) unstable; urgency=low + + * include .desktop file from Cliff Cunnington (closes: #405806) + * updated Standards-Version to 3.7.2 (no changes) + + -- Christian T. Steigies Sat, 6 Jan 2007 18:32:27 +0100 + +vectoroids (1.1.0-6) unstable; urgency=low + + * updated watch file + * updated Standards-Version to 3.7.0 (no changes) + * use current debhelper + + -- Christian T. Steigies Thu, 4 May 2006 06:51:04 +0000 + +vectoroids (1.1.0-5) unstable; urgency=low + + * use TARGET in rules + * dh_compat=4 + * install menu icon to /usr/share/pixmaps + * updated Standards-Version to 3.6.1.0 (no changes) + * copyright is with the author + + -- Christian T. Steigies Sun, 13 Mar 2005 16:28:58 +0100 + +vectoroids (1.1.0-4) unstable; urgency=low + + * updated debian/watch file for new location of upstream source + + -- Christian T. Steigies Fri, 31 Oct 2003 09:36:48 -0500 + +vectoroids (1.1.0-3) unstable; urgency=low + + * remove .xvpics directory in clean target + + -- Christian T. Steigies Fri, 1 Aug 2003 20:23:24 -0400 + +vectoroids (1.1.0-2) unstable; urgency=low + + * apply patch from Steve Kemp to fix buffer overflow (closes: #203255) + + -- Christian T. Steigies Mon, 28 Jul 2003 23:51:15 -0400 + +vectoroids (1.1.0-1) unstable; urgency=low + + * New upstream release + + -- Christian T. Steigies Mon, 4 Nov 2002 09:54:18 -0500 + +vectoroids (1.0.9-1) unstable; urgency=low + + * new upstream version + + -- Christian T. Steigies Thu, 30 May 2002 00:03:09 -0400 + +vectoroids (1.0.8-1) unstable; urgency=low + + * new upstream version + + -- Christian T. Steigies Sun, 14 Apr 2002 18:34:38 -0400 + +vectoroids (1.0.7-2) unstable; urgency=low + + * improve description (closes: #129138) + * versioned Build-Depends for SDL libraries + + -- Christian T. Steigies Mon, 14 Jan 2002 23:13:42 -0500 + +vectoroids (1.0.7-1) unstable; urgency=low + + * New upstream version + * Real initial upload (closes: #127557). + + -- Christian T. Steigies Thu, 3 Jan 2002 21:18:48 -0500 + +vectoroids (1.0.6-1) unstable; urgency=low + + * New upstream version + * Initial upload. + + -- Christian T. Steigies Wed, 2 Jan 2002 19:58:09 -0500 + +vectoroids (1.0.5-1) unstable; urgency=low + + * Initial Release. + + -- Christian T. Steigies Wed, 5 Dec 2001 23:01:48 -0500 + + --- vectoroids-1.1.0.orig/debian/dirs +++ vectoroids-1.1.0/debian/dirs @@ -0,0 +1,3 @@ +usr/games +usr/share/pixmaps +usr/share/applications \ No newline at end of file --- vectoroids-1.1.0.orig/debian/copyright +++ vectoroids-1.1.0/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Christian T. Steigies on +Wed, 5 Dec 2001 23:01:48 -0500. + +It was downloaded from http://www.newbreedsoftware.com/vectoroids/ + +Upstream Author and Copyright: Bill Kendrick + +Vectoriods is distributed under the GNU GENERAL PUBLIC LICENSE. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License is found in /usr/share/common-licenses/GPL'. --- vectoroids-1.1.0.orig/debian/docs +++ vectoroids-1.1.0/debian/docs @@ -0,0 +1 @@ +README.txt --- vectoroids-1.1.0.orig/debian/vectoroids-icon.xpm +++ vectoroids-1.1.0/debian/vectoroids-icon.xpm @@ -0,0 +1,49 @@ +/* XPM */ +static char *magick[] = { +/* columns rows colors chars-per-pixel */ +"32 32 11 1", +" c black", +". c #191919", +"X c gray20", +"o c #00007f", +"O c #4c4c4c", +"+ c #666667", +"@ c gray50", +"# c blue", +"$ c gray60", +"% c #b2b2b2", +"& c None", +/* pixels */ +"&&&& &&& &&&&&&&&&&&&&& &&&&&&&&", +"&& &&XOX&&&&&&&&&&& XO& &&&&&", +"&& &+@X$O& &&&&& &.+++&&&&&&&&", +"&&& @ &.+&.&&&&&&&&+@O X+++. &", +"& &+O& .+& &&&&&..+@ &&+OOX&&&&", +"& &@. @O& &&&& @++ && &&X$XXX.", +"& &X@&&+&&&&&&&.+&&&&&&& &X$++X", +"&& &.+++ &&&&& XO &&&&&& &. O.", +"&&& &. &&&&&&& &XX& &&&&&& & O.", +"&&&&&&&&&&&&&&& +O& &&&&&& OO&", +"&&&&&&&&&&&&&& &.@. &&&&&& &XO ", +"&&&&&&&&&&&&&& &XO& &&&&& .+@X&", +"&&&&&&&&&& .&& &.$.&.&&&&&&&+ &", +"&&&&&&&&& &&&&&.&XO& &&&.XXO+& &", +"&&&&&&&& &o#&&& &OX& &.@OXX& &", +"&&&&&&& X$$ && &.$.&&& .O&&&&&&", +"&&&&&&& &#o@.&&& O++X &.+ &&&", +"&&&&&& &O$X#.&&&&&&&O@+XOX &&&&", +"&&&&& &O$o&@.&&&&& & XOX& &&&&&", +"&&&& &#.&.#.&&&&&&& &&&& &&&&&&", +"&&& @$& &#.&&&&&&&& &&&&&&&", +"&&&..##.. &$ &&&&&&&&&&&. &&&&&", +"&& &o@. &#.&&&&&&&&& &&&&&&&&&", +"&&& %o &&.&$.&&&&&&&& &.++X& &&&", +" .#$&&.o&&#.&&&&&&& & ++.@. &&", +".&+#&oo$$o @.&&&&&& $.&&&+.&&&", +" X$+$#o+o@&$.&&&&&& &O+ &O &&&", +"&o#+o.&&o$.@ &&&&&& &XX & O$ &&&", +"&& &&& . o@#.&&&&&&& O@.X$.& &&", +"&&& & X#% &&&&&&&&&& OO.& &&&", +"&&&&&&&& &#$ &&&&&&&&& & .& &&&&", +"&&&&&&&& ..&&&&&&&&&&&&&& &&&&&" +};