--- animals-20031130.orig/main.cc +++ animals-20031130/main.cc @@ -5,6 +5,7 @@ #include "db4++-stuff.h" #include "util.h" +#include #include #include // #include @@ -224,7 +225,7 @@ exit(0); } -int main(int argc, char *argv) +int main(int argc, char **argv) { std::string wantsToContinue("y"); char ret[3]; --- animals-20031130.orig/db4++-stuff.cc +++ animals-20031130/db4++-stuff.cc @@ -23,6 +23,8 @@ #include "db4++-stuff.h" #include "main.h" +#include +#include #include #include #include --- animals-20031130.orig/str-conversions.cc +++ animals-20031130/str-conversions.cc @@ -22,7 +22,8 @@ #include "str-conversions.h" -#include +#include +#include #include long CStringToLong(const char *string) --- animals-20031130.orig/Makefile +++ animals-20031130/Makefile @@ -34,16 +34,18 @@ # Edited for Debian GNU/Linux. DESTDIR = +CXX=g++ + animals: main.o db4++-stuff.o str-conversions.o util.o - g++ -o animals main.o db4++-stuff.o str-conversions.o util.o -ldb_cxx + $(CXX) -o animals main.o db4++-stuff.o str-conversions.o util.o -ldb_cxx # various tests are conducted in test.cc test: db4++-stuff.o test.o str-conversions.o util.o - g++ -o test test.o db4++-stuff.o str-conversions.o -ldb_cxx + $(CXX) -o test test.o db4++-stuff.o str-conversions.o -ldb_cxx # tests of the string conversion funcs are conducted in test-str-cvt.cc test-str-cvt: test-str-cvt.o str-conversions.o - g++ -o test-str-cvt test-str-cvt.o str-conversions.o + $(CXX) -o test-str-cvt test-str-cvt.o str-conversions.o test-str-cvt.o: test-str-cvt.cc str-conversions.h --- animals-20031130.orig/debian/dirs +++ animals-20031130/debian/dirs @@ -0,0 +1 @@ +usr/games --- animals-20031130.orig/debian/docs +++ animals-20031130/debian/docs @@ -0,0 +1 @@ + --- animals-20031130.orig/debian/README.Debian +++ animals-20031130/debian/README.Debian @@ -0,0 +1,40 @@ +animals for Debian +---------------------- + +Animals uses a binary-tree database to store questions (which are like lisp +cons-cells) and animals (which are like lisp atoms). + +I wrote this, it's the typical animals game where you think of an animal +which is searched in a binary tree where non-leaf nodes are yes-or-no +questions and leaf nodes are animals. + +Typical: + + ----> "frog" + / YES + "does it / + live in --< + the water?" \ + \ NO + ----> "moose" + +can become + ----> "frog" + / YES + ----> "Does it / + / YES have legs?" --< + "does it / \ + live in --< \ NO + the water?" \ ----> "dolphin" + \ NO + ----> "moose" +in one play. + +Traditionally, all such animals games I ever saw always had an initial database +as shown in the first tree above. My version is not traditional: there are NO +animals and NO questions at all in the initial database. Hence, my databases +tend to be more flexible. + +Play it; you'll see what I mean. + + -- Jim Lynch , Fri, 4 Jun 1999 12:14:53 -0700 --- animals-20031130.orig/debian/changelog +++ animals-20031130/debian/changelog @@ -0,0 +1,135 @@ +animals (20031130-2.4) unstable; urgency=low + + * Non-maintainer upload. + * Fix build with gcc-4.3 (Closes: #417081) + + -- Joost Yervante Damad Thu, 06 Mar 2008 21:10:33 +0100 + +animals (20031130-2.3) unstable; urgency=low + + * Non-maintainer upload from the Zürich BSP. + * Apply patch from Martin Michlmayr to fix FBTFS with GCC 4.3 (Closes: + #417081). + + -- Aurelien Jarno Sun, 13 Jan 2008 12:03:43 +0100 + +animals (20031130-2.2) unstable; urgency=low + + * Switch to db4.6. closes: #421958. + * Bump to Standards-Version 3.7.2. + + -- Clint Adams Fri, 31 Aug 2007 14:04:28 -0400 + +animals (20031130-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Build depend on db4.3++-dev (Closes: #334252) + + -- Luk Claes Fri, 28 Oct 2005 17:00:29 +0200 + +animals (20031130-2) unstable; urgency=low + + * latest Standards-Version + * trying to fix permission problem, not finished. + * Now build-depends on db4.2++ libs (closes: #263233) + + -- Sun, 08 Aug 2004 19:57:13 -0700 + +animals (20031130-1) unstable; urgency=low + + * new upstream version + * New maintainer (closes: #202174) + * animals is no longer a native package + * added build-dep on libdb4.1-dev package + + -- Sun, 29 Nov 2003 03:17:00 -0800 + +animals (20030630-2) unstable; urgency=low + + * factored a handful of small utility funcs out of main.cc into util.{cc,h} + * fixed the "test" target, using the working versions of the utils mentioned + above. + + -- Mon, 14 Jul 2003 18:21:00 -0700 + +animals (20030630-1) unstable; urgency=low + + * new "upstream" (I am upstream author) version + * this is a port to the new C++ standards. + * rebuilt with db4 (sheesh. this db stuff is a mess. I think I'll do a pg + version.) + * fully compiles with new c++ standards + (closes: #195404, #153037) + * OK, so the permissions (bug 130194) do seem wacky... I'll work on it. + Here's what I (think I) want: no access to the animals data file + other than by the game, meaning they can't see or alter it. As the + bug filer noted, that's not precisely what I got. Comments? + * what happened to the "pristineness" of the tarball?? you NMUers + did good jobs fixing the bugs, but you should have produced + -diffs- off my tarball instead of changing it. I feel that + as maintainer and upstream author, I should be allowed to + alter the tarball; I ask that any NMUs do -not-, and produce + diffs instead, for the specific reason that I can't know what + you did or didn't do without pouring over the source, hence + I can't account for changes. Still, thanks for your effort + and interest; as I always make it a point to thank NMUers at + the time, I do so now as well. + + -- Mon, 30 Jun 2003 08:40:00 -0700 + +animals (19991226-4.2) frozen unstable; urgency=low + + * NMU + * Missing build-depend on debhelper. Closes: #70080, #70147, #84549. + + -- LaMont Jones Sat, 14 Jul 2001 21:55:50 -0600 + +animals (19991226-4.1) frozen unstable; urgency=low + + * Non maintainer upload. + + * From Jim Lynch: + Applied patch from Randolph which catches + signals. This is temporary to get it through the release. I + will be using these ideas when I switch to having the file open + only when accessing it. Perhaps this will facilitate multiuser + operation. (closes: #61825). Thanks Randolph for the patch and + aj for the upload. + + -- Anthony Towns Sun, 23 Apr 2000 23:34:04 +1000 + +animals (19991226-4) frozen unstable; urgency=low + + * Fixed problems resulting from going from db2.6 to db2, cleaned up calls + + -- Sun, 27 Feb 2000 02:31:24 -0800 + +animals (19991226-3) frozen unstable; urgency=low + + * db2.6 pulled by release mgr; recompiled with db2. (no other change at all) + + -- Fri, 25 Feb 2000 16:36:18 -0800 + +animals (19991226-2) unstable; urgency=low + + * maintainer address change. + + -- Mon, 10 Jan 2000 03:06:17 -0800 + +animals (19991226-1) unstable; urgency=low + + * new "upstream" (I am upstream author) version + * Fixes Bug#53476. Recompiled w/ gcc-2.95.2 against ligstdc++2.10. + * Now uses Berkeley Db's c++ wrapper lib (libdb2.6++) + + -- Fri, 31 Dec 1999 14:20:00 -0800 + +animals (19990604-1) unstable; urgency=low + + * Initial Release. + + -- Fri, 4 Jun 1999 12:14:53 -0700 + +Local variables: +mode: debian-changelog +End: --- animals-20031130.orig/debian/control +++ animals-20031130/debian/control @@ -0,0 +1,14 @@ +Source: animals +Section: games +Priority: optional +Maintainer: Jim Lynch +Standards-Version: 3.7.2 +Build-Depends: debhelper,libdb4.6++-dev + +Package: animals +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: suidmanager (<< 0.50) +Description: Traditional AI animal guessing engine using a binary tree DB + You think of an animal, and this package tries to guess it... when it's wrong, + you teach it about your animal. --- animals-20031130.orig/debian/copyright +++ animals-20031130/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Jim Lynch on +Fri, 4 Jun 1999 12:14:53 -0700. + +It was not downloaded; the original point of distribution is debian proper. + +Upstream Author(s): Jim Lynch + +Copyright: + +# Copyright (c) 1997 by Jim Lynch. +# This software comes with NO WARRANTY WHATSOEVER. +# +# 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; version 2 dated June, 1991, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# On Debian Linux systems that adhere to the FHS standard of directory +# heirarchies, the complete text of the GNU General Public License can +# be found in `/usr/share/common-licenses/GPL'. If this copyright message +# were to tell you where the license is on older debian installations, it +# would be considered to violate a debian policy and I could not upload it, no +# matter how I worded it, even if I told you both the old and new locateions. + --- animals-20031130.orig/debian/rules +++ animals-20031130/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f +#-*- makefile -*- +# Made with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Christoph Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/tmp + + touch install-stamp + +# 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_testversion + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installinit + dh_installcron + dh_installmanpages +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here + # OK, make data dir for animals s-ug-id games + # (so that files created in there will be owned by games:games) + chown games:games `pwd`/debian/tmp/var/games/animals + chmod 06775 `pwd`/debian/tmp/var/games/animals + # then make animals executable sgid games + chown games:games `pwd`/debian/tmp/usr/games/animals + chmod 02755 `pwd`/debian/tmp/usr/games/animals +# dh_suidregister # should not run this any more. +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary