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.
Created attachment 230405 [details] The ebuild for nfqueue-bindings
Created attachment 230407 [details, diff] A small patch that disables the perl support in nfqueue-bindings' ebuild
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.
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.
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.
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.
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
(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.
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
(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
Hi, Is this ebuild already integrated to some overlay? Regards, Kfir
Hello Kfir, To my best knowledge, this ebuild has not been pushed in any overlay. Regards, Tony
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.
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.
This is in cvs now.