debian/0000755000000000000000000000000012127027024007163 5ustar debian/dodgindiamond2.60000644000000000000000000000150412125133136012134 0ustar .TH DODGINDIAMOND2 6 "March 15, 2006" .SH NAME dodgindiamond2 \- little arcade game shooter for one or two players .SH SYNOPSIS .B dodgindiamond2 .SH DESCRIPTION This manual page documents briefly the .B dodgindiamond2 command. .PP \fBdodgindiamond2\fP aims to be an old school arcade game with low resolution graphics, top-down scrolling action, energy based gameplay, and different weapons with several levels of power. .SH USAGE .IP "Player 1 (Red)" Left - Left .br Right - Right .br Up - Forward .br Down - Back .br m - Fire .br .IP "Player 2 (Blue)" Left - Left .br Right - Right .br Up - Forward .br Down - Back .br Ctrl - Fire .br .SH AUTHOR dodgindiamond2 was written by Juan J. Mart\['i]nez. .PP This manual page was written by G\[:u]rkan Seng\[:u]n , for the Debian project (but may be used by others). debian/docs0000644000000000000000000000002112125133137010030 0ustar NEWS README TODO debian/changelog0000644000000000000000000000561612125667604011061 0ustar dd2 (0.2.2-2) unstable; urgency=low * Team upload. [ Paul Wise ] * Drop use of dh_desktop since it no longer does anything. [ Markus Koschany ] * Switch to package format 3.0 (quilt). * Bump compat level to 9 and require debhelper >=9 for automatic hardening build flags. * debian/control: - Update Standards-Version to 3.9.4, no changes needed. - Drop autoconf, automake and autotools-dev from Build-Depends. Instead use dh-autoreconf to reconfigure the whole build system during build time. - Use canonical Vcs-URI. - Drop quilt from Build-Depends because package format 3.0 uses quilt by default. * Update debian/copyright to copyright format 1.0. * dodgindiamond2.desktop: Update desktop file, add Keywords and Icon key. * Add longtitle and icon entry to menu file. * Add -e flag to maintainer scripts. Do not ignore possible errors. * debian/rules: - Simplify debian/rules by using dh sequencer. - Build with hardening=+all. * Add desktop and menu icons. * Add dep3 headers to all patches. -- Markus Koschany Thu, 28 Mar 2013 23:13:12 +0100 dd2 (0.2.2-1) unstable; urgency=low [ Barry deFreese ] * New maintainer (Closes: #453751). + Debian Games Team . * Add myself to uploaders. * New upstream release. + License bump to make it LGPLv3 compatible. * Make distclean not ignore errors. * Add watch file. * Add desktop file. * Change menu section from Arcade to Action. * Move config.{sub,guess} handling to configure target. * Bump debhelper build-dep and compat to 5. * Bump Standards Version to 3.7.3. + Menu policy transition. * Add quilt patching system. + Move source changes to patches: + 001_configure.patch - Automake init dodgindiamond2 not dd2. + 01_update_readme.patch - Remove cruft from upstream README. + 02_makefile_scores.patch - Install scores file in $(DESTDIR). + 03_hiscore_file.patch - Add real users (No idea why). + 04_hiscore_patches.patch - main.c and engine.h - path for hiscore file. * Add autoconf, automake build-deps to reconfigure on build. * Fix up debian/copyright. -- Barry deFreese Thu, 13 Dec 2007 10:34:46 -0500 dd2 (0.2.1-3) unstable; urgency=low * Orphaning package, setting maintainer to the Debian QA Group. -- Ana Beatriz Guerrero Lopez Wed, 05 Dec 2007 16:08:58 +0100 dd2 (0.2.1-2) unstable; urgency=low * Fix documentation in README. (Closes: #364205) * Add keyboard controls to manual page. (Closes: #364207) * I ARE USING TEH AM_MAINTAINER_MODE!!1! http://sam.zoy.org/lectures/20050910-debian/img21.html -- Gürkan Sengün Sun, 23 Apr 2006 14:52:00 +0200 dd2 (0.2.1-1) unstable; urgency=low * Initial release. (Closes: #357415) -- Gürkan Sengün Wed, 15 Mar 2006 07:39:02 +0100 debian/manpages0000644000000000000000000000003012125133137010673 0ustar debian/dodgindiamond2.6 debian/postrm0000644000000000000000000000025212125143236010433 0ustar #!/bin/sh set -e if test "$1" = "purge"; then rm -f /var/games/dodgindiamond2/hiscore rmdir --ignore-fail-on-non-empty /var/games/dodgindiamond2 fi #DEBHELPER# debian/rules0000755000000000000000000000204312125667604010256 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ --parallel --with autoreconf override_dh_auto_configure: dh_auto_configure -- \ --enable-alternate-fire-key \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --bindir=\$${prefix}/games \ --infodir=\$${prefix}/share/info \ --datadir=\$${prefix}/share/games override_dh_install: dh_install mv $(CURDIR)/debian/dodgindiamond2/usr/games/dd2 \ $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2 find $(CURDIR)/debian/dodgindiamond2/ -name "COPYING" -exec rm -rf {} \; rm -f $(CURDIR)/debian/dodgindiamond2/usr/share/games/dodgindiamond2/dd2-hiscore rm -rf $(CURDIR)/debian/dodgindiamond2/usr/share/games/doc override_dh_fixperms: dh_fixperms -Xdodgindiamond2 chmod 2755 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2 chgrp games $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2 chgrp games $(CURDIR)/debian/dodgindiamond2/var/games/dodgindiamond2 debian/watch0000644000000000000000000000025012125133137010212 0ustar version=3 #http://www.usebox.net/jjm/dd2/releases/dd2-([\d.]+)\.tar\.gz http://www.usebox.net/jjm/dd2/ \ http://www.usebox.net/jjm/dd2/releases/dd2-([\d.]+)\.tar\.gz debian/menu0000644000000000000000000000036212125667604010067 0ustar ?package(dodgindiamond2):needs="X11" \ section="Games/Action" \ title="Dodgin' Diamond 2" \ longtitle="Dodgin' Diamond 2 - an arcade shooter game" \ icon="/usr/share/pixmaps/dodgindiamond2.xpm" \ command="/usr/games/dodgindiamond2" debian/install0000644000000000000000000000015112125667604010565 0ustar debian/dodgindiamond2.desktop usr/share/applications debian/images/* usr/share/pixmaps debian/compat0000644000000000000000000000000212125140261010356 0ustar 9 debian/dodgindiamond2.desktop0000644000000000000000000000043012125667604013451 0ustar [Desktop Entry] Version=1.0 Type=Application Name=Dodgin' Diamond 2 GenericName=Arcade Game Exec=dodgindiamond2 Icon=dodgindiamond2 Terminal=false Categories=Game;ArcadeGame; Comment=Little shoot-'em-up arcade game for one or two player Keywords=arcade;game;shooter;action;space; debian/control0000644000000000000000000000150212125140623010563 0ustar Source: dd2 Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Barry deFreese Build-Depends: dh-autoreconf, debhelper (>= 9), libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl1.2-dev Standards-Version: 3.9.4 Homepage: http://www.usebox.net/jjm/dd2/ Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/dd2/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/dd2/ Package: dodgindiamond2 Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Little shoot-'em-up arcade game for one or two players This aims to be an old school arcade game with low resolution graphics, top-down scrolling action, energy based gameplay, and different weapons with several levels of power. debian/postinst0000644000000000000000000000133112125143176010774 0ustar #!/bin/sh set -e SCOREDIR=/var/games/dodgindiamond2 case "$1" in configure) if ! dpkg-statoverride --list /usr/games/dodgindiamond2 >/dev/null; then dpkg-statoverride --update --add root games 2755 /usr/games/dodgindiamond2 fi # Fix permissions for x in hiscore; do test -f $SCOREDIR/$x || cat > $SCOREDIR/$x << EOF nobody:10:10000 gurkan:9:9058 nobody:8:8000 nobody:7:7000 moni:6:6210 nobody:5:5000 nobody:4:4000 nobody:3:3000 nobody:2:2000 nobody:1:1000 EOF chown root:games $SCOREDIR/$x chmod 0664 $SCOREDIR/$x done ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/copyright0000644000000000000000000000236612125667604011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Dodgin' Diamond 2 Source: http://www.usebox.net/jjm/dd2 Files: * Copyright: 2003-2004, Juan J. Martinez License: GPL-2+ Files: debian/* Copyright: 2006, Gürkan Sengün 2007, Barry deFreese 2013, Markus Koschany License: GPL-2+ License: GPL-2+ This program 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 program 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'. debian/source/0000755000000000000000000000000012126617663010500 5ustar debian/source/include-binaries0000644000000000000000000000004112126617663013633 0ustar debian/images/dodgindiamond2.png debian/source/format0000644000000000000000000000001412125142024011665 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000010212125133137010041 0ustar usr/games usr/share/games/dodgindiamond2 var/games/dodgindiamond2 debian/patches/0000755000000000000000000000000012126620250010611 5ustar debian/patches/04_hiscore_patches.patch0000644000000000000000000000230412125674604015312 0ustar From: Debian Games Team Date: Fri, 29 Mar 2013 00:00:21 +0100 Subject: 04_hiscore_patches --- src/engine.h | 4 ++++ src/main.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine.h b/src/engine.h index dc90f7e..2c112ae 100644 --- a/src/engine.h +++ b/src/engine.h @@ -25,6 +25,10 @@ #define DD2_DATA="./data" #endif +#ifndef DD2_SCORE +#define DD2_SCORE "/var/games/dodgindiamond2" +#endif + #include "SDL.h" #include "SDL_mixer.h" diff --git a/src/main.c b/src/main.c index fbc4820..ab310c4 100644 --- a/src/main.c +++ b/src/main.c @@ -296,7 +296,7 @@ main (int argc, char *argv[]) #endif /* read hi-scores */ - sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); + sprintf(buffer,"%s/hiscore",DD2_SCORE); if(!loadScore(buffer,hiscore)) fprintf(stderr,"unable to read hi-scores, using defaults\n"); @@ -463,7 +463,7 @@ main (int argc, char *argv[]) saveCFG(buffer,&conf); /* save hi-scores */ - sprintf(buffer,"%s/dd2-hiscore",DD2_DATA); + sprintf(buffer,"%s/hiscore",DD2_SCORE); if(!saveScore(buffer,hiscore)) fprintf(stderr,"unable to save hi-scores\ndo you have permissions to write into %s?\n" ,buffer); debian/patches/series0000644000000000000000000000016312125675034012037 0ustar 001_configure.patch 01_update_readme.patch 02_makefile_scores.patch 03_hiscore_file.patch 04_hiscore_patches.patch debian/patches/03_hiscore_file.patch0000644000000000000000000000101512125674604014577 0ustar From: Debian Games Team Date: Fri, 29 Mar 2013 00:00:21 +0100 Subject: 03_hiscore_file --- src/data/dd2-hiscore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/dd2-hiscore b/src/data/dd2-hiscore index a5b3cf8..72f52d4 100644 --- a/src/data/dd2-hiscore +++ b/src/data/dd2-hiscore @@ -1,8 +1,8 @@ nobody:10:10000 -nobody:9:9000 +gurkan:9:9000 nobody:8:8000 nobody:7:7000 -nobody:6:6000 +moni:6:6000 nobody:5:5000 nobody:4:4000 nobody:3:3000 debian/patches/001_configure.patch0000644000000000000000000000102512125674604014204 0ustar From: Debian Games Team Date: Fri, 29 Mar 2013 00:00:21 +0100 Subject: 001_configure --- configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 70fddd1..95b2fe0 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,9 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(dd2, 0.2.2) +AM_INIT_AUTOMAKE(dodgindiamond2, 0.2.2) + +AM_MAINTAINER_MODE AC_PROG_CC debian/patches/01_update_readme.patch0000644000000000000000000000535112125674604014750 0ustar From: Debian Games Team Date: Fri, 29 Mar 2013 00:00:21 +0100 Subject: 01_update_readme --- README | 46 ++++------------------------------------------ 1 file changed, 4 insertions(+), 42 deletions(-) diff --git a/README b/README index cd38464..386c2ca 100644 --- a/README +++ b/README @@ -5,35 +5,10 @@ With sound & music where available. ** Required ** -DD2 needs SDL 1.2.x and SDL_Mixer. - -You can find both needed libraries at http://www.libsdl.org/ - You can get newest version of this package at: http://www.usebox.net/jjm/dd2/ -** Install ** - -UNIX Instructions - -In the root directory of DD2 package: - -$ ./configure -$ make -$ su -$ make install -$ exit -$ dd2 - -You may read the generic INSTALL file. - -Win32 Instructions - -The game doesn't need any installation. Just unzip the -package and run dd2.exe. In case of error (eg. the game -doesn't start), check stderr.txt file in dd2.exe directory. - ** Configuration ** You can change player control, sound and graphic mode in @@ -44,15 +19,9 @@ configuration changes. ** Keyboard ** -Player 1: UP, DOWN, LEFT, RIGHT, RIGHT CONTROL +Player 1: UP, DOWN, LEFT, RIGHT, M Player 2: w, s, a, d, LEFT CONTROL -There are reports of systems with just one control key. In those -systems you should use 'm' key instead RIGHT CONTROL. To enable -this alternative fire key, configure with: - -$ ./configure --enable-alternate-fire-key - ** Joystick ** Player 1: Joystick 1 (if available) @@ -106,7 +75,7 @@ the programs does 'Segmentation Fault' at exit (UNIX). In order to use esd driver, execute in a bash alike shell: - SDL_AUDIODRIVER="esd" dd2 + SDL_AUDIODRIVER="esd" dodgindiamon2 Check the FAQ about using SDL: http://www.libsdl.org/faq.php. @@ -116,7 +85,7 @@ the programs does 'Segmentation Fault' at exit (UNIX). should use jscal (If available). Under Win32 you should follow vendor instructions. -6. When I press alt+tab while playing on fullscreen mode all the graphics +6. When I press alt+tab while playing on fullscreen mode all the graphics get corrupted when I continue playing the game (Win32). I don't have a windows system to try to fix that. I think it's something @@ -124,14 +93,7 @@ get corrupted when I continue playing the game (Win32). By now the best way to avoid this problem is to not press alt+tab! -7. The game doesn't work on MAC OS X. - - DD2 uses SDL_DOUBLEBUF and that feature is not supported on MAC OS X. - - However since version 1.2.6 SDL has experimental code that should make - it work, but I have no reports about it working. - -8. I have a problem that is not listed here! +7. I have a problem that is not listed here! Check the FAQ about using SDL: http://www.libsdl.org/faq.php. debian/patches/02_makefile_scores.patch0000644000000000000000000000116312125674604015302 0ustar From: Debian Games Team Date: Fri, 29 Mar 2013 00:00:21 +0100 Subject: 02_makefile_scores --- src/data/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/Makefile.am b/src/data/Makefile.am index 7985380..13689d7 100644 --- a/src/data/Makefile.am +++ b/src/data/Makefile.am @@ -5,5 +5,5 @@ EXTRA_DIST = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav efx4.wav efx5.wav \ efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act dd2-hiscore install-data-hook: - chmod a+rw $(pkgdatadir)/dd2-hiscore + chmod a+rw $(DESTDIR)$(pkgdatadir)/dd2-hiscore debian/images/0000755000000000000000000000000012125667604010444 5ustar debian/images/dodgindiamond2.png0000644000000000000000000000737712125667604014052 0ustar PNG  IHDR@fsBITOtEXtSoftwareShutterc IDATx흽n9F+[Ey'4ġc :TdСCM4NGh` l 0u-"X*w>vYSfB/ȀZ%VQ styk45L\5\ 4upan0?>ו{9 CsuN˵ɂ~i}˘o\&!]ܖok5Vb-<08]OJ/NJ+0j` -߅4?<Đ+*b`. `\h׏ ŋ73'.aR_BcxEQr=p({3ǁqS'Pfpi;LO UNSO/Oz "l<`axM}~۷Y0RNNSφ y< Kt6XLrY3AXnn(AYS-*P ]15J  XxbaC(GfO-*+0B ԅ^ӯq@W!kT0#c=<7_n9w0#,p%.t\p?獁#@ LJ_3|e!ʺ@2\T[Ȕu2w^ٰbc$k'b~axX90# Q>L# 0=N=XGu;{~F(..-8!F*&.@[q<XGBpɞ2iU82nJz1n{UJIc>&2 қOKwOg-?BcIFsLb0z Ua WPXE[,0jf9!B%r.4%uJs( avqԤ*y2XLg_z&>f2~^*,'.kX3ԇ-O8f=0Qu[[ =b %WSUj0~-0.4^mZUM3}4ɰ5ylp)+ bX't}=ؚaƠWKVT02h`"ӝVM,B g؂9\椫vg6Aj$T,+dM4Xf4V#v$֭keϔXl/Zf8wFB]`50B}'V`iQj!XBĊ#!*ʅrX`2ZȋY`Gj$ P10s|󴀞-.lzˊhC?/"BBXb-01p1pX`4HJ8S*.fϪ i-0#$F4 Qzd,s2%#_.tYWGp3_x j$G >T :|XkV#aF>a,I$F #FhnnnjtFI`bd5ARrFpo$\h*>Bnz8p3I6N޺Yʉ) \h,0j310jՅf5BЬF$U)j`3 …fgjPY@e--BW,̯Bx.E E?+z>h/ZF]8E>OX>7[-#R`=R`}\hOҫT~a4 /u7 f^iZ.+ wJbp`tꬤx4h~kETw&w/$ַ=#ZxXq+/Mzx' } 5pP) N=Z0񙻥ןmV7{$ksnɥ]{c zE WM-"IoyYƄ`EIp-ʹе[`ݛCJzO |sX ׯ,ni~˿^O]~ԫ?/z`xNX,i;t Wt׾]vN4;ߘZbB7pmdKc.tK,]Vw;Cpuh|R Ъy˼mBw[f:q2<\ԡ ¯WG X Jiueݡ>X޽]/7th7ޮxzfy`)I,.@@\hv'D, f1Z5zɨiZ lSc󖺒F\-z"bZ`X[VE%IbE|',-z"L\ݢ*"|!h s.t[n[)z=K')sU譊:qJbQU#TWnOzX=%*zOzhsU譊'{VY9y)ʛ\-Yv'hT'z\oϐi.t*H1T)jLr3еIENDB`debian/images/dodgindiamond2.xpm0000644000000000000000000000201312125667604014050 0ustar /* XPM */ static char * dodgindiamonds2_xpm[] = { "24 25 18 1", " c #000000", ". c #F05050", "+ c #C02000", "@ c #980000", "# c #080808", "$ c #606068", "% c #E0E8E0", "& c #808890", "* c #580000", "= c #880000", "- c #202838", "; c #404840", "> c #B0C0C0", ", c #CC33FF", "' c #FF9FF3", ") c #FF0000", "! c #FF6633", "~ c #FFCC33", " ", " ", " ", " .+ ", " ++@@ ", " +##@ ", " $ .#%+ $ ", " +& .#%+ &@ ", " @.&@ .+@+ *&+* ", " @.+$@ .##+ *$@+* ", " =.+++$ .#%+ $@@@+* ", " =++++$-#;$#-$@@@@* ", " =+++++-.&$+-@@@@@* ", " =++++.+>$@+@@@@* ", " =++==.+>$@+**@@* ", " ==&&@+&$@*;;** ", " ;&&$>$$;-;;- ,", " ;;#;####-- ,'", " $>$$;- ,'", " )!~~!) ,", " )!!) ", " )) ", " ", " ", " "};