debian/0000755000000000000000000000000012142070237007164 5ustar debian/examples0000644000000000000000000000001312142065741010723 0ustar examples/* debian/docs0000644000000000000000000000001512142065741010037 0ustar doc.i README debian/rules0000755000000000000000000000005712142065741010252 0ustar #!/usr/bin/make -f %: dh $@ --with=python2 debian/source/0000755000000000000000000000000012142065741010470 5ustar debian/source/format0000644000000000000000000000001412142065741011676 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012142066650010617 5ustar debian/patches/series0000644000000000000000000000002412142065741012030 0ustar 001-fix-ftbfs.patch debian/patches/001-fix-ftbfs.patch0000644000000000000000000000401512142065741014026 0ustar Author: Richard Darst Description: FTBFS: pcap.c:3886: error: '_wrap_SWIG_PyInstanceMethod_New' undeclared here (not in a function) Bug-Debian: http://bugs.debian.org/542984 --- python-libpcap-0.6.2.orig/setup.py +++ python-libpcap-0.6.2/setup.py @@ -15,8 +15,8 @@ # uncomment this line and comment out the next one if you want to build # pcap.c from the SWIG interface -# sourcefiles = ["mk-constants.py", "pcap.i"] -sourcefiles = ["pcap.c"] +sourcefiles = ["mk-constants.py", "pcap.i"] +# sourcefiles = ["pcap.c"] # if you are building against a non-installed version of libpcap, # specify its directory here, otherwise set this to None --- python-libpcap-0.6.2.orig/build-tools/docify-shadow.py +++ python-libpcap-0.6.2/build-tools/docify-shadow.py @@ -65,7 +65,8 @@ # Make a dictionary of all the method names from the method lines. methods={} for line in pymeths: - methmatch=re.search('def +([^ (]*) *\(\*args\)',line) + #methmatch=re.search('def +([^ (]*) *\(\*args\)',line) + methmatch=re.search('def +([^ (]*) *\((self)?(, )?(\*args)?\)',line) fnmatch=re.search('\:.*[^_p](_?pcapc?\.[^(, ]+) *[(,]',line) methode=None fname=None @@ -98,7 +99,7 @@ # put doc assignments inside of the __init__ outfile.write(' import sys\n') -outfile.write(' if int(sys.version[0])>=\'2\':\n') +outfile.write(' if int(sys.version[0])>=2:\n') for method, fname in methods.items(): outfile.write(' self.%s.im_func.__doc__ = %s.__doc__\n' % (method, fname)) --- python-libpcap-0.6.2.orig/build-tools/docify.py +++ python-libpcap-0.6.2/build-tools/docify.py @@ -37,7 +37,8 @@ match=re.search('^.*char \*.*\".*\"',line) if match: fname=re.search('\".*\"',match.group(0)).group(0)[1:-1] - if re.search('swigregister',fname): + if re.search('swigregister|SWIG_PyInstanceMethod_New',fname): + #if re.search('swigregister',fname): # print 'skipping doc string for %s\n' % fname outfile.write(line) continue debian/watch0000644000000000000000000000035312142065741010222 0ustar version=3 opts=dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/_/./g;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/ \ http://qa.debian.org/watch/sf.php/pylibpcap/pylibpcap-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian/copyright0000644000000000000000000000230712142067245011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://pylibpcap.sourceforge.net/ Files: * Copyright: 2004-2012 William Lewis , 2000-2002 David Margrave 1998 Aaron L. Rhodes License: BSD-3-clause This program is free software. 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 names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; it is provided "AS IS", without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. debian/control0000644000000000000000000000147012142065741010575 0ustar Source: python-libpcap Section: python Priority: optional Maintainer: Debian QA Group Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), libpcap0.8-dev (>= 0.9.5-1~), python-all-dev (>= 2.6.6-3~), swig (>= 1.3.31-1~) Homepage: http://sourceforge.net/projects/pylibpcap Package: python-libpcap Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Conflicts: python-pypcap Provides: ${python:Provides} Description: Python wrapper for libpcap packet capture library Python module for the libpcap, the UNIX packet capture library. This can be used for many purposes including network debugging, traffic analysis, intrusion detection, based on the original Python libpcap module by Aaron Rhodes. debian/changelog0000644000000000000000000000447212142067434011052 0ustar python-libpcap (0.6.4-1) unstable; urgency=low * QA upload * Maintainer field set to QA Group * New upstream release (Closes: #703759) * Convert to dh_python2, thank to Colin Watson (Closes: #617012) * Switch to dpkg-source 3.0 (quilt) format + split diff into historic patches * Convert copyright file to UTF-8 * Add watch file, thank to Bart Martens * Use wrap-and-sort in debian/control * Convert debian/rules to debhelper-7 style, thank to Jakub Wilk * Update copyright file to version 1.0 format + Remove refer to BSD license file + Bump the copyright year * Bump debhelper compat to 9 * Update package description * Add ${misc:Depends} to the python-libpcap dependency * Drop libpcap0.8 from Build-Depends and Depends, thank to Sebastian Ramacher * Bump Standards Version to 3.9.4 -- Prach Pongpanich Wed, 27 Feb 2013 01:33:23 +0700 python-libpcap (0.6.2-0.2) unstable; urgency=low * Non-maintainer upload. * (Closes: #656543) python-pypcap python-libpcap marked as conflict. -- Shell Xu Mon, 30 Apr 2012 11:11:07 +0800 python-libpcap (0.6.2-0.1) unstable; urgency=medium * Non-maintainer upload. [ Richard Darst ] * New upstream release * Fix problems in build-tools/docify.py and build-tools/docify-shadow.py which caused FTBFS (Closes: #542984). This is probably related to SWIG upgrades. * str/int comparison bug fixed, which caused the hacked doc system above to not even be seen from python. [ Kumar Appaiah ] * Build for all Python versions + Build-Depend on python-all-dev in debian/control. + Alter debian/rules to build for all Python versions. * Set correct homepage field in debian/control. * Add '~' to Debian-specific version numbers in Build-Depends. * Add ${shlibs:Depends} to the python-libpcap dependency. + Run dh_shlibdeps. -- Richard Darst Sat, 21 Nov 2009 16:57:51 -0600 python-libpcap (0.6.1+cvs.2007.07.28-2) unstable; urgency=low * fixed policy violation (Closes: #435261) -- Thomas Bläsing Wed, 01 Aug 2007 18:33:17 +0200 python-libpcap (0.6.1+cvs.2007.07.28-1) unstable; urgency=low * Initial release (Closes: #215367) -- Thomas Bläsing Sat, 28 Jul 2007 17:47:48 +0200 debian/compat0000644000000000000000000000000212142065741010366 0ustar 9