--- ident2-1.05.orig/Makefile.in +++ ident2-1.05/Makefile.in @@ -36,8 +36,8 @@ doc_format = @doc_format@ PROG = ident2 -BINDIR = /usr/local/sbin -MANDIR = /usr/local/man/man8 +BINDIR = @prefix@/sbin +MANDIR = @prefix@/man/man8 SOURCES=ident2.c common.c daemon.c m_${MACHTARGET}.c OBJS=ident2.o common.o daemon.o machine.o @@ -47,14 +47,15 @@ all: $(PROG) install: all - $(top_srcdir)/util/mkinstalldirs $(BINDIR) - $(top_srcdir)/util/mkinstalldirs $(MANDIR) - $(INSTALL) $(PROG) $(BINDIR) - $(INSTALL) $(DOC) $(MANDIR) + $(top_srcdir)/util/mkinstalldirs $(prefix)/sbin + $(top_srcdir)/util/mkinstalldirs $(prefix)/share/man/man8 + $(INSTALL) $(PROG) $(prefix)/sbin + # We get Debian to install the manpages. +# $(INSTALL) $(DOC) $(prefix)/share/man/man8 uninstall: - /bin/rm -f $(BINDIR)/$(PROG) - /bin/rm -f $(MANDIR)/$(DOC) + /bin/rm -f $(prefix)/sbin/$(PROG) + /bin/rm -f $(prefix)/share/man/$(DOC) $(PROG): $(OBJS) $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LIBS) --- ident2-1.05.orig/debian/control +++ ident2-1.05/debian/control @@ -0,0 +1,18 @@ +Source: ident2 +Section: net +Priority: extra +Maintainer: Chuan-kai Lin +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.6.1.1 + +Package: ident2 +Architecture: any +Depends: netbase, adduser, ${shlibs:Depends} +Provides: ident-server +Conflicts: ident-server +Description: An advanced ident daemon + ident2 is an advanced, configurable ident daemon. You can set it to lie, + not lie, or not return any response at all, and it is per-user configurable + (e.g. if user daniel was IRCing, it'd use ~daniel/.ident for its config, if + user kim was IRCing, it'd use ~kim/.ident). The admin can specify whether + users can configure the type of return they want or not. --- ident2-1.05.orig/debian/changelog +++ ident2-1.05/debian/changelog @@ -0,0 +1,101 @@ +ident2 (1.05-1) unstable; urgency=low + + * New upstream release. (closes: #262939) + * Upstream security fix to _getl (DSA-494-1,CAN-2004-0408) is identical + to the fix we introduced in 1.04-2 + + -- Chuan-kai Lin Tue, 10 Aug 2004 10:58:14 -0700 + +ident2 (1.04-2) unstable; urgency=high + + * Fix buffer overflow caused by off-by-one error in _getl() (patch from + Jacques A. Vidrine) + + -- Chuan-kai Lin Fri, 16 Apr 2004 20:04:14 -0700 + +ident2 (1.04-1) unstable; urgency=low + + * New maintainer. (Closes: #195556) + * New upstream release. + + -- Chuan-kai Lin Sun, 8 Feb 2004 21:16:52 -0800 + +ident2 (1.03-7) unstable; urgency=low + + * Modified the postrm's way for dealing with the inetd configuration + (Closes: #206244,#206247). + + -- Rob Bradford Wed, 20 Aug 2003 10:37:59 +0100 + +ident2 (1.03-6) unstable; urgency=low + + * Applied a patch from Joshua Kwan to fix the build problems with gcc 3.3 + due to the use of multiline strings. (closes: #194930) + + -- Rob Bradford Tue, 1 Jul 2003 13:37:15 +0100 + +ident2 (1.03-5) unstable; urgency=low + + * Changed the handling of a previous ident install wrt inetd.conf so that + the postinst removes the ident line from other ident packages, not just + disabling it. (closes: #193225) + * Changed the copyright file to include a reference to the common license + location for the GPL. + + -- Rob Bradford Sat, 17 May 2003 13:49:04 +0100 + +ident2 (1.03-4) unstable; urgency=low + + * Removed unrequired code from postinst that adds the /usr/doc -> + /usr/share/doc symlink as this is being done by debhelper already. + (closes: #155639). And is no longer needed in sid/sarge. + + -- Rob Bradford Wed, 7 Aug 2002 10:12:39 +0100 + +ident2 (1.03-3) unstable; urgency=low + + * Fixed a bug in postinst that caused it to fail if the identd home + directory didn't exist and wasnt created because the identd user already + existed but did not have that home directory. (closes: #127163) + + -- Rob Bradford Tue, 1 Jan 2002 19:15:50 +0000 + +ident2 (1.03-2) unstable; urgency=low + + * New maintainer (closes: #110246) + * Made some minor cleanups thanks to mhp. + + -- Rob Bradford Thu, 30 Aug 2001 10:38:53 +0100 + +ident2 (1.03-1) unstable; urgency=low + + * New upstream release + * Change my email address. + + -- Daniel Stone Wed, 25 Jul 2001 21:43:05 +1000 + +ident2 (1.02-5) unstable; urgency=low + + * Added a provides and conflicts for ident-server. + * Initial Debian release. (Closes: #83358) + + -- Daniel Stone Fri, 27 Apr 2001 17:43:40 +1000 + +ident2 (1.02-4) unstable; urgency=low + + * Changed debian/* structure to debian/ident2.* + * Fixed bloody stupid bug ("/usr/sbin/ident2 midentd -i -n"). Dunno how it worked. + + -- Daniel Stone Mon, 23 Apr 2001 21:43:02 +1000 + +ident2 (1.02-3) unstable; urgency=low + + * Rebuilt with new debhelper version. + + -- Daniel Stone Sat, 7 Apr 2001 14:49:09 +1000 + +ident2 (1.02-1) unstable; urgency=low + + * Initial Release. + + -- Daniel Stone Sat, 7 Apr 2001 14:31:36 +1000 --- ident2-1.05.orig/debian/ident2.files +++ ident2-1.05/debian/ident2.files @@ -0,0 +1 @@ +ident2_1.02-3_i386.deb net optional --- ident2-1.05.orig/debian/ident2.prerm +++ ident2-1.05/debian/ident2.prerm @@ -0,0 +1,9 @@ +#!/bin/sh +# pre remove script for the Debian GNU/Linux ident2 package +# thanks, midentd. + +set -e + +update-inetd --disable ident + +#DEBHELPER# --- ident2-1.05.orig/debian/ident2.8 +++ ident2-1.05/debian/ident2.8 @@ -0,0 +1,72 @@ +.TH ident2 8 GNU +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +ident2 \- An advanced ident daemon +.SH SYNOPSIS +.B ident2 +.I "[options]" +.SH "DESCRIPTION" +ident2 is an advanced ident daemon, which can run as an inetd service or +on it's own. It has various features such as user defined and random +replies, extensive logging, and full administrative control. +.PP +.SH OPTIONS +The program follows the usual GNU syntax command-line unless it is +unsupported on your system. GNU options begin with two dashes(`-') and have +much more descriptive names. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-u, \-\-usage +Shows example command lines +.TP +.B \-v, \-\-version +Show version information +.TP +.B \-l, \-\-license +Show licensing information +.TP +.B \-a, \-\-force\-inetd +Force inetd mode, if autodetection isn't working. +.TP +.B \-d, \-\-force\-daemon +Force standalone daemon, if autodetection isn't working. +.TP +.B \-i, \-\-use\-user\-ident +Allow user defined ident replies. Just do a +.B echo 'ident ar' > ~/.ident +to change your ident reply. +.TP +.B \-y, \-\-user\-reply\-file +File ident2 should look for in user's homedir for replies. Default is ~/.ident +.TP +.B \-n, \-\-allow\-noident\-file +Disable replies for user if user has a ~/.noident file. This behavior is disabled by default. +.TP +.B \-o, \-\-client\-timeout +Clients timeout after this many seconds +.TP +.B \-s, \-\-dont\-change\-uid +Ident2 will normally try to change it's uid to something less privileged if +it finds it's uid to be 0. This option disables this behavior altogether. +.TP +.B \-r, \-\-always\-random +Always send a random reply, regardless of what kind of request the client +made. This is useful for abusing the ident protocol as well as assisting +outgoing IP masqueraded connections. +.TP +.B \-m, \-\-daemon\-maxclients +Daemon-only: Accept no more than this many connections at a time. +.TP +.B \-p, \-\-daemon\-port +Daemon-only: Bind this port, instead of 'auth' aka 113 +.TP + + +.SH "SEE ALSO" +.IR "inetd(8), inetd.conf(5)" +.SH AUTHOR +This manual page was written by Alexander Reelsen , +for the Debian GNU/Linux system (but may be used by others). --- ident2-1.05.orig/debian/ident2.copyright +++ ident2-1.05/debian/ident2.copyright @@ -0,0 +1,12 @@ +This package was debianized by Daniel Stone on +Sat, 7 Apr 2001 14:31:36 +1000. + +It was downloaded from http://freshmeat.net/projects/ident2/ + +Upstream Author: Michael Bacarella II + +Copyright: +Licensed under the GNU General Public License. + +The full text of the license can be found at /usr/share/common-licenses/GPL + --- ident2-1.05.orig/debian/ident2.README.Debian +++ ident2-1.05/debian/ident2.README.Debian @@ -0,0 +1,11 @@ +ident2 for Debian +----------------- + +Command line switches to include on its inetd.conf line: + * -i: Accept users' config (~/.ident). + * -n: Accept users' ~/.noident to disable an ident reply. + * -r: Random ident reply. Can't think why you'd use it. + +Just make sure you don't have conflicting ident daemons. + + -- Daniel Stone , Sat, 7 Apr 2001 14:31:36 +1000 --- ident2-1.05.orig/debian/ident2.dirs +++ ident2-1.05/debian/ident2.dirs @@ -0,0 +1 @@ +usr/sbin --- ident2-1.05.orig/debian/ident2.docs +++ ident2-1.05/debian/ident2.docs @@ -0,0 +1 @@ +README --- ident2-1.05.orig/debian/ident2.postinst +++ ident2-1.05/debian/ident2.postinst @@ -0,0 +1,26 @@ +#!/bin/sh +# post install script for the Debian GNU/Linux ident2 package +# thanks, midentd. + +set -e + +if ! id -u identd >/dev/null 2>&1; then + adduser --quiet --system --home /var/run/identd identd +fi + +mkdir -p /var/run/identd +chmod 755 /var/run/identd + +case "$1" in + configure) + # Update inetd.conf (first remove any existing, then add the new). + update-inetd --remove ident + update-inetd --group INFO --add "ident stream tcp nowait identd /usr/sbin/ident2 ident2 -i -n" + ;; + *) + printf "$0: incorrect arguments: $*\n" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- ident2-1.05.orig/debian/rules +++ ident2-1.05/debian/rules @@ -0,0 +1,72 @@ +#!/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 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Build Makefiles, etc, chuck it in /usr. + ./configure --prefix=/usr --mandir=\$${prefix}/share/man + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Build the package itself. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Clean up afterwards. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install the package into debian/ident2. + $(MAKE) install prefix=$(CURDIR)/debian/ident2/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_installcron + dh_installman -pident2 ident2.8 + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- ident2-1.05.orig/debian/ident2.postrm +++ ident2-1.05/debian/ident2.postrm @@ -0,0 +1,13 @@ +#!/bin/sh +# post removal script for the Debian GNU/Linux ident2 package +# thanks, midentd. + +set -e + +if [ "$1" = "purge" ]; then + update-inetd --remove "/usr/sbin/ident2" +else + update-inetd --pattern "ident2" --disable ident +fi + +#DEBHELPER#