summaryrefslogtreecommitdiffstats
path: root/rules/nftables.make
diff options
context:
space:
mode:
authorAndreas Geisenhainer <Andreas.Geisenhainer@atsonline.de>2016-04-08 12:57:14 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-04-12 09:00:57 +0200
commit16714f1ab4dc89f5223896965c8f5e62d0247a22 (patch)
tree7a5b713b85f2c68891939f452e72a00fd0324415 /rules/nftables.make
parentd321a1d3a0c671539c6d207fcb05d65a3da939b9 (diff)
downloadptxdist-16714f1ab4dc89f5223896965c8f5e62d0247a22.tar.gz
ptxdist-16714f1ab4dc89f5223896965c8f5e62d0247a22.tar.xz
nftables: adds new package nftables in version 0.5
- nftables is the replacement for iptables, arptables, ebtables Signed-off-by: Andreas Geisenhainer <Andreas.Geisenhainer@atsonline.de> [mol: add environment to avoid building docs] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/nftables.make')
-rw-r--r--rules/nftables.make67
1 files changed, 67 insertions, 0 deletions
diff --git a/rules/nftables.make b/rules/nftables.make
new file mode 100644
index 000000000..41eb930f9
--- /dev/null
+++ b/rules/nftables.make
@@ -0,0 +1,67 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Andreas Geisenhainer <andreas.geisenhainer@atsonline.de>
+#
+# 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
+# ----------------------------------------------------------------------------
+
+NFTABLES_CONF_ENV := \
+ $(CROSS_ENV) \
+ ac_cv_prog_DOCBOOK2X_MAN=no \
+ ac_cv_prog_DOCBOOK2MAN=no \
+ ac_cv_prog_DB2X_DOCBOOK2MAN=no \
+ ac_cv_prog_DBLATEX=no
+
+#
+# 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 <andreas.geisenhainer@atsonline.de")
+ @$(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