--- python-pypcap-1.1.2+debian.orig/debian/changelog +++ python-pypcap-1.1.2+debian/debian/changelog @@ -0,0 +1,31 @@ +python-pypcap (1.1.2+debian-2.2) unstable; urgency=low + + * Non-maintainer upload. + * (Closes: #656543) python-pypcap python-libpcap marked as conflict. + + -- Shell Xu Mon, 30 Apr 2012 11:17:03 +0800 + +python-pypcap (1.1.2+debian-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Detect libpcap in multiarch location, patch from Ubuntu; closes: #634420. + * Switch from python-central (deprecated) to dh_python2; closes: #617019. + * Add misc:Depends + + -- Scott Kitterman Tue, 13 Dec 2011 23:46:13 -0500 + +python-pypcap (1.1.2+debian-2) unstable; urgency=low + + * Patch setup.py to search as well as for needed + symbols; closes: #526576. + + -- Robert S. Edmonds Sat, 09 May 2009 17:24:13 -0400 + +python-pypcap (1.1.2+debian-1) unstable; urgency=low + + * Initial release; closes: #436389. + * Repack the upstream tarball with files from both the GNN and Dug Song + versions of pypcap. + + -- Robert S. Edmonds Wed, 08 Aug 2007 01:14:08 -0400 + --- python-pypcap-1.1.2+debian.orig/debian/rules +++ python-pypcap-1.1.2+debian/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +PYVERS = $(shell pyversions -r) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + for python in $(PYVERS); do $$python setup.py config; done + touch $@ + +build: patch configure build-stamp +build-stamp: + dh_testdir + pyrexc pcap.pyx + for python in $(PYVERS); do $$python setup.py build; done + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build-stamp configure-stamp config.* pcap.c build + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + for python in $(PYVERS); do $$python setup.py install --root=debian/python-pypcap; done + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_python2 + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_compress + dh_link + dh_strip + 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 --- python-pypcap-1.1.2+debian.orig/debian/docs +++ python-pypcap-1.1.2+debian/debian/docs @@ -0,0 +1 @@ +README --- python-pypcap-1.1.2+debian.orig/debian/watch +++ python-pypcap-1.1.2+debian/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+debian$// \ + http://sf.net/pcs/py-pypcap-(.*)\.tar\.gz --- python-pypcap-1.1.2+debian.orig/debian/copyright +++ python-pypcap-1.1.2+debian/debian/copyright @@ -0,0 +1,46 @@ +This package was debianized by Robert S. Edmonds on +Tue, 07 Aug 2007 23:47:14 -0400. + +It was downloaded from + http://sourceforge.net/projects/pcs/ + http://code.google.com/p/pypcap/ + +Upstream Authors: + Dug Song + George Neville-Neil + +Copyright: + Copyright (C) 2004 Dug Song + +License: + + Copyright (c) 2004 Dug Song + All rights reserved, all wrongs reversed. + + 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 and copyright holders may not be used to + endorse or promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is (C) 2007, Robert S. Edmonds and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- python-pypcap-1.1.2+debian.orig/debian/examples +++ python-pypcap-1.1.2+debian/debian/examples @@ -0,0 +1 @@ +test/* --- python-pypcap-1.1.2+debian.orig/debian/compat +++ python-pypcap-1.1.2+debian/debian/compat @@ -0,0 +1 @@ +5 --- python-pypcap-1.1.2+debian.orig/debian/control +++ python-pypcap-1.1.2+debian/debian/control @@ -0,0 +1,16 @@ +Source: python-pypcap +Section: python +Priority: optional +Maintainer: Robert S. Edmonds +Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.6.6-3~), + python-pyrex, libpcap0.8-dev, quilt +Standards-Version: 3.8.1 + +Package: python-pypcap +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +Conflicts: python-libpcap +Provides: ${python:Provides} +Description: object-oriented Python interface for libpcap + pypcap is an objected-oriented Python interface for libpcap which + supports packet injection and user callback functions. --- python-pypcap-1.1.2+debian.orig/debian/patches/series +++ python-pypcap-1.1.2+debian/debian/patches/series @@ -0,0 +1,3 @@ +10_mktemp_needs_stdlib_h +20_setup_search_pcap_pcap_h +30_multiarch --- python-pypcap-1.1.2+debian.orig/debian/patches/30_multiarch +++ python-pypcap-1.1.2+debian/debian/patches/30_multiarch @@ -0,0 +1,15 @@ +Index: python-pypcap-1.1.2+debian/setup.py +=================================================================== +--- python-pypcap-1.1.2+debian.orig/setup.py 2011-09-22 14:45:12.954708388 +0000 ++++ python-pypcap-1.1.2+debian/setup.py 2011-09-22 14:45:36.964743618 +0000 +@@ -48,6 +48,10 @@ + incdirs = [ os.path.join(d, sd) ] + if os.path.exists(os.path.join(d, sd, 'pcap.h')): + cfg['include_dirs'] = [ os.path.join(d, sd) ] ++ cfg['library_dirs'] = [ os.path.join(d, sd) ] ++ cfg['libraries'] = [ 'pcap' ] ++ self._write_config_h(cfg) ++ return cfg + for sd in ('lib', ''): + for lib in (('pcap', 'libpcap.a'), + ('pcap', 'libpcap.dylib'), --- python-pypcap-1.1.2+debian.orig/debian/patches/10_mktemp_needs_stdlib_h +++ python-pypcap-1.1.2+debian/debian/patches/10_mktemp_needs_stdlib_h @@ -0,0 +1,12 @@ +Index: python-pypcap-1.1.2+debian/pcap_ex.c +=================================================================== +--- python-pypcap-1.1.2+debian.orig/pcap_ex.c 2009-05-09 17:17:12.300932060 -0400 ++++ python-pypcap-1.1.2+debian/pcap_ex.c 2009-05-09 17:17:22.817429265 -0400 +@@ -8,6 +8,7 @@ + # include + # include + # include ++# include + # include + # include + # include --- python-pypcap-1.1.2+debian.orig/debian/patches/20_setup_search_pcap_pcap_h +++ python-pypcap-1.1.2+debian/debian/patches/20_setup_search_pcap_pcap_h @@ -0,0 +1,13 @@ +Index: python-pypcap-1.1.2+debian/setup.py +=================================================================== +--- python-pypcap-1.1.2+debian.orig/setup.py 2009-05-09 17:21:37.317432610 -0400 ++++ python-pypcap-1.1.2+debian/setup.py 2009-05-09 17:23:23.617032040 -0400 +@@ -26,6 +26,8 @@ + if os.path.exists(os.path.join(cfg['include_dirs'][0], 'pcap-int.h')): + d['HAVE_PCAP_INT_H'] = 1 + buf = open(os.path.join(cfg['include_dirs'][0], 'pcap.h')).read() ++ if os.path.exists(os.path.join(cfg['include_dirs'][0], 'pcap', 'pcap.h')): ++ buf += open(os.path.join(cfg['include_dirs'][0], 'pcap', 'pcap.h')).read() + if buf.find('pcap_file(') != -1: + d['HAVE_PCAP_FILE'] = 1 + if buf.find('pcap_compile_nopcap(') != -1: