--- xgalaga-2.1.0-1.orig/xgal.sndsrv.linux.c
+++ xgalaga-2.1.0-1/xgal.sndsrv.linux.c
@@ -92,7 +92,7 @@
   int mixer;
 
 /*  dsp = open(dspdev, O_RDWR | O_NONBLOCK); */
-  dsp = open(dspdev,  O_WRONLY | O_NONBLOCK);
+  dsp = open(dspdev, O_RDWR);
    if (dsp < 0)
   {
     fprintf (stderr, "xgal.sndsrv: Couldn't open DSP %s\n",dspdev);
--- xgalaga-2.1.0-1.orig/debian/watch
+++ xgalaga-2.1.0-1/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://qa.debian.org/watch/sf.php/xgalaga/ xgalaga-(.*).tar.gz
--- xgalaga-2.1.0-1.orig/debian/rules
+++ xgalaga-2.1.0-1/debian/rules
@@ -0,0 +1,59 @@
+#!/usr/bin/make -f
+
+export CFLAGS=-O2 -g -DXF86VIDMODE
+export LDFLAGS=-lXxf86vm
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	ln -sf /usr/share/misc/config.sub
+	ln -sf /usr/share/misc/config.guess
+	./configure \
+		--prefix=/usr/share/games/xgalaga \
+		--exec-prefix=/usr/games
+	$(MAKE)
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
+	dh_clean xgal.sndsrv.oss config.k.bak config.sub config.guess
+
+binary-indep: build
+
+binary-arch: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs var/games usr/lib/games/xgalaga usr/games usr/share/man/man6
+	$(MAKE) DESTDIR=`pwd`/debian/xgalaga install
+	# move the sound-server binary out of usr/share
+	mv debian/xgalaga/usr/share/games/xgalaga/xgal.sndsrv.oss \
+		debian/xgalaga/usr/lib/games/xgalaga
+	dh_link usr/lib/games/xgalaga/xgal.sndsrv.oss \
+		usr/share/games/xgalaga/xgal.sndsrv.oss
+	dh_install xgalaga-icon.xpm usr/share/pixmaps/
+	dh_install debian/xgalaga.desktop usr/share/applications
+	dh_install debian/xgalaga-hyperspace.desktop usr/share/applications
+
+	dh_installman xgalaga.6x
+	dh_link usr/share/man/man6/xgalaga.6x usr/share/man/man6/xgalaga-hyperspace.6x
+	dh_installdocs README* libsprite/README.libsprite
+	dh_installexamples
+	dh_installmenu
+	dh_installchangelogs CHANGES
+	dh_strip
+	dh_compress
+	chmod 644 debian/xgalaga/usr/share/games/xgalaga/levels/* \
+		debian/xgalaga/usr/share/games/xgalaga/sounds/*
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- xgalaga-2.1.0-1.orig/debian/postrm
+++ xgalaga-2.1.0-1/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+OLDSCOREFILE=/var/games/xgalaga_scores
+
+# Remove old high score file on purge.
+if [ "$1" = "purge" ]; then
+	rm -f $OLDSCOREFILE
+fi
+
+#DEBHELPER#
--- xgalaga-2.1.0-1.orig/debian/changelog
+++ xgalaga-2.1.0-1/debian/changelog
@@ -0,0 +1,462 @@
+xgalaga (2.1.0-1-1ubuntu1) hardy; urgency=low
+
+  * Merge from Debian unstable.  Remaining Ubuntu changes:
+    - Added .desktop files
+    - Modify Maintainer value to match Debian-Maintainer-Field Spec
+
+ -- Emmet Hikory <persia@ubuntu.com>  Thu, 14 Feb 2008 01:04:55 +0900
+
+xgalaga (2.1.0-1-1) unstable; urgency=low
+
+  * New upstream release!
+    - Includes all patches made to the Debian package over the past ten years.
+    - Fixes sound disabling key. Closes: #149743
+    - Check return code when writing to /dev/dsp, which fixes problems when
+      the sound device is not available. Closes: #60266
+    - Limit -level to playable levels. Closes: #399987
+  * Added a Homepage field.
+  * Remove README.Debian, no longer relevant.
+  * Added a watch file.
+  * Updated the man page, removed undocumented options.
+  * Revert upstream's addition of O_NONBLOCK when opening /dev/dsp, breaks
+    sound in my tests.
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 08 Feb 2008 18:47:45 -0500
+
+xgalaga (2.0.34-44ubuntu1) gutsy; urgency=low
+
+  * Merge from Debian unstable. Remaining Ubuntu changes:
+    - Added .desktop files, updated deleting encoding field and
+      Application category in Categories, both now deprecated to
+      validate with the latest desktop-file-validate.
+    - Modify Maintainer value to match Debian-Maintainer-Field Spec
+
+ -- Andrea Veri <bluekuja@ubuntu.com>  Mon, 09 Jul 2007 11:38:23 +0200
+
+xgalaga (2.0.34-44) unstable; urgency=low
+
+  * Update menu file for new policy and de-hardcode paths.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 08 Jul 2007 16:47:29 -0400
+
+xgalaga (2.0.34-43) unstable; urgency=low
+
+  * Take config.sub and config.guess from autotools-dev.
+  * kFreeBSD porting. Closes: #415664
+  * Create a xgal.sndsrv.oss that will work on linux and, presumably, FreeBSD
+    (untested). The source file is left at xgal.sndsrv.linux.c since renaming
+    source files in a Debian diff is too ugly.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 14 May 2007 18:29:49 -0400
+
+xgalaga (2.0.34-42) unstable; urgency=low
+
+  * Fix formatting of --help. Closes: #399985
+
+ -- Joey Hess <joeyh@debian.org>  Thu,  8 Feb 2007 18:31:16 -0500
+
+xgalaga (2.0.34-41ubuntu1) feisty; urgency=low
+
+  * Merge from Debian unstable, remaining Ubuntu changes:
+    - debian/rules: install desktop file 
+
+ -- Richard A. Johnson <nixternal@ubuntu.com>  Thu, 23 Nov 2006 11:32:00 -0600
+
+xgalaga (2.0.34-41) unstable; urgency=low
+
+  * No change upload to get buildds to rebuild it now that
+    linux-kernel-headers is fixed. Closes: #389324
+
+ -- Joey Hess <joeyh@debian.org>  Tue,  3 Oct 2006 15:34:13 -0400
+
+xgalaga (2.0.34-40) unstable; urgency=low
+
+  * Fix a fencepost error in gecos name retreival code spotted by
+    Thue Janus Kristensen. Closes: #386718
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  9 Sep 2006 17:54:15 -0400
+
+xgalaga (2.0.34-39) unstable; urgency=low
+
+  * Revert last change, this was a linux-kernel-headers bug.
+
+ -- Joey Hess <joeyh@debian.org>  Thu,  7 Sep 2006 21:50:19 -0400
+
+xgalaga (2.0.34-38) unstable; urgency=low
+
+  * Include linux/types.h in linux-joystick.c to avoid a FTBFS when including
+    linux/joystick.h with the latest gcc.
+
+ -- Joey Hess <joeyh@debian.org>  Thu,  7 Sep 2006 21:35:49 -0400
+
+xgalaga (2.0.34-37) unstable; urgency=low
+
+  * Patch from Hans de Goede to make window size configurable at run time.
+    This includes fixes for the behavior in #369016 when running at
+    nonstandard window sizes, it also sets the default window size to 468x586
+    again.
+  * Finally removed the old xgal compatability symlink to xgalaga.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 31 May 2006 19:38:58 -0400
+
+xgalaga (2.0.34-36) unstable; urgency=low
+
+  * Set window size back to 400x500 which makes fullscreen not quite that but
+    avoids gameplay and display issues from changing the size. Closes: #369016
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 26 May 2006 16:31:50 -0400
+
+xgalaga (2.0.34-35) unstable; urgency=low
+
+  * Patch from Hans de Goede <j.w.r.degoede@hhs.nl> of Fedora Extras to remove
+    all the build warnings.
+  * Patch from Hans de Goede to add fullscreen support. Note that full screen
+    mode is enabled by default.
+  * Update man page to document fullscreen support.
+  * Moved a lot of stuff to /usr/share.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 24 May 2006 18:13:41 -0400
+
+xgalaga (2.0.34-34) unstable; urgency=low
+
+  * Fix FTBFS due to xorg transition causing $x_libraries not to be set.
+    Closes: #365160
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 28 Apr 2006 13:42:47 -0400
+
+xgalaga (2.0.34-33) unstable; urgency=low
+
+  * Minor improvement to man page. Closes: #349647 
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 24 Jan 2006 13:03:39 -0500
+
+xgalaga (2.0.34-32) unstable; urgency=low
+
+  * Debhelper v5.
+  * Move away from xlibs-dev.
+  * Current policy.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 30 Nov 2005 20:35:07 -0500
+
+xgalaga (2.0.34-31) unstable; urgency=low
+
+  * Build with -O2 not -O3 so it's debuggable.
+  * Add NO_GLOBAL_SCORES define that rips out all support for global score
+    file. The old global score file is not deleted until xgalaga is purged,
+    but it will not be used anymore.
+  * Remove insecure sgid bit. Closes: #319686
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 23 Jul 2005 20:18:10 -0400
+
+xgalaga (2.0.34-30) unstable; urgency=low
+
+  * Patch from Andreas Jochens to support building with gcc 4.
+    Closes: #300374
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 19 Mar 2005 11:47:18 -0500
+
+xgalaga (2.0.34-29) unstable; urgency=low
+
+  * Add support for building a xgalaga-hyperspace binary,
+    based on a patch by Paul Telford. Closes: #280975
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 12 Nov 2004 18:02:02 -0500
+
+xgalaga (2.0.34-28) unstable; urgency=low
+
+  * Fix non-POSIX chown call in postinst. Closes: #236524
+  * And one in the rules file.
+  * Quote all strings in menu file.
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  6 Mar 2004 12:44:45 -0900
+
+xgalaga (2.0.34-27) unstable; urgency=low
+
+  * Make the sound server deal with any buffer size the sound card returns.
+    Thanks to Chris Capoccia for helping to track this down. See #196979,
+    which is not all fixed, since larger buffer sizes make xgalagas sound
+    effects lose sync.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 15 Jun 2003 19:09:43 -0400
+
+xgalaga (2.0.34-26) unstable; urgency=low
+
+  * Joystick patch fix for when two buttons are pressed and one released.
+
+ -- Joey Hess <joeyh@debian.org>  Fri,  6 Jun 2003 16:24:14 -0400
+
+xgalaga (2.0.34-25) unstable; urgency=low
+
+  * Joystick support patch from Wouter Verhelst <wouter@debian.org>, also
+    sent upstream. Closes: #190241
+  * Add README.Debian with info about the joystick patch. Also update man
+    page.
+  * Fixed icon to use Debian icon color map.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 24 Apr 2003 12:28:24 -0400
+
+xgalaga (2.0.34-24) unstable; urgency=low
+
+  * Updated config.sub and config.guess so they know about
+    parisc64-unknown-linux-gnu host system type. Closes: #174786
+
+ -- Joey Hess <joeyh@debian.org>  Mon,  3 Feb 2003 14:06:53 -0500
+
+xgalaga (2.0.34-23) unstable; urgency=medium
+
+  * More paranioa: When writing the ~/.xgalscores, first drop the games gid
+    so the program opens the file with only the perms of the user who ran it,
+    to protect against numerous attacks (like setting HOME, or using a 
+    symlink..) that let the caller trick xgalaga into overwriting any file
+    writable by group games.
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 29 Dec 2002 21:25:35 -0500
+
+xgalaga (2.0.34-22) unstable; urgency=low
+
+  * Passing xgalaga a huge HOME variable could crash it. Patch from Steve Kemp
+    to make it use snprintf. Closes: #174624
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 29 Dec 2002 12:29:56 -0500
+
+xgalaga (2.0.34-21) unstable; urgency=low
+
+  * If a huge initial level was given, read_level() would recurse backwards
+    looking for a real level. After a few hundred recusions, it would overflow
+    the stack of course. I don't think this is exploitable, but I have changed
+    it to use a loop looking backward for the level so there is no stack
+    overflow. It will still take a _very_ long time to start from level
+    11111111111 or so. Closes: #154291
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 25 Jul 2002 17:50:53 -0400
+
+xgalaga (2.0.34-20) unstable; urgency=low
+
+  * Debhelper v4.
+  * Fixed man page section.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 13 Jun 2002 17:25:54 -0400
+
+xgalaga (2.0.34-19) unstable; urgency=low
+
+  * make k a signed char in xgal.sndsrv.linux.c; chars do not default to
+    signed on all arches.
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 28 Dec 2001 23:07:07 -0500
+
+xgalaga (2.0.34-18) unstable; urgency=low
+
+  * Makefile.in: if there is no sound server, don't try to install one.
+    For the Hurd. Closes: #107995
+
+ -- Joey Hess <joeyh@debian.org>  Wed,  8 Aug 2001 15:28:25 -0400
+
+xgalaga (2.0.34-17) unstable; urgency=low
+
+  * printf is a macro in gcc 3.0, which broke an internally #ifdef'd printf
+    (sigh). Patched.
+  * Updated config.* files for PARISC, Closes: #97379
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 14 May 2001 15:36:05 -0400
+
+xgalaga (2.0.34-16) unstable; urgency=low
+
+  * Fixed three bugs relating to pausing the program, patch from
+    Rune Broberg <mihtjel@myplace.dk>, Closes: #89254
+    Also sent upstream.
+  * (This upload slightly delayed by accident.)
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 11 Mar 2001 15:21:18 -0800
+
+xgalaga (2.0.34-15) unstable; urgency=low
+
+  * No changes, Closes: #92689 (which I long ago fixed in CVS, but didn't
+    consider RC..)
+
+ -- Joey Hess <joeyh@debian.org>  Tue,  3 Apr 2001 13:30:03 -0700
+
+xgalaga (2.0.34-14) unstable; urgency=low
+
+  * statoverride transition
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 10 Jan 2001 15:09:20 -0800
+
+xgalaga (2.0.34-13) unstable; urgency=low
+
+  * Added a menu icon, Closes: #75767
+  * The icon is by Robert Cleaver Ancell <neutronium@clear.net.nz>, and is GPL.
+
+ -- Joey Hess <joeyh@debian.org>  Fri,  5 Jan 2001 17:38:18 -0800
+
+xgalaga (2.0.34-12) unstable; urgency=low
+
+  * Made -nosound mode not try to open the sound device. Closes: #78734
+    Fix sent upstream.
+
+ -- Joey Hess <joeyh@debian.org>  Thu,  4 Jan 2001 16:08:40 -0800
+
+xgalaga (2.0.34-11) unstable; urgency=low
+
+  * Updated to fhs /var/games.
+  * Remove score file on purge.
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  5 Nov 2000 23:05:39 -0800
+
+xgalaga (2.0.34-10) unstable; urgency=low
+
+  * Build deps.
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  4 Dec 1999 18:24:58 -0800
+
+xgalaga (2.0.34-9) unstable; urgency=low
+
+  * README, debian/copyright, title.c: Home page change, Closes: #51569
+  * debian/changelog, debian/control: removed 'master'
+  * libsprite/data.c, libsprite/data.h, libsprite/defs.h, libsprite/init.c:
+    Patch from Kevin Ryde <user42@zip.com.au> to fix the numlock problem.
+    Closes: #50903
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 29 Nov 1999 15:03:32 -0800
+
+xgalaga (2.0.34-8) unstable; urgency=low
+
+  * Patch from Kevin Ryde <user42@zip.com.au>, to improve smoothness and
+    speed in xgalaga, especially on slower video cards.
+
+ -- Joey Hess <joeyh@debian.org>  Tue,  5 Oct 1999 12:34:03 -0700
+
+xgalaga (2.0.34-7) unstable; urgency=low
+
+  * FHS
+
+ -- Joey Hess <joeyh@debian.org>  Mon,  6 Sep 1999 18:41:48 -0700
+
+xgalaga (2.0.34-6) unstable; urgency=low
+
+  * Modified the sound server to just exit if there is no sound support.
+    xgalaga seems to handle this ok now, without crashing as it used to. The
+    sound server was sleeping and blocking the SIGTERM signal that was supposed
+    to kill it, resulting in it not quitting when the game quit. (#37165)
+
+ -- Joey Hess <joeyh@debian.org>  Tue,  4 May 1999 16:26:32 -0700
+
+xgalaga (2.0.34-5) unstable; urgency=low
+
+  * Actually xgalaga doesn't accept -f at all so removed it from man page.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 28 Dec 1998 19:42:18 -0800
+
+xgalaga (2.0.34-4) unstable; urgency=low
+
+  * xgal.6x: no they arn't fishes, they are enemy spaceships. (#31203)
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 27 Dec 1998 23:20:57 -0500
+
+xgalaga (2.0.34-3) unstable; urgency=low
+
+  * glibc 2.1 strdup fix. (#29542).
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 16 Nov 1998 12:12:07 -0800
+
+xgalaga (2.0.34-2) unstable; urgency=low
+
+  * Rebuilt with latest debhelper to change how sgid binary is registered.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 27 Oct 1998 22:29:42 -0800
+
+xgalaga (2.0.34-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 11 May 1998 08:16:08 -0700
+
+xgalaga (2.0-1) unstable; urgency=low
+
+  * New upstream release.
+    - fixes bug #11296, now works on systems w/o sound support.
+  * Covered by the GPL now, it is now free!
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 30 Apr 1998 00:32:39 -0700
+
+xgalaga (1.6c-11) unstable; urgency=low
+
+  * Moved xgal.sndsrv.linux to /usr/lib/games/xgalaga/, so I don't need to
+    write a man page for it.
+  * Moved xgalaga to /usr/games, and it's man page to /usr/man/man6.
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 21 Feb 1998 23:13:30 -0800
+
+xgalaga (1.6c-10) unstable; urgency=low
+
+  * Rebuilt with debhelper 0.60 to fix mode 444 files.
+  * Updated standards-version.
+
+ -- Joey Hess <joeyh@debian.org>  Mon,  9 Feb 1998 13:08:56 -0800
+
+xgalaga (1.6c-9) unstable; urgency=low
+
+  * Use debhelper.
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  7 Feb 1998 20:26:30 -0800
+
+xgalaga (1.6c-8) unstable; urgency=low
+
+  * Rebuilt to use xpm4g (#12942).
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 14 Sep 1997 20:12:17 -0400
+
+xgalaga (1.6c-7) unstable; urgency=low
+
+  * New maintainer.
+  * Changed it to use my generic debian/rules file.
+  * Changed the description.
+  * Updated url to home page in copyright file, and trimmed out some other
+    non-copyright info from that file (same info was duplicated in the 
+    README). Added libsprite copyright info. Updated author's mailing
+    address.
+  * Got rid of shlibs.local.
+  * Added a menu file.
+
+ -- Joey Hess <joeyh@debian.org>  Tue,  9 Sep 1997 15:31:17 -0400
+
+xgalaga (1.6c-6) non-free; urgency=low
+
+  * Rebuilt with libc6.
+  * Orphaned the package.
+  * Cosmetic change (fix bug #9675).
+
+ -- Vincent Renardias <vincent@waw.com>  Fri, 9 May 1997 14:41:58 +0200
+
+xgalaga (1.6c-5) non-free; urgency=low
+
+  * Fixed problem with soundfiles (Bug #6991).
+  * Removed empty directory /var/lib/games (Bug #6992).
+  * Changed some src code to get rid of compilation warnings.
+
+ -- Vincent Renardias <vincent@waw.com>  Sat, 1 Feb 1997 18:01:05 +0100
+
+xgalaga (1.6c-4) non-free; urgency=low
+
+  * Wrote manpage (Corrects Bug #5593)
+
+ -- Vincent Renardias <vincent@waw.com>  Tue, 17 Dec 1996 23:19:13 +0100
+
+xgalaga (1.6c-3) non-free; urgency=low
+
+  * Changed location and mode of scorefile (Bug #5876)
+
+ -- Vincent Renardias <vincent@waw.com>  Tue, 10 Dec 1996 23:33:33 +0100
+
+xgalaga (1.6c-2) non-free; urgency=low
+
+  * Maintainer changed
+  * No man page: added link to undocumented.7
+  * Tuned compile options
+
+ -- Vincent Renardias <vincent@waw.com>  Sat, 19 Oct 1996 04:49:33 +0200
+
+xgalaga (1.6c-1) non-free; urgency=low
+
+  * Initial Release
+
+ -- Christoph Lameter <clameter@waterf.org>  Thu, 01 Sep 1996 15:37:25 +0100
--- xgalaga-2.1.0-1.orig/debian/control
+++ xgalaga-2.1.0-1/debian/control
@@ -0,0 +1,18 @@
+Source: xgalaga
+Section: games
+Priority: optional
+Build-Depends: debhelper (>= 5), libx11-dev, libxmu-dev, libxpm-dev, x-dev, dpkg-dev (>= 1.9.0), libxxf86vm-dev, libxxf86dga-dev, autotools-dev
+Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
+XSBC-Original-Maintainer: Joey Hess <joeyh@debian.org>
+Standards-Version: 3.7.3
+Homepage: http://sourceforge.net/projects/xgalaga/
+Vcs-Git: git://git.kitenet.net/joey/packages/xgalaga
+
+Package: xgalaga
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: suidmanager (<< 0.50)
+Description: X version of the famous Galaga game
+ A clone of the classic game Galaga for the X Window System. 
+ Xgalaga is a space-invader like game with additional features to produce
+ a more interesting game.
--- xgalaga-2.1.0-1.orig/debian/xgalaga.desktop
+++ xgalaga-2.1.0-1/debian/xgalaga.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=XGalaga
+Comment=Play Galaga Game
+Exec=xgalaga
+Icon=xgalaga-icon
+Terminal=false
+Type=Application
+Categories=Game;
--- xgalaga-2.1.0-1.orig/debian/compat
+++ xgalaga-2.1.0-1/debian/compat
@@ -0,0 +1 @@
+5
--- xgalaga-2.1.0-1.orig/debian/copyright
+++ xgalaga-2.1.0-1/debian/copyright
@@ -0,0 +1,21 @@
+This is a Debian prepackaged version of the xgalaga video game.
+
+The source to this package can be found on the xgalaga home page, 
+http://rumsey.org/xgal.html, or at ftp://ftp.netcom.com/pub/og/ogre/games/
+
+Xgalaga is Copyright (c) 1995 Joe Rumsey <mrogre@mediaone.net>
+
+Xgalaga is licensed under the GNU Public License GPL. On Debian systems the
+complete text of the GPL is in /usr/share/common-licenses/GPL
+ 
+Xgalaga contains the libsprite library, with the following copyright:
+  
+/*
+        Copyright 1989          Kevin P. Smith
+                                Scott Silvey
+
+Permission to use, copy, modify, and distribute this
+software and its documentation for any purpose and without
+fee is hereby granted, provided that the above copyright
+notice appear in all copies.
+*/
--- xgalaga-2.1.0-1.orig/debian/menu
+++ xgalaga-2.1.0-1/debian/menu
@@ -0,0 +1,6 @@
+?package(xgalaga):needs="x11" section="Games/Action" title="Galaga" \
+	command="xgalaga" \
+	icon="/usr/share/pixmaps/xgalaga-icon.xpm"
+?package(xgalaga):needs="x11" section="Games/Action" title="Galaga:Hyperspace" \
+	command="xgalaga-hyperspace" \
+	icon="/usr/share/pixmaps/xgalaga-icon.xpm"
--- xgalaga-2.1.0-1.orig/debian/xgalaga-hyperspace.desktop
+++ xgalaga-2.1.0-1/debian/xgalaga-hyperspace.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=XGalaga-Hyperspace
+Comment=Play Galaga Game
+Exec=xgalaga-hyperspace
+Icon=xgalaga-icon
+Terminal=false
+Type=Application
+Categories=Game;
--- xgalaga-2.1.0-1.orig/xgalaga.6x
+++ xgalaga-2.1.0-1/xgalaga.6x
@@ -0,0 +1,66 @@
+.TH XGALAGA 6x "8 February 2008" "2.1"
+.SH NAME
+xgalaga \- X11 version of the famous Galaga game
+.SH SYNOPSIS
+.B xgalaga
+[options]
+.P
+.B xgalaga-hyperspace
+[options]
+.SH INSTRUCTIONS
+.LP
+It's Galaga, you know how to play Galaga, stop bothering me.
+(Ship follows the mouse, button fires.  Auto-fire by holding it
+down, so no-one accuses me of breaking their mouse!)
+.P
+The xgalaga-hyperspace version features some new weapons and different
+gameplay.
+.SH OPTIONS
+.TP 8
+.B \-scores
+Prints out the high score file and exits
+.TP 8
+.B \-display \fIhost:dpy\fP
+Set your display
+.TP 8
+.B \-mouse
+Use mouse control (same as 'm').
+.TP 8
+.B \-keyboard
+Use keyboard control (same as 'k').
+If you have a joystick it can also be used if you select keyboard control.
+.TP 8
+.B \-nosound
+Turn sound OFF
+.TP 8
+.B \-level \fIlvl\fP
+Choose starting level (>= 1)
+.TP 8
+.B \-window
+Run in a window, not full screen. Full screen is the default.
+.TP 8
+.B \-winsize \fIwidthxheight\fP
+Set window size.
+.TP 8
+.B \-b
+Turn buffered mode off, use this if it runs too slowly.  Will cause 
+flicker, maybe lots, maybe only a little.
+.SH KEYBOARD COMMANDS
+.TP 8
+p - pauses
+.TP 8
+q - end this game
+.TP 8
+b - Toggle buffering (flicker vs. speed.)
+.TP 8
+m - Use mouse control. Note that you may switch in mid-game.
+.TP 8
+k - Use keyboard control
+.TP 8
+x - use your shields (xgalaga-hyperspace only)
+.TP 8
+alt-enter - Toggle full screen node.
+.SH AUTHORS
+Joe Rumsey, <\fIjoe@rumsey.org\fP> (Original author)
+.LP
+Vincent Renardias <\fIvincent@waw.com\fP> (man page)
--- xgalaga-2.1.0-1.orig/xgalaga-icon.xpm
+++ xgalaga-2.1.0-1/xgalaga-icon.xpm
@@ -0,0 +1,55 @@
+/* XPM */
+static char *xgalaga-icon[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 17 1",
+"  c None",
+". c #191919",
+"X c #00007F",
+"o c #7F0000",
+"O c #7F7F00",
+"+ c #4C4C4C",
+"@ c gray50",
+"# c blue",
+"$ c green",
+"% c red",
+"& c yellow",
+"* c gray60",
+"= c #B2B2B2",
+"- c gray80",
+"; c gray90",
+": c gray100",
+"> c None",
+/* pixels */
+"                 O-O            ",
+"                 %o&            ",
+"        :       &O  O           ",
+"                                ",
+"                          $     ",
+"                                ",
+"                                ",
+"  .oO  O                        ",
+"    &%OO.                       ",
+"    O;o                         ",
+"   OOo%                         ",
+"  .O  O&       .                ",
+"              .o%o.             ",
+"              oOO%o             ",
+"             .%%XOO.            ",
+"             oOo%o%o            ",
+"               o;o.             ",
+"           @   @;@   @          ",
+"          +;+ .@-@  +;+      .  ",
+"          @;@ .@;*  @;@     OO  ",
+"          @;@@ @;@.@@-@   Oo%&  ",
+"          @;@--=;===@;@   .O-O  ",
+"      %   @;=@@@-*@@=-@    %O%O ",
+"          @;@@+@-@+@@;@   &Oo   ",
+"          @;@. *-*  @-*         ",
+"          +*+  +;+  +*+         ",
+"          X#X   @   X#X         ",
+"          X#X       X#X         ",
+"          X#X       X#X         ",
+"          XXX       XXX         ",
+"                                ",
+"                                "
+};
