- nftables is the replacement for iptables, arptables, ebtables

Signed-off-by: Andreas Geisenhainer <[email protected]>
---
 rules/nftables.in   | 37 +++++++++++++++++++++++++++++++++
 rules/nftables.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100644 rules/nftables.in
 create mode 100644 rules/nftables.make

diff --git a/rules/nftables.in b/rules/nftables.in
new file mode 100644
index 0000000..a08a78f
--- /dev/null
+++ b/rules/nftables.in
@@ -0,0 +1,37 @@
+## SECTION=networking
+
+menuconfig NFTABLES
+       tristate
+       prompt "nftables                      "
+       select LIBGMP if !NFTABLES_MGMP
+       select READLINE
+       select LIBMNL
+       select LIBNFTNL
+       help
+         nftables is the project that aims to replace the existing
+         {ip,ip6,arp,eb}tables framework. Basically, this project provides
+         a new packet filtering framework, a new userspace utility and also
+         a compatibility layer for {ip,ip6}tables. nftables is built upon
+         the building blocks of the Netfilter infrastructure such as the
+         existing hooks, the connection tracking system, the userspace
+         queueing component and the logging subsystem.
+         Don't forget to enable nf_tables in kernel.
+
+if NFTABLES
+
+config NFTABLES_DEBUG
+       bool
+       default y
+       prompt "enable debug"
+
+
+config NFTABLES_MGMP
+       bool
+       prompt "use mini-GMP"
+       # broken in v0.5 (seems to be fixed some time after)
+       depends on BROKEN
+       help
+         use the nftables build-in mini-GMP instead of linking to the shared
+         libgmp. (may reduce debugging verbosity on some files)
+
+endif
diff --git a/rules/nftables.make b/rules/nftables.make
new file mode 100644
index 0000000..8eed244
--- /dev/null
+++ b/rules/nftables.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Andreas Geisenhainer 
<[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NFTABLES) += nftables
+
+#
+# Paths and names
+#
+NFTABLES_VERSION       := 0.5
+NFTABLES_MD5           := 94bfe1c54bcb9f6ed974835f2fca8069
+NFTABLES               := nftables-$(NFTABLES_VERSION)
+NFTABLES_SUFFIX                := tar.bz2
+NFTABLES_URL           := 
http://ftp.netfilter.org/pub/nftables/$(NFTABLES).$(NFTABLES_SUFFIX)
+NFTABLES_SOURCE                := $(SRCDIR)/$(NFTABLES).$(NFTABLES_SUFFIX)
+NFTABLES_DIR           := $(BUILDDIR)/$(NFTABLES)
+NFTABLES_LICENSE       := GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+NFTABLES_CONF_TOOL     := autoconf
+NFTABLES_CONF_OPT      := \
+       $(CROSS_AUTOCONF_USR) \
+       --$(call ptx/endis, PTXCONF_NFTABLES_DEBUG)-debug \
+       --$(call ptx/wwo, PTXCONF_NFTABLES_MGMP)-mini-gmp
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nftables.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, nftables)
+       @$(call install_fixup, nftables,PRIORITY,optional)
+       @$(call install_fixup, nftables,SECTION,base)
+       @$(call install_fixup, nftables,AUTHOR,"Andreas Geisenhainer 
<[email protected]")
+       @$(call install_fixup, nftables,DESCRIPTION,missing)
+
+       @$(call install_copy, nftables, 0, 0, 0755, -, /usr/sbin/nft)
+
+       @$(call install_finish, nftables)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.8.0.rc3

____________
Virus checked by G Data MailSecurity
Version: AVA 25.6096 dated 08.04.2016
Virus news: www.antiviruslab.com.

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to