--- scapy-2.1.0.orig/debian/control
+++ scapy-2.1.0/debian/control
@@ -0,0 +1,29 @@
+Source: scapy
+Section: python
+Priority: optional
+Maintainer: David Villa Alises <David.Villa@uclm.es>
+Uploaders: Francisco Moya <paco@debian.org>
+Build-Depends: debhelper (>= 7), cdbs (>=0.4.43), python, python-support (>= 0.3)
+Standards-Version: 3.8.4
+Homepage: http://www.secdev.org/projects/scapy/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/scapy/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/scapy/trunk/
+
+Package: python-scapy
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: tcpdump, tcpreplay, wireshark, graphviz, imagemagick, python-gnuplot, python-crypto, python-pyx, ebtables, python-visual, sox, xpdf, gv, hexer
+Replaces: scapy (<< 1.0.5-1)
+Conflicts: scapy (<< 1.0.5-1)
+Description: Packet generator/sniffer and network scanner/discovery
+ Scapy is a powerful interactive packet manipulation tool, packet
+ generator, network scanner, network discovery, packet sniffer, etc. It
+ can for the moment replace hping, 85% of nmap, arpspoof, arp-sk, arping,
+ tcpdump, tethereal, p0f, ....
+ .
+ In scapy you define a set of packets, then it sends them, receives
+ answers, matches requests with answers and returns a list of packet couples
+ (request, answer) and a list of unmatched packets. This has the big advantage
+ over tools like nmap or hping that an answer is not reduced to
+ (open/closed/filtered), but is the whole packet.
+
--- scapy-2.1.0.orig/debian/pyversions
+++ scapy-2.1.0/debian/pyversions
@@ -0,0 +1 @@
+2.5-
--- scapy-2.1.0.orig/debian/copyright
+++ scapy-2.1.0/debian/copyright
@@ -0,0 +1,27 @@
+This package was debianized by Alberto Gonzalez Iniesta <agi@agi.as> on
+Thu, 08 May 2003 15:22:45 +0200
+
+It was downloaded from http://www.secdev.org/projects/scapy/files/
+
+Upstream Authors: Philippe Biondi <phil@secdev.org>
+
+Copyright (C) 2003 Philippe Biondi <phil@secdev.org>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is (C) 2007,2008 David Villa <David.Villa@uclm.es> and
+is licensed under the GPL.
--- scapy-2.1.0.orig/debian/changelog
+++ scapy-2.1.0/debian/changelog
@@ -0,0 +1,165 @@
+scapy (2.1.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #570343)
+
+ -- David Villa Alises <David.Villa@uclm.es> Wed, 24 Feb 2010 12:43:23 +0100
+
+scapy (2.0.1-1) unstable; urgency=low
+
+ [ Sandro Tosi ]
+ * debian/control
+ - switch Vcs-Browser field to viewsvn
+ [ Yves-Alexis Perez ]
+ * new upstream release.
+ * debian/control:
+ - update standards version to 3.8.3.
+ - add ${misc:Depends} to depends since we use debhelper.
+ * debian/patches:
+ - both patches refreshed for new upstream.
+ [ David Villa ]
+ * new upstream release (Closes: #485767)
+
+ -- David Villa Alises <David.Villa@uclm.es> Wed, 30 Sep 2009 17:27:46 +0200
+
+scapy (2.0.0.5-1) unstable; urgency=low
+
+ * New upstream release. Source taken from mercurial repository at
+ http://hg.secdev.org/scapy (tag 'v2.0.0.5')
+
+ -- David Villa Alises <David.Villa@uclm.es> Sun, 17 Aug 2008 18:02:55 +0200
+
+scapy (1.1.1-4) UNRELEASED; urgency=low
+
+ [ Piotr Ożarowski ]
+ * Vcs-Svn, Vcs-Browser and Homepage fields added
+
+ [ Sandro Tosi ]
+ * debian/control
+ - uniforming Vcs-Browser field
+
+ -- Piotr Ożarowski <piotr@debian.org> Sat, 6 Oct 2007 23:47:25 +0200
+
+scapy (1.1.1-3) unstable; urgency=low
+
+ * Upstream author made several important modificacions and bug
+ fixes, but he does not create a new upstream resease. I include
+ them as a patch in /debian/patches/scapy.py-upstream.patch
+
+ -- David Villa Alises <David.Villa@uclm.es> Fri, 07 Sep 2007 15:50:27 +0200
+
+scapy (1.1.1-2) unstable; urgency=low
+
+ * debian/control
+ - XS-Python-Version: >= 2.4 (Closes: #426504)
+
+ -- David Villa Alises <David.Villa@uclm.es> Tue, 29 May 2007 11:03:49 +0200
+
+scapy (1.1.1-1) unstable; urgency=low
+
+ * New upstream release
+ * debian/control
+ - Added Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+ - build-depends-indep to build-depends: python-all-dev, python-support
+ - Changed Suggest: acroread to xpdf
+ * debian/python-scapy.install
+ - Changed to usr/lib/python2.*/site-packages/scapy.py (Closes: #421603)
+ * debian/copyright:
+ - Updated download location and author e-mail address
+ * Thanks to Scott Kitterman <scott@kitterman.com> for his patch
+
+ -- David Villa Alises <David.Villa@uclm.es> Thu, 10 May 2007 09:53:49 +0200
+
+scapy (1.0.5.20-1) unstable; urgency=low
+
+ * New upstream release. (Closes: #407918)
+ * Include revision number in debian version. (Closes: #407920)
+ * Corrected copyright information. (Closes: #407916)
+ * Repacked upstream tarball with latest upstream revision, and
+ documented this in README.Debian.
+ * Added watch file.
+ * Bumped compat level to 5.
+ * debian/rules: Switch to CDBS.
+ * debian/control:
+ - Added Suggest: imagemagick and graphviz, for graph stuff. (Closes: #408130)
+ - Added Suggest: python-crypto, needed for decrypting WEP messages.
+ - Added Suggest: acroread, gv. (for psdump() and pdfdump())
+ - Added Suggest: sox (for VOIP stuff)
+ - Added Suggest: python-visual (for trace3D())
+ * Removed outdated file `scapy.html'.
+ * Thanks to Marcus Better <marcus@better.se> for his unrelesed version.
+
+ -- David Villa Alises <David.Villa@uclm.es> Sun, 4 Feb 2007 16:56:03 +0100
+
+scapy (1.0.5-1) unstable; urgency=low
+
+ * New upstream release
+ * debian/rules: Updated to new python policy. Thanks to Francisco Moya
+ <francisco.moya@uclm.es> (Closes: #397958).
+ * debian/control:
+ - Binary package name changes according to Python Policy (Section 2.2)
+ - Added dummy transitional package to provide an upgrade path from scapy.
+
+ -- David Villa Alises <David.Villa@uclm.es> Tue, 2 Jan 2007 16:26:35 +0100
+
+scapy (1.0.4-1) unstable; urgency=low
+
+ * New maintainer, with permission of previous maintainer
+ * New upstream release (Closes: #362655)
+ * Lets use scapy as library (Closes: #270267)
+ * debian/control
+ - Added Suggests: tcpdump
+
+ -- David Villa Alises <David.Villa@uclm.es> Fri, 14 Apr 2006 22:35:29 +0200
+
+scapy (1.0.2-1) unstable; urgency=low
+
+ * New upstream release (Closes: #346271)
+ * debian/control:
+ - Changed Depends on python2.3 to python.
+ - Bumped Standards-Version to 3.6.1. No change.
+ - Added Suggests: python-gnuplot, python-pyx, ebtables
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Sat, 7 Jan 2006 14:40:04 +0100
+
+scapy (1.0.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #322329)
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Sun, 28 Aug 2005 15:06:00 +0200
+
+scapy (0.9.17-1) unstable; urgency=low
+
+ * New upstream release
+ * Modified scapy.py to point to the correct location of p0f.fp.
+ (Closes: #289397)
+ * Changed maintainer email address.
+
+ -- Alberto Gonzalez Iniesta <agi@inittab.org> Mon, 17 Jan 2005 20:09:47 +0100
+
+scapy (0.9.15-2) unstable; urgency=low
+
+ * Added postrm to get rid of scapy.pyc on package removal.
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as> Thu, 16 Oct 2003 17:06:01 +0200
+
+scapy (0.9.15-1) unstable; urgency=low
+
+ * New upstream release
+ * Moved to debhelper compatability 4. Created debian/compat.
+ * Bumped Standards-Version to 3.6.1. No change.
+ * Changed Depends on python2.2 to python2.3
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as> Thu, 16 Oct 2003 16:52:39 +0200
+
+scapy (0.9.14-1) unstable; urgency=low
+
+ * New upstream version. (Closes: #198879)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as> Thu, 26 Jun 2003 19:04:38 +0200
+
+scapy (0.9.12-1) unstable; urgency=low
+
+ * Initial Release. (Closes: #192169)
+
+ -- Alberto Gonzalez Iniesta <agi@agi.as> Thu, 08 May 2003 15:11:36 +0200
+
--- scapy-2.1.0.orig/debian/dirs
+++ scapy-2.1.0/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- scapy-2.1.0.orig/debian/watch
+++ scapy-2.1.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.secdev.org/projects/scapy/files/scapy-(.*)\.tar\.gz
--- scapy-2.1.0.orig/debian/rules
+++ scapy-2.1.0/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+DEB_PYTHON_SYSTEM=pysupport
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+
+clean::
+ -rm -rf build
+
+
+get_source:
+ uscan --download-current-version --destdir ../tarballs
--- scapy-2.1.0.orig/debian/compat
+++ scapy-2.1.0/debian/compat
@@ -0,0 +1 @@
+5
--- scapy-2.1.0.orig/debian/patches/paths.patch
+++ scapy-2.1.0/debian/patches/paths.patch
@@ -0,0 +1,29 @@
+diff -Nur -x '*.orig' -x '*~' scapy-2.1.0//scapy/arch/linux.py scapy-2.1.0.new//scapy/arch/linux.py
+--- scapy-2.1.0//scapy/arch/linux.py 2009-12-14 16:31:55.000000000 +0100
++++ scapy-2.1.0.new//scapy/arch/linux.py 2010-02-24 13:33:46.453297258 +0100
+@@ -66,7 +66,7 @@
+
+ LOOPBACK_NAME="lo"
+
+-with os.popen("tcpdump -V 2> /dev/null") as _f:
++with os.popen("/usr/sbin/tcpdump -V 2> /dev/null") as _f:
+ if _f.close() >> 8 == 0x7f:
+ log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH")
+ TCPDUMP=0
+diff -Nur -x '*.orig' -x '*~' scapy-2.1.0//scapy/config.py scapy-2.1.0.new//scapy/config.py
+--- scapy-2.1.0//scapy/config.py 2009-12-14 16:31:55.000000000 +0100
++++ scapy-2.1.0.new//scapy/config.py 2010-02-24 13:33:37.229297335 +0100
+@@ -52,11 +52,11 @@
+
+
+ class ProgPath(ConfClass):
+- pdfreader = "acroread"
++ pdfreader = "xpdf"
+ psreader = "gv"
+ dot = "dot"
+ display = "display"
+- tcpdump = "tcpdump"
++ tcpdump = "/usr/sbin/tcpdump"
+ tcpreplay = "tcpreplay"
+ hexedit = "hexer"
+ wireshark = "wireshark"
--- scapy-2.1.0.orig/debian/patches/setup.py.patch
+++ scapy-2.1.0/debian/patches/setup.py.patch
@@ -0,0 +1,12 @@
+diff -Nur -x '*.orig' -x '*~' scapy-2.1.0//setup.py scapy-2.1.0.new//setup.py
+--- scapy-2.1.0//setup.py 2009-12-14 16:31:55.000000000 +0100
++++ scapy-2.1.0.new//setup.py 2010-02-24 13:30:58.625296593 +0100
+@@ -34,7 +34,7 @@
+
+ archive_util.ARCHIVE_FORMATS["ezip"] = (make_ezipfile,[],'Executable ZIP file')
+
+-SCRIPTS = ['bin/scapy','bin/UTscapy']
++SCRIPTS = ['bin/scapy']
+ # On Windows we also need additional batch files to run the above scripts
+ if os.name == "nt":
+ SCRIPTS += ['bin/scapy.bat','bin/UTscapy.bat']