--- hoichess-0.10.3.orig/debian/README.Debian
+++ hoichess-0.10.3/debian/README.Debian
@@ -0,0 +1,34 @@
+hoichess for Debian
+-------------------
+
+Frontends:
+ This Software is useful with a frontend to play with. Successfully tested is
+ the current version of knights. Also the famous analysis and database frontend
+ scid is working perfectly with hoichess.
+
+More information:  
+ http://www.hoicher.de/hoichess 
+ http://wbec-ridderkerk.nl/index.html
+ http://www.tim-mann.org/chess.html
+
+Opening Book
+ there is currently no opening book distributed for hoichess. We have 
+ the source code of the gnuchess opening book in debian already. I will 
+ talk to the maintainer and maybe provide a patch that his package produces
+ an opening book for hoichess also.
+
+ As long as this takes you can get an opening book by hand:
+
+ apt-get source gnuchess-book
+
+ find the .pgn file and do:
+
+ echo "book create openingbook.bin openings.pgn 0 10" | hoichess
+
+ This will take about 1-2 minutes and produces a binary opening book.
+
+ hoichess can be called like this to use this opening book:
+
+ hoichess --book openingbook.bin
+
+ -- Oliver Korff <ok@xynyx.de>, Sat, 19 Dec 2005 22:01:56 +0100
--- hoichess-0.10.3.orig/debian/docs
+++ hoichess-0.10.3/debian/docs
@@ -0,0 +1,2 @@
+BUGS
+README
--- hoichess-0.10.3.orig/debian/copyright
+++ hoichess-0.10.3/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Oliver Korff <ok@xynyx.de> on
+Fri, 23 Dec 2005 22:01:56 +0100.
+
+It was downloaded from  http://www.hoicher.de/hoichess/
+This Software is discontinued from its author, the site is down. I will 
+continue maintaining it as long as I can.
+
+Copyright: Copyright (C) 2004 - 2007 Holger Ruckdeschel <holger@hoicher.de> 
+
+License:
+
+   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 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 can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2006, Oliver Korff <ok@xynyx.de> and
+is licensed under the GPL, see above.
--- hoichess-0.10.3.orig/debian/control
+++ hoichess-0.10.3/debian/control
@@ -0,0 +1,17 @@
+Source: hoichess
+Section: games
+Priority: optional
+Maintainer: Oliver Korff <ok@xynyx.de>
+Build-Depends: libreadline-dev, debhelper (>= 7.0.0), perl
+Standards-Version: 3.8.3
+
+Package: hoichess
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: xboard (>=4.2.7-1) | knights | scid 
+Description: xboard compatible chess engine to play chess with
+ chess engine compatible with xboard, but may also be used 
+ stand-alone, via terminal. Hoichess is written in C++ for
+ GNU/Linux systems, but should work on most other Unix like 
+ systems. It provides also a xiangqi ("Chinese chess") playing 
+ program. 
--- hoichess-0.10.3.orig/debian/rules
+++ hoichess-0.10.3/debian/rules
@@ -0,0 +1,90 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+MAKE += CXX=g++ CXXFLAGS="$(CFLAGS)"
+
+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: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/hoichess.sgml > hoichess.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/hoichess.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/hoichess
+
+
+# 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 ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link usr/share/man/man6/hoichess.6.gz usr/share/man/man6/hoixiangqi.6.gz 
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	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
--- hoichess-0.10.3.orig/debian/compat
+++ hoichess-0.10.3/debian/compat
@@ -0,0 +1 @@
+7
--- hoichess-0.10.3.orig/debian/changelog
+++ hoichess-0.10.3/debian/changelog
@@ -0,0 +1,103 @@
+hoichess (0.10.3-5) unstable; urgency=low
+
+  * Replaced the build dependency of libreadline5-dev to 
+    libreadline-dev this (Closes: #553781)
+  * This software is discontinued by its author, I will maintain it 
+    as long as I can. Added a note to the copyright file. 
+
+ -- Oliver Korff <ok@xynyx.de>  Mon, 02 Nov 2009 16:47:53 +0100
+
+hoichess (0.10.3-4) unstable; urgency=low
+
+  * added include for iostream in debug_printconfig.h this fixes FTBFS
+    and (Closes: #542135) and (Closes: #542986)
+  * removed watchfile, homepage is not available anymore
+  * Standards Version update to 3.8.3
+
+ -- Oliver Korff <ok@xynyx.de>  Fri, 21 Aug 2009 21:03:55 +0200
+
+hoichess (0.10.3-3) unstable; urgency=low
+
+  * opening book recommendation removed, the book is 
+    not in debian right now, it is too huge
+  * control file: Homepage removed, upstream is not active any more
+    I will support hoichess as long as I can, because hoxianxi the 
+    chinese chess engine is unique in debian
+  * Standards Version to 3.8.1
+  * Set debhelper version to >=7.0.0
+  * Set compat level to 7
+  * Removed dh_clean -k from rules and added dh_prep
+
+ -- Oliver Korff <ok@xynyx.de>  Sat, 06 Jun 2009 14:21:03 +0200
+
+hoichess (0.10.3-2) unstable; urgency=low
+
+  * Set default path to find future opening books
+  * The book file will be provided in the package hoichess-book
+  * Package now recommends the opening book
+
+ -- Oliver Korff <ok@xynyx.de>  Thu, 21 Feb 2008 13:00:05 +0100
+
+hoichess (0.10.3-1) unstable; urgency=low
+
+  * New Upstream version 
+  * Fixes gcc-4.3 missing icludes (Closes: #455143)
+
+ -- Oliver Korff <ok@xynyx.de>  Tue, 08 Jan 2008 15:32:37 +0100
+
+hoichess (0.10.2-1) unstable; urgency=low
+
+  * New Upstream Release
+  * Added perl build dependency
+
+ -- Oliver Korff <ok@xynyx.de>  Fri, 09 Nov 2007 17:22:01 +0100
+
+hoichess (0.9.0-1) unstable; urgency=low
+
+  * New upstream version 0.9.0
+  * Upstream Author added gcc-4.3 includes Closes: #417225
+  * removed checklib dependency libm.so.6 
+
+ -- Oliver Korff <ok@xynyx.de>  Thu, 21 Jun 2007 13:35:24 +0200
+
+hoichess (0.8.0-1) unstable; urgency=low
+
+  * New upstream version 0.8.0
+  * New binary hoixiangqi ("Chinese chess") playing program
+  * Added more info regarding opening book to README.Debian
+
+ -- Oliver Korff <ok@xynyx.de>  Sat, 16 Dec 2006 14:32:40 +0100
+
+hoichess (0.5.1-1) unstable; urgency=low
+
+  * New upstream version 0.5.1 Closes: #379233
+
+ -- Oliver Korff <ok@xynyx.de>  Thu,  3 Aug 2006 01:25:04 +0200
+
+hoichess (0.4.3-2) unstable; urgency=low
+
+  * altered compile options, MAKE += CXX=g++ CXXFLAGS="$(CFLAGS)"
+  * The fix will be valid for upcoming versions Closes: #364656
+
+ -- Oliver Korff <ok@xynyx.de>  Sun, 25 Jun 2006 10:26:50 +0200
+
+
+hoichess (0.4.3-1) unstable; urgency=low
+
+  * New Upstream Version
+  * Added readline support, for the commandline interface
+
+ -- Oliver Korff <ok@xynyx.de>  Tue, 20 Jun 2006 20:53:07 +0200
+
+hoichess (0.4.1-1) unstable; urgency=low
+
+  * New Upstream Version
+  * altered compile options, no march=i686 anymore Closes: #364656
+
+ -- Oliver Korff <ok@xynyx.de>  Tue,  2 May 2006 10:23:13 +0200
+
+hoichess (0.4.0-1) unstable; urgency=low
+
+  * Initial release Closes: #334927
+
+ -- Oliver Korff <ok@xynyx.de>  Sun, 19 Mar 2006 20:41:15 +0100
