--- monopd-0.9.3.orig/debian/watch +++ monopd-0.9.3/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.robertjohnkaper.com/software/atlantik/download.html \ + /downloads/atlantik/monopd-(.*)\.tar\.gz --- monopd-0.9.3.orig/debian/compat +++ monopd-0.9.3/debian/compat @@ -0,0 +1 @@ +4 --- monopd-0.9.3.orig/debian/monopd.docs +++ monopd-0.9.3/debian/monopd.docs @@ -0,0 +1,6 @@ +API +NEWS +README +README.monopigator +TODO +doc/api/gameboard --- monopd-0.9.3.orig/debian/monopd.init +++ monopd-0.9.3/debian/monopd.init @@ -0,0 +1,83 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +### BEGIN INIT INFO +# Provides: monopd +# Required-Start: $remote_fs $syslog $named $network $time +# Required-Stop: $remote_fs $syslog $named $network $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start monopd +# Description: Enable monopd network game server. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/monopd +NAME=monopd +DESC=monopd + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --background --make-pidfile --exec \ + /bin/su nobody -- -c $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --oknodo --exec $DAEMON + rm -f /var/run/$NAME.pid + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --oknodo --exec $DAEMON + rm -f /var/run/$NAME.pid + sleep 1 + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --background --make-pidfile --exec \ + /bin/su nobody -- -c $DAEMON + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- monopd-0.9.3.orig/debian/copyright +++ monopd-0.9.3/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Daniel Schepler on +Sun, 23 Feb 2003 02:14:21 -0800. + +It was downloaded from http://unixcode.org/monopd/download.html + +Upstream Authors: + Rob Kaper + Erik Bourget + +Copyright: + +Copyright (c) 2001-2002 Rob Kaper , + 2001 Erik Bourget + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +version 2 as published by the Free Software Foundation. + +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; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +The text of the GPL is available at /usr/share/common-licenses/GPL-2. --- monopd-0.9.3.orig/debian/rules +++ monopd-0.9.3/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_CONFIGURE_EXTRA_FLAGS := --bindir=\$${prefix}/sbin + +common-install-arch:: + mv $(DEB_DESTDIR)/etc/monopd.conf-dist $(DEB_DESTDIR)/etc/monopd.conf --- monopd-0.9.3.orig/debian/patches/monopd-0.9.3-dosfix.diff +++ monopd-0.9.3/debian/patches/monopd-0.9.3-dosfix.diff @@ -0,0 +1,36 @@ +--- monopd-0.9.3/src/server.cpp Sat Jul 17 14:45:47 2004 ++++ server.cpp Fri Mar 17 14:19:06 2006 +@@ -791,7 +791,7 @@ + switch(data[1]) + { + case 'n': +- pNew = newPlayer(socket, data.substr(2)); ++ pNew = newPlayer(socket, data.substr(2, 16)); + sendXMLUpdates(); + sendXMLUpdate(pNew, true, true); // give new player a full update (excluding self) so it knows who's in the lounge + return; +@@ -832,13 +832,13 @@ + switch(data[0]) + { + case 'n': +- setPlayerName(pInput, std::string(data+1)); ++ setPlayerName(pInput, data2.substr(1, 16)); + return; + case 'p': + switch(data[1]) + { + case 'i': +- pInput->setProperty("image", data+2, this); ++ pInput->setProperty("image", data2.substr(2, 32), this); + return; + } + break; +@@ -1132,7 +1132,7 @@ + switch(data[1]) + { + case 'd': +- setGameDescription(pInput, data2.substr(2)); ++ setGameDescription(pInput, data2.substr(2, 64)); + return; + case 'c': + game->editConfiguration( pInput, data+2 ); --- monopd-0.9.3.orig/debian/patches/01_gcc43_includes.diff +++ monopd-0.9.3/debian/patches/01_gcc43_includes.diff @@ -0,0 +1,70 @@ +diff -urN monopd-0.9.3.old/src/cardgroup.cpp monopd-0.9.3/src/cardgroup.cpp +--- monopd-0.9.3.old/src/cardgroup.cpp 2004-07-17 08:45:46.000000000 -0400 ++++ monopd-0.9.3/src/cardgroup.cpp 2008-01-11 16:24:05.000000000 -0500 +@@ -14,7 +14,7 @@ + // the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + // Boston, MA 02111-1307, USA. + +-#include ++#include + + #include "card.h" + #include "cardgroup.h" +diff -urN monopd-0.9.3.old/src/estategroup.cpp monopd-0.9.3/src/estategroup.cpp +--- monopd-0.9.3.old/src/estategroup.cpp 2008-01-11 16:22:29.000000000 -0500 ++++ monopd-0.9.3/src/estategroup.cpp 2008-01-11 16:23:36.000000000 -0500 +@@ -14,6 +14,7 @@ + // the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + // Boston, MA 02111-1307, USA. + ++#include + #include + + #include +diff -urN monopd-0.9.3.old/src/game.cpp monopd-0.9.3/src/game.cpp +--- monopd-0.9.3.old/src/game.cpp 2004-07-17 08:45:46.000000000 -0400 ++++ monopd-0.9.3/src/game.cpp 2008-01-11 16:25:25.000000000 -0500 +@@ -20,7 +20,8 @@ + #include + #include + #include +-#include // libstdc++ from the gcc 2.95 has no #include yet :( ++#include ++#include // libstdc++ from the gcc 2.95 has no #include yet :( + + #include + #include +diff -urN monopd-0.9.3.old/src/main.cpp monopd-0.9.3/src/main.cpp +--- monopd-0.9.3.old/src/main.cpp 2008-01-11 16:22:29.000000000 -0500 ++++ monopd-0.9.3/src/main.cpp 2008-01-11 16:23:36.000000000 -0500 +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + + #include + #include +diff -urN monopd-0.9.3.old/src/player.cpp monopd-0.9.3/src/player.cpp +--- monopd-0.9.3.old/src/player.cpp 2004-07-17 08:45:46.000000000 -0400 ++++ monopd-0.9.3/src/player.cpp 2008-01-11 16:25:57.000000000 -0500 +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + + #include + +diff -urN monopd-0.9.3.old/src/server.cpp monopd-0.9.3/src/server.cpp +--- monopd-0.9.3.old/src/server.cpp 2008-01-11 16:22:29.000000000 -0500 ++++ monopd-0.9.3/src/server.cpp 2008-01-11 16:27:12.000000000 -0500 +@@ -25,6 +25,8 @@ + #include + #include + #include ++#include ++#include + + #include + --- monopd-0.9.3.orig/debian/changelog +++ monopd-0.9.3/debian/changelog @@ -0,0 +1,90 @@ +monopd (0.9.3-4) unstable; urgency=low + + * Add extra includes needed for compilation with current g++-4.3. + * Add LSB dependency information to the init script, thanks Lintian. + * Update Standards-Version to 3.7.3 (no changes needed). + + -- Daniel Schepler Fri, 11 Jan 2008 17:04:28 -0500 + +monopd (0.9.3-3) unstable; urgency=low + + * Add missing #include's to fix compilation with gcc-4.3. Closes: #417322. + * Update watch file: listing the download directory is now forbidden, so + we have to go through the download page. + + -- Daniel Schepler Tue, 05 Jun 2007 12:20:32 -0400 + +monopd (0.9.3-2) unstable; urgency=low + + * New patch monopd-0.9.3-dosfix.diff for CVE-2006-1046: + Fixes a remote DOS vulnerability which could cause the daemon to eat up + CPU time on the server. Closes: #355797. + * Bump Standards-Version to 3.7.2 (no changes needed). + + -- Daniel Schepler Sat, 12 Aug 2006 17:05:23 -0400 + +monopd (0.9.3-1) unstable; urgency=low + + * g++-4.0 transition. + * New upstream release. + * Update debian/watch file to new location. + * Update to Standards-Version 3.6.2 (no changes needed). + + -- Daniel Schepler Fri, 8 Jul 2005 16:45:20 -0700 + +monopd (0.9.0-1) unstable; urgency=low + + * New upstream release. + * Version libcapsinetwork-dev build dependency to 0.2.5 or later. + + -- Daniel Schepler Fri, 13 Feb 2004 18:05:30 -0800 + +monopd (0.8.3-1) unstable; urgency=low + + * New upstream release. + + Fixes a DOS vulnerability. Closes: #229580. + + -- Daniel Schepler Tue, 27 Jan 2004 17:25:00 -0800 + +monopd (0.8.2-1) unstable; urgency=low + + * New upstream release + * Update to Standards-Version 3.6.1 (no changes needed). + * Add a debian/watch file. + + -- Daniel Schepler Tue, 21 Oct 2003 01:54:00 -0700 + +monopd (0.8.1-2) unstable; urgency=low + + * Fix debian/rules for new cdbs. + + -- Daniel Schepler Tue, 8 Jul 2003 05:32:23 -0700 + +monopd (0.8.1-1) unstable; urgency=low + + * New upstream release. + * Remove hack to use prefix instead of DESTDIR in install, which is + no longer necessary. + + -- Daniel Schepler Mon, 7 Jul 2003 13:56:33 -0700 + +monopd (0.8.0-1) unstable; urgency=low + + * New upstream release. + * Switch to using cdbs. + * Update to Standards-Version 3.5.10 (no changes needed). + + -- Daniel Schepler Sat, 21 Jun 2003 16:27:21 -0700 + +monopd (0.7.0-2) unstable; urgency=medium + + * Start monopd as nobody user. + + -- Daniel Schepler Tue, 4 Mar 2003 06:04:58 -0800 + +monopd (0.7.0-1) unstable; urgency=low + + * Initial Release. (Closes: #180321) + + -- Daniel Schepler Sun, 23 Feb 2003 02:14:21 -0800 + --- monopd-0.9.3.orig/debian/control +++ monopd-0.9.3/debian/control @@ -0,0 +1,22 @@ +Source: monopd +Section: games +Priority: optional +Maintainer: Daniel Schepler +Build-Depends: debhelper (>> 4.1.0), cdbs (>= 0.4.4), libmath++-dev (>= 0.0.4-2), libcapsinetwork-dev (>> 0.3.0) +Standards-Version: 3.7.3 + +Package: monopd +Architecture: any +Depends: ${shlibs:Depends} +Suggests: atlantik | gtkatlantic, atlantikdesigner +Description: Monopoly game network server + monopd is a dedicated game server daemon for playing Monopoly-like + board games. Clients such as Atlantik and gtkAtlantic connect to the + server, which manages the game. Note that you do not need to install + this server unless you want to use one of the clients offline, or + play custom game types. + . + Currently supported board games are Monopoly(R) and Atlantic, a + variation on Monopoly(R), and you can design your own game boards + using atlantikdesigner. Efforts are under way to generalize monopd + even more and eventually support a multitude of board games.