debian/0000775000000000000000000000000012107540666007177 5ustar debian/njamicon.xpm0000664000000000000000000000264712107251574011531 0ustar /* XPM */ static char * njamicon_xpm[] = { "32 32 16 1", " c None", ". c #000100", "+ c #262510", "@ c #312E04", "# c #515024", "$ c #686305", "% c #8E881C", "& c #968D02", "* c #94925D", "= c #B1AA02", "- c #C5BC07", "; c #D5CA04", "> c #EAE012", ", c #F2EA5B", "' c #E1F27C", ") c #FBF898", "')))))))))))))))))))))))))))))))", "'..............................'", "'..............................'", "'..............................'", "'..............................'", "'..............................'", "'............+#***#+...........'", "'..........#*)))))',%#.........'", "'........+*)))))),,,,,%@.......'", "'.......+*)))),,,,,,,>>&@......'", "'.......*))),,,>>>>>>>>>&......'", "'......#))),,>>>>>>>>$>>;@.....'", "'......*)),,>>>>>>>>>;--=%.....'", "'.....+)),,>>>>>>>;;-=&&&$+....'", "'.....#,,,>>>>>>>;;-=&%%$%$....'", "'.....$,,,>>>>>>>;-=&%$$$#+....'", "'.....%,,>>>>>>>;;=&%$@+.......'", "'.....$>>>>>>>>>>;&@...........'", "'.....$>>>>>>>>>>>;-$..........'", "'.....@;>>>>>>>>>>>>;=#........'", "'......=>>>>>>>>>>>>>;;&@......'", "'......#;;;;;;>>>>>;;-==&......'", "'.......$----------==&&&$......'", "'.......+$==&===&&&&%$$#+......'", "'........+$&&&&%%%$$$$@........'", "'..........@$$$$$$$#@+.........'", "'............++@@@+............'", "'..............................'", "'..............................'", "'..............................'", "'..............................'", "''''''''''''''''''''''''''''''''"}; debian/compat0000664000000000000000000000000212107251574010372 0ustar 9 debian/njam.docs0000664000000000000000000000002112107251574010764 0ustar NEWS README TODO debian/watch0000664000000000000000000000012612107251574010224 0ustar version=3 http://njam.sourceforge.net/ .*/njam-(\d.*)-src\.(?:tgz|tar\.(?:gz|bz2|xz)) debian/njam-data.doc-base0000664000000000000000000000041112107251574012423 0ustar Document: njam Title: Debian Njam Manual Author: Milan Babuskov Abstract: This manual describes gameplay and controls of njam. Section: Games/Action Format: HTML Index: /usr/share/doc/njam/html/doc.html Files: /usr/share/doc/njam/html/*.html debian/njam.install0000664000000000000000000000013712107251574011512 0ustar debian/njam.desktop /usr/share/applications/ debian/njamicon.xpm /usr/share/pixmaps/ usr/games debian/control0000664000000000000000000000274712107540666010614 0ustar Source: njam Section: games Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Daniel Echeverry Uploaders: Markus Koschany Build-Depends: autotools-dev, debhelper (>= 9), libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-net1.2-dev, libsdl1.2-dev Homepage: http://njam.sourceforge.net Vcs-Git: git://anonscm.debian.org/collab-maint/njam.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/njam.git;a=summary Standards-Version: 3.9.4 Package: njam Architecture: any Depends: njam-data (>= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} Description: pacman-like game with multiplayer support Njam is a pacman-like game with many features, including networked multiplayer mode. It is available on many platforms. . Features: o Single and multiplayer mode (local or network) o Cooperative and competetive multiplayer modes o Customizable level skins o Many different levels o Integrated level editor o Great music and sound effects . Package: njam-data Architecture: all Depends: ${misc:Depends} Replaces: njam (<< 1.25-7) Breaks: njam (<< 1.25-7) Suggests: njam Description: pacman-like game with multiplayer support -- data files Njam is a pacman-like game with many features, including networked multiplayer mode. It is available on many platforms. . This package contains the data files for njam, including levels, skins, graphics, music and documentation. debian/source/0000775000000000000000000000000012107251574010474 5ustar debian/source/format0000664000000000000000000000001412107251574011702 0ustar 3.0 (quilt) debian/njam.desktop0000664000000000000000000000035412107251574011516 0ustar [Desktop Entry] Name=Njam Comment=pacman-like game with multiplayer support Comment[de]=Pacman-artiges Spiel mit Mehrspielerunterstützung TryExec=njam Exec=njam Icon=njamicon Terminal=false Type=Application Categories=Game;ArcadeGame; debian/njam.postrm0000664000000000000000000000035212107251574011367 0ustar #! /bin/sh set -e if [ "$1" = "purge" ] ; then # remove empty/unused scorefiles SCORE="njam-hiscore.dat" if [ -f /var/games/$SCORE ]; then rm -f /var/games/$SCORE rm -f /usr/share/games/njam/$SCORE fi fi #DEBHELPER# debian/njam.manpages0000664000000000000000000000001612107251574011633 0ustar debian/njam.6 debian/patches/0000775000000000000000000000000012107251574010623 5ustar debian/patches/changed_hiscore_name.patch0000664000000000000000000000211212107251574015745 0ustar From: Anibal Avelar Last-Update: 2013-01-04 Description: changed_hiscore_name --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3 --- a/src/njam.cpp +++ b/src/njam.cpp @@ -227,7 +227,7 @@ NjamEngine::~NjamEngine() } // format: NAME#POINTS#LEVEL# - fp = fopen("hiscore.dat", "w+"); + fp = fopen("njam-hiscore.dat", "w+"); if (fp) { for (int i=0; i<10; i++) @@ -623,7 +623,7 @@ bool NjamEngine::Init(bool Fullscreen, b LogFile("Failed to open conf file.\n"); // create default hiscore - LogFile("Creating default hiscore.\n"); + LogFile("Creating default njam-hiscore.\n"); char DefaultNames[10][10] = { "MILAN", "TANJA", "DULIO", "DJORDJE", @@ -639,10 +639,10 @@ bool NjamEngine::Init(bool Fullscreen, b // load hiscore from file (if any) // format: NAME#POINTS#LEVEL# - fp = fopen("hiscore.dat", "r"); + fp = fopen("njam-hiscore.dat", "r"); if (fp) { - LogFile("Reading hiscore.dat\n"); + LogFile("Reading njam-hiscore.dat\n"); char buff[40]; int number = 0; while (!feof(fp) && number < 10) debian/patches/gcc_46.patch0000664000000000000000000000164612107251574012720 0ustar From: Andreas Moog Last-Update: 2013-01-04 Description: gcc_46 gcc4.5 and later are more restrictive with c++ function calls, this trivial patch fixes build failures with -fpermissive --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3 --- a/src/njamedit.cpp +++ b/src/njamedit.cpp @@ -114,7 +114,7 @@ void NjamEngine::LevelEditor() key = SDLK_a; else if (CheckForSave()) { - LogFile::LogFile("Saving maps"); + LogFile("Saving maps"); m_Maps.Save(filename); level_type_was = level_type; changed = false; @@ -131,7 +131,7 @@ void NjamEngine::LevelEditor() char types[2][5] = { "COOP", "DUEL" }; sprintf(buf, "levels/%s.%s\0", filename, types[level_type]); sprintf(filename, "%s\0", buf); - LogFile::LogFile("Saving maps"); + LogFile("Saving maps"); m_Maps.Save(filename); level_type_was = level_type; changed = false; debian/patches/fix_error_gcc.patch0000664000000000000000000000064012107251574014457 0ustar From: Daniel Echeverry Last-Update: 2013-01-04 Description: fix_error_gcc --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3 --- a/src/njamgame.cpp +++ b/src/njamgame.cpp @@ -228,7 +228,7 @@ void NjamEngine::StartGame(GameType Gt) if (!temp) { printf("Loading file: %s", filename); - printf(SDL_GetError()); + printf("%s", SDL_GetError()); return; } debian/patches/series0000664000000000000000000000011312107251574012033 0ustar drop_gda.patch gcc_46.patch changed_hiscore_name.patch fix_error_gcc.patch debian/patches/drop_gda.patch0000664000000000000000000000605012107251574013424 0ustar From: Hans de Goede Last-Update: 2013-01-04 Description: drop dga Drop DGA support, fixing SDL_VIDEODRIVER parsing issues --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3 --- a/src/njam.cpp +++ b/src/njam.cpp @@ -52,7 +52,6 @@ int main(int argc, char *argv[]) { bool Fullscreen = true; bool SWSurface = true; - bool UseDGA = false; if (argc > 1) { for (int i=1; i Fri, 15 Feb 2013 18:16:06 -0500 njam (1.25-8) unstable; urgency=low * Fix njam-data trying to overwrite njamicon.ico during upgrade from testing to unstable. Add Breaks and Replaces relation to njam-data. -- Markus Koschany Thu, 14 Feb 2013 22:14:21 +0100 njam (1.25-7) unstable; urgency=low * Release to unstable [ Daniel Echeverry ] * debian/control + New Maintainer. Closes: #694607 + Add Markus Koschany as Uploader + Remove automake and autotools from Build-Depends + Add autotools-dev in Build-Depends * debian/rules + Add --parallel and --with autotools-dev to dh * debian/copyright + Add src/SDL_main.c license * Rename njam.6 instead of njam.1 * debian/njam.6 + Remove AUTHORS section + Update short description + Remove -d option * debian/njam.desktop + Update icon name * debian/njam.menu + Add longtitle field + Change section [ Markus Koschany ] * debian/njam.6: - Clean up the manpage and remove unnecessary docbook code. * debian/control: - Add Git Vcs-fields. Njam will be maintained at collab-maint from now on. * debian/njam.desktop: - Add German comment to desktop file. * debian/patches: - Add dep3 headers, rename the patch extensions from .diff to .patch. * Register njam with doc-base. * Install documentation in Njam-data * Install the icon to /usr/share/pixmaps instead of /usr/share/games/njam/pixmaps. Hence we can drop njam.links. * Drop njam.preinst script. Don't move around the hiscore file anymore. Initialize the file once in njam.postinst if it does not already exist. Upgrading from pre-Squeeze versions is no longer supported. Thanks Andreas Beckmann for the report. (Closes: #689119) * Split the package in njam and njam-data and depend on the latter. -- Daniel Echeverry Fri, 18 Jan 2013 11:25:00 -0500 njam (1.25-6~exp1) experimental; urgency=low * QA Upload. * debian/control + Update long description. Closes: #474716 + Set maintainer to Debian QA group + Bump standard versions 3.9.4 + Update to DEP5 copyright format 1.0 + Switch to debhelper 9 + Add ${misc:Depends} * Switch compat level to 9 * debian/njam.1 + Fix some lintian warnings * debian/patches + Switch to dpkg-source 3.0 (quilt) format. Closes: #664343 + add fix_error_gcc.diff * Update watch file. Thanks to Bart Martens * debian/njam.desktop + Erase encoding field * Add clean file + Do not need to be installed the njamicon.ico file * Add njam.install file * Add njam.links file -- Daniel Echeverry Wed, 28 Nov 2012 22:48:08 -0500 njam (1.25-5.2) unstable; urgency=high * Non-maintainer upload by the Security Team. * drop DGA support (Closes: #651896). -- Luk Claes Wed, 04 Jul 2012 15:49:52 +0000 njam (1.25-5.1) unstable; urgency=low * Non-maintainer upload. * Fix "ftbfs with gcc-4.5": add patch gcc_46.dpatch from Ubuntu / Andreas Moog: - Fix compile with newer gcc versions. (LP: #756133) (Closes: #565087) -- gregor herrmann Tue, 18 Oct 2011 19:02:41 +0200 njam (1.25-5) unstable; urgency=medium * Fixed the bug when njam overwrites the high scores file on upgrade (Closes: 452313) * Cleaned the bad description in debian/control file (Closes: 474716) Thank you to Bas Wijnen and Christoph Berg * Added the path to the njam's icon in debian/njam.menu file (Closes: #450451) Thank you Mario Bonino * Fixed the debian/watch file to point to the correct latest upstream version (Closes: #453566) * Changed the datadir path from /usr/share to /usr/share/games in the debian/rules script (Closes: #464875) * Fixed some details in the debian/njam.desktop file. There was a previous file but it needed to be registered with dh_desktop (Closes: #478929) * Bumped to the Standards-Version 3.7.3 * Added the field Homepage inside Source stanza in debian/control file. * Added a njam icon to the package. * Added the dpatch package in the dependencies list. * Created the patch to modify the hiscore name to the program. * Modified the scripts debian/njam.postinst and debian/njam.postrm to fix the hiscore path. * Added the debian/njam.prerm script to backup the old hiscore before to install the new hiscore file. * Cleaned the debian/dirs file. Were removed some dirs below /usr dir. * Updated the debian/copyright file. -- Anibal Avelar Tue, 03 Jun 2008 21:57:27 -0500 njam (1.25-4) unstable; urgency=low * Added njam.desktop file (Closes: #439699) * Make .desktop file freedesktop-compliant * njam binary should be in /usr/games (Closes: #439787) * Fixed njam can't write to hi score file (Closes: #439786) -- Anibal Avelar (Fixxxer) Tue, 23 Oct 2007 00:34:27 -0500 njam (1.25-3) unstable; urgency=low * debian/control: - update standards version * Fixed a white space in control debian file on upstream URL site. * Added a watch file for scan new releases. -- Anibal Avelar (Fixxxer) Sun, 14 Jun 2006 11:00:27 -0500 njam (1.25-2) unstable; urgency=low * Fixed the copy-n-paste typo in description bug, Closes: #352414 -- Anibal Avelar (Fixxxer) Sun, 12 Feb 2006 11:00:27 -0500 njam (1.25-1) unstable; urgency=low * Initial release Closes: #316706 -- Anibal Avelar (Fixxxer) Thu, 15 Dec 2005 00:00:27 -0500 debian/copyright0000664000000000000000000000257112107251574011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: njam Upstream-contact: Milan Babuskov Source: http://njam.sourceforge.net Files: * Copyright: 2003-2008 Milan Babuskov License: GPL-2.0+ Files: src/SDL_main.c Copyright: 1998 Sam Lantinga License: public domain SDL_main.c, placed in the public domain by Sam Lantinga Files: debian/* Copyright: 2005-2012 Anibal Avelar (Fixxxer) 2012-2013 Daniel Echeverry 2012-2013 Markus Koschany License: GPL-2.0+ License: GPL-2.0+ 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 program. If not, see . 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/njam.postinst0000664000000000000000000000055212107251574011730 0ustar #! /bin/sh set -e SCORE="njam-hiscore.dat" if [ ! -f /var/games/$SCORE ]; then mkdir -p /var/games/ cp /usr/share/games/njam/hiscore.dat /var/games/$SCORE ln -s /var/games/$SCORE /usr/share/games/njam/$SCORE fi chown root:games /var/games/$SCORE chmod 664 /var/games/$SCORE chown root:games /usr/games/njam chmod g+s /usr/games/njam #DEBHELPER# debian/njam.60000664000000000000000000000072112107251574010210 0ustar .TH "NJAM" "6" .SH "NAME" njam - Pacman-like game with multiplayer support .SH "SYNOPSIS" .PP \fBnjam\fR [\-w] [\-h] .SH "DESCRIPTION" .PP This manual page documents briefly the \fBnjam\fR command. .PP \fBnjam\fR is a pacman-like game with multiplayer support. .SH "OPTIONS" .PP .IP "\fB\-w\fP " 10 Start in windowed mode (as opposed to fullscreen) .IP "\fB\-h\fP " 10 use hardware surfaces (faster, doesn't work well with all graphic cards)