libnftnl: new package
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 22 Jan 2014 14:37:27 +0000 (15:37 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 22 Jan 2014 20:43:51 +0000 (21:43 +0100)
[Peter: license is GPLv2+]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/libnftnl/Config.in [new file with mode: 0644]
package/libnftnl/libnftnl.mk [new file with mode: 0644]

index b2b6d353b8612009b44e9750655523d631e357d9..fcbf7209c4cfae9a7aa0dec13b00cbc509f446f6 100644 (file)
@@ -674,6 +674,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 (file)
index 0000000..66d0513
--- /dev/null
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LIBNFTNL
+       bool "libnftnl"
+       depends on BR2_INET_IPV6
+       depends on BR2_LARGEFILE
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       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
+
+comment "libnftnl needs a toolchain w/ threads, IPv6, largefile"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || \
+               !BR2_LARGEFILE
diff --git a/package/libnftnl/libnftnl.mk b/package/libnftnl/libnftnl.mk
new file mode 100644 (file)
index 0000000..5eba0aa
--- /dev/null
@@ -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))