--- ircii-20051015.orig/debian/debian.motd
+++ ircii-20051015/debian/debian.motd
@@ -0,0 +1,6 @@
+Debian GNU/Linux ircII 20051015
+
+ * this version uses iconv(3) to support multiple char sets
+ * /set {DISPLAY,IRC,INPUT}_ENCODING replaces /set TRANS
+ * more news: /usr/share/doc/ircii/NEWS.gz
+
--- ircii-20051015.orig/debian/prerm
+++ ircii-20051015/debian/prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+update-alternatives --remove irc /usr/bin/ircII
+
+rm -f /etc/irc/script/local.old /etc/irc/script/local.debian
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/ircii ]; then
+	rm -f /usr/doc/ircii
+fi
--- ircii-20051015.orig/debian/changelog
+++ ircii-20051015/debian/changelog
@@ -0,0 +1,304 @@
+ircii (20051015-2.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Moved purge rules from prerm to postrm (closes: #455020)
+
+ -- Peter Eisentraut <petere@debian.org>  Sat, 05 Apr 2008 00:42:22 +0200
+
+ircii (20051015-2.2) unstable; urgency=low
+
+  * Non-maintainer upload from the Zurich BSP
+  * Add -ioption to local include paths so they do not cover the system
+    headers with the same name. This fixes errors/warnings about implicitly
+    converted pointers. (Closes: #393547, #460342)
+
+ -- Tobias Klauser <tklauser@access.unizh.ch>  Sat, 12 Jan 2008 22:30:02 +0100
+
+ircii (20051015-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Apply a patch to fix a SEGV in mksiginc, thanks to brian m. carlson.
+    (Closes: #377630)
+
+ -- Philipp Kern <pkern@debian.org>  Sun, 21 Oct 2007 11:33:50 +0200
+
+ircii (20051015-2) unstable; urgency=medium
+  
+  * fixed persisting input prompt (Closes: Bug#337406)
+    This fix was provided by Bernhard R. Link
+  * avoid crash on exiting /help (Closes: Bug#393158)
+    This fix was provided by Bernhard R. Link
+  * enable debugging info for Binaries (Closes: Bug#393142)
+    This fix was provided by Bernhard R. Link
+  * removed bashism in debian/rules (Closes: Bug#375481)
+  * IRCNAME example in man page is fixed for some time (Closes: Bug#214139)
+  * supports UTF-8 (Closes: Bug#335467)
+  * new Version also fixed help segfault (Closes: Bug#66446)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sun, 15 Oct 2006 19:44:02 +0200
+
+ircii (20051015-1) unstable; urgency=low
+  
+  * oops, the last version did not provide utf8, this does.
+
+ -- Bernd Eckenfels <ecki@debian.org>  Tue, 25 Oct 2005 00:04:54 +0200
+
+ircii (20040820-2) unstable; urgency=low
+  
+  * oops, thats not the version which supports UTF-8 - sorry
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 24 Oct 2005 23:56:57 +0200
+
+ircii (20040820-1) unstable; urgency=low
+  
+  * new upstream version (Closes: Bug #335467)
+  * new standards version
+  * no config questions anymore (Closes: Bug #109996)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 24 Oct 2005 22:52:00 +0200
+
+ircii (20030315-1) unstable; urgency=high
+  
+  * new upstream version, fixes security problem
+    (buffer overflow exploitable by servers as reported in #188223)
+  * standards version 3.5.6.0 -> 3.5.9.0 (DEB_BUILD_OPTIONS Support added)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 21 Apr 2003 19:51:33 +0200
+
+ircii (20020912-2) unstable; urgency=low
+  
+  * increased help buffer (Closes: Bug #66446)
+  * specify override for += -s/-g for DEB_BUILD_OPTIONS
+
+ -- Bernd Eckenfels <ecki@debian.org>  Fri, 04 Oct 2002 02:54:37 +0200
+
+ircii (20020912-1) unstable; urgency=low
+  
+  * new upstream version
+
+ -- Bernd Eckenfels <ecki@debian.org>  Tue, 17 Sep 2002 08:47:45 +0200
+
+ircii (20020403-2) unstable; urgency=low
+  
+  * removed *.orig files
+  * ensure sane permission of ircII scripts
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 09 Sep 2002 06:34:35 +0200
+
+ircii (20020403-1) unstable; urgency=low
+  
+  * new upstream
+  * little less verbose postinst
+  * moved to main/net from non-US
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 09 Sep 2002 05:22:44 +0200
+
+ircii (20020322-1) unstable; urgency=low
+  
+  * new upstream, fixing a lot of bugs (#118566, #30035, #51144, #87578,
+    #71611, #72799, #79628, #103469, #113884, #118107, #55396)
+  * irc_path does not contain ~ anymore (Closes: #132339)
+  * upgraded from 3.1.0 to 3.5.6.0 (added DEB_)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Tue, 26 Mar 2002 19:02:22 +0100
+
+ircii (20010612-4) unstable; urgency=low
+
+  * fixed speling of urgency field in changelog (here) (Closes: 107981)
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Wed,  8 Aug 2001 02:55:50 +0200
+
+ircii (20010612-3) unstable; Urgency=low
+
+  * added resize fix bug from matthew (Closes: 107763)
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Mon,  6 Aug 2001 19:20:10 +0200
+
+ircii (20010612-2) unstable; Urgency=low
+
+  * fixed build dependency on curses (Closes: #107110)
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Tue, 31 Jul 2001 01:18:51 +0200
+
+ircii (20010612-1) unstable; Urgency=low
+
+  * new upstream version, may fix a lot of bugs (colour)
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Sun, 29 Jul 2001 00:44:19 +0200
+
+ircii (4.4Z-3) unstable; Urgency=high
+
+  * Security: this release will remove . from the LOAD_PATH. Note: it 
+    still has "~/.irc" as the first element to actually allow to overwrite
+    system scripts. Thanks to Sami Liedes.
+  * fixed bashism in prerm (make lintian more happy)
+  * strip binaries with install -s (make lintian even more happy)
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 12 Feb 2001 03:13:48 +0100
+
+ircii (4.4Z-2) unstable; Urgency=low
+
+  * added strmcpy patch to keep it from segfaulting from David Murn
+    fixes bug #72799. Reported Upstream.
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Sat, 30 Sep 2000 02:35:17 +0200
+
+ircii (4.4Z-1) unstable; Urgency=low
+
+  * new upstream version, closes bug #71496
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Wed, 13 Sep 2000 02:10:55 +0200
+
+ircii (4.4U-2) unstable; Urgency=low
+
+  * new upstream version
+  * includes IPv6 support now!
+  * fixes bug #66297 and #65217
+ 
+ -- Bernd Eckenfels <ecki@debian.org>  Sat,  1 Jul 2000 14:43:01 +0200
+
+ircii (4.4M-1) frozen unstable; Urgency=high
+
+  * fixed dcc chat exploit from bladi & aLmUDeNa
+  * still contains noinfect patch and additional support for absolute path
+    names of server and motd file
+  * no ipv6 support in the frozen tree, yet
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sun, 12 Mar 2000 03:35:28 +0100
+
+ircii (4.4L-6) unstable; Urgency=low, Closes=35198
+
+  * upstream colour support is activated by SET COLOUR (#50521)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sat, 20 Nov 1999 19:37:26 +0100
+
+ircii (4.4L-5) unstable; Urgency=low, Closes=35198
+
+  * use protocols/talkd.h (#35198)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Wed,  3 Nov 1999 03:46:36 +0100
+
+ircii (4.4L-4) unstable; Urgency=low, Closes=37097 44700
+
+  * reupload because of missing source in first try to non-us
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sun,  3 Oct 1999 23:07:39 +0200
+
+ircii (4.4L-3) unstable; Urgency=low, Closes=37097 44700
+
+  * remove old link in /isr/lib/irc/ircII.servers before any other checks
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sat, 25 Sep 1999 23:08:11 +0200
+
+ircii (4.4L-2) unstable; Urgency=low, Closes=37097 44700
+
+  * fixed bug in my bufffer-overflow fix which made /on fail
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sat, 25 Sep 1999 21:13:54 +0200
+
+ircii (4.4L-1) unstable; urgency=low, closes=#37097 44700
+
+  * new upstream version
+  * moved data files to /usr/share/ircII/
+  * as novice /etc/ and *passwd* are restricted with some verbose comments
+  * moved to non-US because of cast.c (obtained from a european site)
+  * core dump fix in output of motd (still missing upstream)
+  * absolute path for motd and servers file
+  * no-infect patch
+  * violating the Policy (/usr/doc)!
+  * provides virtual package irc (#37097)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 13 Sep 1999 23:54:03 +0200
+
+ircii (4.4-5) unstable; urgency=low, closes=31451 36563 37430 35077 24541 24767
+
+  * test for /etc/ or passwd only as novice (#31451)
+  * recompiled with recent libs (#36563, #37430)
+  * remove alternatives for executable and man (#35077)
+  * move wserv, ircio, ircflush to /usr/sbin
+  * changed configure script to find sendmail in /usr/sbin
+  * changed configure script to find nonblocking io (may fix #24541, #24767)
+  * (wserv works in xterm and screen)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Thu, 13 May 1999 02:45:15 +0200
+
+ircii (4.4-4) unstable; urgency=high
+
+  * recompiled with the new ncurses (hopefully)
+  * fixed -geom bug for rxvt (#20867)
+  * new standards version, renamed upstream changelog
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sun,  1 Nov 1998 02:53:12 +0100
+
+ircii (4.4-3) frozen; urgency=high
+
+  * Security Fix for DCC buffer overflow (noinfect)
+  * Security Fix for not flushing Linux Console in DCC CHAT (flashfix)
+  * new Copyright notice (#21683)
+  * fixed rules clean if no makefile is present
+
+ -- Bernd Eckenfels <ecki@debian.org>  Thu, 11 Jun 1998 20:55:37 +0200
+
+ircii (4.4-2) frozen; urgency=high
+
+  * Security Fix for filtering non-printables (Bug#19743)
+  * mIrc Color Support fixed (Bug#19583)
+
+ -- Bernd Eckenfels <ecki@debian.org>  Mon, 16 Mar 1998 22:00:41 +0100
+
+ircii (4.4-1) unstable; urgency=low
+
+  * new upstream version with applied contrib/colour patch
+  * /etc/irc/script/local is now recognized as a config file (#11559)
+  * fixed rules file to include binary-indep and binary-arch targets (#14309)
+  * Will install prerm script excecutable, now (#14309)
+  * Libc6 compile.
+  * new default irc server is irc.debian.org
+  * make /usr/bin/irc an alternative to /usr/bin/ircII
+
+ -- Bernd Eckenfels <ecki@debian.org>  Sun,  8 Feb 1998 15:28:01 +0100
+
+ircii (2.9.3roof-1.1) unstable; urgency=low
+
+  * Non-maintainer release.
+  * Libc6 compile.
+
+ -- Martin Mitchell <martin@debian.org>  Tue, 28 Oct 1997 03:54:17 +1100
+
+ircii (2.9.3roof-1) unstable; urgency=low
+
+  * New maintainer. (old: Andrew Howell <andrew@it.com.au>)
+  * Updated to Standards-Version 2.1.1.0.
+  * new upstream version
+  * This fixes the /leave core dump (#4504)
+  * fixed a (reported) syntax error in Makefile.in
+  * fixed some compiler warnings about tputs in ircterm.h for linux
+  * search scripts in /etc/irc/script, too.
+  * servers file in /etc/irc/servers, motd in /etc/irc/motd
+  * core dump on empty line in motd fixed (reported)
+  * -DDEBIAN for all the changes
+  * ircio does not work :(
+
+ -- Bernd Eckenfels <ecki@debian.org>  Wed, 20 Nov 1996 23:03:11 +0100
+
+ircii (2.8.16beta-1) stable; urgency=low
+
+  * Taken over package from Carl Streeter.
+  * Upgraded to latest upstream version.
+  * Removed Package_Revision from control file. 
+  * Added Architecture field to control file.
+  * ELF binary.
+  * Postinst queries you for irc server now.
+  * Fixed Bug#981: irc package should ask for default server
+  * Fixed Bug#1173: ircII bug? ircII.servers
+  * Fixed Bug#1804: manpage of irc missing
+
+ -- Andrew Howell <andrew@it.com.au> 960419
+
+Irc 2.8.2 Debian 1 - 5/11/95 Carl Streeter <streeter@cae.wisc.edu>
+
+  * Initial release. 
+
+Local variables:
+mode: debian-changelog
+End:
--- ircii-20051015.orig/debian/copyright
+++ ircii-20051015/debian/copyright
@@ -0,0 +1,52 @@
+ircII-4.4L-2
+
+This is the Debian Linux prepackaged version of ircII. 
+
+An Internet Relay Chat Client.
+
+irc II was written by Michael Sandrof <ms5n+@andrew.cmu.edu>,
+and is now being maintained by Matthew Green <mrg@eterna.com.au>
+ 
+This package was put together by Bernd Eckenfels <ecki@debian.org>,
+from sources (including cast128.c) obtained from:
+
+ftp://ircftp.au.eterna.com.au/pub/ircII/
+
+The following is the copyright of the current development Version. The
+Copyright was changed after David Welton of Debian has some talk to Michael
+Sandrof.
+
+/*
+ * Copyright (c) 1990 Michael Sandrof.
+ * Copyright (c) 1991, 1992 Troy Rollo.
+ * Copyright (c) 1992-1998 Matthew R. Green.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+One module of the source code, scandir.c is copyright (c) 1983
+by the Regents of the University of California, with modifications
+by various contributors.  All rights are reserved by the
+University of California.
--- ircii-20051015.orig/debian/control
+++ ircii-20051015/debian/control
@@ -0,0 +1,17 @@
+Source: ircii
+Section: net
+Priority: optional
+Maintainer: Bernd Eckenfels <ecki@debian.org>
+Build-Depends: debhelper, libncurses5-dev
+Standards-Version: 3.6.1.0
+
+Package: ircii
+Architecture: any
+Provides: irc
+Depends: ${shlibs:Depends}
+Description: Internet Relay Chat client
+ The ircII program is a full screen, termcap based interface
+ to Internet Relay Chat. It gives full access to all
+ of the normal IRC functions, plus a variety of additional
+ options. This Version is able to display mIRC colors.
+ It supports "/encrypt -cast"
--- ircii-20051015.orig/debian/conffiles
+++ ircii-20051015/debian/conffiles
@@ -0,0 +1,2 @@
+/etc/irc/script/local
+/etc/irc/motd
--- ircii-20051015.orig/debian/postinst
+++ ircii-20051015/debian/postinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+
+update-alternatives --install /usr/bin/irc irc /usr/bin/ircII 20 \
+                    --slave /usr/share/man/man1/irc.1.gz irc.1 /usr/share/man/man1/ircII.1.gz
+
+if [ ! -f /etc/irc/servers ]; then
+  echo "change_this_in_etc_irc_servers" > /etc/irc/servers
+fi
+
--- ircii-20051015.orig/debian/debian.script
+++ ircii-20051015/debian/debian.script
@@ -0,0 +1,38 @@
+# /etc/irc/script/local
+# 
+# Debian ircII script to customize ircII appearance
+# loaded from /usr/lib/irc/script/global on startup
+#
+# V0.1 Fri, 8 Nov 1996 15:18:51 +0100  Bernd Eckenfels <ecki@debian.org>
+#  initial version
+# V0.2 Wed, 20 Nov 1996 23:03:44 +0100 Bernd Eckenfels <ecki@debian.org>
+#  added blank in front of "* type /help" and removed "
+# V0.3 Wed, 5 Nov 1997 22:50:47 +0100 Bernd Eckenfels <ecki@debian.org>
+#  fixed typo, made 8bit input default
+# V0.4 Mon,  9 Feb 1998 02:29:26 +0100 Bernd Eckenfels <ecki@debian.org>
+#  The new color support
+# V0.5 Sat, 20 Nov 1999 19:38:00 +0100 Bernd Eckenfels <ecki@debian.org>
+#  Upstream Colour Support is activated by /set COLOUR
+#
+#
+
+# This is an ircII Package Config file. It will be replaced with a new
+# Version only after asking you to confirm it.
+
+# usefull command line editing 
+load cursor
+
+# tabkey for easy msg'ing
+load tabkey
+
+# for new users
+set STATUS_USER  * type /help for help
+
+# for international support
+set EIGHT_BIT_CHARACTERS on
+
+# Display mirc colors (on) or ignore the escapes (off) 
+set COLOUR on
+
+# help the admin to find this stuff here...
+echo *** /etc/irc/script/local V0.5 for Debian finished. Welcome to ircII.
--- ircii-20051015.orig/debian/postrm
+++ ircii-20051015/debian/postrm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "$1" = "purge" ]; then
+	rm -f /etc/irc/motd /etc/irc/servers /usr/lib/irc/ircII.servers
+fi
--- ircii-20051015.orig/debian/rules
+++ ircii-20051015/debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+#
+# debian/rules	for ircII
+#
+# Copyright 1996-2000 by Bernd Eckenfels
+#
+# Based on Example Copyright 1994,1995 by Ian Jackson.
+#
+
+package=ircii
+default_server=irc.debian.org
+
+INSTALL_PROGRAM=install -m 755 -o root -g root
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+INSTALL_PROGRAM += -s
+endif
+
+# -- Targets --
+
+build:
+	$(checkdir)
+	IRCLIB=/usr/share/ircII/ ./configure --enable-ipv6 --prefix=/usr --with-default-server=$(default_server) --with-non-blocking=posix --with-cast
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	$(MAKE) CFLAGS="-Wall -O0 -g -DDEBIAN" IRC_PATH="~/.irc:/etc/irc/script/:/usr/share/ircII/script/:/usr/lib/irc/script/"
+else
+	$(MAKE) CFLAGS="-Wall -O2 -g -DDEBIAN" IRC_PATH="~/.irc:/etc/irc/script/:/usr/share/ircII/script/:/usr/lib/irc/script/"
+endif
+	touch build
+
+clean:
+	$(checkdir)
+	-rm -f build
+#	-$(MAKE) -f Makefile.in -i distclean RM=/bin/rm
+	-rm -f *~ */*~ */*/*~ *.o core */core include/config.h source/defs.h Makefile confdefs.h config.log defs.h config.h
+	-rm -f irc wserv ircio ircflush wterm.c
+	-rm -f sig.inc config.status config.h Makefile include/Makefile ircbug config.cache
+	-rm -f mksiginc
+	-rm -rf DEADJOE */DEADJOE *~ debian/tmp debian/*~ debian/files* debian/substvars
+
+binary-indep:	checkroot build
+	$(checkdir)
+
+# There are no architecture-independent files to be uploaded
+# generated by this package.  If there were any they would be
+# made here.
+
+binary-arch:	checkroot build
+	-rm -rf debian/tmp debian/files
+	install -d debian/tmp debian/tmp/DEBIAN
+	install -d debian/tmp/usr/share/doc/$(package)
+	install -d debian/tmp/usr/bin/  debian/tmp/usr/share/man/man1
+	install -d debian/tmp/etc/irc/script debian/tmp/usr/sbin/
+	install -d debian/tmp/usr/share/ircII/help
+	install -d debian/tmp/usr/share/ircII/script
+	cp debian/conffiles debian/tmp/DEBIAN
+	cp debian/prerm debian/tmp/DEBIAN
+	cp debian/postrm debian/tmp/DEBIAN
+	sed "s/__default_server__/$(default_server)/g" debian/postinst > debian/tmp/DEBIAN/postinst
+	chmod a+rx debian/tmp/DEBIAN/postinst debian/tmp/DEBIAN/prerm debian/tmp/DEBIAN/postrm
+	cp -Ra help/* debian/tmp/usr/share/ircII/help/
+	cp -Ra script/* debian/tmp/usr/share/ircII/script/
+	chmod 644 debian/tmp/usr/share/ircII/script/*
+	cp debian/debian.script debian/tmp/etc/irc/script/local
+	cp debian/debian.motd debian/tmp/etc/irc/motd
+	$(INSTALL_PROGRAM) ircflush debian/tmp/usr/sbin/
+	$(INSTALL_PROGRAM) ircio debian/tmp/usr/sbin/
+	$(INSTALL_PROGRAM) wserv debian/tmp/usr/sbin/
+	$(INSTALL_PROGRAM) irc debian/tmp/usr/bin/ircII
+	cp doc/ircII.1 debian/tmp/usr/share/man/man1/
+	(cd debian/tmp/usr/share/man/man1 ; gzip -9v * )
+	cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
+	cp ChangeLog debian/tmp/usr/share/doc/$(package)/changelog
+	cp NEWS README debian/tmp/usr/share/doc/$(package)/
+	cp doc/VERSIONS doc/ctcp doc/crypto doc/OLDNEWS doc/example_menu doc/ircio debian/tmp/usr/share/doc/ircii/
+	(cd debian/tmp/usr/share/doc/$(package)/ ; gzip -9v *)
+	cp debian/copyright debian/tmp/usr/share/doc/$(package)/copyright
+	dpkg-shlibdeps irc
+	dpkg-gencontrol -isp
+	dh_md5sums
+	chown -R root.root debian/tmp
+	chmod -R g-ws debian/tmp
+	dpkg --build debian/tmp ..
+
+define checkdir
+	test -f source/irc.c
+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 clean checkroot
