--- imsniff-0.04.orig/debian/control
+++ imsniff-0.04/debian/control
@@ -0,0 +1,27 @@
+Source: imsniff
+Section: net
+Priority: extra
+Maintainer: Juan Angulo Moreno <juan@apuntale.com>
+Build-Depends: debhelper (>= 6), libpcap0.8-dev, docbook-to-man
+Standards-Version: 3.7.3
+
+Package: imsniff
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Simple program to log Instant Messaging activity on the network
+ The imsniff program can be used to log IM activity on the network. It uses
+ libpcap to capture packets and analyzes them, logging conversation, contact
+ lists, etc.
+ .
+ Users connecting after imsniff is started can get pretty good results,
+ including complete contact lists and events (displaying a name change, for
+ example). Users already connected will be able to get the conversations, but
+ will miss the other information.
+ .
+ The only required parameter is the interface name to listen to. This can be
+ any interface that libpcap supports. A sample imsniff.conf.sample file is
+ included.
+ .
+ imsniff is beta software, for now, only MSN is supported. Others could follow.
+ .
+ Author: Carlos Fernandez <carlos.fernandez.sanz@gmail.com>
--- imsniff-0.04.orig/debian/compat
+++ imsniff-0.04/debian/compat
@@ -0,0 +1 @@
+6
--- imsniff-0.04.orig/debian/docs
+++ imsniff-0.04/debian/docs
@@ -0,0 +1,3 @@
+docs/AUTHORS
+docs/README
+docs/TODO
--- imsniff-0.04.orig/debian/changelog
+++ imsniff-0.04/debian/changelog
@@ -0,0 +1,30 @@
+imsniff (0.04-4) unstable; urgency=low
+
+ * Fixed: copyright information. (Closes: #456366)
+ * Upgrade Debhelper to 6.
+
+ -- Juan Angulo Moreno <juan@apuntale.com> Wed, 12 Mar 2008 20:13:13 -0430
+
+imsniff (0.04-3) unstable; urgency=low
+
+ * New maintainer. (Closes: #448724).
+ * Added debian/rules: -Wl,--as-needed in the LDFLAGS.
+ * Upgrade Standards-Version 3.7.3.
+
+ -- Juan Angulo Moreno <juan@apuntale.com> Tue, 11 Dec 2007 13:19:38 -0430
+
+imsniff (0.04-2) unstable; urgency=low
+
+ * QA upload.
+ * Set maintainer to QA group.
+ * Fix broken watch file (Closes: #449914).
+
+ -- Nico Golde <nion@debian.org> Sun, 02 Dec 2007 18:28:43 +0100
+
+imsniff (0.04-1) unstable; urgency=low
+
+ * Initial release (Closes: #402351)
+ * Repackaged upstream orig.tgz to get rid of windows binaries.
+
+ -- Amaya Rodrigo Sastre <amaya@debian.org> Mon, 11 Dec 2006 18:25:15 +0100
+
--- imsniff-0.04.orig/debian/imsniff.8
+++ imsniff-0.04/debian/imsniff.8
@@ -0,0 +1,109 @@
+.\" Title: IMSNIFF
+.\" Author: Amaya Rodrigo Sastre
+.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
+.\" Date: December 9, 2006
+.\" Manual:
+.\" Source:
+.\"
+.TH "IMSNIFF" "8" "December 9, 2006" "" ""
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.SH "NAME"
+imsniff \- Simple program to log Instant Messaging activity on the network
+.SH "SYNOPSIS"
+.HP 8
+\fBimsniff\fR [\fB\-cd\fR\fB\fIchatdir\fR\fR] [\fB\-dd\fR\fB\fIdebugdir\fR\fR] [\fB\-v*\fR\fB\fIverbose\fR\fR] [\fB\-p\fR\fB\fIpromisc\fR\fR] [\fB\-d\fR\fB\fIdaemonize\fR\fR] [\fB\-offset\fR\fB\fIdata_offset\fR\fR] [\fB\-help\fR\fB\fIN/A\fR\fR] [\fBinterface\fR]
+.SH "DESCRIPTION"
+.PP
+This manual page documents briefly the
+\fBimsniff\fR
+commands.
+.PP
+This manual page was written for the
+Debian(TM)
+distribution because the original program does not have a manual page. Instead, it has documentation in the
+GNU
+Info
+format; see below.
+.PP
+The
+\fBimsniff\fR
+can be used to log IM activity on the network. It uses libpcap to capture packets and analyzes them, logging conversation, contact lists, etc.
+.PP
+Users connecting after imsniff is started can get pretty good results, including complete contact lists and events (displaying a name change, for example). Users already connected will be able to get the conversations, but will miss the other information.
+.PP
+The only required parameter is the interface name to listen to. This can be any interface that libpcap supports. A sample imsniff.conf.sample file is included.
+.SH "OPTIONS"
+.PP
+\fB\-\-help\fR
+.RS 3n
+N/A. Display help.
+.RE
+.PP
+\fB\-cd\fR
+.RS 3n
+Directory where conversations will be stored.
+.RE
+.PP
+\fB\-dd\fR
+.RS 3n
+debugdir. Directory where logs will be stored. These logs contain debug information as well as certain MSN events.
+.RE
+.PP
+\fB\-v*\fR
+.RS 3n
+verbose. Debug level. The more v's (or higher the number in the config file), the more info that is dumped. For regular usage, use 1 or 2. More than that will dump a lot of useless stuff.
+.RE
+.PP
+\fB\-p\fR
+.RS 3n
+promisc. Put the device in promiscuous mode.
+.RE
+.PP
+\fB\-d\fR
+.RS 3n
+data_offset. See below.
+.RE
+.PP
+\fBinterface\fR
+.RS 3n
+Interface to use.
+.RE
+.SH "DATA OFFSET"
+.PP
+The offset (in this context) is the length of the datalink header when capturing packets. This is an important number because we need to skip this header when processing packets. For ethernet, this number is 14, and IMsniff knows about it. If you use a different interface, you might have to help IMsniff by providing the number yourself. Por example:
+.PP
+imniff ppp0 \-offset 4
+.PP
+How do you figure out this number? The easiest way is just try different numbers (and keep your own MSN connection busy (type something) until IMsniff starts dumping conversations. The number is never high anyway. A few tries should always do.
+.PP
+If you have to use this, once it's working please drop me a note telling me what interface type IMsnif reported, and the offset you used. I will add this to the code so next versions don't have to be tuned manually.
+.SH "STATUS"
+.PP
+Beta version. Seems to work decently.
+.SH "SUPPORTED PROTOCOLS"
+.PP
+For now, only MSN. Others could follow.
+.SH "AUTHOR"
+.PP
+This manual page was written by Amaya Rodrigo Sastre
+<amaya@debian.org>
+for the
+Debian(TM)
+system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the
+GNU
+General Public License, Version 2 any later version published by the Free Software Foundation.
+.PP
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
+.SH "AUTHOR"
+.PP
+\fBAmaya Rodrigo Sastre\fR
+.sp -1n
+.IP "" 3n
+Author.
+.SH "COPYRIGHT"
+Copyright \(co 2006 Amaya Rodrigo Sastre
+.br
+
--- imsniff-0.04.orig/debian/watch
+++ imsniff-0.04/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/im-snif/imsniff_(.+)\.tgz
--- imsniff-0.04.orig/debian/copyright
+++ imsniff-0.04/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Amaya Rodrigo Sastre <amaya@debian.org> on
+Sat, 9 Dec 2006 18:39:35 0100.
+
+It was downloaded from http://sourceforge.net/projects/im-snif/
+
+Upstream Author:
+
+ Carlos Fernandez Sanz <carlos.fernandez.sanz@gmail.com>
+
+Copyright:
+
+ Copyright (C) 2003-2008, Carlos Fernandez Sanz
+
+License:
+
+ This package 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; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2006, Amaya Rodrigo Sastre <amaya@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
--- imsniff-0.04.orig/debian/rules
+++ imsniff-0.04/debian/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+LDFLAGS = -Wl,--as-needed
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ # Add here commands to compile the package.
+ g++ $(LDFLAGS) -o imsniff src/imsniff.cpp src/util.cpp src/msn_conntrack.cpp src/msn_handlers.cpp -lpcap src/pcap_stuff.cpp
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp imsniff
+ # Add here commands to clean up after the build process.
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# 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_installchangelogs
+ dh_installdocs
+ dh_installexamples docs/imsniff.conf.sample
+ dh_install imsniff usr/bin/
+ dh_installman debian/imsniff.8
+ 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
--- imsniff-0.04.orig/debian/dirs
+++ imsniff-0.04/debian/dirs
@@ -0,0 +1 @@
+usr/bin