--- pacman4console-1.2.orig/debian/patches/01_change_Makefile.dpatch
+++ pacman4console-1.2/debian/patches/01_change_Makefile.dpatch
@@ -0,0 +1,36 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_change_Makefile.dpatch by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make Makefile compliant with FHS.
+
+@DPATCH@
+diff -urNad pacman4console-1.2~/Makefile pacman4console-1.2/Makefile
+--- pacman4console-1.2~/Makefile	2007-07-09 01:05:30.000000000 -0300
++++ pacman4console-1.2/Makefile	2007-07-09 01:11:33.000000000 -0300
+@@ -2,16 +2,15 @@
+ 	gcc -lncurses pacman.c     -o pacman
+ 	gcc -lncurses pacmanedit.c -o pacmanedit
+ 
+-install:	all
+-	cp pacman /usr/local/bin
+-	cp pacmanedit /usr/local/bin
+-	mkdir -p /usr/local/share/pacman
+-	cp -fR Levels/ /usr/local/share/pacman/
+-	chown root:games /usr/local/bin/pacman
+-	chown root:games /usr/local/share/pacman -R
+-	chmod 750 /usr/local/bin/pacman
+-	chmod 750 /usr/local/bin/pacmanedit
+-	chmod 750 /usr/local/share/pacman/ -R
++install:
++	cp pacman $(DESTDIR)/usr/games/pacman4console
++	cp pacmanedit $(DESTDIR)/usr/bin/pacman4consoleedit
++	mkdir -p $(DESTDIR)/usr/share/pacman4console
++	cp -fR Levels/ $(DESTDIR)/usr/share/pacman4console/
++	chown root:games $(DESTDIR)/usr/games/pacman4console
++	chown root:games $(DESTDIR)/usr/share/pacman4console -R
++	chmod 755 $(DESTDIR)/usr/games/pacman4console
++	chmod 755 $(DESTDIR)/usr/bin/pacman4consoleedit
+ 
+ uninstall:
+ 	rm -f /usr/local/bin/pacman
--- pacman4console-1.2.orig/debian/patches/00list
+++ pacman4console-1.2/debian/patches/00list
@@ -0,0 +1,2 @@
+01_change_Makefile.dpatch
+02_change_level_location.dpatch
--- pacman4console-1.2.orig/debian/patches/02_change_level_location.dpatch
+++ pacman4console-1.2/debian/patches/02_change_level_location.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_change_level_location.dpatch by Joao Eriberto Mota Filho
+## <eriberto@eriberto.pro.br>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make level location compliant with FHS
+
+@DPATCH@
+
+diff -Naur pacman4console-1.0.orig/pacman.h pacman4console-1.0/pacman.h
+--- pacman4console-1.0.orig/pacman.h	2006-06-12 07:41:40.000000000 -0300
++++ pacman4console-1.0/pacman.h	2006-12-08 11:49:25.000000000 -0200
+@@ -1,5 +1,5 @@
+ // Some variables that you may want to change
+-char LevelFile[50] = "/usr/local/share/pacman/Levels/level__.dat";	//Locations of default levels
++char LevelFile[50] = "/usr/share/pacman4console/Levels/level__.dat";	        //Locations of default levels
+ int FreeLife = 1000;							//Starting points for free life
+ int Points = 0;								//Initial points
+ int Lives = 3;								//Number of lives you start with
--- pacman4console-1.2.orig/debian/dirs
+++ pacman4console-1.2/debian/dirs
@@ -0,0 +1,5 @@
+usr/bin
+usr/games
+usr/share/doc/pacman4console
+usr/share/lintian/overrides
+usr/share/pacman4console/Levels
--- pacman4console-1.2.orig/debian/docs
+++ pacman4console-1.2/debian/docs
@@ -0,0 +1,2 @@
+README
+screenshot.png
--- pacman4console-1.2.orig/debian/control
+++ pacman4console-1.2/debian/control
@@ -0,0 +1,22 @@
+Source: pacman4console
+Section: games
+Priority: extra
+Maintainer: Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
+Build-Depends: debhelper (>= 5), libncurses5-dev, dpatch
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/svn/debian-br-team/unstable/pacman4console
+Vcs-Browser: http://svn.debian.org/wsvn/debian-br-team/unstable/pacman4console
+Homepage: http://doctormike.googlepages.com/pacman.html
+
+Package: pacman4console
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: a console based pacman game 
+ This is a simple but very good pacman game. Also, its source code is very
+ simple and well commented so it may be a good reference for learning ncurses
+ and C programming.
+ .
+ Pacman4Console is an ASCII character based game. This game has nine levels.
+ But you can make your own levels.
+ .
+ Screenshot: http://www.eriberto.pro.br/debian/screenshots/pacman4console.jpg
--- pacman4console-1.2.orig/debian/pacman4consoleedit.1
+++ pacman4console-1.2/debian/pacman4consoleedit.1
@@ -0,0 +1,47 @@
+.TH PACMAN4CONSOLEEDIT 1 "january  4, 2007"
+.SH NAME
+pacman4consoleedit \- an editor to make pacman4console mazes
+.SH SYNOPSIS
+.B pacman4consoleedit
+file
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pacman4consoleedit.
+.PP
+\fBpacman4consoleedit\fP is an editor used to make new pacman4console mazes.
+.SH KEYS
+0 Insert space (way)
+.br
+1 Insert wall
+.br
+2 Insert pill
+.br
+3 Insert vitamin
+.br
+4 Insert an exit for fantasms
+.br
+5 Change position of the red fantasm
+.br
+6 Change position of the cyan fantasm
+.br
+7 Change position of the magenta fantasm
+.br
+8 Change position of the orange fantasm
+.br
+9 Change position of the Pacman
+.br
+f Change all spaces to pills
+.br
+c Change all pills to spaces
+.br
+q Save and exit
+.SH MAZE FILE LOCATION
+The maze files are localized at /usr/share/pacman4console/Levels.
+.SH SEE ALSO
+pacman4console(6)
+.SH AUTHOR
+pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html.
+.PP
+.nh
+.ad l
+This manual page was written by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>, for the Debian project (but may be used by others).
--- pacman4console-1.2.orig/debian/rules
+++ pacman4console-1.2/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+build: build-stamp
+
+build-stamp: patch-stamp
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	$(MAKE) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/pacman4console install
+	mv $(CURDIR)/debian/pacman4console/usr/share/pacman4console/Levels/README $(CURDIR)/debian/pacman4console/usr/share/doc/pacman4console/README.Levels
+	cp debian/override $(CURDIR)/debian/pacman4console/usr/share/lintian/overrides/pacman4console
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installman $(CURDIR)/debian/pacman4console.6 $(CURDIR)/debian/pacman4consoleedit.1
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- pacman4console-1.2.orig/debian/watch
+++ pacman4console-1.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://doctormike.googlepages.com/pacman.html pacman-(.*)\.tar\.gz
--- pacman4console-1.2.orig/debian/changelog
+++ pacman4console-1.2/debian/changelog
@@ -0,0 +1,17 @@
+pacman4console (1.2-2) unstable; urgency=low
+
+  * Cleaned debian/rules file.
+  * Changed Makefile patch to fix .dat permissions.
+  * Moved README file from /usr/share/pacman4console/Levels to
+    /usr/share/doc/pacman4console.
+  * Added the screenshot.png file to debian/docs.
+  * Fixed the debian/watch sintax to access GooglePages site (Closes: #450247).
+  * Added "screenshot" to long description.
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Mon, 11 Nov 2007 16:48:15 -0200
+
+pacman4console (1.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #402287)
+
+ -- Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>  Fri,  8 Dec 2006 10:54:06 -0200
--- pacman4console-1.2.orig/debian/pacman4console.6
+++ pacman4console-1.2/debian/pacman4console.6
@@ -0,0 +1,24 @@
+.TH PACMAN4CONSOLE 6 "december  8, 2006"
+.SH NAME
+pacman4console \- a console based pacman game
+.SH SYNOPSIS
+.B pacman4console
+.RB [
+.I OPTION
+.RB ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pacman4console.
+.PP
+\fBpacman4console\fP is an ASCII character based game. This game haves nine levels.
+.SH OPTION
+.B n
+- Start level n
+.SH SEE ALSO
+pacman4consoleedit(1)
+.SH AUTHOR
+pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html.
+.PP
+.nh
+.ad l
+This manual page was written by Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>, for the Debian project (but may be used by others).
--- pacman4console-1.2.orig/debian/compat
+++ pacman4console-1.2/debian/compat
@@ -0,0 +1 @@
+5
--- pacman4console-1.2.orig/debian/override
+++ pacman4console-1.2/debian/override
@@ -0,0 +1 @@
+pacman4console: package-section-games-but-has-usr-bin
--- pacman4console-1.2.orig/debian/copyright
+++ pacman4console-1.2/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Joao Eriberto Mota Filho
+<eriberto@eriberto.pro.br> on Fri,  8 Dec 2006 10:54:06 -0200.
+
+It was downloaded from http://doctormike.googlepages.com/pacman.html
+
+Upstream Author: Michael Billars <doctormike@gmail.com>
+
+Copyright: 2006, Michael Billars
+
+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-2'.
+
+The Debian packaging is (C) 2006-2007, Joao Eriberto Mota Filho
+<eriberto@eriberto.pro.br> and is licensed under the GPL 2 or later.
