--- tf-4.0s1.orig/debian/changelog
+++ tf-4.0s1/debian/changelog
@@ -0,0 +1,216 @@
+tf (1:4.0s1-17) unstable; urgency=low
+
+ * Acknowledge NMU, thank you Andreas! (Closes: Bug#300360)
+ * Remove /usr/doc/tf if old tf package left it around (Closes: Bug#320103)
+ * Moved menu file to /usr/share/menu
+
+ -- Jan Niehusmann <jan@debian.org> Fri, 26 Aug 2005 19:52:58 +0200
+
+tf (1:4.0s1-16.1) unstable; urgency=low
+
+ * NMU durring BSP
+ * Fix for gcc 4.0 from Andreas Jochens (Closes: #300360)
+
+ -- Blars Blarson <blarson@blars.org> Sat, 6 Aug 2005 05:08:37 +0000
+
+tf (1:4.0s1-16) unstable; urgency=low
+
+ * Move tf manpage to section 1, as tf is now linked to /usr/bin/tf,
+ and tf 5 won't be in /usr/games at all.
+
+ -- Jan Niehusmann <jan@debian.org> Sun, 9 Jan 2005 02:43:27 +0100
+
+tf (1:4.0s1-15) unstable; urgency=low
+
+ * Support alternatives for tf (in /usr/bin/tf) (Closes: Bug#288632)
+
+ -- Jan Niehusmann <jan@debian.org> Fri, 7 Jan 2005 14:36:18 +0100
+
+tf (1:4.0s1-14) unstable; urgency=low
+
+ * Fixed segfault if MAIL is not set. (Closes: Bug#169015)
+
+ -- Jan Niehusmann <jan@debian.org> Thu, 12 Aug 2004 08:32:34 +0200
+
+tf (1:4.0s1-13) unstable; urgency=low
+
+ * New maintainer
+ * Add support for Mud Client Compression Protocol (patch from
+ http://inphobia.net/openbsd/patches/tinyfugue-openbsd-mccp-patch.gz)
+ (Closes: Bug#169970, Bug#176250)
+ * Fix lintian warning about manpage-section-missmatch
+ * Don't create /usr/doc link in postinst
+ * Set Standards-Version to 3.6.1.0
+
+ -- Jan Niehusmann <jan@debian.org> Thu, 12 Aug 2004 02:01:44 +0200
+
+tf (1:4.0s1-12) unstable; urgency=high
+
+ * Removed buggy SSL patch. (Closes: Bug#147146)
+
+ -- Brian Mays <brian@debian.org> Thu, 16 May 2002 05:39:30 -0400
+
+tf (1:4.0s1-11) unstable; urgency=low
+
+ * Applied SSL patch from http://zozo.org.uk/pages.shtml?page=tinyfugue.
+ (Closes: Bug#145453)
+
+ -- Brian Mays <brian@debian.org> Tue, 14 May 2002 13:57:49 -0400
+
+tf (1:4.0s1-10) unstable; urgency=medium
+
+ * Modified postinst to ignore an existing /usr/doc/$package directory.
+
+ -- Brian Mays <brian@debian.org> Wed, 20 Mar 2002 11:24:06 -0500
+
+tf (1:4.0s1-9) unstable; urgency=low
+
+ * Fixed symlink /usr/doc -> ../share/doc.
+ * Fixed reference to GPL.
+ * Improved stripping of binaries.
+ * Removed icon=none from menu file.
+ * Fixed file permissions.
+
+ -- Brian Mays <brian@debian.org> Sun, 3 Feb 2002 13:02:24 -0500
+
+tf (1:4.0s1-8) unstable; urgency=low
+
+ * Recompiled to fix library problems. (Closes: Bug#119472)
+
+ -- Brian Mays <brian@debian.org> Tue, 13 Nov 2001 15:00:42 -0500
+
+tf (1:4.0s1-7) unstable; urgency=low
+
+ * Rebuilt with libncurses5. (Closes: Bug#74501)
+
+ -- Brian Mays <brian@debian.org> Tue, 24 Oct 2000 12:28:54 -0400
+
+tf (1:4.0s1-6) frozen unstable; urgency=low
+
+ * Added build-time dependencies.
+
+ -- Brian Mays <brian@debian.org> Mon, 17 Jan 2000 14:03:59 -0500
+
+tf (1:4.0s1-5) unstable; urgency=low
+
+ * Fixed FHS /usr/doc -> /usr/share/doc transition scheme.
+
+ -- Brian Mays <brian@debian.org> Fri, 1 Oct 1999 14:28:05 -0400
+
+tf (1:4.0s1-4) unstable; urgency=low
+
+ * Modified tf to know the new FHS file locations. (Closes: Bug#45400)
+
+ -- Brian Mays <brian@debian.org> Sat, 18 Sep 1999 10:59:55 -0400
+
+tf (1:4.0s1-3) unstable; urgency=low
+
+ * Changed file locations (in /usr/man and /usr/doc) to comply with
+ the FHS. (Closes: Bug#44945)
+
+ -- Brian Mays <brian@debian.org> Thu, 16 Sep 1999 20:25:36 -0400
+
+tf (1:4.0s1-2) unstable; urgency=low
+
+ * Rebuilt with correct libraries. (Closes: Bug#37827)
+
+ -- Brian Mays <brian@debian.org> Tue, 18 May 1999 19:27:37 -0400
+
+tf (1:4.0s1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Brian Mays <brian@debian.org> Sun, 21 Mar 1999 20:47:04 -0500
+
+tf (1:4.0g3-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Brian Mays <brian@debian.org> Fri, 5 Feb 1999 13:12:16 -0500
+
+tf (1:4.0g2-1) frozen unstable; urgency=low
+
+ * Worlds without type or mfile now use corresponding field of
+ "default" world.
+ * Improved prompt detection heuristics for typeless worlds.
+ * /addworld can reset fields other than host and port for "(unnamedN)"
+ worlds.
+ * Clarified scope rules in "/help /for".
+ * Fixed fatal error when reconnecting in a DISCONNECT hook.
+
+ -- Brian Mays <brian@debian.org> Fri, 20 Nov 1998 15:10:00 -0500
+
+tf (1:4.0g1-1) frozen unstable; urgency=low
+
+ * New upstream source.
+
+ -- Brian Mays <brian@debian.org> Wed, 11 Nov 1998 08:55:22 -0500
+
+tf (1:4.0b3-2) unstable; urgency=low
+
+ * Rebuilt to account for name change in package libncurses4.
+
+ -- Brian Mays <brian@debian.org> Sun, 1 Nov 1998 14:15:22 -0500
+
+tf (1:4.0b3-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Brian Mays <brian@debian.org> Fri, 16 Oct 1998 11:36:25 -0400
+
+tf (1:4.0b2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Brian Mays <brian@debian.org> Fri, 14 Aug 1998 10:48:21 -0400
+
+tf (1:3.5b4-4) unstable; urgency=low
+
+ * Removed old FSF address from copyright file.
+
+ -- Brian Mays <brian@debian.org> Thu, 12 Feb 1998 17:56:05 -0500
+
+tf (1:3.5b4-3) unstable; urgency=low
+
+ * Libc6 release.
+ * fixed spell bug (Bug#10431).
+
+ -- Brian Mays <brian@debian.org> Tue, 5 Aug 1997 18:30:35 -0400
+
+tf (1:3.5b4-2) unstable; urgency=low
+
+ * Fixed Debian menu support.
+
+ -- Brian Mays <brian@debian.org> Wed, 28 May 1997 16:57:18 -0400
+
+tf (1:3.5b4-1) unstable; urgency=low
+
+ * New upstream source.
+ * Added Debian menu support.
+
+ -- Brian Mays <brian@debian.org> Sat, 19 Apr 1997 18:59:02 -0400
+
+tf (1:3.5b1-2) unstable; urgency=low
+
+ * Added assert-working-epoch to preinst. (see Bug#7448)
+ * Removed some "foolproofing" from the unix/tfconfig script intended to
+ check the existance of directories and normalize the directory name in
+ case of links, etc. (fixes Bug#7450)
+
+ -- Brian Mays <brian@debian.org> Mon, 17 Feb 1997 23:17:26 -0500
+
+tf (1:3.5b1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Added epoch number.
+ * Renamed /usr/doc/tf/CHANGES to changelog.
+
+ -- Brian Mays <brian@debian.org> Tue, 28 Jan 1997 11:34:00 -0500
+
+tf (3.5a20-1) unstable; urgency=low
+
+ * New upstream version
+ * New maintainer
+ * New source format (2.1.1.0)
+
+ -- Brian Mays <brian@debian.org> Fri, 27 Sep 1996 08:09:52 -0400
--- tf-4.0s1.orig/debian/postinst
+++ tf-4.0s1/debian/postinst
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+if [ "$1" = configure ]; then
+ if test -x /usr/bin/update-menus; then update-menus; fi
+
+ update-alternatives --install /usr/bin/tf tf /usr/games/tf 50 --slave /usr/share/man/man1/tf.1.gz tf.1.gz /usr/share/man/man1/tf4.1.gz
+fi
+
+if ( [ "$1" = configure ] || [ "$1" = upgrade ] ) && [ -L /usr/doc/tf ] && \
+ dpkg --compare-versions "$2" le "1:4.0s1-16.1"; then
+ rm -f /usr/doc/tf
+fi
--- tf-4.0s1.orig/debian/control
+++ tf-4.0s1/debian/control
@@ -0,0 +1,19 @@
+Source: tf
+Section: games
+Priority: optional
+Maintainer: Jan Niehusmann <jan@debian.org>
+Build-Depends: libncurses-dev, zlib1g-dev
+Standards-Version: 3.6.1.0
+
+Package: tf
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Tinyfugue MUD client for TinyMUDs, DikuMUDs, and LPMUDs
+ TinyFugue (also known as "Fugue" or "TF") is a line-based client
+ designed for connecting to MUD servers (note: LP, Diku, and other
+ servers which use prompts require "/lp on"; see /help prompts).
+ .
+ TinyFugue is larger than most MUD clients, but has many more features
+ and is much more flexible. The goal is to provide the most
+ functionality in a client that still maintains the user-friendliness
+ of Tinytalk.
--- tf-4.0s1.orig/debian/rules
+++ tf-4.0s1/debian/rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# debian/rules file - for tf
+# Copyright 1996-2002 by Brian Mays
+# Patterned after the hello package by Ian Jackson.
+
+package=tf
+
+build:
+ $(checkdir)
+ echo y | ./unixmake files
+ touch build
+
+clean:
+ $(checkdir)
+ $(RM) build
+ ./unixmake distclean
+ $(RM) -r *~ */*~ debian/tmp debian/files* debian/subst*
+
+binary-indep: checkroot build
+ $(checkdir)
+
+binary-arch: checkroot build
+ $(chechdir)
+ $(RM) -r debian/tmp
+ install -d debian/tmp debian/tmp/DEBIAN
+ install -d debian/tmp/usr/share/doc/$(package)
+ install -d debian/tmp/usr/share/doc/$(package)/examples
+# Install Debian package control information files
+ install debian/preinst debian/postinst debian/postrm \
+ debian/prerm debian/tmp/DEBIAN/.
+# Install directories
+ install -d debian/tmp/usr/games \
+ debian/tmp/usr/share/games \
+ debian/tmp/usr/share/man/man1 \
+ debian/tmp/usr/share/menu
+# Install files
+ cd src && $(MAKE) install \
+ TF=$(shell pwd)/debian/tmp/usr/games/tf \
+ LIBDIR=$(shell pwd)/debian/tmp/usr/share/games/tf \
+ MANPAGE=$(shell pwd)/debian/tmp/usr/share/man/man1/tf4.1
+ chmod 644 debian/tmp/usr/share/games/tf/*
+ strip -R.note -R.comment debian/tmp/usr/games/tf
+# Install documentation
+ mv debian/tmp/usr/share/games/tf/CHANGES \
+ debian/tmp/usr/share/doc/$(package)/changelog
+ mv debian/tmp/usr/share/games/tf/tfrc \
+ debian/tmp/usr/share/doc/$(package)/examples/.
+ install -m644 README debian/tmp/usr/share/doc/$(package)/.
+# Install changelog & copyright
+ install -m644 debian/menu debian/tmp/usr/share/menu/$(package)
+ install -m644 debian/changelog \
+ debian/tmp/usr/share/doc/$(package)/changelog.Debian
+ gzip -9vr debian/tmp/usr/share/doc/$(package)/*
+ gzip -9v debian/tmp/usr/share/man/*/*
+ install -m644 debian/copyright debian/tmp/usr/share/doc/$(package)/.
+# Determine shared library dependencies
+ dpkg-shlibdeps src/tf
+# Genereate deb file
+ dpkg-gencontrol -isp
+ chown -R root.root debian/tmp
+ chmod -R g-ws debian/tmp
+ dpkg-deb --build debian/tmp ..
+
+define checkdir
+ test -f src/$(package).h -a -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- tf-4.0s1.orig/debian/copyright
+++ tf-4.0s1/debian/copyright
@@ -0,0 +1,58 @@
+This is the Debian GNU/Linux prepackaged version of Tinyfugue -- a MUD
+client. This version of TinyFugue was written by Ken Keys
+<hawkeye@tcp.com>.
+
+This package was put together by Andrew Howell <andrew@it.com.au>,
+from sources obtained from:
+ ftp://ftp.tcp.com/pub/mud/Clients/tinyfugue/
+
+This package has been modified by Brian Mays <brian@debian.org>.
+Modifications of tf package for Debian GNU/Linux Copyright (C) 1996-2002
+Brian Mays and are released under the GPL (on Debian systems see
+"/usr/share/common-licenses/GPL").
+
+Changes:
+ * added Debian GNU/Linux package maintenance system files
+ * changed destination directories to /usr/games and /usr/lib/games/tf
+ * removed some "foolproofing" from the unix/tfconfig script intended
+ to check the existance of directories and normalize the directory
+ name in case of links, etc.
+
+tf is Copyright (C) 1993, 1994, 1995 Ken Keys.
+
+ 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; version 2 dated June, 1991.
+
+ 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".
+
+The regexp package used by tf is Copyright (c) 1986 by University of
+Toronto.
+
+ This is an altered version. Changes include:
+
+ 1. Minor changes in regexp.h for cleaner integration into TinyFugue,
+ which should have no effect on the package's portability.
+
+ 2. The original Makefile has been renamed original.mak; the
+ new Makefile contains only enough to compile regexp.o for use with
+ TinyFugue.
+
+ Permission is granted to anyone to use this software for any purpose
+ on any computer system, and to redistribute it freely, subject to the
+ following restrictions:
+
+ 1. The author is not responsible for the consequences of use of this
+ software, no matter how awful, even if they arise from defects in it.
+
+ 2. The origin of this software must not be misrepresented, either by
+ explicit claim or by omission.
+
+ 3. Altered versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
--- tf-4.0s1.orig/debian/menu
+++ tf-4.0s1/debian/menu
@@ -0,0 +1,2 @@
+?package(tf):needs="text" section="Games/Adventure" \
+ title="TinyFugue" command="/usr/games/tf"
--- tf-4.0s1.orig/debian/prerm
+++ tf-4.0s1/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ]; then
+ pkg=tf
+ if [ -L /usr/doc/$pkg ]; then rm -f /usr/doc/$pkg; fi
+
+ update-alternatives --remove tf /usr/games/tf
+fi
--- tf-4.0s1.orig/debian/postrm
+++ tf-4.0s1/debian/postrm
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ]; then
+ if test -x /usr/bin/update-menus; then update-menus; fi
+fi
--- tf-4.0s1.orig/debian/preinst
+++ tf-4.0s1/debian/preinst
@@ -0,0 +1,3 @@
+#! /bin/sh -e
+
+dpkg --assert-working-epoch