--- tkcon-2.5.orig/debian/manpages
+++ tkcon-2.5/debian/manpages
@@ -0,0 +1,6 @@
+debian/tkcon.1
+debian/tkcon.3tk
+debian/tkconrc.5
+debian/dump.3tk
+debian/idebug.3tk
+debian/observe.3tk
--- tkcon-2.5.orig/debian/compat
+++ tkcon-2.5/debian/compat
@@ -0,0 +1 @@
+5
--- tkcon-2.5.orig/debian/rules
+++ tkcon-2.5/debian/rules
@@ -0,0 +1,111 @@
+#!/usr/bin/make -f
+# debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+version = 2.5
+cvsdate = 20080207
+
+destdir = `pwd`/debian/tkcon
+
+build-arch:
+# Nothing here
+
+build-indep: build-stamp
+build-stamp:
+	touch build-stamp
+
+build: build-indep
+
+clean:
+	dh_testdir
+	dh_testroot
+	dh_clean build-stamp \
+		 debian/*.1 \
+		 debian/*.3tk \
+		 debian/*.5
+
+install: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Install the package into debian/tkcon
+	install -m 755 -d $(destdir)/usr/share/tcltk/tkcon$(version)
+	install -m 755 tkcon.tcl $(destdir)/usr/share/tcltk/tkcon$(version)/tkcon.tcl
+	install -m 644 pkgIndex.tcl $(destdir)/usr/share/tcltk/tkcon$(version)/pkgIndex.tcl
+
+	# Create symlinks (not using dh_link because of $(version))
+	ln -s ../share/tcltk/tkcon$(version)/tkcon.tcl $(destdir)/usr/bin/tkcon
+
+	# Install manpages
+	for f in docs/*.man ; do \
+	    mpexpand nroff $$f - | \
+	    	sed -e '/^\.so man\.macros/ d' \
+		    -e '/^\.B[SE]/ d' \
+		    -e 's/^\.TH \(.\+\) n /.TH \1 3tk /' \
+		    -e 's/(n)/(3tk)/g' >debian/`basename $$f .man` || exit 1 ; \
+	done
+	for f in debian/*.n ; do \
+	    mv $$f debian/`basename $$f .n`.3tk ; \
+	done
+
+binary-arch:
+# Nothing to do
+
+# Build architecture-independent files here
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	# Moving old changelog from docs directory
+	mv $(destdir)/usr/share/doc/tkcon/docs/changes.txt \
+	   $(destdir)/usr/share/doc/tkcon/changelog.1999
+	# Remove extra license file (it is referenced in HTML docs,
+	# so, we'll link it to debian/copyright by dh_link)
+	rm -f  $(destdir)/usr/share/doc/tkcon/docs/license.terms
+	# Remove manual pages from docs directory
+	rm -f  $(destdir)/usr/share/doc/tkcon/docs/*.man
+#	dh_installexamples
+#	dh_install
+	dh_installmenu
+	dh_installman
+	dh_link
+#	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_shlibdeps
+	tcltk-depends
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep
+
+get-orig-source: get-orig-source-release
+
+get-orig-source-cvs:
+	CURDIR=`pwd` && \
+	TMPDIR=`mktemp -d /tmp/tkcon.XXXXXX` && \
+	SCRDIR=`dirname $(MAKEFILE_LIST)` && \
+	expect $$SCRDIR/checkout $$TMPDIR $(cvsdate) && \
+	rm -rf $$TMPDIR/tkcon/extra/ && \
+	find $$TMPDIR -name CVS -print | xargs rm -rf && \
+	cd $$TMPDIR && \
+	tar -zcf $$CURDIR/tkcon_$(version)-$(cvsdate).orig.tar.gz . && \
+	rm -rf $$TMPDIR
+
+get-orig-source-release:
+	wget -O tkcon_$(version).orig.tar.gz \
+		http://heanet.dl.sourceforge.net/sourceforge/tkcon/tkcon-$(version).tar.gz 
+
+.PHONY: build clean binary-indep binary-arch binary install
+
--- tkcon-2.5.orig/debian/changelog
+++ tkcon-2.5/debian/changelog
@@ -0,0 +1,135 @@
+tkcon (2:2.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added ${misc:Depends} substitution variable to  the debian/control file
+    because tkcon is built with debhelper.
+  * Fixed debian/watch file.
+  * Bumped standards version to 3.9.2.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 23 Aug 2011 20:57:11 +0400
+
+tkcon (1:2.5-20080207-1) unstable; urgency=low
+
+  * New CVS snapshot.
+  * Fixed spelling error in description (tcl -> Tcl).
+  * Changed doc-base section to Programming.
+  * Fixed errors in man (removed undefined .BS and .BE).
+  * Removed deprecated linda override file.
+  * Bumped standards version to 3.8.0.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Tue, 17 Jun 2008 13:35:54 +0400
+
+tkcon (1:2.5-20070623-4) unstable; urgency=low
+
+  * Fixed doc-base registration file (removed extra spaces).
+  * Bumped standards version to 3.7.3.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 17 Nov 2007 14:09:17 +0300
+
+tkcon (1:2.5-20070623-3) unstable; urgency=low
+
+  * Adapted the package to Debian Tcl/Tk policy. This includes moving the Tcl
+    module into a subdirectory of /usr/share/tcltk and switching to default
+    tcl package in dependencies.
+  * Added Homepage field in debian/control.
+  * Bumped debhelper compatibility level to 5.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 17 Nov 2007 13:56:02 +0300
+
+tkcon (1:2.5-20070623-2) unstable; urgency=low
+
+  * Replaced deprecated Apps section in debian menu file by Applications.
+    Also, made menu labels more clear.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sun, 16 Sep 2007 21:35:51 +0400
+
+tkcon (1:2.5-20070623-1) unstable; urgency=low
+
+  * New CVS snapshot.
+  * Removed manual pages from Debian source package since they are included
+    into original sources now.
+  * Removed patch which fixed overriding widget options since a similar
+    changes are added to upstream sources.
+  * Removed patch which replaced Windows new line characters by Unix ones
+    since they are already fixed in upstream sources.
+  * Removed patch which fixed HTML documentation since it is already applied
+    to upstream sources.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Wed, 15 Aug 2007 14:59:09 +0400
+
+tkcon (1:2.4-20060905-3) unstable; urgency=low
+
+  * New maintainer's email address sgolovan@debian.org.
+  * Added build-arch and build-indep targets and fixed build-stamp target in
+    debian/rules.
+
+ -- Sergei Golovan <sgolovan@debian.org>  Sat, 04 Aug 2007 21:00:40 +0400
+
+tkcon (1:2.4-20060905-2) unstable; urgency=low
+
+  * Fixed overriding widget options when TkCon is used inside a Tcl
+    application.
+
+ -- Sergei Golovan <sgolovan@nes.ru>  Wed, 04 Apr 2007 22:30:52 +0400
+
+tkcon (1:2.4-20060905-1) unstable; urgency=low
+
+  * New CVS snapshot (the upstream author confirmed that CVS is stable).
+  * Now it's possible to use TkCon as a Tcl package using
+    [package require tkcon].
+  * Updated upstream author's email address.
+  * Added homepage to debian/control.
+  * Added get-orig-source target to debian/rules.
+  * Fixed Copyright string in debian/copyright.
+  * Fixed bug in debian/rules (install target didn't depend on build target).
+  * Added exit clause to debian/rules to catch build problems if any.
+  * Added debian/watch file.
+
+ -- Sergei Golovan <sgolovan@nes.ru>  Mon, 12 Feb 2007 10:39:25 +0300
+
+tkcon (1:2.4-3) unstable; urgency=low
+
+  * Added registering the package documentation in doc-base.
+  * Fixed reference to license.terms in documentation (linked it with
+    debian/copyright).
+  * Overridden linda warning about extra license file (it's a link, not
+    a file).
+  * Fixed links in documentation to TkCon' CVS.
+  * Use quilt to manage patches.
+
+ -- Sergei Golovan <sgolovan@nes.ru>  Sat, 06 Jan 2007 19:37:22 +0300
+
+tkcon (1:2.4-2) unstable; urgency=low
+
+  * Added manual pages, created from documentation.
+  * Changed TkCon menu item title.
+
+ -- Sergei Golovan <sgolovan@nes.ru>  Sat, 06 Jan 2007 16:24:18 +0300
+
+tkcon (1:2.4-1) unstable; urgency=low
+
+  * New maintainer Sergei Golovan (closes: #383658).
+  * New upstream version.
+  * Added real package to dependency list in addition to virtual package
+    wish.
+
+ -- Sergei Golovan <sgolovan@nes.ru>  Fri, 05 Jan 2007 16:34:00 +0300
+
+tkcon (20030408-2) unstable; urgency=low
+
+  * QA Upload 
+  * Set Maintainer to QA Group, Orphaned: #383658
+  * Add missing binary-arch and build target to debian/rules
+  * Do not install extra license file. 
+  * Fix debian/menu
+  * Conforms with latest Standards Version 3.7.2
+
+ -- Michael Ablassmeier <abi@debian.org>  Sat,  2 Sep 2006 12:47:19 +0200
+
+tkcon (20030408-1) unstable; urgency=low
+
+  * Initial Release.
+  * (closes: #193002)
+
+ -- David N. Welton <davidw@debian.org>  Mon, 12 May 2003 09:33:34 +0200
+
--- tkcon-2.5.orig/debian/copyright
+++ tkcon-2.5/debian/copyright
@@ -0,0 +1,46 @@
+This package was debianized by David N. Welton <davidw@debian.org> on
+Sun, 11 May 2003 23:10:57 +0200.
+
+It was downloaded from http://tkcon.sourceforge.net/
+
+Upstream Author: Jeffrey Hobbs <jeff@hobbs.org>
+
+Copyright (c) 1995-2006 Jeffrey Hobbs, <jeff@hobbs.org>
+
+		   * COPYRIGHT AND LICENSE TERMS *
+
+This software is copyrighted by Jeffrey Hobbs <jeff.hobbs at acm.org>.  The
+following terms apply to all files associated with the software unless
+explicitly disclaimed in individual files.
+
+The authors hereby grant permission to use, copy, modify, distribute, and
+license this software and its documentation for any purpose, provided that
+existing copyright notices are retained in all copies and that this notice
+is included verbatim in any distributions.  No written agreement, license,
+or royalty fee is required for any of the authorized uses.
+
+IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
+DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
+OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
+EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS
+PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO
+OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
+MODIFICATIONS.
+
+RESTRICTED RIGHTS: Use, duplication or disclosure by the U.S. government
+is subject to the restrictions as set forth in subparagraph (c) (1) (ii)
+of the Rights in Technical Data and Computer Software Clause as DFARS
+252.227-7013 and FAR 52.227-19.
+
+SPECIAL NOTES:
+
+This software is also falls under the bourbon_ware clause:
+
+ Should you find this software useful in your daily work, you should feel
+ obliged to take the author out for a drink if the opportunity presents
+ itself.  The user may feel exempt from this clause if they are below
+ drinking age or think the author has already partaken of too many drinks.
--- tkcon-2.5.orig/debian/control
+++ tkcon-2.5/debian/control
@@ -0,0 +1,26 @@
+Source: tkcon
+Section: interpreters
+Priority: optional
+Maintainer: Sergei Golovan <sgolovan@debian.org>
+Build-Depends: debhelper (>> 5.0.0)
+Build-Depends-Indep: tcl-dev, tcllib
+Standards-Version: 3.9.2
+Homepage: http://tkcon.sourceforge.net/
+
+Package: tkcon
+Architecture: all
+Depends: ${wish:Depends}, ${misc:Depends}
+Description: Enhanced interactive console for developing in Tcl
+ TkCon is a Tcl shell and console, making it ideal for
+ experimenting with Tcl and Tk programs interactively.
+ .
+ Features:
+  Command history
+  Path (Unix style) / Proc / Variable name expansion
+  Multiple consoles, each with its own state (via multiple interpreters)
+  Captures stdout and stderr to console window (puts overridden)
+  Hot errors (click on error result to see stack trace)
+  Electric character matching (a la emacs)
+  Electric proc highlighting
+  Communication between consoles and other Tk interpreters
+   (including non-Tcl ones)
--- tkcon-2.5.orig/debian/dirs
+++ tkcon-2.5/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/man/man1
+usr/share/man/man3
+usr/share/man/man5
--- tkcon-2.5.orig/debian/links
+++ tkcon-2.5/debian/links
@@ -0,0 +1 @@
+usr/share/doc/tkcon/copyright usr/share/doc/tkcon/docs/license.terms
--- tkcon-2.5.orig/debian/menu
+++ tkcon-2.5/debian/menu
@@ -0,0 +1,6 @@
+?package(tkcon): \
+    needs="X11" \
+    section="Applications/Programming" \
+    command="/usr/bin/tkcon" \
+    title="TkCon Tcl/Tk console" \
+    longtitle="Enhanced console for developing in Tcl/Tk"
--- tkcon-2.5.orig/debian/checkout
+++ tkcon-2.5/debian/checkout
@@ -0,0 +1,30 @@
+#!/usr/bin/expect
+
+switch -- [llength $argv] {
+    0 {
+	set date "now"
+	set dir .
+    }
+    1 {
+	set date "now"
+	set dir [lindex $argv 0]
+    }
+    default {
+	set date [lindex $argv 1]
+	set dir [lindex $argv 0]
+    }
+}
+
+# Add 1 day to the date
+set seconds [expr {[clock scan $date -gmt 1] + 24*60*60}]
+set date [clock format $seconds -format "%Y-%m-%d GMT" -gmt 1]
+
+cd $dir
+
+set cvsroot ":pserver:anonymous@tkcon.cvs.sourceforge.net:/cvsroot/tkcon"
+spawn cvs -q -d$cvsroot login
+expect -re "assword: "
+send "\r"
+system "cvs -q -d$cvsroot -z9 co -D \"$date\" tkcon"
+system "cvs -q -d$cvsroot logout"
+
--- tkcon-2.5.orig/debian/doc-base
+++ tkcon-2.5/debian/doc-base
@@ -0,0 +1,13 @@
+Document: tkcon
+Title: TkCon Documentation
+Author: Jeffrey Hobbs <jeff@hobbs.org>
+Abstract: This is a documentation for TkCon - Enhanced Tk Console.
+ It is written by TkCon author and describes how to invoke and
+ work with TkCon. Also, some TkCon's procedures are described,
+ dump, idebug, observe, and tkcon, which are useful for debugging
+ Tcl/Tk application in TkCon.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/tkcon/index.html
+Files: /usr/share/doc/tkcon/docs/*.html
--- tkcon-2.5.orig/debian/docs
+++ tkcon-2.5/debian/docs
@@ -0,0 +1,3 @@
+README.txt
+docs
+index.html
--- tkcon-2.5.orig/debian/watch
+++ tkcon-2.5/debian/watch
@@ -0,0 +1,6 @@
+# Watch control file for uscan
+
+# Compulsory line, this is a version 3 file
+version=3
+
+http://sf.net/tkcon/tkcon-([\d.]*).tar.gz
