netkit-ntalk (0.17-14) debian-dir only changes

Summary

 debian/changelog      |  192 ++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat         |    1 
 debian/control        |   27 +++++++
 debian/copyright      |   15 +++
 debian/dirs           |    2 
 debian/docs           |    1 
 debian/postinst       |   14 +++
 debian/prerm          |    8 ++
 debian/rules          |   79 ++++++++++++++++++++
 debian/talkd.dirs     |    3 
 debian/talkd.logcheck |    1 
 debian/talkd.postinst |   56 ++++++++++++++
 debian/talkd.postrm   |   24 ++++++
 debian/talkd.prerm    |    8 ++
 14 files changed, 431 insertions(+)

    
download this patch

Patch contents

--- netkit-ntalk-0.17.orig/debian/copyright
+++ netkit-ntalk-0.17/debian/copyright
@@ -0,0 +1,15 @@
+This package was split from netstd by Herbert Xu herbert@debian.org on
+Fri, 11 Sep 1998 13:25:27 +1000.
+
+netstd was created by Peter Tobias tobias@et-inf.fho-emden.de on
+Wed, 20 Jul 1994 17:23:21 +0200.
+
+It was downloaded from ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/.
+
+Copyright:
+
+Copyright (c) 1983 Regents of the University of California.
+
+The license can be found at /usr/share/common-licenses/BSD.
+
+$Id: copyright,v 1.3 2000/05/01 10:54:09 herbert Exp $
--- netkit-ntalk-0.17.orig/debian/dirs
+++ netkit-ntalk-0.17/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1
--- netkit-ntalk-0.17.orig/debian/docs
+++ netkit-ntalk-0.17/debian/docs
@@ -0,0 +1 @@
+BUGS README 
--- netkit-ntalk-0.17.orig/debian/postinst
+++ netkit-ntalk-0.17/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+# $Id: postinst,v 1.2 2003/09/29 10:15:04 herbert Exp $
+
+if
+	[ "$1" != configure ] || [ -z "$2" ] ||
+	dpkg --compare-versions "$2" lt 0.16-1
+then
+	update-alternatives --install /usr/bin/talk talk \
+				      /usr/bin/netkit-ntalk 100 \
+			    --slave /usr/share/man/man1/talk.1.gz talk.1.gz \
+				    /usr/share/man/man1/netkit-ntalk.1.gz
+fi
+
+#DEBHELPER#
--- netkit-ntalk-0.17.orig/debian/prerm
+++ netkit-ntalk-0.17/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+# $Id: prerm,v 1.1 2000/05/04 03:05:04 herbert Exp $
+
+if [ "$1" != upgrade ]; then
+	update-alternatives --remove talk /usr/bin/netkit-ntalk
+fi
+
+#DEBHELPER#
--- netkit-ntalk-0.17.orig/debian/talkd.dirs
+++ netkit-ntalk-0.17/debian/talkd.dirs
@@ -0,0 +1,3 @@
+usr/sbin
+usr/share/man/man8
+etc/logcheck/ignore.d.server
--- netkit-ntalk-0.17.orig/debian/talkd.logcheck
+++ netkit-ntalk-0.17/debian/talkd.logcheck
@@ -0,0 +1 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ talkd\[[0-9]+\]: connect from [[:alnum:].]+$
--- netkit-ntalk-0.17.orig/debian/talkd.postinst
+++ netkit-ntalk-0.17/debian/talkd.postinst
@@ -0,0 +1,56 @@
+#!/bin/sh -e
+# $Id: talkd.postinst,v 1.8 2001/07/13 23:18:14 herbert Exp $
+
+enable_talk() {
+	update-inetd --pattern '[ \t]/usr/sbin/in\.talkd' --enable talk
+	update-inetd --pattern '[ \t]/usr/sbin/in\.ntalkd' --enable ntalk
+}
+
+remove_talk() {
+	update-inetd --remove "$talkp"
+	update-inetd --remove "$ntalkp"
+}
+
+talkp='talk[ \t].*[ \t]/usr/sbin/in.talkd'
+ntalkp='ntalk[ \t].*[ \t]/usr/sbin/in.ntalkd'
+
+case "$1" in
+abort-upgrade | abort-deconfigure | abort-remove)
+	enable_talk
+	;;
+configure)
+	if [ -n "$2" ] && dpkg --compare-versions "$2" ge 0.16-1; then
+		enable_talk
+	else
+		talk_entry="talk		dgram	udp	wait	nobody.tty	/usr/sbin/in.talkd	in.talkd"
+		ntalk_entry="ntalk		dgram	udp	wait	nobody.tty	/usr/sbin/in.ntalkd	in.ntalkd"
+		if grep "$talkp" /etc/inetd.conf | grep -q '^#'; then
+			talk_entry=\#$talk_entry
+		fi
+		if grep "$ntalkp" /etc/inetd.conf | grep -q '^#'; then
+			ntalk_entry=\#$ntalk_entry
+		fi
+		remove_talk
+		if
+			[ -n "${talk_entry###*}" ] &&
+			grep -q ^talk /etc/inetd.conf
+		then
+			talk_entry=\#$talk_entry
+		fi
+		if
+			[ -n "${ntalk_entry###*}" ] &&
+			grep -q ^ntalk /etc/inetd.conf
+		then
+			ntalk_entry=\#$ntalk_entry
+		fi
+		update-inetd --group BSD --add "$talk_entry"
+		update-inetd --group BSD --add "$ntalk_entry"
+	fi
+	;;
+*)
+	echo "$0: incorrect arguments: $*" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
--- netkit-ntalk-0.17.orig/debian/talkd.postrm
+++ netkit-ntalk-0.17/debian/talkd.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+# $Id: talkd.postrm,v 1.1 1999/09/24 23:03:06 herbert Exp $
+
+remove_talk() {
+	update-inetd --remove 'talk[ \t].*[ \t]/usr/sbin/in.talkd'
+	update-inetd --remove 'ntalk[ \t].*[ \t]/usr/sbin/in.ntalkd'
+}
+
+case "$1" in
+abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear)
+	;;
+purge)
+	# If netbase is not installed, then we don't need to do the remove.
+	if which update-inetd >/dev/null 2>&1; then
+		remove_talk
+	fi
+	;;
+*)
+	echo "$0: incorrect arguments: $*" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
--- netkit-ntalk-0.17.orig/debian/talkd.prerm
+++ netkit-ntalk-0.17/debian/talkd.prerm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+if which update-inetd >/dev/null 2>&1; then
+	update-inetd --pattern '[ \t]/usr/sbin/in\.talkd' --disable talk
+	update-inetd --pattern '[ \t]/usr/sbin/in\.ntalkd' --disable ntalk
+fi
+
+#DEBHELPER#
--- netkit-ntalk-0.17.orig/debian/compat
+++ netkit-ntalk-0.17/debian/compat
@@ -0,0 +1 @@
+5
--- netkit-ntalk-0.17.orig/debian/control
+++ netkit-ntalk-0.17/debian/control
@@ -0,0 +1,27 @@
+Source: netkit-ntalk
+Section: net
+Priority: optional
+Maintainer: Alberto Gonzalez Iniesta <agi@inittab.org>
+Standards-Version: 3.8.2
+Build-Depends: debhelper (>> 7), libncurses-dev, libwrap0-dev
+
+Package: talk
+Architecture: any
+Depends: ${shlibs:Depends}
+Replaces: netstd
+Suggests: talkd
+Description: Chat with another user
+ Talk is a visual communication program which copies lines from your terminal
+ to that of another user.
+ .
+ In order to talk locally, you will need to install the talkd package.
+
+Package: talkd
+Architecture: any
+Depends: netbase, openbsd-inetd, ${shlibs:Depends}
+Replaces: netstd
+Description: Remote user communication server
+ Talkd is the server that notifies a user that someone else wants to initiate
+ a conversation.  It acts a repository of invitations, responding to requests
+ by clients wishing to rendezvous to hold a conversation.
+
--- netkit-ntalk-0.17.orig/debian/rules
+++ netkit-ntalk-0.17/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# $Id: rules,v 1.7 2002/12/22 05:30:26 herbert Exp $
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	if [ ! -f MCONFIG ]; then \
+		./configure; \
+		echo "CFLAGS += -g -D_GNU_SOURCE" >> MCONFIG; \
+	fi
+	$(MAKE)
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp install-stamp
+
+	[ ! -f MCONFIG ] || $(MAKE) distclean
+
+	dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	$(MAKE) -C talk install INSTALLROOT=`pwd`/debian/talk \
+		MANDIR=/usr/share/man
+	mv debian/talk/usr/bin/talk debian/talk/usr/bin/netkit-ntalk
+	mv debian/talk/usr/share/man/man1/talk.1 \
+	   debian/talk/usr/share/man/man1/netkit-ntalk.1
+	$(MAKE) -C talkd install INSTALLROOT=`pwd`/debian/talkd \
+		MANDIR=/usr/share/man
+	cp debian/talkd.logcheck debian/talkd/etc/logcheck/ignore.d.server
+
+	touch install-stamp
+
+# 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_testversion
+	dh_testdir
+	dh_testroot
+#	dh_movefiles
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installinit
+	dh_installcron
+#	dh_installmanpages
+#	dh_undocumented
+	dh_installchangelogs ChangeLog
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+#	dh_makeshlibs
+	dh_md5sums
+	dh_builddeb
+
+source diff:                                                                  
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
--- netkit-ntalk-0.17.orig/debian/changelog
+++ netkit-ntalk-0.17/debian/changelog
@@ -0,0 +1,192 @@
+netkit-ntalk (0.17-14) unstable; urgency=low
+
+  * Depend only on openbsd-inetd since inetutils-inetd does not
+    support 'user.group' notation, and 'tty' group is required.
+    (Closes: #532749)
+  * Bumped Standards-Version to 3.8.2, no change.
+  * Made the package lintian clean again.
+  * Moved to debhelper compat 5.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 21 Jul 2009 15:35:32 +0200
+
+netkit-ntalk (0.17-13) unstable; urgency=low
+
+  * Ignore missing ../MCONFIG in clean target. (Closes: #436715)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Wed, 08 Aug 2007 20:55:00 +0200
+
+netkit-ntalk (0.17-12) unstable; urgency=low
+
+  * Updated Build-Dep on libwrap-dev to libwrap0-dev. (Closes: #436312)
+  * Bumped Standards-Version to 3.7.2.2, no change.
+  * Patched talk/ctl_transact.c to stop using SO_BSDCOMPAT
+    (Closes: #355601)
+  * Fixed postinst printf with echo. Thanks Matej Vela for the patch.
+    (Closes: #359045)
+  * Added logcheck file. Thanks Alexander Gerasiov. (Closes: #301935)
+  * Moved to debhelper compatability 4. Created debian/compat.
+  * Added depends on inet-superserver, since maintainer scripts use
+    update-inetd.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Tue, 07 Aug 2007 14:42:44 +0200
+
+netkit-ntalk (0.17-11) unstable; urgency=low
+
+  * New maintainer.
+  * debian/control. Removed full stops from packages descriptions 
+    to shut lintian up.
+   * debian/control. Changed 'talk' package description from 
+    'Talk to' to 'Chat with' to shut lintian up.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org>  Sat, 12 Mar 2005 12:48:58 +0100
+
+netkit-ntalk (0.17-10) unstable; urgency=medium
+
+  * Beautify error message when attempting to run talkd from command-line.
+    - talkd/talkd.c
+    (Closes: #275478)
+  * Use "which" instead of "command -v" in talkd scripts. (Closes: #293051)
+    - debian/talkd.prerm
+    - debian/talkd.postrm
+  * Fix possible DOS vulnerability in talkd, with patch from security team.
+    - talkd/talkd.c:  Don't accept connections on priviledged ports.
+
+ -- Robert Millan <rmh@debian.org>  Wed, 16 Feb 2005 17:59:06 +0100
+
+netkit-ntalk (0.17-9) unstable; urgency=low
+
+  * New maintainer. (Closes: #249707)
+    - control (Maintainer): Set myself.
+
+ -- Robert Millan <rmh@debian.org>  Wed, 19 May 2004 02:10:10 +0200
+
+netkit-ntalk (0.17-8) unstable; urgency=low
+
+  * Fixed update-alternatives check in postinst (closes: #210863).
+
+ -- Herbert Xu <herbert@debian.org>  Mon, 29 Sep 2003 20:14:46 +1000
+
+netkit-ntalk (0.17-7) unstable; urgency=low
+
+  * Reinstate alarm handler after calling wrappers in talkd (closes: #175185).
+
+ -- Herbert Xu <herbert@debian.org>  Sun,  9 Feb 2003 12:16:00 +1100
+
+netkit-ntalk (0.17-6) unstable; urgency=low
+
+  * Added talkd/ntalkd manual entries.
+  * Use in.talkd in synopsis of talkd man page (closes: #173057).
+
+ -- Herbert Xu <herbert@debian.org>  Sun, 22 Dec 2002 16:30:16 +1100
+
+netkit-ntalk (0.17-5) unstable; urgency=low
+
+  * Removed pre-tcpwrappers DNS check (closes: 134257).
+
+ -- Herbert Xu <herbert@debian.org>  Sun, 17 Feb 2002 08:36:34 +1100
+
+netkit-ntalk (0.17-4) unstable; urgency=low
+
+  * Fixed unset variable that caused talkd to be disabled (closes: #104507).
+
+ -- Herbert Xu <herbert@debian.org>  Sat, 14 Jul 2001 09:17:45 +1000
+
+netkit-ntalk (0.17-3) unstable; urgency=high
+
+  * Removed use of [:blank:] character class (closes: #92466).
+
+ -- Herbert Xu <herbert@debian.org>  Mon,  2 Apr 2001 20:51:06 +1000
+
+netkit-ntalk (0.17-2) unstable; urgency=low
+
+  * Replace commented out lines with commented out lines in inetd.conf
+    (closes: #82235).
+  * Fixed compilation problems with glibc 2.2 (closes: #90368).
+
+ -- Herbert Xu <herbert@debian.org>  Tue, 20 Mar 2001 21:39:57 +1100
+
+netkit-ntalk (0.17-1) unstable; urgency=low
+
+  * New upstream release.
+  * Suggest talkd in talk (closes: #75293).
+
+ -- Herbert Xu <herbert@debian.org>  Sun,  5 Nov 2000 21:10:23 +1100
+
+netkit-ntalk (0.16-4) unstable; urgency=low
+
+  * Added build-time dependency on debhelper (closes: #66748).
+
+ -- Herbert Xu <herbert@debian.org>  Mon, 17 Jul 2000 17:18:38 +1000
+
+netkit-ntalk (0.16-3) unstable; urgency=low
+
+  * Do not use M-p and M-q for scrolling up and down, ALT-p and ALT-q still
+    works though (closes: #66497).  Thanks to Alexey Vyskubov.
+
+ -- Herbert Xu <herbert@debian.org>  Tue,  4 Jul 2000 10:52:01 +1000
+
+netkit-ntalk (0.16-2) unstable; urgency=low
+
+  * Created a new option for talkd (-q) that will disable the logging of
+    successful connects.
+
+ -- Herbert Xu <herbert@debian.org>  Wed, 17 May 2000 19:33:18 +1000
+
+netkit-ntalk (0.16-1) unstable; urgency=low
+
+  * New upstream release.
+  * Don't treat 0xfe as an erase char, ytalk should be fixed instead.
+  * Added support for libwrap (closes: #46189).
+  * Install talk as netkit-ntalk and use alternatives for talk
+    (closes: #57968).
+  * Made compliant with policy 3.1.1.
+
+ -- Herbert Xu <herbert@debian.org>  Thu,  4 May 2000 13:04:23 +1000
+
+netkit-ntalk (0.10-6) frozen unstable; urgency=low
+
+  * Recompiled with libncurses5.
+  * Don't call sendto if we don't have a valid address (closes: #57425,
+    #57583).
+
+ -- Herbert Xu <herbert@debian.org>  Tue, 14 Mar 2000 12:52:18 +1100
+
+netkit-ntalk (0.10-5) unstable; urgency=low
+
+  * Applied the FvK patch (fixes #32086).
+  * Updated package maintainer scripts.
+
+ -- Herbert Xu <herbert@debian.org>  Sat, 25 Sep 1999 09:04:23 +1000
+
+netkit-ntalk (0.10-4) frozen unstable; urgency=low
+
+  * Uploaded to slink.
+
+ -- Herbert Xu <herbert@debian.org>  Sun, 15 Nov 1998 15:09:50 +1100
+
+netkit-ntalk (0.10-3) unstable; urgency=low
+
+  * Rebuilt with libncurses4.
+
+ -- Herbert Xu <herbert@debian.org>  Sat, 31 Oct 1998 17:50:42 +1100
+
+netkit-ntalk (0.10-2) unstable; urgency=low
+
+  * Be more liberal to what to remove (fixes #28027).
+  * Applied Sun compatibility patch from Juan-Mariano de Goyeneche
+    <jmseyas@dit.upm.es> (fixes #26641).
+    Hack to make standard talk/talkd compatible with SunOS/Solaris, which use a
+    different protocol.
+    Talk now understands ytalk's erase character (0xFE) and Solaris' ENTER
+    (Solaris uses ^M as `ENTER', making it incompatible with anybody else,
+    including SunOS, which use normal \n).
+
+ -- Herbert Xu <herbert@debian.org>  Sat, 17 Oct 1998 14:39:43 +1000
+
+netkit-ntalk (0.10-1) unstable; urgency=low
+
+  * Initial Release.
+  * Run as nobody.tty instead of root.
+
+ -- Herbert Xu <herbert@debian.org>  Fri, 11 Sep 1998 13:25:27 +1000
+