Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318559 - net-libs/nfqueue-bindings - a set of high-level modules for several languages for libnetfilter_queue
Summary: net-libs/nfqueue-bindings - a set of high-level modules for several languages...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-05-05 09:49 UTC by Tony Cheneau
Modified: 2015-07-01 22:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild for nfqueue-bindings (nfqueue-bindings-0.3.ebuild,591 bytes, text/plain)
2010-05-05 09:50 UTC, Tony Cheneau
Details
A small patch that disables the perl support in nfqueue-bindings' ebuild (nfqueue-bindings-noperl.diff,566 bytes, patch)
2010-05-05 09:51 UTC, Tony Cheneau
Details | Diff
Updated ebuild for Perl (nfqueue-bindings-0.3.ebuild,1.01 KB, text/plain)
2010-05-21 07:55 UTC, Vince C.
Details
net-libs/nfqueue-bindings-0.3 (nfqueue-bindings-0.3.ebuild,1.35 KB, text/plain)
2010-05-21 08:22 UTC, Vince C.
Details
net-libs/nfqueue-bindings-0.3 (nfqueue-bindings-0.3.ebuild,1.90 KB, text/plain)
2010-05-24 12:53 UTC, Vince C.
Details
nfqueue-bindings-0.4.ebuild (nfqueue-bindings-0.4.ebuild,2.02 KB, text/plain)
2012-10-31 13:32 UTC, Vince C.
Details
nfqueue-bindings-0.5.ebuild (nfqueue-bindings-0.5.ebuild,1.86 KB, text/plain)
2015-07-01 22:07 UTC, Zac Medico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Cheneau 2010-05-05 09:49:10 UTC
Hello,

Please find attached a ebuild for nfqueue-bindings-0.3.
This is a new ebuild for the Python binding's contained in nfqueue-bindings. nfqueue-binding is bindings for Perl and Python of the netfilter-queue library (allows userspace interaction with netfilter).

You can find the project webpage at: http://software.inl.fr/trac/wiki/nfqueue-bindings

Note that I disabled the Perl support (with a patch) because it fails to compile on my computer and also because I think it is better to have two separate ebuilds for each bindings.

Regards,
Tony

Reproducible: Always

Steps to Reproduce:
1. emerge dev-python/nfqueue-bindings
Actual Results:  
Can "import nfqueue" in a python shell.

Expected Results:  
Works as expected.
Comment 1 Tony Cheneau 2010-05-05 09:50:59 UTC
Created attachment 230405 [details]
The ebuild for nfqueue-bindings
Comment 2 Tony Cheneau 2010-05-05 09:51:47 UTC
Created attachment 230407 [details, diff]
A small patch that disables the perl support in nfqueue-bindings' ebuild
Comment 3 Vince C. 2010-05-21 07:55:07 UTC
Created attachment 232311 [details]
Updated ebuild for Perl

Installs NFQueue Perl modules in Perl library ${ARCH_LIB}/ . Obsoletes initial ebuild and patch. Installs Python modules in the site directory.
Comment 4 Vince C. 2010-05-21 08:01:58 UTC
I have updated the ebuild for Perl. The ebuild should now be in net-libs/nfqueue-bindings. Support for Perl and Python is now provided with corresponding USE flags. Tony, would you mind changing the bug title accordingly, please?

Still I have an error in either case (NFNETLINK answers: Invalid argument). Don't know where it comes from. Still investigating.
Comment 5 Vince C. 2010-05-21 08:22:07 UTC
Created attachment 232317 [details]
net-libs/nfqueue-bindings-0.3

I forgot to process USE flags accordingly in my initial version. This ebuild fixes that mistake. Sorry for any inconvenience.
Comment 6 Vince C. 2010-05-21 09:25:29 UTC
Problem solved. The ebuild should check the following kernel options are set:

CONFIG_NETFILTER_NETLINK_QUEUE
CONFIG_NETFILTER_XT_TARGET_NFQUEUE

I modprobe'd the required modules on the machine that was failing and the error message is gone.

There is also a missing dependency for Python (dev-python/dpkt), which I'll add later on when I'm done with checking the kernel.
Comment 7 Tony Cheneau 2010-05-21 09:38:25 UTC
Great thanks Vince. I changed the title (I think, I"m new to bugzilla).
I think that the dev-python/dpkt dependency is only required by the sample files provided with the project. Maybe you can add an "examples" USE flag for that purpose. I, personally, never use dpkt when using this library.


Regards,
Tony
Comment 8 Vince C. 2010-05-21 11:03:16 UTC
(In reply to comment #7)
> Great thanks Vince. I changed the title (I think, I"m new to bugzilla).

Thanks :) .


> I think that the dev-python/dpkt dependency is only required by the sample
> files provided with the project.

Don't think so as I've got compilation errors and dpkt was not present so I had to install it manually on another machine I tested.
Comment 9 Vince C. 2010-05-24 12:53:02 UTC
Created attachment 232707 [details]
net-libs/nfqueue-bindings-0.3

Full ebuild updated with examples (USE flag) and checks for appropriate Netfilter kernel options. Installs the examples in /usr/share/doc/${P}/examples. Examples are compressed, don't know if it's possible to unpack them however. I'm quite fine with how it is however :-).

Example:
~ # USE="perl -python examples" emerge -avq net-libs/nfqueue-bindings
Comment 10 Tony Cheneau 2010-06-09 09:22:17 UTC
(sorry for the late reply)
I've tested your latest ebuild with the perl and python USE flags. It works just fine. Many thanks.

However, I still believe that dev-python/dpkt dependency should be linked to the examples USE flag. I unemerged it from my system and was able to successfully emerge nfqueue-bindings. Maybe your compilation error was due to a common dependency of dev-python/dpkt (although it does not seem to have any) and nfqueue-bindings. Did you kept a copy of your compilation error ?

Regards,
Tony
Comment 11 Kfir Lavi 2010-07-15 08:10:43 UTC
Hi,
Is this ebuild already integrated to some overlay?

Regards,
Kfir
Comment 12 Tony Cheneau 2010-07-15 08:31:11 UTC
Hello Kfir,

To my best knowledge, this ebuild has not been pushed in any overlay.

Regards,
Tony
Comment 13 Vince C. 2012-10-31 13:32:38 UTC
Created attachment 327866 [details]
nfqueue-bindings-0.4.ebuild

/!\ Warning: The tarball is now hosted on a web server with a self-signed certificate. This requires a customized FETCHCOMMAND and RESUMECOMMAND in make.conf, providing wget with argument --no-check-certificate!

EXample:

FETCHCOMMAND="/usr/bin/wget --no-check-certificate -t 5 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""

Note: Compiled fine on my laptop. Didn't try it though.
Comment 14 Zac Medico gentoo-dev 2015-07-01 22:07:07 UTC
Created attachment 406050 [details]
nfqueue-bindings-0.5.ebuild

This updates it to use python-single-r1 eclass. I had to tweak the set for perl/CMakeLists.txt, and I don't have enough perl module experience to know if it's installed in the right place.
Comment 15 Zac Medico gentoo-dev 2015-07-01 22:41:04 UTC
This is in cvs now.