--- fairymax-4.8o.orig/debian/copyright
+++ fairymax-4.8o/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
+Name: fairymax
+Maintainer: H.G.Muller <h.g.muller@hccnet.nl>
+Source: http://home.hccnet.nl/h.g.muller/CVfairy.html
+
+Copyright: 2009, H.G.Muller <h.g.muller@hccnet.nl>
+License:
+ Fairy-Max 4.8 is free software, and you have my permission do
+ with it whatever you want, whether it is commercial or not.
+ Note, however, that Fairy-Max can easily be configured through
+ its fmax.ini file to play Chess variants that are legally pro-
+ tected by patents, and that to do so would also require per-
+ mission of the holders of such patents. No guarantees are
+ given that Fairy-Max does anything in particular, or that it
+ would not wreck the hardware it runs on, and running it is
+ entirely for your own risk.  H.G,Muller, author of Fairy-Max
+
+Files: debian/*
+Copyright: 2009, Vincent Legout <vincent@legout.info>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
--- fairymax-4.8o.orig/debian/watch
+++ fairymax-4.8o/debian/watch
@@ -0,0 +1,5 @@
+# As the download link doesn't contain the version number, there isn't
+# a way to write a meaningful watch file.
+#
+# To check the current upstream release, go to the package home page
+# and check the version number in the tarball.
--- fairymax-4.8o.orig/debian/fairymax.links
+++ fairymax-4.8o/debian/fairymax.links
@@ -0,0 +1,2 @@
+usr/share/man/man6/fairymax.6.gz /usr/share/man/man6/maxqi.6.gz
+usr/share/man/man6/fairymax.6.gz /usr/share/man/man6/shamax.6.gz
--- fairymax-4.8o.orig/debian/changelog
+++ fairymax-4.8o/debian/changelog
@@ -0,0 +1,39 @@
+fairymax (4.8o-1) unstable; urgency=low
+
+  * New upstream version:
+    - Remove patches, they have been merged upstream. Remove quilt dependency
+  * debian/rules:
+    - Update get-orig-source target
+    - Remove override_dh_auto_configure, no longer needed
+    - Update clean target
+  * debian/fairymax.manpages: Removed
+
+ -- Vincent Legout <vincent@legout.info>  Sat, 23 Jan 2010 12:53:43 +0800
+
+fairymax (4.8m-1) unstable; urgency=low
+
+  * New upstream version (Closes: #544874)
+    - Update 01_fix_ini_files_default_location patch
+    - Add 02_Makefile patch
+  * debian/control:
+    - Bump to Standards-Version 3.8.3
+    - Build-Depend on debhelper >= 7.0.50~ to support override targets
+    - Update Homepage
+  * debian/fairymax.install: Dropped
+  * debian/fairymax.docs: Updated
+  * debian/fairymax.manpages: Updated
+  * debian/fairymax.6: Dropped, integrated upstream
+  * debian/rules: Updated
+  * debian/fairymax.dirs: Added
+  * debian/README.source: Added
+  * debian/copyright: Update Source field
+  * debian/watch: Added
+
+ -- Vincent Legout <vincent@legout.info>  Tue, 29 Sep 2009 13:17:55 +0800
+
+fairymax (4.8j-1) unstable; urgency=low
+
+  * Initial release (Closes: #537713)
+  * Removed unused windows binaries from tarball
+
+ -- Vincent Legout <vincent@legout.info>  Wed, 22 Jul 2009 11:31:28 +0200
--- fairymax-4.8o.orig/debian/compat
+++ fairymax-4.8o/debian/compat
@@ -0,0 +1 @@
+7
--- fairymax-4.8o.orig/debian/control
+++ fairymax-4.8o/debian/control
@@ -0,0 +1,21 @@
+Source: fairymax
+Section: games
+Priority: extra
+Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
+Uploaders: Vincent Legout <vincent@legout.info>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.8.3
+Homepage: http://home.hccnet.nl/h.g.muller/CVfairy.html
+Vcs-Git: git://git.debian.org/git/pkg-games/fairymax.git
+Vcs-Browser: http://git.debian.org/?p=pkg-games/fairymax.git
+
+Package: fairymax
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: xboard compatible chess and chess-variant engine
+ Fairymax is a program that plays chess and chess variants. It uses the
+ xboard/winboard chess-engine protocol to communicate. Apart from 'regular'
+ chess (also known as the Mad-Queen variant), it can play Capablanca chess,
+ gothic chess, knightmate, cylinder chess, berolina chess, superchess and
+ courier chess.
+
--- fairymax-4.8o.orig/debian/fairymax.dirs
+++ fairymax-4.8o/debian/fairymax.dirs
@@ -0,0 +1,2 @@
+/usr/games
+/usr/share/games/fairymax
--- fairymax-4.8o.orig/debian/fairymax.docs
+++ fairymax-4.8o/debian/fairymax.docs
@@ -0,0 +1 @@
+README
--- fairymax-4.8o.orig/debian/rules
+++ fairymax-4.8o/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f fmax.man
+
+VERSION=4.8o
+
+get-orig-source:
+	wget -c http://home.hccnet.nl/h.g.muller/fairymax.tar.gz
+	tar zxvf fairymax.tar.gz
+	mv Fairy-Max fairymax-$(VERSION)
+	tar czf fairymax-$(VERSION).orig.tar.gz fairymax-$(VERSION)
+	rm -rf fairymax-$(VERSION) fairymax.tar.gz
