diff mbox

libnftnl: new package

Message ID 1390322446-3392-1-git-send-email-yegorslists@googlemail.com
State Superseded
Headers show

Commit Message

Yegor Yefremov Jan. 21, 2014, 4:40 p.m. UTC
From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/Config.in            |    1 +
 package/libnftnl/Config.in   |   11 +++++++++++
 package/libnftnl/libnftnl.mk |   15 +++++++++++++++
 3 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 package/libnftnl/Config.in
 create mode 100644 package/libnftnl/libnftnl.mk

Comments

Gustavo Zacarias Jan. 21, 2014, 8:36 p.m. UTC | #1
On 01/21/2014 01:40 PM, yegorslists@googlemail.com wrote:
> --- /dev/null
> +++ b/package/libnftnl/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_LIBNFTNL
> +	bool "libnftnl"
> +	select BR2_PACKAGE_LIBMNL
> +	help
> +	  libnftnl is a userspace library providing a low-level
> +	  netlink programming interface (API) to the in-kernel
> +	  nf_tables subsystem. The library libnftnl has been
> +	  previously known as libnftables. This library is
> +	  currently used by nftables.
> +
> +	  http://netfilter.org/projects/libnftnl/index.html

+       depends on BR2_INET_IPV6
+       depends on BR2_LARGEFILE
+       depends on BR2_TOOLCHAIN_HAS_THREADS

I've already tested the messy stuff :)
Also got a nftables package, didn't submit the set yet because it
doesn't seem to run properly on a ppc target:

~ # nft list table filter
<cmdline>:1:1-17: Error: Could not receive sets from kernel: Address
family not supported by protocol

Didn't track the sucker down yet (yeah got ipv6, all of the netfilter
and nft modules loaded and so on).
Regards.
Yegor Yefremov Jan. 22, 2014, 11:19 a.m. UTC | #2
On Tue, Jan 21, 2014 at 9:36 PM, Gustavo Zacarias
<gustavo@zacarias.com.ar> wrote:
> On 01/21/2014 01:40 PM, yegorslists@googlemail.com wrote:
>> --- /dev/null
>> +++ b/package/libnftnl/Config.in
>> @@ -0,0 +1,11 @@
>> +config BR2_PACKAGE_LIBNFTNL
>> +     bool "libnftnl"
>> +     select BR2_PACKAGE_LIBMNL
>> +     help
>> +       libnftnl is a userspace library providing a low-level
>> +       netlink programming interface (API) to the in-kernel
>> +       nf_tables subsystem. The library libnftnl has been
>> +       previously known as libnftables. This library is
>> +       currently used by nftables.
>> +
>> +       http://netfilter.org/projects/libnftnl/index.html
>
> +       depends on BR2_INET_IPV6
> +       depends on BR2_LARGEFILE
> +       depends on BR2_TOOLCHAIN_HAS_THREADS
>
> I've already tested the messy stuff :)
> Also got a nftables package, didn't submit the set yet because it
> doesn't seem to run properly on a ppc target:
>
> ~ # nft list table filter
> <cmdline>:1:1-17: Error: Could not receive sets from kernel: Address
> family not supported by protocol
>
> Didn't track the sucker down yet (yeah got ipv6, all of the netfilter
> and nft modules loaded and so on).

I've send v2.

It will be good, if we could at least get all needed packages into BR.
I can imagine, that new version would appear in the near future, as
different distros would package nftables :-)

Yegor
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 8495cdd..d2e0424 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -675,6 +675,7 @@  source "package/libnetfilter_cttimeout/Config.in"
 source "package/libnetfilter_log/Config.in"
 source "package/libnetfilter_queue/Config.in"
 source "package/libnfnetlink/Config.in"
+source "package/libnftnl/Config.in"
 source "package/libnl/Config.in"
 source "package/liboauth/Config.in"
 source "package/liboping/Config.in"
diff --git a/package/libnftnl/Config.in b/package/libnftnl/Config.in
new file mode 100644
index 0000000..35ccbdc
--- /dev/null
+++ b/package/libnftnl/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_LIBNFTNL
+	bool "libnftnl"
+	select BR2_PACKAGE_LIBMNL
+	help
+	  libnftnl is a userspace library providing a low-level
+	  netlink programming interface (API) to the in-kernel
+	  nf_tables subsystem. The library libnftnl has been
+	  previously known as libnftables. This library is
+	  currently used by nftables.
+
+	  http://netfilter.org/projects/libnftnl/index.html
diff --git a/package/libnftnl/libnftnl.mk b/package/libnftnl/libnftnl.mk
new file mode 100644
index 0000000..bb8bdb4
--- /dev/null
+++ b/package/libnftnl/libnftnl.mk
@@ -0,0 +1,15 @@ 
+################################################################################
+#
+# libnftnl
+#
+################################################################################
+
+LIBNFTNL_VERSION = 1.0.0
+LIBNFTNL_SITE = http://netfilter.org/projects/libnftnl/files/
+LIBNFTNL_SOURCE = libnftnl-$(LIBNFTNL_VERSION).tar.bz2
+LIBNFTNL_LICENSE = GPLv2
+LIBNFTNL_LICENSE_FILES = COPYING
+LIBNFTNL_INSTALL_STAGING = YES
+LIBNFTNL_DEPENDENCIES = host-pkgconf libmnl
+
+$(eval $(autotools-package))