--- defendguin-0.0.10.orig/debian/watch +++ defendguin-0.0.10/debian/watch @@ -0,0 +1,5 @@ +# 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/defendguin/src/defendguin-([\d\.]+)\.tar\.gz debian uupdate --- defendguin-0.0.10.orig/debian/README.Debian +++ defendguin-0.0.10/debian/README.Debian @@ -0,0 +1,8 @@ +defendguin for Debian +---------------------- + +defendguin is still beta, so not all options described in the README +and/or manpage are functional (ie fullscreen, help, usage, ...). See the +README for a description of the controls, but its all very intuitive. + + -- Christian T. Steigies , Thu, 13 Apr 2000 19:24:57 +0200 --- defendguin-0.0.10.orig/debian/changelog +++ defendguin-0.0.10/debian/changelog @@ -0,0 +1,148 @@ +defendguin (0.0.10-3) unstable; urgency=low + + * added watch file + * fix lintian warnings by rebuilding and: + - installing menu icon to /usr/share/pixmaps + - quoting all strings in menu + * updated Standards-Version to 3.6.1.0 (no changes) + + -- Christian T. Steigies Sun, 13 Mar 2005 15:13:18 +0100 + +defendguin (0.0.10-2) unstable; urgency=low + + * disable sound when no audio device is available (closes: #149704) + * build-depends on latest SDL-* packages which should fix the + libvorbis problem (closes: #154704) + + -- Christian T. Steigies Sun, 29 Sep 2002 19:47:45 -0400 + +defendguin (0.0.10-1) unstable; urgency=low + + * new upstream version, includes smartbomb patch (closes: #154547) + and transparency patch (closes: #152935) + + -- Christian T. Steigies Sun, 28 Jul 2002 10:34:36 -0400 + +defendguin (0.0.9-5) unstable; urgency=low + + * smartbomb patch from Oohara Yuuma (closes:#154547) + + -- Christian T. Steigies Sat, 27 Jul 2002 23:47:17 -0400 + +defendguin (0.0.9-4) unstable; urgency=low + + * re-add debian/menu (closes: #145341) + + -- Christian T. Steigies Sun, 5 May 2002 22:22:22 -0400 + +defendguin (0.0.9-3) unstable; urgency=low + + * defendguin-data: Replaces: defendguin (<< 0.0.9-1) + + -- Christian T. Steigies Sun, 13 Jan 2002 12:04:34 -0500 + +defendguin (0.0.9-2) unstable; urgency=low + + * update description (closes: #128309) + * update Build-Depends to latest sdl packages + + -- Christian T. Steigies Tue, 8 Jan 2002 21:40:50 -0500 + +defendguin (0.0.9-1) unstable; urgency=low + + * new upstream version (bugfix which was included in previous debian + package plus Makefile change which makes packaging easier, no code + change) + * re-create rules, split data files into seperate package + * remove Build-Recommends, as long as the icon does not change, + imagemagick is not needed anymore + + -- Christian T. Steigies Sun, 6 Jan 2002 17:31:23 -0500 + +defendguin (0.0.8-3) unstable; urgency=low + + * do NOT Build-Depend on menu nor imagemagick, since these packages can + not even be installed on some architectures + * Build-Recommends imagemagick and menu, as a reminder to myself + + -- Christian T. Steigies Tue, 1 Jan 2002 11:46:44 -0500 + +defendguin (0.0.8-2) unstable; urgency=low + + * include a prebuilt icon, since imagemagick is broken + * add build-depends on menu (for cmap.xpm), in case imagemagick will work + again some time in the future + + -- Christian T. Steigies Sun, 30 Dec 2001 02:32:55 -0500 + +defendguin (0.0.8-1) unstable; urgency=low + + * new upstream version + * provides its own manpage + * remove unneeded dh_suidregister + * apply upstream patch to not load tetris.mid file + + -- Christian T. Steigies Mon, 3 Dec 2001 09:59:43 -0500 + +defendguin (0.0.6-4) unstable; urgency=low + + * Build-Depends on libsdl1.2-dev (>= 1.2.2-3.1), + libsdl-image1.2-dev(>= 1.2.0-1.1), libsdl-mixer1.2-dev (>= 1.2.0-1.1) + due to SDL overhaul + + -- Christian T. Steigies Wed, 10 Oct 2001 23:44:30 -0400 + +defendguin (0.0.6-3) unstable; urgency=low + + * build with SDL1.2 + * updated Standards-Version (it allways included Build-Depends) + * do not ship INSTALL.txt + + -- Christian T. Steigies Tue, 1 May 2001 14:25:25 -0400 + +defendguin (0.0.6-2) unstable; urgency=low + + * Add imagemagick to Build-Depends (closes: #79085) + + -- Christian T. Steigies Fri, 8 Dec 2000 21:35:43 +0100 + +defendguin (0.0.6-1) unstable; urgency=low + + * new upstream version + * build with SDL1.1 and sdlmixer1.1, joystick is now supported + * include an icon (closes: #75811) + + -- Christian T. Steigies Sun, 3 Dec 2000 16:21:05 +0100 + +defendguin (0.0.5-2) unstable; urgency=low + + * rebuild with SDL1.0 and sdl-mixer1.0 + + -- Christian T. Steigies Sat, 4 Nov 2000 01:32:16 +0100 + +defendguin (0.0.5-1) unstable; urgency=low + + * new upstream version (closes: #65174, #63264) + + -- Christian T. Steigies Sun, 18 Jun 2000 11:28:26 +0200 + +defendguin (0.0.2b-1) unstable; urgency=low + + * new upstream version + * build with SDL1.1 + + -- Christian T. Steigies Wed, 12 Apr 2000 09:02:03 +0200 + +defendguin (0.0.2-1) unstable; urgency=low + + * new upstream version + + -- Christian T. Steigies Tue, 7 Mar 2000 00:10:41 +0100 + +defendguin (0.0.1-1) unstable; urgency=low + + * Initial Release. + + -- Christian T. Steigies Thu, 10 Feb 2000 21:54:25 +0100 + + --- defendguin-0.0.10.orig/debian/control +++ defendguin-0.0.10/debian/control @@ -0,0 +1,34 @@ +Source: defendguin +Section: games +Priority: optional +Maintainer: Christian T. Steigies +Build-Depends: debhelper (>> 3.0.0), libsdl1.2-dev (>=1.2.4-1), libsdl-mixer1.2-dev (>=1.2.4-1.1), libsdl-image1.2-dev (>=1.2.2-3) +Standards-Version: 3.6.1.0 + +Package: defendguin +Architecture: any +Depends: ${shlibs:Depends}, defendguin-data +Description: defender clone with penguins + "Defendguin" is based loosely on William's classic arcade game, "Defender." + Some recognizable stars in the realm of modern operating systems should be + fairly obvious. + . + A certain monopoly-owning bad guy has been cloned hundreds of times by + an unknown alien race. They are now attacking earth, kidnapping little + penguinoids and converting them into mutants. Helping them on their way + are some other nasty alien ships, of which there are plenty... + +Package: defendguin-data +Architecture: all +Replaces: defendguin (<< 0.0.9-1) +Description: Data files for defendguin + "Defendguin" is based loosely on William's classic arcade game, "Defender." + Some recognizable stars in the realm of modern operating systems should be + fairly obvious. + . + A certain monopoly-owning bad guy has been cloned hundreds of times by + an unknown alien race. They are now attacking earth, kidnapping little + penguinoids and converting them into mutants. Helping them on their way + are some other nasty alien ships, of which there are plenty... + . + This package contains sound and image files for defendguin. --- defendguin-0.0.10.orig/debian/copyright +++ defendguin-0.0.10/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Christian T. Steigies on +Thu, 10 Feb 2000 21:54:25 +0100. + +It was downloaded from ftp.sonic.net:/pub/users/nbs/unix/x/defendguin +See also http://www.newbreedsoftware.com/ + +Upstream Author: William (Bill) Kendrick + +Copyright: + +Defendguin 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'. --- defendguin-0.0.10.orig/debian/defendguin-data.docs +++ defendguin-0.0.10/debian/defendguin-data.docs @@ -0,0 +1,4 @@ +AUTHORS.txt +README.txt +TODO.txt + --- defendguin-0.0.10.orig/debian/defendguin-data.files +++ defendguin-0.0.10/debian/defendguin-data.files @@ -0,0 +1 @@ +usr/share/games/defendguin \ No newline at end of file --- defendguin-0.0.10.orig/debian/defendguin-icon.xpm +++ defendguin-0.0.10/debian/defendguin-icon.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char *magick[] = { +/* columns rows colors chars-per-pixel */ +"32 16 16 1", +" c #191919", +". c gray20", +"X c #7f0000", +"o c #7f007f", +"O c #7f7f00", +"+ c #4c4c4c", +"@ c #666667", +"# c gray50", +"$ c red", +"% c magenta", +"& c yellow", +"* c gray60", +"= c #b2b2b2", +"- c gray80", +"; c gray90", +": c white", +/* pixels */ +":::::;::::::::;:::::::::::::::::", +":::::::;:*=:;:::::::::::::::::::", +"*;::-**+@X++ @*#;;;:;:::::::::::", +" #;:@X$oXo@@+.. ..+;::::::::::::", +"#*##o$*$$*ooX+@X+...*;:::;::::::", +"*==o**# $==$$+.++++...+=::::::::", +"*=-=$*X+o-=-;#o+.+.+.....#;:::::", +"=--==#O=*-=-=**##++..+.+. .#=:::", +"-;-*#X;:#---***####@+++.... +-:", +"--=$$@::=*-=**#*#####@@+++... .", +"-=$=O#::O#=%***####@@@@++@++....", +"*=$*&O*=&&=*#**#####@@@@++++++..", +"o$$=$**$$==**$***##$#@@@@@++....", +" XX+XoX+Xoo@$#@$@o#$o$$$$oX+++X.", +"#XoXXoXXXXXX+X. X.oXo X..XoXX +;", +";+X+@X++@++++++o.+.+.++.+...@=::" +}; --- defendguin-0.0.10.orig/debian/dirs +++ defendguin-0.0.10/debian/dirs @@ -0,0 +1,3 @@ +usr/games +usr/share/man/man6 +usr/share/pixmaps \ No newline at end of file --- defendguin-0.0.10.orig/debian/docs +++ defendguin-0.0.10/debian/docs @@ -0,0 +1,3 @@ +AUTHORS.txt +README.txt +TODO.txt --- defendguin-0.0.10.orig/debian/rules +++ defendguin-0.0.10/debian/rules @@ -0,0 +1,139 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. + +installdoc = install -g root -o root -m 644 + +TARGET = defendguin + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +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 -p1 < debian/patches/001_smartbomb.diff + patch -p1 < debian/patches/002_nosound.diff + $(MAKE) DATA_PREFIX=$(DESTDIR)/usr/share/games/$(TARGET)/ +# JOY=NO + + 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 + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/defendguin. + $(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)/ + +# unpatch after installing +# patch -R -p1 < debian/patches/001_smartbomb.diff + patch -R -p1 < debian/patches/002_nosound.diff + +# install an icon +# imagemagick is broken, include a prebuilt icon until its fixed +# cp data/images/ship/ship-right2.bmp debian/$(icon).bmp +# mogrify -format xpm -geometry 32x32 \ +# -map /usr/X11R6/include/X11/pixmaps/cmap.xpm \ +# debian/$(icon).bmp +# rm -f debian/$(icon).bmp + $(installdoc) debian/$(TARGET)-icon.xpm \ + $(CURDIR)/debian/$(TARGET)/usr/share/pixmaps/ + + dh_movefiles --sourcedir=debian/$(TARGET) +# is there a cleaner way to remove these directories from defendguin? + rm -rf $(CURDIR)/debian/$(TARGET)/usr/share/games + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i + dh_installexamples -i + dh_installmenu -i +# dh_installlogrotate -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i + dh_installcron -i +# dh_installman -i + dh_installinfo -i +# dh_undocumented -i + dh_installchangelogs CHANGES.txt -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i +# dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a +# dh_installdebconf -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -a +# dh_installlogrotate -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installmime -a +# dh_installinit -a + dh_installcron -a +# dh_installman -a + dh_installinfo -a +# dh_undocumented -a + dh_installchangelogs CHANGES.txt -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a +# dh_makeshlibs -a + dh_installdeb -a +# dh_perl -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- defendguin-0.0.10.orig/debian/menu +++ defendguin-0.0.10/debian/menu @@ -0,0 +1,6 @@ +?package(defendguin):\ + needs="x11" \ + section="Games/Arcade" \ + title="defendguin" \ + command="/usr/games/defendguin --fullscreen" \ + icon="/usr/share/pixmaps/defendguin-icon.xpm" --- defendguin-0.0.10.orig/debian/icon.sh +++ defendguin-0.0.10/debian/icon.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# create icon for debian menu system + +rm -f defendguin-icon.bmp +cp ../data/images/ship/ship-right2.bmp defendguin.bmp +mogrify -format xpm -geometry 32x32 \ + -map /usr/X11R6/include/X11/pixmaps/cmap.xpm \ + defendguin-icon.bmp +rm -f defendguin-icon.bmp --- defendguin-0.0.10.orig/debian/patches/001_smartbomb.diff +++ defendguin-0.0.10/debian/patches/001_smartbomb.diff @@ -0,0 +1,43 @@ +Package: defendguin +Version: 0.0.9-3 +Severity: normal + +A smart-bomb does not kill every alien in sight if the player is +near the right end of the map. Here is a patch: +diff -u -rN defendguin-0.0.9.unmodified/defendguin.c defendguin-0.0.9/defendguin.c +--- defendguin-0.0.9.unmodified/defendguin.c Sun Jul 28 08:33:40 2002 ++++ defendguin-0.0.9/defendguin.c Sun Jul 28 08:41:46 2002 +@@ -5352,13 +5352,19 @@ + tmp_x = aliens[player][i].x - (x[player] - + scroll[player]); + ++ while (tmp_x < 0) ++ tmp_x = tmp_x + (LAND_WIDTH * 32); + while (tmp_x >= (LAND_WIDTH * 32)) + tmp_x = tmp_x - (LAND_WIDTH * 32); + + + /* Is it visible (on screen)? */ ++ /* the width of the image of a normal alien is ++ * 32 pixel or smaller (this may kill a pod that ++ * is not in the window, but who cares) ++ */ + +- if (tmp_x >= -64 && tmp_x <= 672) ++ if (tmp_x >= -32 && tmp_x <= 672) + { + /* Kill the alien: */ + + + +-- System Information +Debian Release: 2.2 +Kernel Version: Linux grain 2.4.18 #1 Fri Jul 19 13:47:12 JST 2002 i686 unknown + +Versions of the packages defendguin depends on: +ii defendguin-dat 0.0.9-3 Data files for defendguin +ii libc6 2.2.4-7 GNU C Library: Shared libraries and Timezone +ii libsdl-mixer1. 1.2.4-1 mixer library for Simple DirectMedia Layer 1 +ii libsdl1.2debia 1.2.4-1 Simple DirectMedia Layer +ii xlibs 4.1.0-9 X Window System client libraries + --- defendguin-0.0.10.orig/debian/patches/002_nosound.diff +++ defendguin-0.0.10/debian/patches/002_nosound.diff @@ -0,0 +1,16 @@ +--- defendguin-0.0.10/defendguin.c.orig Sun Jul 28 06:04:16 2002 ++++ defendguin-0.0.10/defendguin.c Sun Sep 29 17:29:49 2002 +@@ -4316,8 +4316,11 @@ + for (i = 0; i < 4; i++) + dontblockchan[i] = 0; + +- Mix_Volume(-1, vol_effects * (MIX_MAX_VOLUME / 5)); +- Mix_VolumeMusic(vol_music * (MIX_MAX_VOLUME / 5)); ++ if (use_sound == 1) ++ { ++ Mix_Volume(-1, vol_effects * (MIX_MAX_VOLUME / 5)); ++ Mix_VolumeMusic(vol_music * (MIX_MAX_VOLUME / 5)); ++ } + #endif /* #ifndef NOSOUND */ + + --- defendguin-0.0.10.orig/create-patch +++ defendguin-0.0.10/create-patch @@ -0,0 +1,2 @@ +#!/bin/sh +diff -u defendguin.c.orig defendguin.c >>diff.diff