--- gtktrain-0.9b.orig/debian/README.Debian
+++ gtktrain-0.9b/debian/README.Debian
@@ -0,0 +1,17 @@
+gtktrain for Debian
+-------------------
+gtktrain (and its backend libtrain library) needs train schedule data.  As
+far as I know, only Japanese train data are available for the time being.
+
+Unfortunately, that train schedule data are released under a rather
+restrictive license so that I can't include them in this package.  You
+have to get them by yourself from:
+
+http://www.oohito.com/data/train/index.htm (written in Japanese)
+
+And follow the steps described in /usr/share/doc/libtrain1/README.Debian.
+
+Before use this, you might want to read libtrain documentation
+(installed as /usr/share/doc/libtrain1/README.Debian).
+
+ -- Christian Perrier <bubulle@debian.org>, Sat, 28 Oct 2006 15:03:04 z
--- gtktrain-0.9b.orig/debian/copyright
+++ gtktrain-0.9b/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Masayuki Hatta <mhatta@debian.org> on
+Thu,  2 Aug 2001 18:24:51 +0900.
+
+It was downloaded from http://www.on.rim.or.jp/~katamuki/software/train/
+
+Upstream Authors: 
+  ARINO Kazuma <kazuma@sola.c.u-tokyo.ac.jp>
+  FURUKAWA Yo <katamuki@on.rim.or.jp>
+
+Copyright: Copyright (c) 1999- ARINO Kazuma and FURUKAWA Ko, All
+Rights Reserved. 
+
+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; either version 2 of the License, 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.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
--- gtktrain-0.9b.orig/debian/docs
+++ gtktrain-0.9b/debian/docs
@@ -0,0 +1,5 @@
+BUGS
+NEWS
+README
+TODO
+doc/orig
--- gtktrain-0.9b.orig/debian/changelog
+++ gtktrain-0.9b/debian/changelog
@@ -0,0 +1,111 @@
+gtktrain (0.9b-13) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.8.0.
+  * Fixed menu section - closes: #482929
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun, 20 Jul 2008 08:48:03 +0900
+
+gtktrain (0.9b-12) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.7.3.
+  * Fixed various lintian warnings.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sat, 08 Dec 2007 23:59:13 +0900
+
+gtktrain (0.9b-11) unstable; urgency=low
+
+  * Oops, I forgot to revise changelog.Debian...
+  * Acknowledged NMU - closes: #349115
+  * Ported to GTK 2.0 - closes: #366926
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 01 May 2007 20:33:48 +0900
+
+gtktrain (0.9b-10) unstable; urgency=low
+
+  * Maintainer upload.
+  * Bumped Standards-Version to 3.7.2
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 01 May 2007 19:37:42 +0900
+
+gtktrain (0.9b-9.2) unstable; urgency=low
+
+  * Non-maintainer upload to fix longstanding l10n issues
+  * Remove the debconf note which is abuse. Move the information
+    to README.Debian. Closes: #388900
+    This also removes the need to depend on "debconf | debconf-2.0"
+    Closes: #331844
+    This also removes the need for translations.
+    Closes: #260998, #319264, #330392, #344054
+  * Quote strings in menu. Thanks, lintian.
+  * No mor einclude upstream ChangeLog file...which is empty.
+
+ -- Christian Perrier <bubulle@debian.org>  Sat,  4 Nov 2006 09:39:45 +0100
+
+gtktrain (0.9b-9.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Replace build-dependency on xlibs-dev with an explicit build-dependency
+    on each required package. (Closes: #346846)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat, 21 Jan 2006 02:45:26 +0100
+
+gtktrain (0.9b-9) unstable; urgency=low
+
+  * Added fr.po, thanks Christian Perrier - closes: #235571
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Wed,  3 Mar 2004 21:21:36 +0900
+
+gtktrain (0.9b-8) unstable; urgency=low
+
+  * Switched to gettext-based debconf templates.  Thanks Martin Quinson - closes: #233264
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Wed, 18 Feb 2004 17:31:51 +0900
+
+gtktrain (0.9b-7) unstable; urgency=low
+
+  * [control] changed Maintainer field.
+  * Bumped to Standards-Version: 3.6.1.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun, 15 Feb 2004 13:43:20 +0900
+
+gtktrain (0.9b-6) unstable; urgency=low
+
+  * Tweaked rules a bit.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 15 Apr 2002 12:06:02 +0900
+
+gtktrain (0.9b-5) unstable; urgency=low
+
+  * Added debconf note about train schedule data - closes: #109037
+  * Added Build-Depends: autotools-dev.  config.{guess,sub} are now
+    updated from /usr/share/misc at build time.
+  
+ -- Masayuki Hatta <mhatta@debian.org>  Thu, 11 Apr 2002 01:32:29 +0900
+
+gtktrain (0.9b-4) unstable; urgency=low
+
+  * Oops, duplicated Build-Depends... - closes: #108686
+
+ -- Masayuki Hatta <mhatta@debian.org>  Tue, 14 Aug 2001 22:06:20 +0900
+
+gtktrain (0.9b-3) unstable; urgency=low
+
+  * Initial Release for Debian Project - closes: #107466
+
+ -- Masayuki Hatta <mhatta@debian.org>  Thu,  2 Aug 2001 18:24:51 +0900
+
+gtktrain (0.9b-2) unstable; urgency=low
+
+  * Fixed typo in debian/rules.
+
+ -- Masayuki Hatta <masayuki-h@geocities.co.jp>  Wed, 14 Jun 2000 04:34:21 +0900
+
+gtktrain (0.9b-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Masayuki Hatta <mhatta@debian.or.jp>  Sat, 13 May 2000 15:18:45 +0900
+
+Local variables:
+mode: debian-changelog
+End:
--- gtktrain-0.9b.orig/debian/compat
+++ gtktrain-0.9b/debian/compat
@@ -0,0 +1 @@
+4
--- gtktrain-0.9b.orig/debian/control
+++ gtktrain-0.9b/debian/control
@@ -0,0 +1,14 @@
+Source: gtktrain
+Section: contrib/x11
+Priority: optional
+Maintainer: Masayuki Hatta (mhatta) <mhatta@debian.org>
+Standards-Version: 3.8.0
+Build-Depends: autotools-dev, debhelper (>> 4.1.16), libglib2.0-dev, libgtk2.0-dev, libtrain-dev, libx11-dev, libxext-dev, libxi-dev
+
+Package: gtktrain
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: The train-routing calculator with GTK+ interface
+ gtktrain is a program to calculate the shortest route from a train
+ station to another in consideration of time and distance. It tells you
+ which line you should take and where you should transfer at.
--- gtktrain-0.9b.orig/debian/dirs
+++ gtktrain-0.9b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- gtktrain-0.9b.orig/debian/rules
+++ gtktrain-0.9b/debian/rules
@@ -0,0 +1,110 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  confflags += --build $(DEB_HOST_GNU_TYPE)
+else
+  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+# For debugging 
+#DEB_BUILD_OPTIONS = debug nostrip
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+    INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	./configure $(conffiles) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+
+	# Regenerate ja.gmo
+	cd po && rm -rf ja.gmo && $(MAKE)
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/gtktrain.sgml > gtktrain.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.
+	-test -r /usr/share/misc/config.sub && \
+	  cp -f /usr/share/misc/config.sub $(CURDIR)/config.sub
+	-test -r /usr/share/misc/config.guess && \
+	  cp -f /usr/share/misc/config.guess $(CURDIR)/config.guess
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	rm -rf $(CURDIR)/po/ja.gmo
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package into debian/gtktrain.
+	$(MAKE) install prefix=$(CURDIR)/debian/gtktrain/usr
+
+
+# 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_installdocs
+#	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installman
+	dh_installinfo
+# Upstream changelog is empty?
+#	dh_installchangelogs ChangeLog
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- gtktrain-0.9b.orig/debian/menu
+++ gtktrain-0.9b/debian/menu
@@ -0,0 +1,2 @@
+?package(gtktrain):needs="X11" section="Applications/Viewers"\
+  title="gtktrain" command="/usr/bin/gtktrain"
