debian/0000755000000000000000000000000012225237650007172 5ustar debian/copyright0000644000000000000000000000213411662504115011122 0ustar This package was debianized by Pierre Chifflier on Fri, 05 Sep 2008 10:20:11 +0200. It was downloaded from http://software.inl.fr/trac/wiki/nfqueue-bindings Upstream Author: Pierre Chifflier Copyright (C) 2007-2008 Pierre Chifflier License: nfqueue-bindings is licensed under the GPLv3: This program 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 3 of the License, or (at your option) any later version. 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. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. The Debian packaging is (C) 2008, Pierre Chifflier and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/libnfqueue-perl.examples0000644000000000000000000000001611743550244014027 0ustar examples/*.pl debian/compat0000644000000000000000000000000211743550244010371 0ustar 9 debian/patches/0000755000000000000000000000000012225236512010615 5ustar debian/patches/30-revert-signature-change.patch0000644000000000000000000000137012225236512016610 0ustar Index: nfqueue-bindings/python/libnetfilter_queue_python.i =================================================================== --- nfqueue-bindings.orig/python/libnetfilter_queue_python.i 2012-04-18 16:33:08.000000000 +0200 +++ nfqueue-bindings/python/libnetfilter_queue_python.i 2013-10-09 13:25:56.632700095 +0200 @@ -55,7 +55,7 @@ p->qh = qh; p->nfad = nfad; payload_obj = SWIG_NewPointerObj((void*) p, SWIGTYPE_p_payload, 0 /* | SWIG_POINTER_OWN */); - arglist = Py_BuildValue("(N)",payload_obj); + arglist = Py_BuildValue("(i,O)",42,payload_obj); result = PyEval_CallObject(func,arglist); Py_DECREF(arglist); if (result) { debian/patches/series0000644000000000000000000000012012225236447012032 0ustar 20-FindPerlLib.patch 10-fix-ftbfs-uint32.patch 30-revert-signature-change.patch debian/patches/20-FindPerlLib.patch0000644000000000000000000000525412166502200014207 0ustar Index: nfqueue-bindings/perl/CMakeLists.txt =================================================================== --- nfqueue-bindings.orig/perl/CMakeLists.txt 2012-04-18 16:33:10.000000000 +0200 +++ nfqueue-bindings/perl/CMakeLists.txt 2013-07-08 11:19:41.476353073 +0200 @@ -2,7 +2,7 @@ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") FIND_PACKAGE(Perl) -FIND_PACKAGE(PerlLibs2) +FIND_PACKAGE(PerlLibs) IF ( PERL_EXECUTABLE ) EXEC_PROGRAM( ${PERL_EXECUTABLE} ARGS "-e 'use Config; print \$Config{revision},\"\\n\"'" OUTPUT_VARIABLE PERL_VERSION ) Index: nfqueue-bindings/FindPerlLibs2.cmake =================================================================== --- nfqueue-bindings.orig/FindPerlLibs2.cmake 2012-04-18 16:33:08.000000000 +0200 +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 @@ -1,67 +0,0 @@ -# - Find Perl libraries -# This module finds if PERL is installed and determines where the include files -# and libraries are. It also determines what the name of the library is. This -# code sets the following variables: -# -# PERL_INCLUDE_PATH = path to where perl.h is found -# PERL_EXECUTABLE = full path to the perl binary -# - -SET(PERL_POSSIBLE_INCLUDE_PATHS - /usr/lib/perl/5.8.3/CORE - /usr/lib/perl/5.8.2/CORE - /usr/lib/perl/5.8.1/CORE - /usr/lib/perl/5.8.0/CORE - /usr/lib/perl/5.8/CORE - /usr/lib/perl/5.10/CORE - /usr/lib/perl/5.12/CORE - /usr/lib/perl/5.14/CORE - ) - -SET(PERL_POSSIBLE_LIB_PATHS - /usr/lib - ) - -FIND_PATH(PERL_INCLUDE_PATH perl.h - ${PERL_POSSIBLE_INCLUDE_PATHS}) - - -FIND_PROGRAM(PERL_EXECUTABLE - NAMES perl - PATHS - /usr/bin - /usr/local/bin - ) - -IF(PERL_EXECUTABLE) - EXEC_PROGRAM(${PERL_EXECUTABLE} - ARGS "-e 'use Config; print \$Config{libperl}, \"\\n\"'" - OUTPUT_VARIABLE PERL_LIBRARY_OUTPUT_VARIABLE - RETURN_VALUE PERL_LIBRARY_RETURN_VALUE - ) - IF(NOT PERL_LIBRARY_RETURN_VALUE) - FOREACH(path ${PERL_POSSIBLE_LIB_PATHS}) - SET(PERL_POSSIBLE_LIBRARY_NAME ${PERL_POSSIBLE_LIBRARY_NAME} "${path}/${PERL_LIBRARY_OUTPUT_VARIABLE}") - ENDFOREACH(path ${PERL_POSSIBLE_LIB_PATHS}) - ENDIF(NOT PERL_LIBRARY_RETURN_VALUE) - EXEC_PROGRAM(${PERL_EXECUTABLE} - ARGS "-e 'use Config; print \$Config{cppflags}, \"\\n\"'" - OUTPUT_VARIABLE PERL_CPPFLAGS_OUTPUT_VARIABLE - RETURN_VALUE PERL_CPPFLAGS_RETURN_VALUE - ) - IF(NOT PERL_CPPFLAGS_RETURN_VALUE) - SET(PERL_EXTRA_C_FLAGS ${PERL_CPPFLAGS_OUTPUT_VARIABLE}) - SEPARATE_ARGUMENTS(PERL_EXTRA_C_FLAGS) - ENDIF(NOT PERL_CPPFLAGS_RETURN_VALUE) -ENDIF(PERL_EXECUTABLE) - -FIND_LIBRARY(PERL_LIBRARY - NAMES ${PERL_POSSIBLE_LIBRARY_NAME} perl - PATHS ${PERL_POSSIBLE_LIB_PATHS} - ) - -MARK_AS_ADVANCED( - PERL_INCLUDE_PATH - PERL_EXECUTABLE - PERL_LIBRARY - ) debian/patches/10-fix-ftbfs-uint32.patch0000644000000000000000000000043612166501467015101 0ustar Index: nfqueue-bindings/nfq.c =================================================================== --- nfqueue-bindings.orig/nfq.c 2011-11-21 18:19:08.000000000 +0100 +++ nfqueue-bindings/nfq.c 2013-07-08 11:15:24.464364553 +0200 @@ -1,2 +1,3 @@ +#include #include "nfq.h" debian/control0000644000000000000000000000470712166502715010606 0ustar Source: nfqueue-bindings Section: libs Priority: extra XS-Python-Version: >= 2.6 Maintainer: Pierre Chifflier Build-Depends: debhelper (>= 9), cmake (>= 2.4.5), swig (>= 1.3), libperl-dev, python-all-dev (>= 2.6.6-3~), libnetfilter-queue-dev, chrpath Standards-Version: 3.9.4 Homepage: https://www.wzdftpd.net/redmine/projects/nfqueue-bindings/wiki/ Package: libnfqueue-perl Section: perl Architecture: any Replaces: nfqueue-bindings-perl Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Perl bindings for nfqueue nfqueue-bindings is a set of high-level modules for several languages (Python and Perl, for the moment), for libnetfilter_queue. It provides a userspace API to access packets that have been queued by the kernel packet filter using the NFQUEUE target. . This package contains the Perl bindings for nfqueue. Package: python-nfqueue Section: python Architecture: any Replaces: nfqueue-bindings-python Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python:Provides} Description: Python bindings for nfqueue nfqueue-bindings is a set of high-level modules for several languages (Python and Perl, for the moment), for libnetfilter_queue. It provides a userspace API to access packets that have been queued by the kernel packet filter using the NFQUEUE target. . This package contains the Python bindings for nfqueue. Package: nfqueue-bindings-perl Section: perl Architecture: any Depends: libnfqueue-perl, ${misc:Depends} Description: Perl bindings for nfqueue nfqueue-bindings is a set of high-level modules for several languages (Python and Perl, for the moment), for libnetfilter_queue. It provides a userspace API to access packets that have been queued by the kernel packet filter using the NFQUEUE target. . This is a dummy package to ease transition to the new packaging scheme. It may be safely removed after upgrade/installation. Package: nfqueue-bindings-python Section: python Architecture: any Depends: python-nfqueue, ${misc:Depends} Description: Python bindings for nfqueue nfqueue-bindings is a set of high-level modules for several languages (Python and Perl, for the moment), for libnetfilter_queue. It provides a userspace API to access packets that have been queued by the kernel packet filter using the NFQUEUE target. . This is a dummy package to ease transition to the new packaging scheme. It may be safely removed after upgrade/installation. debian/dirs0000644000000000000000000000001011662504115010042 0ustar usr/lib debian/rules0000755000000000000000000000144411763376321010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PYVERS=$(shell pyversions -vr) # do not add +all because pie causes a FTBFS with cmake export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow # CMake doesn't respect CPPFLAGS. CFLAGS += $(CPPFLAGS) %: dh $@ --with=python2 override_dh_auto_build: $(PYVERS:%=build-python%) build-python%: make BUILD_DIR="build$*" PREFIX=/usr CMAKE_EXTRA_OPTIONS="-DPython_ADDITIONAL_VERSIONS=$* -DPythonInterp_FIND_VERSION=$*" touch $@ override_dh_auto_clean: rm -f build-python2.* rm -rf build build2.[67] dh_auto_clean override_dh_auto_install: $(PYVERS:%=install-python%) install-python%: $(MAKE) -C build$* DESTDIR=$(CURDIR)/debian/tmp install chrpath -d $(CURDIR)/debian/tmp/usr/lib/python2.*/*/*.so debian/python-nfqueue.examples0000644000000000000000000000001611743550244013717 0ustar examples/*.py debian/changelog0000644000000000000000000000755712225237552011063 0ustar nfqueue-bindings (0.4-6) unstable; urgency=low * Revert upstream signature change (Closes: #718894) Note: rollback is temporary, signature will change in next upstream version -- Pierre Chifflier Wed, 09 Oct 2013 13:35:02 +0200 nfqueue-bindings (0.4-5) unstable; urgency=low * Fix FTBFS "unknown type name 'uint32_t'" (Closes: #713742) * Use CMake internal script to find perl (Closes: #676274) * Bump Standards Version to 3.9.4 * Fix lintian warning (missing misc-depends) -- Pierre Chifflier Mon, 08 Jul 2013 11:29:20 +0200 nfqueue-bindings (0.4-4) unstable; urgency=low * Fix FTBFS "unknown type name 'uint32_t'" (Closes: #713742) * Use CMake internal script to find perl (Closes: #676274) Thanks to Gregor Herrmann for the original patch. * Bump Standards Version to 3.9.4 -- Pierre Chifflier Mon, 08 Jul 2013 11:28:18 +0200 nfqueue-bindings (0.4-3) unstable; urgency=low * Add missing CPPFLAGS hardening flags (Closes: #670238). Thanks to Simon Ruderich for the bug report and patch. * Add 'bindnow' hardening flag -- Pierre Chifflier Sat, 19 May 2012 16:20:21 +0200 nfqueue-bindings (0.4-2) unstable; urgency=low * Build with python support in debhelper (Closes: #671060) -- Pierre Chifflier Wed, 02 May 2012 21:50:13 +0200 nfqueue-bindings (0.4-1) unstable; urgency=low * Imported Upstream version 0.4 * Drop patches, merged upstream * Fix installation path and build with specific Python version (Closes: #665230) * Bump Standards Version to 3.9.3 * Switch to debhelper 9: shorten the rules file, and enable hardening flags * Install examples -- Pierre Chifflier Mon, 16 Apr 2012 12:01:16 +0200 nfqueue-bindings (0.3-4) unstable; urgency=low * Switch to dh_python2 (Closes: #616916) * Build package for all recent versions of Python (Closes: #629280) - Add patch to support extra arguments in Makefile * Bump Standards Version to 3.9.2 -- Pierre Chifflier Sun, 05 Jun 2011 21:18:19 +0200 nfqueue-bindings (0.3-3) unstable; urgency=low * Rename binary packages according to policy (Closes: #575936) nfqueue-bindings-perl renamed to libnfqueue-perl nfqueue-bindings-python renamed to python-nfqueue * Update project homepage url (Closes: #600035) * Convert to 3.0 (quilt) source format * Bump Standards Version to 3.9.1 -- Pierre Chifflier Thu, 16 Dec 2010 10:29:45 +0100 nfqueue-bindings (0.3-2) unstable; urgency=low * Apply patch from Ansgar Burchardt: Get path for perl.h from perl's Config module. (Closes: #578631) * Bump standards version to 3.9.0 -- Pierre Chifflier Sun, 18 Jul 2010 21:59:55 +0200 nfqueue-bindings (0.3-1) unstable; urgency=low * New upstream release -- Pierre Chifflier Fri, 29 Jan 2010 22:10:11 +0100 nfqueue-bindings (0.2-3) unstable; urgency=low * Fix installation target in cmake script (Closes: #556833) * Use python_lib path given by python instead of site-packages (Closes: #557911) * Bump standards version to 3.8.3 (no changes) -- Pierre Chifflier Wed, 02 Dec 2009 14:03:03 +0100 nfqueue-bindings (0.2-2) unstable; urgency=low * Rebuild with un-tainted build environment Remove dependency on libpython2.6 (Closes: #533572) * Bump standards version to 3.8.2 (no changes) -- Pierre Chifflier Mon, 22 Jun 2009 20:52:06 +0200 nfqueue-bindings (0.2-1) unstable; urgency=low * New Upstream Version * Add watch file * Bump standards version to 3.8.1 (no changes) -- Pierre Chifflier Sun, 10 May 2009 17:11:08 +0200 nfqueue-bindings (0.1-1) unstable; urgency=low * Initial release (Closes: #497943) -- Pierre Chifflier Fri, 05 Sep 2008 10:20:11 +0200 debian/python-nfqueue.install0000644000000000000000000000002011662504115013536 0ustar usr/lib/python* debian/docs0000644000000000000000000000002611662504115010040 0ustar CMakeLists.txt README debian/libnfqueue-perl.install0000644000000000000000000000001611662504115013653 0ustar usr/lib/perl5 debian/source/0000755000000000000000000000000011662504240010466 5ustar debian/source/format0000644000000000000000000000001411662504240011674 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000041111662504115010214 0ustar # Watch control file for uscan # Run the "uscan" command to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://software.inl.fr//trac/downloads/nfqueue-bindings/nfqueue-bindings-(.*).tar.gz