--- njam-1.21.orig/debian/compat +++ njam-1.21/debian/compat @@ -0,0 +1 @@ +4 --- njam-1.21.orig/debian/njam.manpages +++ njam-1.21/debian/njam.manpages @@ -0,0 +1 @@ +njam.1 --- njam-1.21.orig/debian/njam.dirs +++ njam-1.21/debian/njam.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- njam-1.21.orig/debian/njam.docs +++ njam-1.21/debian/njam.docs @@ -0,0 +1,5 @@ +README +TODO +CHANGES +PREINSTALL +TODO --- njam-1.21.orig/debian/njam.sgml +++ njam-1.21/debian/njam.sgml @@ -0,0 +1,152 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Stephan"> + Hermann"> + + April 13, 2005"> + + 1"> + sh@sourcecode.de"> + + NJAM"> + + + Ubuntu"> + GNU"> + GPL-2"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + a full-featured cross-platform PacMan clone + + + + &dhpackage; + -w + -h + -d + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. +&dhpackage; is a full-featured, cross-platform, network playable PacMan clone + + + OPTIONS + + The options are; + + + + + + + + Start in windowed mode (as opposed to fullscreen) + + + + + + + use hardware surfaces (faster, doesn't work well with all graphic cards + + + + + + + use DGA driver on Linux, (must faster, but must run as root) + + + + + + AUTHOR + + + Application: + + M.Babuskov <mbabuskov at yahoo.com> + + + + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- njam-1.21.orig/debian/patches/njam-ubuntu-fix.patch +++ njam-1.21/debian/patches/njam-ubuntu-fix.patch @@ -0,0 +1,78 @@ +diff -ur njam-1.21/Makefile njam-1.21.patched/Makefile +--- njam-1.21/Makefile 2004-03-24 21:34:46.000000000 +0100 ++++ njam-1.21.patched/Makefile 2005-05-29 20:34:34.688168856 +0200 +@@ -23,6 +23,12 @@ + PREFIX=/usr + endif + ++DESTDIR= ++ ++ifndef GAMES_DATA ++GAMES_DATA=/usr/share/ ++endif ++ + PROGRAM = njam + OBJECTS = njam.o njamedit.o njamnet.o njamgame.o njammap.o njamfont.o njamutils.o + CC = g++ +@@ -45,25 +51,19 @@ + $(RM) $(PROGRAM).exe + + install: $(PROGRAM) +- mkdir -m 755 -p $(PREFIX)/games/njam +- mkdir -m 755 -p $(PREFIX)/games/njam/data +- mkdir -m 755 -p $(PREFIX)/games/njam/skins +- mkdir -m 755 -p $(PREFIX)/games/njam/html +- mkdir -m 755 -p $(PREFIX)/games/njam/levels +- install -o root -g games -m 755 njam $(PREFIX)/games/njam +- install -o root -g games -m 644 data/* $(PREFIX)/games/njam/data +- install -o root -g games -m 644 skins/* $(PREFIX)/games/njam/skins +- install -o root -g games -m 644 html/* $(PREFIX)/games/njam/html +- install -o root -g games -m 6777 levels/* $(PREFIX)/games/njam/levels +- echo '#!/bin/sh' > /usr/bin/njam +- echo '$(PREFIX)/games/njam/njam $$1' >> /usr/bin/njam +- chmod 755 /usr/bin/njam +- @echo +- @echo ------------------ Install completed ------------------------------ +- @echo Type \"njam\" to play the game. +- @echo You can link \"$(PREFIX)/games/njam/njam\" into menus/toolbars. +- @echo ------------------------------------------------------------------- +- @echo ++ mkdir -m 755 -p $(DESTDIR)$(PREFIX)/games/njam ++ mkdir -m 755 -p $(DESTDIR)$(GAMES_DATA)njam/data ++ mkdir -m 755 -p $(DESTDIR)$(GAMES_DATA)njam/skins ++ mkdir -m 755 -p $(DESTDIR)$(GAMES_DATA)njam/html ++ mkdir -m 755 -p $(DESTDIR)$(GAMES_DATA)njam/levels ++ install -o root -g games -m 755 njam $(DESTDIR)$(PREFIX)/games/njam ++ install -o root -g games -m 644 data/* $(DESTDIR)$(GAMES_DATA)njam/data ++ install -o root -g games -m 644 skins/* $(DESTDIR)$(GAMES_DATA)njam/skins ++ install -o root -g games -m 644 html/* $(DESTDIR)$(GAMES_DATA)njam/html ++ install -o root -g games -m 644 levels/* $(DESTDIR)$(GAMES_DATA)njam/levels ++ echo '#!/bin/sh' > $(DESTDIR)$(PREFIX)/bin/njam ++ echo '$(PREFIX)/games/njam/njam $$1' >> $(DESTDIR)$(PREFIX)/bin/njam ++ chmod 755 $(DESTDIR)$(PREFIX)/bin/njam + + uninstall: + rm -rf $(PREFIX)/games/njam +diff -ur njam-1.21/njam.cpp njam-1.21.patched/njam.cpp +--- njam-1.21/njam.cpp 2004-03-24 21:40:22.000000000 +0100 ++++ njam-1.21.patched/njam.cpp 2005-05-28 13:57:06.000000000 +0200 +@@ -94,7 +94,7 @@ + if (l) + { + argv[0][l] = '\0'; +- chdir(argv[0]); ++ chdir(GAMES_DATA); + argv[0][l] = '/'; + } + #endif +diff -ur njam-1.21/njam.h njam-1.21.patched/njam.h +--- njam-1.21/njam.h 2004-03-24 21:34:46.000000000 +0100 ++++ njam-1.21.patched/njam.h 2005-05-28 13:56:40.000000000 +0200 +@@ -27,6 +27,7 @@ + // Maybe this can even be hardcoded, but just in case... + #define MAXDELAY 120 + #define GHOSTMAX 8 ++#define GAMES_DATA "/usr/share/njam/" + //----------------------------------------------------------------------------- + // Data used in game: players, sprites, etc... + typedef enum { gtSMART = 0, gtSTUPID, gtCHASER } GhostType; --- njam-1.21.orig/debian/copyright +++ njam-1.21/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Stephan Hermann on +Sat, 28 May 2005 11:24:09 +0200. + +It was downloaded from http://njam.sourceforge.net/ + +Copyright: Milan Babuskov 2003, 2004. + +Upstream Author: + M.Babuskov + +License: GPL-2 + +Njam is a full-featured cross-platform pacman clone +Copyright (C) 2003, 2004 Milan Babuskov + +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 program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +You will find a copy of the GPL2 in /usr/share/common-licenses/GPL-2 --- njam-1.21.orig/debian/njamicon.png.uuencode +++ njam-1.21/debian/njamicon.png.uuencode @@ -0,0 +1,40 @@ +begin 644 njamicon.png +MB5!.1PT*&@H````-24A$4@```"`````@"`8```!S>GKT````!F)+1T0`_P#_ +M`/^@O:>3````"7!(67,```L3```+$P$`FIP8````!W1)344'U0@7""<@G"'` +MS@``!>U)1$%46,/%EU]L'%<5QG]W9FW7B4.:.G$4(>3TCU00"345H?E#I4"# +M:$U5"D_\44`"$EZ0>`'4!\0;3R!!'N"E0"402A&I$!)%%:I$)52(*)2&.C%- +MTGICQW7LW?5Z_\SN[,S<\_$P8W?C)DYX2:YTI9%F[WS?.><[WSWK6CJA$;9P +MNU8)P+FONML!?K[YE`)N\[J*@'3K":T'E"1WJ_:["#CG="OWF@C[PG>K+X`0 +MT+H,.8"]>\:SCQWZ`&-CF]D^.DRE6F-IL<[+?WN3U\]6AHIS6G=>Z[[CWT6@ +M#YS5'_2OQS_]41T_-LG!_?>Q:1B@B]0%=3"+B*)]G#Y]L??T+__#\R_,;P(2 +MP*X1R-5M>*.U=\^XOG%\DJ-?>H3!09\#6PO4!HL0,8X>(YMB/G%XE$,')OC- +MLYL[/W]FCJESW +M'J@RA(%Z#`YT^/(71MBZY4Y^="*-SDYG8T"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FV79;)&!Y&8( +M]$_$5HQ1\T##>S]?*I4N2KI'TCUFMF/5VX,@2(!*&(:SP(+W?E'20IJFE>(; +MZ?K!](9#:1^);K$K69:=N]:A59%Y[V]FV`[7K/C"PH7;]N?T?Y'K1/G0+X0> +,`````$E%3D2N0F"" +` +end --- njam-1.21.orig/debian/control +++ njam-1.21/debian/control @@ -0,0 +1,21 @@ +Source: njam +Section: games +Priority: optional +Maintainer: Stephan Hermann +Build-Depends: debhelper (>= 4.0.0),libsdl1.2-dev,libsdl-mixer1.2-dev, libsdl-image1.2-dev, libsdl-net1.2-dev, docbook-to-man, sharutils +Standards-Version: 3.6.2.1 + +Package: njam +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: full-featured cross-platform pacman clone + Features + Single and multiplayer mode (local or network) + Duel games (players compete against each other to get more points) + Cooperative games (players cooperate to finish as many levels as they can) + Great music and sound effects + Runs on Windows, Linux, OpenBSD, FreeBSD, BeOS, MacOSX, MorphOS + Customizable level skins + Many different levels + Integrated level editor + Open Source (GPL Licence) --- njam-1.21.orig/debian/njam.lintian-override +++ njam-1.21/debian/njam.lintian-override @@ -0,0 +1,10 @@ +njam: executable-not-elf-or-script /usr/share/njam/levels/ORIGINAL.DUEL +njam: executable-not-elf-or-script /usr/share/njam/levels/DRAGON.COOP +njam: executable-not-elf-or-script /usr/share/njam/levels/WOLF.COOP +njam: executable-not-elf-or-script /usr/share/njam/levels/HUNT.DUEL +njam: executable-not-elf-or-script /usr/share/njam/levels/DULIO.DUEL +njam: executable-not-elf-or-script /usr/share/njam/levels/BEAMTEAM.DUEL +njam: executable-not-elf-or-script /usr/share/njam/levels/EASY.COOP +njam: executable-not-elf-or-script /usr/share/njam/levels/ORIGINAL.COOP +njam: executable-not-elf-or-script /usr/share/njam/levels/RAVENS CURSE.COOP + --- njam-1.21.orig/debian/njam.desktop +++ njam-1.21/debian/njam.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Njam +Comment=a cross-plattform pacman clone +TryExec=njam +Exec=njam +Icon=njamicon.png +Terminal=false +Type=Application +Categories=Application;Game;ArcardeGame; --- njam-1.21.orig/debian/changelog +++ njam-1.21/debian/changelog @@ -0,0 +1,31 @@ +njam (1.21-0ubuntu3) dapper; urgency=low + + * debian/rules: Fixed installation of readme.txt + + -- Stephan Hermann Sun, 27 Nov 2005 18:31:49 +0100 + +njam (1.21-0ubuntu2) breezy; urgency=low + + * adjused the overrides (readme.txt moved to docs/). + Thx to Elmo + * debian/njam.desktop: fixed a typo + + -- Stephan Hermann Tue, 23 Aug 2005 16:54:21 +0200 + +njam (1.21-0ubuntu1) breezy; urgency=low + + * debian/rules: fixed icon bug + * debian/njam.desktop: fixed typo in icon name + * Added njamicon.png.uuencode to deliver a new icon + * debian/rules: added installation of njamicon.png + * debian/control: added build-dep on sharutils (for uudecode) + * Fixed some other things, like debian/copyright etc. + * debian/rules: cleaned up correctly (njam.1) + * debian/copyright: adjusted the Copyright Line + * debian/control: adjusted standards-version (thx ajmitch) + * Added Makefile and njam.h/njam.cpp patch to be independent from argv[0] + * Added .desktop file + * Initial Release. + + -- Stephan Hermann Thu, 18 Aug 2005 11:25:26 +0200 + --- njam-1.21.orig/debian/rules +++ njam-1.21/debian/rules @@ -0,0 +1,113 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: patch build-stamp + +patch: patch-stamp + +patch-stamp: + dh_testdir + + patch -p1 < debian/patches/njam-ubuntu-fix.patch + touch patch-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + docbook-to-man debian/njam.sgml > njam.1 + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f $(CURDIR)/njam.1 + dh_clean + +unpatch: unpatch-stamp + +unpatch-stamp: patch-stamp + dh_testdir + + patch -R -p1 < debian/patches/njam-ubuntu-fix.patch + + rm -f patch-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/njam. + $(MAKE) install DESTDIR=$(CURDIR)/debian/njam + install -d -m 755 $(CURDIR)/debian/njam/usr/share/doc/njam/ + # + # uudecoding njamicon.png.uuencode to njamicon.png + # + uudecode -o $(CURDIR)/debian/njamicon.png $(CURDIR)/debian/njamicon.png.uuencode + install -D -m 644 $(CURDIR)/debian/njamicon.png $(CURDIR)/debian/njam/usr/share/icons/njamicon.png + install -D -m 644 $(CURDIR)/debian/njam.desktop $(CURDIR)/debian/njam/usr/share/applications/njam.desktop + mv $(CURDIR)/debian/njam/usr/share/njam/html $(CURDIR)/debian/njam/usr/share/doc/njam/ + install -D -m 644 $(CURDIR)/debian/njam.lintian-override $(CURDIR)/debian/njam/usr/share/lintian/overrides/njam + mv $(CURDIR)/debian/njam/usr/share/njam/levels/readme.txt $(CURDIR)/debian/njam/usr/share/doc/njam/readme.txt + + + +# 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_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + 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 install configure